/* ============================================================
   Anyflo — Landing
   Brand: Outfit (display/body), JetBrains Mono (Datatype substitute for labels)
   Palette: #000 / #EAE9E5 / #C8B8DD / #E2B68E / #87BAC7 / #ADCEA6
   ============================================================ */

:root {
  /* base */
  --ink: #000000;
  --cream: #EAE9E5;
  --cream-soft: #F0EFEB;
  --cream-deep: #DEDCD6;

  /* extended */
  --lilac: #C8B8DD;
  --peach: #E2B68E;
  --teal:  #87BAC7;
  --sage:  #ADCEA6;

  /* semantic */
  --bg: var(--cream);
  --fg: var(--ink);
  --muted: #5a5a5a;
  --muted-2: #8a8a86;
  --line: rgba(0,0,0,0.10);
  --line-strong: rgba(0,0,0,0.18);

  /* type */
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body:    "Outfit", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* scale — anchored to Anyflo's H1/H2/H3 ratios */
  --t-xs:   12px;
  --t-sm:   14px;
  --t-base: 16px;
  --t-lg:   20px;
  --t-xl:   28px;
  --t-2xl:  44px;
  --t-3xl:  64px;
  --t-hero: clamp(48px, 8.5vw, 124px);

  /* spacing */
  --s1: 8px;   --s2: 12px;  --s3: 16px;  --s4: 24px;
  --s5: 32px;  --s6: 48px;  --s7: 64px;  --s8: 96px;
  --s9: 128px; --s10: 160px;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* hide body until gate decides */
body.locked { overflow: hidden; }
body.locked .site { visibility: hidden; }

/* ---------- type ---------- */
.h-display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: clamp(36px, 5.2vw, 72px); }
h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-xl); line-height: 1.1; letter-spacing: -0.022em; margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--s9) 0; position: relative; }
section + section { padding-top: 0; }
.divider { height: 1px; background: var(--line); margin: 0 var(--gutter); }

/* ============================================================
   GATE
   ============================================================ */
.gate {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  overflow: hidden;
  opacity: 1;
  transition: opacity 600ms var(--ease), visibility 0s linear 600ms;
}
.gate--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gate__inner {
  width: 100%;
  max-width: 560px;
  text-align: left;
  position: relative;
  z-index: 2;
}
.gate__mark {
  width: 56px; height: 56px;
  margin-bottom: var(--s6);
  opacity: 0.95;
}
.gate__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s3);
  color: var(--cream);
}
.gate__sub {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 233, 229, 0.55);
  margin-bottom: var(--s7);
  word-spacing: 0.04em;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .gate__sub { letter-spacing: 0.06em; font-size: 11px; }
}
.gate__form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(234,233,229,0.18);
  border-radius: 999px;
  padding: 6px;
  background: rgba(234,233,229,0.04);
  backdrop-filter: blur(6px);
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.gate__form:focus-within {
  border-color: rgba(234,233,229,0.48);
  background: rgba(234,233,229,0.08);
}
.gate__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 14px 18px;
  color: var(--cream);
  font-size: 16px;
  letter-spacing: -0.005em;
}
.gate__input::placeholder { color: rgba(234,233,229,0.35); }
.gate__btn {
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  height: 44px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gate__btn:hover { transform: translateX(2px); }
.gate__hint {
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: rgba(234,233,229,0.42);
}
.gate__error {
  margin-top: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach);
  min-height: 18px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.gate__error.is-visible { opacity: 1; }
.gate__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}
.gate__inner { z-index: 2; }
.gate__footer {
  position: absolute;
  bottom: var(--gutter);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234,233,229,0.4);
}
@media (max-width: 600px) {
  .gate__footer { font-size: 10px; gap: 12px; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--cream) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo img { height: 28px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.nav__link {
  font-size: var(--t-sm);
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.nav__cta:hover { transform: translateX(2px); }
.nav__cta .arr { transition: transform 200ms var(--ease); }
.nav__cta:hover .arr { transform: translateX(2px); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: clamp(80px, 12vh, 160px);
  padding-bottom: var(--s8);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero__eyebrow { margin-bottom: var(--s4); }
.hero__title {
  font-size: var(--t-hero);
  max-width: 14ch;
}
.hero__title .row {
  display: block;
  overflow: hidden;
}
.hero__title .row span {
  display: inline-block;
  transform: translateY(108%);
  opacity: 0;
  animation: reveal 1100ms var(--ease) forwards;
}
.hero__title .row:nth-child(1) span { animation-delay: 80ms; }
.hero__title .row:nth-child(2) span { animation-delay: 220ms; }
.hero__title .row:nth-child(3) span { animation-delay: 360ms; }

@keyframes reveal {
  to { transform: translateY(0); opacity: 1; }
}

.hero__sub {
  margin-top: var(--s5);
  max-width: 56ch;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  line-height: 1.45;
  opacity: 0;
  animation: fadeIn 900ms var(--ease) 700ms forwards;
}
.hero__cta-row {
  margin-top: var(--s6);
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 900ms var(--ease) 900ms forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { transform: translateX(2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.4); }
.btn .arr { transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(2px); }

.hero__meta {
  position: absolute;
  bottom: var(--s6);
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  opacity: 0;
  animation: fadeIn 900ms var(--ease) 1100ms forwards;
}
@media (max-width: 860px) {
  .hero { min-height: auto; padding-bottom: var(--s7); }
  .hero__meta {
    position: static;
    margin: var(--s6) auto 0;
    padding: 0 var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 10px;
    animation: fadeIn 900ms var(--ease) 1100ms forwards;
  }
  .hero__meta span { display: block; }
  .hero__title { max-width: none; }
}

/* ============================================================
   TRUST / NETWORK STRIP
   ============================================================ */
.strip {
  padding: var(--s6) 0 var(--s8);
  border-top: 1px solid var(--line);
}
.strip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.strip__head p {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__cell {
  padding: var(--s5) var(--s3);
  text-align: center;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.strip__cell:last-child { border-right: 0; }
.strip__cell .name {
  font-weight: 500;
  font-size: var(--t-base);
  letter-spacing: -0.015em;
}
.strip__cell .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media (max-width: 860px) {
  .strip__grid { grid-template-columns: repeat(3, 1fr); }
  .strip__cell:nth-child(3n) { border-right: 0; }
  .strip__cell:nth-child(n+4) { border-top: 1px solid var(--line); }
}

/* ============================================================
   PILLARS — Send/Receive/Pay
   ============================================================ */
.pillars {
  padding: var(--s9) 0;
}
.pillars__head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s7);
  margin-bottom: var(--s7);
}
@media (max-width: 860px) { .pillars__head { grid-template-columns: 1fr; gap: var(--s4); } }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .pillars__grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg);
  padding: var(--s6) var(--s5);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
  transition: background 300ms var(--ease);
  overflow: hidden;
}
.pillar:hover { background: var(--cream-soft); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.pillar__name {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.pillar__body {
  margin-top: var(--s3);
  font-size: var(--t-base);
  color: var(--muted);
  max-width: 32ch;
}
.pillar__blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.42;
  pointer-events: none;
  top: -100px; right: -100px;
  transition: opacity 600ms var(--ease), transform 800ms var(--ease);
}
.pillar:hover .pillar__blob { opacity: 0.65; transform: translate(-20px, 20px); }
.pillar--send .pillar__blob   { background: var(--lilac); }
.pillar--receive .pillar__blob{ background: var(--teal); }
.pillar--pay .pillar__blob    { background: var(--sage); }

/* ============================================================
   STAT BANNER — Dark contrast moment
   ============================================================ */
.banner {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  margin: 0 var(--gutter);
  padding: var(--s8) var(--s7);
  position: relative;
  overflow: hidden;
}
.banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.banner__eyebrow {
  color: rgba(234,233,229,0.55);
}
.banner h2 { color: var(--cream); margin-top: var(--s3); max-width: 22ch; }
.banner__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s7);
  border-top: 1px solid rgba(234,233,229,0.18);
  padding-top: var(--s5);
}
.banner__stats .stat {
  display: flex; flex-direction: column; gap: 8px;
}
.banner__stats .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.banner__stats .lbl {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234,233,229,0.55);
  max-width: 28ch;
}
@media (max-width: 720px) {
  .banner { padding: var(--s7) var(--s5); }
  .banner__stats { grid-template-columns: 1fr; gap: var(--s4); }
}
.banner__canvas { position: absolute; inset: 0; opacity: 0.55; pointer-events: none; z-index: 1; }

/* ============================================================
   CAPABILITY GRID
   ============================================================ */
.caps {
  padding: var(--s9) 0;
}
.caps__head { margin-bottom: var(--s6); }
.caps__head h2 { max-width: 18ch; }
.caps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .caps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .caps__grid { grid-template-columns: 1fr; } }
.cap {
  background: var(--bg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 220px;
  transition: background 250ms var(--ease);
}
.cap:hover { background: var(--cream-soft); }
.cap__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
  color: var(--ink);
}
.cap__icon svg { width: 20px; height: 20px; }
.cap__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cap__body {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.flow {
  padding: var(--s9) 0;
  background: var(--cream-soft);
}
.flow__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.flow__head { margin-bottom: var(--s7); display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s7); }
@media (max-width: 860px) { .flow__head { grid-template-columns: 1fr; } }
.flow__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  position: relative;
}
@media (max-width: 860px) { .flow__steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg);
  border-radius: var(--radius);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 280px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.step__num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: var(--s2);
}
.step__body { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.step__swoosh {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px; height: 220px;
  opacity: 0.85;
  pointer-events: none;
}

/* ============================================================
   AUDIENCE / BUILT FOR
   ============================================================ */
.audience {
  padding: var(--s9) 0;
}
.audience__head { margin-bottom: var(--s6); display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s7); }
@media (max-width: 860px) { .audience__head { grid-template-columns: 1fr; } }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}
@media (max-width: 760px) { .audience__grid { grid-template-columns: 1fr; } }
.aud {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s4);
  align-items: start;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.aud:hover { border-color: var(--line-strong); background: var(--cream-soft); }
.aud__badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--ink);
}
.aud--a { background-image: linear-gradient(135deg, transparent, transparent); }
.aud--a .aud__badge { background: var(--lilac); }
.aud--b .aud__badge { background: var(--peach); }
.aud--c .aud__badge { background: var(--teal); }
.aud--d .aud__badge { background: var(--sage); }
.aud__badge svg { width: 26px; height: 26px; }
.aud h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-xl);
  letter-spacing: -0.02em;
}
.aud p { color: var(--muted); font-size: var(--t-sm); margin: 6px 0 0; line-height: 1.55; }

/* ============================================================
   DEV / INTEGRATION
   ============================================================ */
.dev {
  padding: var(--s9) 0;
  background: var(--ink);
  color: var(--cream);
}
.dev__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s7);
  align-items: center;
}
@media (max-width: 960px) { .dev__inner { grid-template-columns: 1fr; } }
.dev h2 { color: var(--cream); max-width: 14ch; }
.dev p { color: rgba(234,233,229,0.65); max-width: 48ch; margin-top: var(--s4); }
.dev .eyebrow { color: rgba(234,233,229,0.55); }
.dev__btn-row { margin-top: var(--s5); display: flex; gap: var(--s3); flex-wrap: wrap; }
.dev__btn-row .btn--primary { background: var(--cream); color: var(--ink); }
.dev__btn-row .btn--ghost { color: var(--cream); border-color: rgba(234,233,229,0.25); }
.dev__btn-row .btn--ghost:hover { background: rgba(234,233,229,0.06); border-color: rgba(234,233,229,0.55); }

.code {
  background: #0a0a0a;
  border: 1px solid rgba(234,233,229,0.10);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.code__bar {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(234,233,229,0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234,233,229,0.5);
}
.code__bar .dots { display: flex; gap: 6px; }
.code__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(234,233,229,0.18); }
.code__body { padding: 18px 22px; color: rgba(234,233,229,0.92); white-space: pre; overflow-x: auto; }
@media (max-width: 720px) {
  .code { font-size: 11px; }
  .code__body { padding: 14px 16px; }
}
.code .k  { color: var(--lilac); }
.code .s  { color: var(--sage); }
.code .c  { color: rgba(234,233,229,0.4); }
.code .n  { color: var(--peach); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--s9) 0; }
.faq__head { margin-bottom: var(--s6); display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s7); }
@media (max-width: 860px) { .faq__head { grid-template-columns: 1fr; } }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: var(--s4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq__q .plus { width: 24px; height: 24px; flex: none; transition: transform 240ms var(--ease); }
.faq__item.is-open .faq__q .plus { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease);
  color: var(--muted);
  font-size: var(--t-base);
  line-height: 1.55;
}
.faq__a-inner { padding: 0 0 var(--s5); max-width: 70ch; }
.faq__item.is-open .faq__a { max-height: 320px; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta {
  padding: var(--s10) 0 var(--s9);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
.cta h2 {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.cta p { margin: var(--s4) auto 0; color: var(--muted); max-width: 50ch; font-size: clamp(18px, 1.4vw, 20px); }
.cta__btn-row { display: inline-flex; justify-content: center; gap: var(--s3); margin-top: var(--s6); flex-wrap: wrap; }
.cta__canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.7; pointer-events: none; }

.footer {
  padding: var(--s7) 0 var(--s6);
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex-wrap: wrap;
}
.footer__links a {
  font-size: var(--t-sm);
  color: var(--muted);
  transition: color 200ms var(--ease);
}
.footer__links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .footer__links { gap: var(--s4); }
}
.footer__brand img { height: 26px; opacity: 0.92; }
.footer__brand p {
  margin-top: var(--s3);
  color: var(--muted);
  max-width: 36ch;
  font-size: var(--t-sm);
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 var(--s3);
}
.footer__col a {
  display: block;
  font-size: var(--t-sm);
  color: var(--muted);
  padding: 5px 0;
  transition: color 200ms var(--ease);
}
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  max-width: var(--max);
  margin: var(--s7) auto 0;
  padding: var(--s4) var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ============================================================
   UTIL — Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MOBILE — Hero spacing
   ============================================================ */
@media (max-width: 720px) {
  section, .pillars, .audience, .faq, .caps { padding: var(--s7) 0; }
  .hero { min-height: 78vh; padding-top: 100px; }
  .strip__head { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .banner { margin: 0 16px; padding: var(--s7) var(--s4); border-radius: 24px; }
  .pillar { min-height: 280px; padding: var(--s5) var(--s4); }
}

/* =========================================================
   HERO TICKS (new tagline + trust marks)
========================================================= */
.hero__ticks {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4) var(--s5);
  color: var(--ink);
  font-size: var(--t-base);
}
.hero__ticks li { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.tick {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--sage); color: #0e2a09;
}
.tick svg { width: 13px; height: 13px; }
@media (max-width: 640px) {
  .hero__ticks { gap: 10px var(--s3); font-size: var(--t-sm); }
}

/* =========================================================
   STABLECOIN ADVANTAGE
========================================================= */
.advantage { padding: var(--s9) 0; }
.advantage__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s7);
  align-items: end;
  margin-bottom: var(--s7);
}
.advantage__head .eyebrow { letter-spacing: 0.08em; }
.adv-accent {
  color: var(--peach);
  font-style: italic;
}
.advantage__head h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.advantage__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.adv {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.adv__icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: var(--cream-soft);
  margin-bottom: var(--s2);
}
.adv__icon--lilac { color: #5b3da8; background: color-mix(in oklab, var(--lilac) 55%, var(--cream)); }
.adv__icon--peach { color: #b35a1a; background: color-mix(in oklab, var(--peach) 55%, var(--cream)); }
.adv__icon--teal  { color: #1d6878; background: color-mix(in oklab, var(--teal)  55%, var(--cream)); }
.adv__icon--sage  { color: #2d6b22; background: color-mix(in oklab, var(--sage)  55%, var(--cream)); }
.adv__icon svg { width: 38px; height: 38px; }
.adv h3 {
  margin: 0;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.adv p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-base);
  line-height: 1.5;
}
@media (max-width: 980px) {
  .advantage__head { grid-template-columns: 1fr; gap: var(--s4); }
  .advantage__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
}
@media (max-width: 540px) {
  .advantage__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   REGULATORY GRID (dark)
========================================================= */
.reg {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s9) 0;
}
.reg__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s7);
  align-items: end;
  margin-bottom: var(--s7);
}
.reg__head .eyebrow { color: color-mix(in oklab, var(--cream) 65%, transparent); }
.reg__head h2 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  color: var(--cream);
}
.reg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.reg__cell {
  background: color-mix(in oklab, var(--cream) 4%, var(--ink));
  border: 1px solid color-mix(in oklab, var(--cream) 10%, transparent);
  border-radius: var(--radius);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.reg__cell h3 {
  margin: 0 0 var(--s2);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--sage);
  letter-spacing: -0.005em;
}
.reg__cell p {
  margin: 0;
  color: color-mix(in oklab, var(--cream) 80%, transparent);
  font-size: var(--t-base);
  line-height: 1.55;
  max-width: 38ch;
}
.reg__art {
  width: 72px; height: 72px;
  margin-top: auto;
  align-self: flex-end;
  color: var(--sage);
  opacity: 0.85;
}
@media (max-width: 980px) {
  .reg__head { grid-template-columns: 1fr; gap: var(--s4); }
  .reg__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .reg__grid { grid-template-columns: 1fr; }
  .reg__cell { min-height: 200px; }
}

/* =========================================================
   DEMO WIDGET (BVNK-style)
========================================================= */
.demo { padding: var(--s9) 0; background: var(--cream-soft); }
.demo__head { text-align: center; max-width: 720px; margin: 0 auto var(--s7); }
.demo__head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: var(--s2) 0 var(--s3);
}
.demo__sub { color: var(--muted); font-size: var(--t-lg); margin: 0; }

.demo__frame {
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.3);
}
.demo__steps {
  display: flex;
  gap: 0;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo__steps::-webkit-scrollbar { display: none; }
.demo__step {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  background: transparent;
  border: none;
  color: var(--muted-2);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.demo__step:hover { color: var(--ink); background: var(--cream-deep); }
.demo__step.is-active { background: var(--ink); color: var(--cream); }

.demo__panes {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  min-height: 540px;
}
.demo__phone {
  background:
    radial-gradient(ellipse at top left, color-mix(in oklab, var(--lilac) 50%, var(--cream)) 0%, transparent 60%),
    var(--cream-soft);
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: var(--s6) var(--s4);
}
.phone {
  width: 280px;
  height: 540px;
  background: #0a0a0a;
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #000; border-radius: 999px;
  z-index: 2;
}
.phone__screen {
  background: var(--cream);
  border-radius: 28px;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 44px 16px 18px;
}
.scr {
  position: absolute;
  inset: 44px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.scr.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scr__hdr {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.back { font-size: 18px; color: var(--muted); }
.balance {
  background: var(--ink); color: var(--cream);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.balance__lbl { font-size: 11px; color: color-mix(in oklab, var(--cream) 65%, transparent); letter-spacing: 0.04em; text-transform: uppercase; }
.balance__val { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.scr__actions { display: flex; gap: 8px; }
.chip {
  flex: 1;
  text-align: center;
  background: var(--cream-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.chip--solid { background: var(--ink); color: var(--cream); }
.tx { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.tx__row {
  display: flex; justify-content: space-between;
  font-size: 12px;
  padding: 8px 10px;
  background: var(--cream-soft);
  border-radius: 10px;
  color: var(--ink);
}
.tx__row span:first-child { color: var(--muted); }
.tx__row--new { background: color-mix(in oklab, var(--sage) 45%, var(--cream)); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.field__v {
  background: var(--cream-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}
.field__v--mono { font-family: var(--font-mono); font-size: 12px; }
.amount {
  background: var(--cream-soft);
  border-radius: 14px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: center;
}
.amount__lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.amount__val { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
.summary { display: flex; flex-direction: column; gap: 6px; }
.summary__row {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 6px 0;
  color: var(--muted);
}
.summary__row--total { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; }
.success {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin: auto 0; text-align: center; padding: 20px 0;
}
.success__ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--sage) 60%, var(--cream));
  color: var(--ink);
  display: grid; place-items: center;
  animation: pop 0.5s var(--ease);
}
.success__ring svg { width: 30px; height: 30px; }
.success h4 { margin: 4px 0 0; font-size: 20px; font-weight: 600; }
.success p { margin: 0; font-size: 12px; color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 11px; }
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
.phone__cta {
  margin-top: auto;
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
}

.demo__api {
  background: #0d0d10;
  color: #e5e5e0;
  padding: var(--s5);
  display: flex; flex-direction: column;
}
.apiwin { display: flex; flex-direction: column; height: 100%; }
.apiwin__bar {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: color-mix(in oklab, #fff 65%, transparent);
  padding-bottom: var(--s3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.apiwin__bar .dots { display: inline-flex; gap: 5px; }
.apiwin__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.apiwin__body {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  padding: var(--s3) 0;
  color: #d0d0c8;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  overflow: auto;
}
.apiwin__body .k { color: var(--peach); }
.apiwin__body .s { color: var(--sage); }
.apiwin__body .n { color: var(--teal); }
.apiwin__body .c { color: var(--muted-2); }
.apiwin__events { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--s3); display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.evt {
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  color: #d0d0c8;
  animation: slidein 0.35s var(--ease);
}
.evt__dot { width: 7px; height: 7px; border-radius: 50%; }
.evt--pending .evt__dot { background: var(--peach); }
.evt--ok .evt__dot      { background: var(--sage); }
.evt__t { color: var(--muted-2); margin-left: auto; }
@keyframes slidein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.demo__nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--line);
  background: var(--cream-soft);
}
.demo__navbtn {
  font-family: var(--font-display);
  font-size: var(--t-sm);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--ink);
}
.demo__navbtn:hover { background: var(--cream-deep); }
.demo__navbtn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.demo__navbtn--solid:hover { background: #1c1c1c; }
.demo__hint { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .demo__panes { grid-template-columns: 1fr; }
  .demo__phone { border-right: none; border-bottom: 1px solid var(--line); padding: var(--s5) var(--s3); }
  .demo__api { min-height: 320px; }
}

/* =========================================================
   MARGIN CALCULATOR
========================================================= */
.margin { padding: var(--s9) 0; }
.margin__head { text-align: center; max-width: 720px; margin: 0 auto var(--s7); }
.margin__head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: var(--s2) 0 0;
}
.margin__card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.4);
}
.margin__top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s5);
  align-items: end;
  margin-bottom: var(--s4);
}
.margin__lbl { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 60%, transparent); }
.margin__voltop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s2); }
.margin__vol {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--peach);
}
.margin__slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 24px;
}
.margin__slider::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--peach) var(--fill, 10%), rgba(234,233,229,0.15) var(--fill, 10%));
  border-radius: 999px;
}
.margin__slider::-moz-range-track {
  height: 4px;
  background: rgba(234,233,229,0.15);
  border-radius: 999px;
}
.margin__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--peach);
  margin-top: -8px;
  cursor: pointer;
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--peach) 30%, transparent);
}
.margin__slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--peach);
  cursor: pointer;
  border: none;
}
.margin__range { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--muted-2); margin-top: 6px; }
.margin__region { display: flex; flex-direction: column; gap: 6px; }
.seg {
  display: inline-flex;
  background: color-mix(in oklab, var(--cream) 10%, var(--ink));
  border: 1px solid color-mix(in oklab, var(--cream) 12%, transparent);
  border-radius: 999px;
  padding: 4px;
}
.seg__btn {
  background: transparent;
  border: none;
  color: color-mix(in oklab, var(--cream) 75%, transparent);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.seg__btn.is-active { background: var(--peach); color: var(--ink); font-weight: 600; }

.margin__assume {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--cream) 6%, var(--ink));
  border: 1px solid color-mix(in oklab, var(--cream) 10%, transparent);
  color: color-mix(in oklab, var(--cream) 80%, transparent);
  font-size: var(--t-sm);
  margin-bottom: var(--s5);
}
.margin__assume .i {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--cream) 50%, transparent);
  display: inline-grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.margin__assume b { color: var(--cream); font-weight: 600; }

.margin__lines { display: flex; flex-direction: column; }
.line {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.6fr;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid color-mix(in oklab, var(--cream) 10%, transparent);
  font-size: var(--t-base);
  align-items: center;
}
.line span:nth-child(2), .line span:nth-child(3) { text-align: right; color: color-mix(in oklab, var(--cream) 80%, transparent); }
.line span:nth-child(3) { color: var(--cream); font-weight: 500; }
.line--hdr { font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid color-mix(in oklab, var(--cream) 18%, transparent); }
.line--hdr span:nth-child(2), .line--hdr span:nth-child(3) { color: var(--muted-2); font-weight: 400; }
.margin__total {
  margin-top: var(--s4);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding-top: var(--s4);
  border-top: 1px solid color-mix(in oklab, var(--cream) 18%, transparent);
}
.margin__big {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--peach);
  line-height: 1;
}
@media (max-width: 760px) {
  .margin__top { grid-template-columns: 1fr; gap: var(--s4); }
  .margin__card { padding: var(--s5) var(--s4); }
  .line { grid-template-columns: 1.4fr 0.6fr 0.7fr; font-size: var(--t-sm); }
}

/* =========================================================
   BUILD WITH CONFIDENCE
========================================================= */
.build { padding: var(--s9) 0; background: var(--cream); }
.build__title {
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 var(--s3);
  max-width: 14ch;
}
.build__sub {
  font-size: var(--t-xl);
  color: var(--muted);
  margin: 0 0 var(--s7);
  max-width: 60ch;
}
.build__tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.tier {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.tier__name {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier__price {
  font-size: var(--t-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: var(--t-base); }
.tier ul li::before { content: "→ "; color: var(--ink); margin-right: 4px; }
.tier--mid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tier--mid .tier__name { color: color-mix(in oklab, var(--cream) 65%, transparent); }
.tier--mid ul { color: color-mix(in oklab, var(--cream) 80%, transparent); }
.tier--mid ul li::before { color: var(--peach); }
@media (max-width: 760px) {
  .build__tiers { grid-template-columns: 1fr; }
  .build__sub { font-size: var(--t-lg); }
}

/* =========================================================
   CONTACT FORM
========================================================= */
.contact {
  position: relative;
  background: var(--cream-soft);
  padding: var(--s9) 0;
  overflow: hidden;
}
.cta__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: 0.6;
  pointer-events: none;
}
.contact__inner {
  position: relative; z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.contact__eyebrow { text-align: center; }
.contact__title {
  text-align: center;
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: var(--s2) 0 var(--s3);
}
.contact__sub {
  text-align: center;
  color: var(--muted);
  font-size: var(--t-lg);
  margin: 0 auto var(--s7);
  max-width: 56ch;
}
.contact__form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  display: flex; flex-direction: column; gap: var(--s4);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld label {
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--ink);
}
.fld label span { color: var(--muted-2); margin-left: 2px; }
.fld input,
.fld textarea,
.select select {
  font-family: var(--font-display);
  font-size: var(--t-base);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.fld input:focus, .fld textarea:focus, .select select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 10%, transparent);
}
.fld textarea { resize: vertical; min-height: 96px; font-family: var(--font-display); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select svg {
  position: absolute;
  right: 14px;
  top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.interest {
  border: none;
  padding: 0;
  margin: var(--s2) 0;
}
.interest legend {
  font-size: var(--t-base);
  font-weight: 500;
  margin-bottom: 4px;
}
.interest__group {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s2);
}
.interest__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}
.chk {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: var(--t-base);
  user-select: none;
}
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk__box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  display: grid; place-items: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.chk__box::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--cream);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.chk input:checked + .chk__box {
  background: var(--ink);
  border-color: var(--ink);
}
.chk input:checked + .chk__box::after {
  transform: scale(1);
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 4.5 4.5L20 6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 4.5 4.5L20 6'/></svg>") center/contain no-repeat;
}
.chk input:focus-visible + .chk__box { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 20%, transparent); }

.contact__btnrow { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s2); }
.contact__submit { cursor: pointer; border: none; font-family: var(--font-display); font-size: var(--t-base); }
.contact__success {
  margin: var(--s3) 0 0;
  padding: var(--s3) var(--s4);
  background: color-mix(in oklab, var(--sage) 40%, var(--cream));
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 700px) {
  .row2 { grid-template-columns: 1fr; }
  .interest__grid { grid-template-columns: 1fr; }
  .contact__form { padding: var(--s5) var(--s4); }
}

/* ============================================================
   DOCS PAGE
============================================================ */
.docs {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}
.docs__shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s5);
  gap: var(--s8);
}
.docs__side {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: var(--s6) 0;
  border-right: 1px solid rgba(0,0,0,.08);
  padding-right: var(--s4);
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}
.docs__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
  opacity: .65;
  text-decoration: none;
  margin-bottom: var(--s4);
  transition: opacity .2s;
}
.docs__back:hover { opacity: 1; }
.docs__sidegroup { margin-bottom: var(--s4); }
.docs__sidegroup h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink);
  opacity: .5;
  margin: 0 0 var(--s2) 0;
}
.docs__sidegroup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs__sidegroup li { margin: 0; }
.docs__sidegroup a {
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.docs__sidegroup a:hover { background: rgba(0,0,0,.05); }
.docs__sidegroup a.active {
  background: var(--ink);
  color: var(--cream);
}
.docs__main {
  padding: var(--s4) 0 var(--s7);
  max-width: 780px;
}
.docs__main h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 var(--s3) 0;
}
.docs__main h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.01em;
  margin: var(--s4) 0 var(--s2) 0;
  scroll-margin-top: 100px;
}
.docs__main h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: var(--s3) 0 var(--s1) 0;
  scroll-margin-top: 100px;
}
.docs__main p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,0,0,.78);
  margin: 0 0 var(--s2) 0;
}
.docs__main ul, .docs__main ol {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0,0,0,.78);
  padding-left: 22px;
  margin: 0 0 var(--s3) 0;
}
.docs__main ul li, .docs__main ol li { margin-bottom: 6px; }
.docs__main code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: rgba(0,0,0,.07);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.docs__main pre {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s3);
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  margin: var(--s2) 0 var(--s3) 0;
}
.docs__main pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.docs__main a:not(.docs__back):not(.docs__sidegroup a) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.docs__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink);
  opacity: .55;
  margin-bottom: var(--s2);
}
.docs__lead {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(0,0,0,.78);
  margin-bottom: var(--s4);
}
.docs__divider {
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: var(--s4) 0;
  border: 0;
}
.docs__main > section { padding: var(--s3) 0; }
.docs__main > section:first-of-type { padding-top: 0; }
.docs__main > section > h2:first-child { margin-top: 0; }
.docs__table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s2) 0 var(--s4) 0;
  font-size: 14.5px;
}
.docs__table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
  opacity: .55;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.docs__table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.82);
  vertical-align: top;
}
.docs__pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.docs__pill--live {
  background: var(--sage);
  color: #1a3a14;
}
.docs__pill--soon {
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.55);
}
.docs__callout {
  background: rgba(226,182,142,.18);
  border-left: 3px solid var(--peach);
  padding: var(--s3);
  border-radius: 8px;
  margin: var(--s3) 0;
}
.docs__callout p:last-child { margin-bottom: 0; }
.docs__nav-simple {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.docs__nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.docs__nav-logo img {
  height: 28px;
  display: block;
}
.docs__nav-right {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.docs__nav-right a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  opacity: .7;
  transition: opacity .15s;
}
.docs__nav-right a:hover { opacity: 1; }
.docs__nav-cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 1 !important;
  font-weight: 500;
}

@media (max-width: 900px) {
  .docs__shell {
    grid-template-columns: 1fr;
    padding: 0 var(--s3);
    gap: 0;
  }
  .docs__side {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding-right: 0;
    max-height: none;
    margin-bottom: var(--s3);
  }
  .docs__main { padding-top: var(--s3); }
}
