:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #60706a;
  --line: #d7ded9;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #0f7b63;
  --accent-deep: #075642;
  --accent-soft: #dff2ec;
  --gold: #b8791d;
  --clay: #954f3e;
  --shadow: 0 22px 60px rgba(19, 35, 30, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  flex: 0 0 auto;
  height: 1.1em;
  width: 1.1em;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(215, 222, 217, 0.8);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 5vw, 64px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.site-header nav {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.site-header nav {
  color: var(--muted);
  font-size: 0.95rem;
  gap: 20px;
}

.site-header nav a:hover {
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  min-height: calc(88svh - 67px);
  padding: clamp(30px, 5vw, 62px) clamp(18px, 5vw, 64px) 30px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.7rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.hero-copy p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.plan-copy,
.product-card p,
.site-footer {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.buy-row:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(15, 123, 99, 0.2);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-deep);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.full-width {
  width: 100%;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  border: 1px solid rgba(215, 222, 217, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  width: 100%;
}

.section {
  padding: 80px clamp(18px, 5vw, 64px);
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 900px;
  text-align: center;
}

.product-band {
  background: #eef4ef;
}

.product-grid,
.pricing-grid,
.feature-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card,
.plan-card,
.feature-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
}

.product-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent-deep);
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 20px;
  width: 54px;
}

.product-card ul {
  color: var(--ink);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding-left: 0;
}

.product-card li,
.buy-row span,
.feature-item {
  align-items: center;
  display: flex;
}

.product-card li {
  gap: 10px;
}

.product-card li svg,
.buy-row svg,
.feature-item > svg {
  color: var(--accent);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.feature-item {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.feature-item > svg {
  background: var(--accent-soft);
  border-radius: 8px;
  box-sizing: content-box;
  height: 24px;
  padding: 12px;
  width: 24px;
}

.feature-item h3 {
  margin-bottom: 0;
}

.feature-item p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.pricing-section {
  background: #fbfaf7;
}

.locale-note {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card.featured {
  border-color: rgba(15, 123, 99, 0.4);
  box-shadow: var(--shadow);
}

.plan-topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.plan-topline h3 {
  margin-bottom: 0;
}

.license-badge {
  background: #f7ead8;
  border: 1px solid #efd7b2;
  border-radius: 999px;
  color: #7a4d11;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}

.bundle-price {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
}

.local-price {
  color: var(--accent-deep);
  font-weight: 800;
  margin: -8px 0 0;
}

.price-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.buy-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 14px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.buy-row span {
  gap: 10px;
}

.buy-row:hover {
  border-color: rgba(15, 123, 99, 0.45);
  box-shadow: 0 10px 24px rgba(15, 123, 99, 0.1);
}

.buy-row strong {
  color: var(--accent-deep);
  white-space: nowrap;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 64px);
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 900;
}

.modal-shell {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 50;
}

.modal-shell.open {
  display: block;
}

.modal-backdrop {
  background: rgba(13, 21, 18, 0.55);
  inset: 0;
  position: absolute;
}

.checkout-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  left: 50%;
  max-height: calc(100svh - 28px);
  max-width: 560px;
  overflow: auto;
  padding: 30px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 28px), 560px);
}

.icon-button {
  align-items: center;
  background: #f3f5f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.4rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.close-button {
  position: absolute;
  right: 18px;
  top: 18px;
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.order-summary {
  background: #f5f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  margin: 20px 0;
  padding: 14px;
}

.order-summary strong {
  color: var(--ink);
}

form {
  display: grid;
  gap: 14px;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
}

input,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 0 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 123, 99, 0.12);
  outline: none;
}

.account-box {
  background: #17201c;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 1px;
  margin: 20px 0;
  overflow: hidden;
}

.account-box div {
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
  grid-template-columns: 150px 1fr;
  padding: 14px;
}

.account-box dt {
  color: #b9c8c2;
  font-weight: 700;
}

.account-box dd {
  font-weight: 900;
  margin: 0;
  overflow-wrap: anywhere;
}

.progress-ring {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--accent) 0deg, var(--accent-soft) 0deg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  margin: 26px auto;
  max-width: 170px;
  padding: 14px;
  width: 45%;
}

.progress-ring span {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: flex;
  font-size: 3rem;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.waiting-copy,
.success-copy,
.gateway-count,
.email-note {
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

.success-copy strong {
  color: var(--ink);
}

.api-key-box {
  align-items: center;
  background: #17201c;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 20px 0 14px;
  padding: 14px;
}

.api-key-box span {
  color: #b9c8c2;
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.api-key-box code {
  color: #fff;
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.api-key-box .button {
  flex: 0 0 auto;
}

.email-note {
  margin-bottom: 18px;
}

.gateway-loader {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
  display: flex;
  height: 92px;
  justify-content: center;
  margin: 28px auto 18px;
  width: 92px;
}

.gateway-loader svg {
  animation: spin 1s linear infinite;
  height: 42px;
  width: 42px;
}

.gateway-count {
  font-weight: 800;
  margin-bottom: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .product-grid,
  .pricing-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header nav {
    gap: 12px;
    width: 100%;
  }

  .hero-actions,
  .site-footer,
  .plan-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  .checkout-modal {
    padding: 24px 18px;
  }

  .api-key-box {
    align-items: stretch;
    flex-direction: column;
  }

  .account-box div {
    grid-template-columns: 1fr;
  }
}
