:root {
  --ink: #1c1c1e;
  --surface: #232326;
  --surface-raised: #2c2c30;
  --surface-soft: #343438;
  --cream: #f5f0e8;
  --cream-muted: #c9c1b7;
  --coral: #e85d4e;
  --coral-dark: #c94c40;
  --coral-hover: #f1776a;
  --coral-light: #ff8a7d;
  --coral-text: #b83f34;
  --line: #48464a;
  --success: #70c99a;
  --warning: #e2bd70;
  --danger: #f08b82;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  --radius-large: 20px;
  --container: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 240, 232, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  z-index: -1;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section-narrow { max-width: 840px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 16px; background: var(--cream); color: var(--ink); transform: translateY(-160%); border-radius: var(--radius); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(245, 240, 232, 0.1); background: rgba(28, 28, 30, 0.88); backdrop-filter: blur(18px); }
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Space Grotesk", "Avenir Next", sans-serif; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand img { flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--cream-muted); }
.site-nav > a:not(.button) { text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--cream); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); color: var(--cream); align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: currentColor; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid var(--coral); border-radius: var(--radius); background: var(--coral); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); background: var(--coral-hover); border-color: var(--coral-hover); }
.button-secondary { background: transparent; color: var(--cream); border-color: var(--line); }
.button-secondary:hover { background: var(--surface-raised); border-color: #68646b; }
.button-small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { color: var(--cream); font-weight: 700; }

.breadcrumb { display: flex; gap: 10px; padding-block: 24px 0; color: var(--cream-muted); font-size: 14px; }
.breadcrumb a { color: var(--cream); }
.page-hero { padding: 112px 0 104px; border-bottom: 1px solid rgba(245, 240, 232, 0.09); }
.page-hero-inner { max-width: 960px; }
.eyebrow { margin: 0 0 16px; color: var(--coral-light); font-size: 13px; line-height: 1.4; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; }
h1, h2, h3 { margin: 0; font-family: "Space Grotesk", "Avenir Next", ui-sans-serif, sans-serif; letter-spacing: -0.045em; line-height: 1.1; text-wrap: balance; }
h1 { max-width: 980px; font-size: clamp(48px, 7vw, 88px); }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
h3 { font-size: 24px; letter-spacing: -0.025em; }
.hero-lead { max-width: 760px; margin: 32px 0 0; color: var(--cream-muted); font-size: clamp(19px, 2vw, 24px); line-height: 1.6; }

.section { padding: 112px 0; border-bottom: 1px solid rgba(245, 240, 232, 0.09); }
.section-soft { background: var(--surface); }
.section-intro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.section-intro > div:last-child { color: var(--cream-muted); }
.section-intro p:first-child { margin-top: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.feature-card { min-height: 260px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); }
.feature-card .number { display: inline-grid; width: 40px; height: 40px; place-items: center; margin-bottom: 40px; border-radius: 50%; background: rgba(232, 93, 78, 0.14); color: var(--coral-light); font-size: 14px; font-weight: 800; }
.feature-card p { margin: 16px 0 0; color: var(--cream-muted); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.split-copy > p:not(.eyebrow) { color: var(--cream-muted); }
.panel { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface-raised); box-shadow: var(--shadow); }
.flow-image { display: block; margin-top: 56px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.check-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 32px; color: var(--cream-muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--coral-light); font-weight: 800; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-large); overflow: hidden; margin-top: 56px; }
.metric { padding: 32px; background: var(--surface); border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 32px; line-height: 1.2; }
.metric span { color: var(--cream-muted); font-size: 14px; }

.code-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-large); background: #151517; box-shadow: var(--shadow); }
.code-card-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--cream-muted); font-size: 13px; }
.copy-button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--cream); cursor: pointer; }
pre { margin: 0; padding: 24px; overflow: auto; color: #e7dfd5; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.inline-code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 0.9em; }
.steps { display: grid; gap: 24px; margin-top: 48px; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface); counter-increment: step; }
.step::before { content: counter(step); display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 800; }
.step p { margin: 8px 0 0; color: var(--cream-muted); }
.table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius-large); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--cream); background: var(--surface-raised); font-size: 14px; }
td { color: var(--cream-muted); }
tr:last-child td { border-bottom: 0; }

.faq-section h2 { margin-bottom: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; padding: 24px 40px 24px 0; cursor: pointer; font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; color: var(--coral-light); font-size: 28px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item div { padding: 0 40px 24px 0; color: var(--cream-muted); }
.faq-item p { margin: 0; }

.final-cta { background: var(--cream); color: var(--ink); }
.final-cta .eyebrow { color: var(--coral-text); }
.final-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; }
.final-cta-inner > div:first-child { max-width: 760px; }
.final-cta-inner p:not(.eyebrow) { margin-bottom: 0; color: #5c5751; }
.final-cta .button-secondary { color: var(--ink); border-color: #a39c93; }
.final-cta .button-secondary:hover { background: #e8e1d8; }

.site-footer { padding: 80px 0 32px; background: #151517; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 56px; }
.footer-grid > div:first-child p { max-width: 340px; color: var(--cream-muted); }
.footer-grid h2 { margin: 4px 0 20px; color: var(--cream); font-family: inherit; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid a, .footer-button { color: var(--cream-muted); font-size: 14px; text-decoration: none; }
.footer-grid a:hover, .footer-button:hover { color: var(--cream); }
.footer-button { padding: 0; border: 0; background: none; cursor: pointer; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: #918b84; font-size: 13px; }
.consent-banner { position: fixed; z-index: 80; right: 24px; bottom: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; width: min(680px, calc(100% - 48px)); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface-raised); box-shadow: var(--shadow); }
.consent-banner[hidden] { display: none; }
.consent-banner strong { display: block; }
.consent-banner p { margin: 4px 0 0; color: var(--cream-muted); font-size: 14px; }
.consent-actions { display: flex; align-items: center; gap: 8px; }

.checkout-body { min-height: 100vh; background: var(--ink); }
.checkout-shell { width: min(calc(100% - 32px), 1120px); margin: 0 auto; padding: 32px 0 64px; }
.checkout-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--coral); color: var(--ink); }
.secure-label { color: var(--cream-muted); font-size: 14px; }
.secure-label span { color: var(--success); }
.checkout-card { display: grid; grid-template-columns: 0.75fr 1.25fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.checkout-summary { padding: 48px; border-right: 1px solid var(--line); }
.checkout-summary h1 { font-size: clamp(36px, 4vw, 56px); }
.checkout-summary > p:not(.eyebrow) { color: var(--cream-muted); }
.order-summary { margin: 40px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.order-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.order-summary dt { color: var(--cream-muted); }
.order-summary dd { margin: 0; font-weight: 700; text-align: right; }
.checkout-note { font-size: 14px; }
.checkout-form-wrap { min-height: 640px; padding: 24px; background: #fff; color: #1c1c1e; }
.checkout-loading { display: grid; min-height: 560px; place-items: center; color: #6a6661; }
.checkout-result { margin: 24px; padding: 24px; border-radius: 12px; background: #f2efe9; }
.checkout-result.is-success { background: #e6f5ec; color: #175d36; }
.checkout-result.is-error { background: #fff0ef; color: #8d2e26; }

@media (max-width: 960px) {
  .site-nav { position: absolute; top: 72px; left: 24px; right: 24px; display: none; flex-direction: column; align-items: stretch; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-large); background: var(--surface-raised); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .section-intro, .split { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .final-cta-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .checkout-card { grid-template-columns: 1fr; }
  .checkout-summary { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .page-hero { padding: 80px 0 72px; }
  .section { padding: 80px 0; }
  .feature-grid, .metric-row, .footer-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .consent-banner { left: 16px; right: 16px; bottom: 16px; width: auto; grid-template-columns: 1fr; }
  .consent-actions { flex-wrap: wrap; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; padding: 20px; }
  .step::before { width: 40px; height: 40px; }
  .checkout-header { align-items: flex-start; gap: 16px; }
  .checkout-summary { padding: 32px 24px; }
  .checkout-form-wrap { min-height: 520px; padding: 0; }
  .secure-label { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
