/* =========================================================================
   COINMOOVE — Crisp
   Pure-white, gradient-accented, soft-card system. Geist throughout.
   Old token names (--paper, --ember, --hairline…) kept as ALIASES so inline
   page styles continue to render without per-page edits.
   ========================================================================= */

/* ---- Tokens ---- */
:root {
  /* Surfaces */
  --bg:           #FFFFFF;
  --surface:      #F8F8F9;
  --surface-2:    #F2F3F5;
  --ink:          #0A0A0F;
  --ink-soft:     #1F222A;
  --mute:         #5B6068;
  --mute-2:       #8A8E96;
  --line:         #EAECEF;
  --line-strong:  #D6D8DD;

  /* Brand */
  --brand:        #5B5BD6;
  --brand-2:      #7C7CE8;
  --brand-deep:   #4040B0;
  --brand-soft:   #EEEEFB;
  --warm:         #F97066;
  --warm-2:       #FB8A82;
  --warm-deep:    #CC453C;
  --warm-soft:    #FFE7E4;

  /* States */
  --pos:          #10B981;
  --pos-deep:     #047857;
  --pos-soft:     #ECFDF5;
  --neg:          #DC2626;
  --neg-soft:     #FEF2F2;

  /* === ALIASES for old token names (do not delete) === */
  --paper:        var(--bg);
  --paper-2:      var(--surface);
  --paper-dim:    var(--mute);
  --paper-mute:   var(--mute-2);
  --ink-deep:     var(--surface);
  --ember:        var(--brand);
  --ember-bright: var(--brand-2);
  --ember-deep:   var(--brand-deep);
  --rust:         var(--warm-deep);
  --moss:         var(--pos);
  --warn:         var(--neg);
  --signal:       var(--brand);
  --hairline:        var(--line);
  --hairline-strong: var(--line-strong);
  --glow:         rgba(91,91,214,.18);

  /* Typography */
  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body:    'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --s-1:  4px;  --s-2:  8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10:128px; --s-11:192px;

  /* Container */
  --max-width: 1320px;
  --gutter: clamp(24px, 4vw, 56px);

  /* Radii */
  --r-1: 8px;
  --r-2: 14px;
  --r-3: 20px;
  --r-4: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(15,15,25,.04);
  --shadow-2: 0 4px 10px -4px rgba(15,15,25,.06), 0 1px 2px rgba(15,15,25,.04);
  --shadow-3: 0 16px 32px -16px rgba(15,15,25,.12), 0 6px 14px -6px rgba(15,15,25,.06);
  --shadow-4: 0 30px 60px -24px rgba(15,15,25,.18), 0 10px 24px -10px rgba(15,15,25,.08);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.display-xxl { font-size: clamp(54px, 11vw, 184px); line-height: 0.92; letter-spacing: -0.04em; font-weight: 600; }
.display-xl  { font-size: clamp(44px, 8vw, 124px);  line-height: 0.94; letter-spacing: -0.035em; font-weight: 600; }
.display-l   { font-size: clamp(36px, 5.5vw, 84px); line-height: 0.98; letter-spacing: -0.03em;  font-weight: 600; }
.display-m   { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; }

/* The .italic class is reused for emphasis in headlines — apply a brand gradient instead of true italic. */
.italic, .italic-warm {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 0%, var(--warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.italic-paper { font-style: normal; color: var(--ink); }

/* Bare <em> inside section titles, h1, h2, h3 — same gradient treatment, but slightly more saturated. */
.hero-headline em,
.section-title em,
.feature h3 em,
.feature h3 .accent,
.h2 em,
.cta-strip h2 em,
.doc-head h1 em,
.stat-value em,
.manifesto em,
.h1 .em,
.hero-headline .em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 0%, var(--warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.eyebrow-ember,
.eyebrow-ink,
.eyebrow-warm { color: var(--brand); }

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--mute);
  max-width: 56ch;
  letter-spacing: -0.005em;
}

.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Layout primitives ---- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.divider { border: none; height: 1px; background: var(--line); margin: 0; }
.divider-strong { background: var(--line-strong); }

section { position: relative; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  /* horizontal padding is inherited from .wrap (var(--gutter)); only set vertical here */
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand:hover .brand-text { color: var(--brand); }

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: inline-block;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}

.brand-text {
  font-feature-settings: "ss01", "cv11";
  transition: color .25s ease;
}

.nav-links {
  display: flex;
  gap: var(--s-6);
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--mute);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -17px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--warm));
  border-radius: 2px;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(91,91,214,.5); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-2); }

/* legacy --ember button alias */
.btn-ember,
.btn-warm {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-ember:hover,
.btn-warm:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

.btn-lg { padding: 14px 24px; font-size: 15px; }

.btn-arrow {
  display: inline-block;
  width: 14px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M1 5h12M9 1l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='square'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M1 5h12M9 1l4 4-4 4' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='square'/></svg>") center/contain no-repeat;
  transition: transform .2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---- Ticker ---- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 90s linear infinite;
  width: max-content;
  padding: 10px 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--mute);
  white-space: nowrap;
}
.ticker-item .sym { color: var(--ink); font-weight: 500; }
.ticker-item .up { color: var(--pos-deep); }
.ticker-item .down { color: var(--neg); }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Hero ---- */
.hero {
  padding: clamp(72px, 9vw, 132px) 0 var(--s-9);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(91,91,214,.16), transparent 60%),
    radial-gradient(50% 40% at 18% 88%, rgba(249,112,102,.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: var(--s-6) 0 var(--s-5);
  color: var(--ink);
  max-width: 16ch;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-5);
  align-items: end;
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.hero-meta-block { grid-column: span 4; }
@media (max-width: 900px) { .hero-meta-block { grid-column: span 12; } }

.hero-meta .label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
  color: var(--mute);
  margin-bottom: 10px;
}
.hero-meta .value {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}
.hero-meta .value .small {
  font-size: 0.5em;
  color: var(--mute);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: var(--s-6);
}

.hero-side-note {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--mute);
  margin-left: 8px;
}

/* Old dark-theme orbit decoration is hidden in Crisp */
.hero-orbit,
.hero-mark { display: none !important; }

/* ---- Sections ---- */
.section {
  padding: clamp(80px, 9vw, 140px) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 8px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s-4);
  width: fit-content;
}
.section-kicker .bar {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 4px rgba(91,91,214,.16);
}

/* ---- Steps (How it works) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.step:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow-3);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-weight: 500;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin-top: auto;
  color: var(--ink);
}

.step-body { color: var(--mute); font-size: 14.5px; line-height: 1.55; }

/* ---- Asset grid ---- */
.assets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-3);
}
@media (max-width: 900px) { .assets { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .assets { grid-template-columns: repeat(2, 1fr); } }

.asset {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 156px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.asset:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 16px 28px -16px rgba(91,91,214,.18);
}

.asset-row { display: flex; justify-content: space-between; align-items: flex-start; }

.asset-sym {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}

.asset-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}

.asset-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: auto;
  font-weight: 500;
}

.asset-change {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0;
}
.asset-change.up { color: var(--pos-deep); background: var(--pos-soft); }
.asset-change.down { color: var(--neg); background: var(--neg-soft); }

.asset-bar {
  height: 4px;
  width: 100%;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  position: relative;
}
.asset-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 62%;
  background: linear-gradient(90deg, var(--brand), var(--warm));
  border-radius: var(--r-pill);
}

/* ---- Feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-7) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 280px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.feature:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-3);
}
.feature.span-6 { grid-column: span 6; }
.feature.span-4 { grid-column: span 4; }
.feature.span-3 { grid-column: span 3; }
.feature.span-8 { grid-column: span 8; }
.feature.span-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .feature.span-6, .feature.span-4, .feature.span-3, .feature.span-8 { grid-column: span 12; }
}

.feature h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--ink);
}

.feature p { color: var(--mute); font-size: 14.5px; max-width: 50ch; line-height: 1.55; }

.feature-mark {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}

/* ---- Stats banner ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-4);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,91,214,.35), transparent 60%);
  top: -260px; right: -120px;
  pointer-events: none;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: var(--s-6); gap: var(--s-5); }
}

.stat {
  padding: var(--s-4) var(--s-5);
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: none; }
@media (max-width: 760px) {
  .stat { border-right: none; padding: var(--s-3); }
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #fff;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: var(--s-3);
}

/* ---- Pricing ---- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-height: 460px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }

.plan.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.plan.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-3);
  background: radial-gradient(60% 50% at 80% 20%, rgba(91,91,214,.28), transparent 60%);
  pointer-events: none;
}
.plan.featured > * { position: relative; z-index: 1; }
.plan.featured .plan-name,
.plan.featured .plan-price { color: #fff; }
.plan.featured .plan-list li { color: rgba(255,255,255,.78); }
.plan.featured .eyebrow { color: var(--warm-2); }
.plan.featured .plan-list li::before { background: var(--warm); }
.plan.featured .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.plan.featured .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.plan.featured p { color: rgba(255,255,255,.72); }

.plan-name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--ink);
}
.plan-price {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}
.plan-price small {
  font-size: 16px;
  color: var(--mute);
  font-family: var(--font-mono);
  letter-spacing: 0;
  font-weight: 400;
}
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--mute);
  line-height: 1.5;
}
.plan-list li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  margin-top: 9px;
  flex: none;
}

/* ---- FAQ ---- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: #fff;
  overflow: hidden;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) var(--s-6);
  transition: background .2s;
}
.faq details:last-child { border-bottom: none; }
.faq details[open] { background: var(--surface); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--brand);
  transition: transform .3s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: var(--s-3);
  color: var(--mute);
  font-size: 15px;
  max-width: 70ch;
  line-height: 1.65;
}

/* ---- CTA Strip ---- */
.cta-strip {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 80% 0%, rgba(91,91,214,.35), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(249,112,102,.22), transparent 60%);
  pointer-events: none;
}
.cta-strip .wrap { padding-top: var(--s-9); padding-bottom: var(--s-9); position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.038em;
  font-weight: 600;
  color: #fff;
}
.cta-strip .lead { color: rgba(255,255,255,.72); }
.cta-strip .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-strip .btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 18px 36px -12px rgba(91,91,214,.65); }
.cta-strip .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-strip .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-strip .eyebrow { color: var(--warm-2); }

/* ---- Footer ---- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: var(--s-9) 0 var(--s-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-6);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}
.footer-mark-icon {
  width: 36px;
  height: 36px;
  flex: none;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.footer-mark:hover .footer-mark-icon { transform: rotate(-6deg) scale(1.05); }
.footer-mark-text em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer p { color: var(--mute); font-size: 14px; max-width: 38ch; margin-top: var(--s-4); }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 var(--s-4) 0;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); font-size: 14.5px; opacity: 0.75; font-weight: 400; }
.footer-col a:hover { opacity: 1; color: var(--brand); }

.footer-bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---- Document pages (privacy, terms, cookies, aml, disclosures) ---- */
.doc { padding: clamp(56px, 7vw, 112px) 0 var(--s-9); }

.doc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: end;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-8);
}
@media (max-width: 800px) { .doc-head { grid-template-columns: 1fr; } }

.doc-head h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.5vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.038em;
  font-weight: 600;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.doc-meta div { padding: 3px 0; }

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } }

.doc-toc {
  position: sticky;
  top: 84px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-5);
}
.doc-toc h6 {
  margin: 0 0 var(--s-4);
  color: var(--mute);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: c; }
.doc-toc li { counter-increment: c; }
.doc-toc a { color: var(--mute); display: flex; gap: 10px; padding: 2px 0; }
.doc-toc a::before { content: counter(c, decimal-leading-zero); color: var(--brand); font-weight: 500; }
.doc-toc a:hover { color: var(--ink); }

.doc-body { max-width: 70ch; }
.doc-body section { padding: var(--s-7) 0; border-top: 1px solid var(--line); }
.doc-body section:first-of-type { border-top: none; padding-top: 0; }
.doc-body h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 var(--s-5);
}
.doc-body h2 .num {
  font-family: var(--font-mono);
  font-size: 0.3em;
  letter-spacing: 0.22em;
  vertical-align: top;
  color: var(--brand);
  margin-right: 16px;
  font-weight: 500;
}
.doc-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin: var(--s-6) 0 var(--s-3);
  color: var(--ink);
}
.doc-body p, .doc-body li {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}
.doc-body p { margin: 0 0 var(--s-4); }
.doc-body ul, .doc-body ol { margin: 0 0 var(--s-4); padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { color: var(--brand); border-bottom: 1px solid rgba(91,91,214,.32); }
.doc-body a:hover { color: var(--brand-deep); border-bottom-color: var(--brand); }
.doc-body blockquote {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
  border-radius: 0 var(--r-2) var(--r-2) 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}

/* ---- Contact form ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91,91,214,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }

/* ---- About / Manifesto ---- */
.manifesto {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
  max-width: 22ch;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---- Timeline ---- */
.timeline {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.tl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--line);
}
.tl-row:first-child { border-top: none; }
.tl-year {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.tl-content h4 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.tl-content p { color: var(--mute); font-size: 15px; max-width: 56ch; line-height: 1.55; }

/* ---- Code block styles (developers) ---- */
.code {
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: var(--s-5);
  border-radius: var(--r-2);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: rgba(255,255,255,.78);
  box-shadow: var(--shadow-3);
}
.code .k { color: #C4B5FD; }   /* keyword — pastel indigo */
.code .s { color: #6EE7B7; }   /* string — mint */
.code .n { color: #fff; }       /* numeric / important */
.code .c { color: rgba(255,255,255,.45); font-style: italic; }
.code .p { color: rgba(255,255,255,.65); }

/* ---- SDK row (developers) ---- */
.sdk-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--s-3);
}
@media (max-width: 880px) { .sdk-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px) { .sdk-row { grid-template-columns: repeat(2, 1fr); } }
.sdk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 116px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.sdk:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 14px 26px -14px rgba(91,91,214,.22);
}
.sdk-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--ink);
}
.sdk-cmd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  margin-top: auto;
  letter-spacing: 0;
}

/* ---- Tables (pricing, cookies, etc.) ---- */
.table,
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
  background: #fff;
}
table thead {
  background: var(--surface);
}
table th {
  text-align: left;
  padding: 14px 18px;
  letter-spacing: 0.16em;
  color: var(--mute);
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
table tr:last-child td { border-bottom: none; }

/* Wrap tables in pricing/cookies in a rounded surface */
.section table,
.doc-body table {
  border-radius: var(--r-2);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}

/* Fee table — pricing.php */
.fee-table .t-item   { color: var(--ink); font-family: var(--font-body); font-size: 14.5px; font-weight: 500; }
.fee-table .t-charge { color: var(--brand); font-weight: 500; }
.fee-table .t-note   { color: var(--mute); font-family: var(--font-body); font-size: 14px; }

/* Cookie table — cookies.php */
.cookie-table .t-name    { color: var(--brand); font-weight: 500; }
.cookie-table .t-purpose { color: var(--ink-soft); font-family: var(--font-body); font-size: 14px; }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

.stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { transition-delay: 70ms; }
.stagger.in > *:nth-child(3) { transition-delay: 140ms; }
.stagger.in > *:nth-child(4) { transition-delay: 210ms; }
.stagger.in > *:nth-child(5) { transition-delay: 280ms; }
.stagger.in > *:nth-child(6) { transition-delay: 350ms; }

/* ---- Utilities ---- */
.center { text-align: center; }
.flex { display: flex; }
.aic { align-items: center; }
.jcb { justify-content: space-between; }
.gap-4 { gap: var(--s-4); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.hide-mobile { display: initial; }
@media (max-width: 760px) { .hide-mobile { display: none; } }

/* ---- Mobile-specific refinements ---- */

/* Horizontal-scroll wrapper for wide tables */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-2); border: 1px solid var(--line); }
.scroll-x table { min-width: 640px; border: none; box-shadow: none; border-radius: 0; }
.scroll-x table thead { background: var(--surface); }

/* Contact: offices */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-4); }
@media (max-width: 640px) { .offices { grid-template-columns: 1fr; gap: var(--s-4); } }

/* Contact: direct channels */
.channels { display: flex; flex-direction: column; }
.channels-row { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.channels-row .ch-label { color: var(--brand); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; padding-top: 4px; }
.channels-row .ch-email { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.018em; color: var(--ink); word-break: break-word; line-height: 1.1; }
.channels-row .ch-email:hover { color: var(--brand); }
.channels-row .ch-desc { color: var(--mute); font-size: 14px; margin-top: 4px; }
@media (max-width: 480px) {
  .channels-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .channels-row .ch-email { font-size: 17px; }
}

/* Timeline stacks on small screens */
@media (max-width: 640px) {
  .tl-row { grid-template-columns: 1fr; gap: 6px; padding: var(--s-4) var(--s-5); }
  .tl-year { font-size: 11.5px; letter-spacing: 0.16em; }
  .tl-content h4 { font-size: 20px; }
}

/* Doc TOC: drop sticky after layout stacks, tighten on phones */
@media (max-width: 900px) {
  .doc-toc { position: static; }
}
@media (max-width: 540px) {
  .doc-toc { padding: var(--s-4); }
  .doc-toc ol { columns: 2; column-gap: var(--s-4); }
  .doc-toc li { break-inside: avoid; }
}

/* Tighten section/hero spacing on phones */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding-bottom: 56px; }
  .cta-strip .wrap { padding-top: 72px; padding-bottom: 72px; }
  .footer { padding: 64px 0 var(--s-5); }
}

/* Hero meta — tighten labels and values on phones */
@media (max-width: 540px) {
  .hero-meta { gap: var(--s-4); padding-top: var(--s-5); }
  .hero-meta .value { font-size: 26px; }
  .hero-meta .label { font-size: 10px; margin-bottom: 8px; }
}

/* Eyebrow chips wrap cleanly on small screens */
@media (max-width: 540px) {
  .hero .flex.gap-4 { flex-wrap: wrap; gap: 8px; }
  .hero .flex.gap-4 .eyebrow { line-height: 1.4; }
}

/* CTA buttons stay tappable: ensure 44px+ height with comfortable spacing */
.btn { min-height: 40px; }
.btn-lg { min-height: 48px; }

/* Long URLs/emails inside doc body wrap */
.doc-body a, .doc-body p { overflow-wrap: anywhere; }

/* Code blocks fit on screen */
.code { max-width: 100%; }
@media (max-width: 540px) { .code { font-size: 12px; padding: var(--s-4); } }

/* Pricing plan featured badge stays visible on mobile */
@media (max-width: 880px) {
  .plan { min-height: auto; }
}

/* Hero side-note doesn't get lost beside small CTAs on phones */
@media (max-width: 540px) {
  .hero-side-note { margin-left: 0; width: 100%; padding-top: 4px; }
}

/* Asset cards: comfortable on 2-col mobile */
@media (max-width: 520px) {
  .asset { min-height: 130px; padding: 14px; }
  .asset-sym { font-size: 20px; }
}

/* Section title doesn't overflow tiny screens */
@media (max-width: 380px) {
  .section-title, .hero-headline, .display-xl, .display-xxl { letter-spacing: -0.025em; }
}

/* Pricing tier names + prices stay legible at narrow widths */
@media (max-width: 380px) {
  .plan-price { font-size: 52px; }
}

/* Footer columns stack neatly */
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-bottom { font-size: 10px; }
}

/* Ensure clickable nav items have enough breathing room */
@media (max-width: 880px) {
  .nav.open .nav-links { padding: var(--s-5) var(--gutter); }
  .nav.open .nav-links a { padding: 10px 0; font-size: 15px; }
}

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Mobile nav: brand left, [Get started] + MENU right, balanced. */
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
  }
  .nav-cta { gap: 10px; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: var(--s-5) var(--gutter) var(--s-6);
    gap: 14px;
  }
  .nav.open .nav-links a {
    padding: 10px 0;
    font-size: 16px;
    color: var(--ink) !important;        /* defeat any cascading active/hover overrides */
    background: transparent !important;
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a:last-child { border-bottom: none; }
  .nav.open .nav-links a:hover { color: var(--brand) !important; }
  /* In the vertical dropdown, the desktop-only underline pseudo would land on the next item — disable it. */
  .nav.open .nav-links a.active { color: var(--brand) !important; }
  .nav.open .nav-links a.active::after { display: none; }
}

/* Tighten brand + CTA on very narrow screens so brand + Get started + MENU fit */
@media (max-width: 420px) {
  .brand { font-size: 17px; }
  .brand-mark { width: 22px; height: 22px; }
  .nav .btn { padding: 8px 14px; font-size: 13px; min-height: 36px; }
  .nav-toggle { padding: 7px 11px; font-size: 10.5px; letter-spacing: 0.14em; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-arrow { display: none; }
}
