/* ============================================================
   AdScaleLab — main stylesheet
   Aesthetic: refined editorial · warm off-white · deep indigo
   Typography: Instrument Serif (display) · DM Sans (body)
   ============================================================ */


/* -------- Design tokens -------- */
:root {
  /* Surfaces */
  --bg:            #FAFAF7;
  --bg-sunk:       #F4F2EC;
  --surface:       #FFFFFF;
  --surface-tint:  #FBFBF8;

  /* Ink */
  --ink:           #0A0A0A;
  --ink-2:         #3F3F3F;
  --ink-3:         #6B6B6B;
  --ink-4:         #9A9A9A;

  /* Borders */
  --border:        #E8E6E0;
  --border-strong: #D4D2CC;

  /* Accent — deep indigo (not Stripe purple) */
  --accent:        #3730A3;
  --accent-hover:  #4F46E5;
  --accent-ink:    #1E1B4B;
  --accent-tint:   #EEF2FF;
  --accent-tint-2: #E0E7FF;

  /* Semantic */
  --success:       #15803D;
  --success-tint:  #DCFCE7;
  --warn:          #B91C1C;
  --warn-tint:     #FEE2E2;

  /* Fonts */
  --font-display:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Radii */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-sm: 0 2px 6px rgba(10, 10, 10, 0.05);
  --shadow:    0 8px 20px -4px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 24px 48px -16px rgba(10, 10, 10, 0.14);

  /* Motion */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 0.6, 1);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
}


/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain on whole canvas */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

img, svg { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; transition: color 0.18s var(--ease); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

::selection { background: var(--accent); color: #FFF; }

.skip-link {
  position: absolute;
  top: -40px; left: 8px;
  background: var(--ink); color: #FFF;
  padding: 8px 14px; border-radius: var(--r-sm);
  z-index: 100;
}
.skip-link:focus { top: 8px; }


/* -------- Utilities -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}


/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn-primary {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(55, 48, 163, 0.35);
}
.btn-primary svg { transition: transform 0.2s var(--ease); }
.btn-primary:hover svg { transform: translateX(2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(10, 10, 10, 0.04);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--ink);
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}
.btn-full { width: 100%; }


/* -------- Navigation -------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 247, 0.95);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 600;
}
.brand-mark {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.brand-word {
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 20px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 450;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s var(--ease);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 18px var(--gutter) 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-drawer a { padding: 10px 0; font-size: 15px; }
.nav-drawer hr { margin: 8px 0; }
.nav-drawer .btn { justify-content: center; }


/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 80px 0 110px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* dotted grid backdrop */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10, 10, 10, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-copy {
  animation: fadeRise 0.9s var(--ease) both;
}
.hero-copy .eyebrow { margin-bottom: 28px; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.2vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 26px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.hero-trust-dots {
  display: flex;
}
.hero-trust-dots span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
  border: 2px solid var(--bg);
  margin-left: -6px;
}
.hero-trust-dots span:first-child { margin-left: 0; background: linear-gradient(135deg, #FDE68A, #F59E0B); }
.hero-trust-dots span:nth-child(2) { background: linear-gradient(135deg, #FCA5A5, #EF4444); }
.hero-trust-dots span:nth-child(3) { background: linear-gradient(135deg, #86EFAC, #16A34A); }


/* ---- Hero dashboard preview ---- */
.hero-preview {
  position: relative;
  animation: fadeRise 0.9s var(--ease) 0.15s both;
}
.preview-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.preview-card:hover {
  transform: perspective(1400px) rotateY(-1deg) rotateX(1deg);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.preview-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}
.preview-head-left svg { width: 18px; height: 18px; color: var(--accent); }
.preview-head-right {
  display: flex; gap: 5px;
}
.preview-head-right span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-strong);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.preview-stat {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
}
.preview-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 6px;
}
.preview-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.preview-stat-value .c { color: var(--ink-3); font-size: 14px; vertical-align: top; margin-right: 2px; }

.preview-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 10px;
}
.preview-accounts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
}
.preview-account-id {
  font-family: var(--font-mono);
  color: var(--ink-2);
  font-size: 11px;
}
.preview-account-meta { display: flex; align-items: center; gap: 10px; }
.preview-badge {
  font-size: 9px;
  padding: 2px 6px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.preview-amount {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Floating decorative tag */
.preview-float {
  position: absolute;
  bottom: -20px; left: -30px;
  background: var(--ink);
  color: #FFF;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: floatY 4s var(--ease) infinite;
}
.preview-float .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulseDot 2s infinite;
}


/* -------- Trust strip -------- */
.trust-strip {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trust-metrics {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-metric { display: flex; align-items: baseline; gap: 10px; }
.trust-metric-v {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.trust-metric-l {
  font-size: 13px;
  color: var(--ink-3);
}


/* -------- Generic section -------- */
.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}
.section-sunk { background: var(--bg-sunk); }
.section-ink  { background: var(--ink); color: #EAEAEA; }
.section-ink .section-title { color: #FFF; }
.section-ink .section-lead  { color: #B8B8B8; }

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
}


/* -------- "What we supply" -------- */
.supply-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.supply-figure {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.supply-figure-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.supply-figure-head h4 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
}
.supply-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.supply-spec {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.supply-spec:last-child { border-bottom: none; }
.supply-spec-k { color: var(--ink-3); }
.supply-spec-v { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

.supply-features {
  display: grid;
  gap: 28px;
}
.supply-feature {
  padding-left: 22px;
  border-left: 1px solid var(--border);
  position: relative;
}
.supply-feature::before {
  content: '';
  position: absolute;
  left: -4px; top: 6px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.supply-feature h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.supply-feature p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}


/* -------- "How it works" -------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
  letter-spacing: -0.02em;
}
.step h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}


/* -------- "Why AdScaleLab" -------- */
.whys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.why:hover { border-color: var(--border-strong); }
.why::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent-tint), transparent 70%);
  transform: translate(60px, -60px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.why:hover::after { opacity: 1; }
.why-icon {
  display: inline-flex;
  width: 46px; height: 46px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-icon svg { width: 22px; height: 22px; }
.why h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}
.why p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}


/* -------- Pricing -------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.price-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.price-card-featured {
  background: var(--ink);
  color: #EAEAEA;
  border-color: var(--ink);
}
.price-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 20px;
  margin-bottom: 20px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.price-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.price-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.price-value {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-value .currency {
  font-size: 24px;
  color: var(--ink-3);
  margin-right: 2px;
  vertical-align: top;
}
.price-unit {
  font-size: 14px;
  color: var(--ink-3);
}
.price-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.price-feat {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}
.price-feat li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.price-feat li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Featured card overrides - placed AFTER generic rules to win specificity tie */
.price-card-featured h3,
.price-card-featured .price-value { color: #FFF; }
.price-card-featured .price-sub { color: #A0A0A0; }
.price-card-featured .price-meta { color: #A0A0A0; border-bottom-color: rgba(255,255,255,0.1); }
.price-card-featured .price-feat li { color: #CFCFCF; }
.price-card-featured .price-feat li::before { background: #4ADE80; }
.price-card-featured .price-kicker { background: rgba(79, 70, 229, 0.25); color: #C7D2FE; }


/* -------- FAQ -------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}
.faq-item.is-open .faq-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a-inner {
  padding: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 680px;
}


/* -------- Final CTA -------- */
.cta-final {
  padding: 130px 0;
  background: var(--ink);
  color: #FFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 2;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(79, 70, 229, 0.25), transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(79, 70, 229, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-final-inner {
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: #FFF;
  margin-bottom: 20px;
}
.cta-final h2 em { font-style: italic; color: #A5B4FC; }
.cta-final p {
  font-size: 18px;
  color: #B8B8B8;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cta-final .btn-primary {
  background: #FFF;
  color: var(--ink);
  border-color: #FFF;
}
.cta-final .btn-primary:hover {
  background: var(--accent);
  color: #FFF;
  border-color: var(--accent);
  box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.6);
}
.cta-final-meta {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #707070;
  letter-spacing: 0.04em;
}


/* -------- Footer -------- */
.site-footer {
  background: var(--bg-sunk);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 60px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-tagline {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}
.footer-address {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  padding: 5px 0;
}
.footer-col a:hover { color: var(--accent); }
.tg-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #26A5E4;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-bottom-inner p { margin: 0; }
.footer-small { max-width: 640px; text-align: right; }


/* -------- Legal / document pages -------- */
.page-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.page-hero-inner {
  max-width: 820px;
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 640px;
}
.page-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.doc-section {
  padding: 72px 0 120px;
  position: relative;
  z-index: 2;
}
.doc {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.doc h2 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 16px;
  font-weight: 400;
}
.doc h2:first-child { margin-top: 0; }
.doc h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-right: 12px;
  vertical-align: middle;
  font-style: normal;
}
.doc h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 10px;
  letter-spacing: -0.005em;
}
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.doc li { margin-bottom: 8px; }
.doc ul li::marker { color: var(--accent); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); border-bottom: 1px solid currentColor; }
.doc a:hover { color: var(--accent-hover); }
.doc hr {
  margin: 56px 0;
  border-top: 1px solid var(--border);
}
.doc-callout {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 24px 0;
  font-size: 15px;
  color: var(--accent-ink);
}
.doc-callout strong { color: var(--accent-ink); }
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}
.doc-table th, .doc-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.doc-table th {
  font-weight: 500;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border-strong);
}
.doc-table td { color: var(--ink-2); }
.doc-table td strong { color: var(--ink); }

/* TOC sidebar for long docs */
.doc-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 72px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 100px;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.doc-toc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.doc-toc ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-toc a {
  font-size: 13px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
  line-height: 1.4;
  display: block;
}
.doc-toc a:hover { color: var(--accent); }


/* -------- Contact page -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
  font-weight: 400;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-notice {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.form-notice-ok  { background: var(--success-tint); color: #14532D; border: 1px solid #BBF7D0; }
.form-notice-err { background: var(--warn-tint);    color: #7F1D1D; border: 1px solid #FECACA; }

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-block h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.contact-block p, .contact-block a {
  display: block;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
  padding: 4px 0;
}
.contact-block p.small { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.contact-block a:hover { color: var(--accent); }
.contact-block .tg-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #26A5E4;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: static; border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
}


@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-preview { max-width: 520px; }
  .supply-grid { grid-template-columns: 1fr; gap: 44px; }
  .supply-figure { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .whys { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer:not([hidden]) { display: flex; }
  .nav-inner { gap: 16px; }
  .hero-headline { font-size: 44px; }
  .hero-sub { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-small { text-align: left; }
  .trust-metrics { gap: 24px; }
  .preview-card { transform: none; padding: 18px; }
  .preview-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .preview-stat { padding: 10px; }
  .preview-stat-value { font-size: 18px; }
  .preview-float { left: 12px; bottom: -16px; }
  .price-card { padding: 28px 24px; }
  .price-value { font-size: 44px; }
  .cta-final { padding: 90px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
