/* ============================================================
   Lullabeast v5 — tactical-console design system
   Palette lifted from the MultiLife (Conway) build so the
   site and the product read as one thing.
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #090C12;   /* page, deepest */
  --bg-2:      #0B0E14;   /* base console */
  --panel:     #11151E;   /* raised panel */
  --panel-2:   #0D1119;   /* inset */
  --live:      #060810;   /* canvas / deepest well */

  /* lines */
  --line:      #1A1F2B;   /* hairline */
  --line-2:    #2A3243;   /* stronger edge */

  /* ink */
  --ink:       #C7CFDD;   /* primary text */
  --ink-bright:#E8ECF3;   /* headings */
  --dim:       #6B7689;   /* muted / labels */
  --dimmer:    #4A5365;   /* faint */

  /* team accents (the four MultiLife colors) */
  --amber:  #F5A623;
  --teal:   #2DD4BF;
  --rose:   #F43F5E;
  --violet: #A78BFA;
  --green:  #4ECB7B;

  --accent: var(--amber);

  /* type */
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* rhythm */
  --wrap: 1080px;
  --gut: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint console grid + amber horizon, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%;
  opacity: .25;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(80% 50% at 50% -8%, rgba(245,166,35,.10), transparent 60%),
    radial-gradient(60% 40% at 90% 8%, rgba(45,212,191,.05), transparent 60%);
  pointer-events: none;
}

::selection { background: rgba(245,166,35,.28); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gut);
  background: linear-gradient(var(--bg) 60%, transparent);
  backdrop-filter: blur(2px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-bright);
}
.brand img { width: 24px; height: auto; display: block; }
.brand b { font-weight: 700; }
.wordmark { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-transform: lowercase; line-height: 1; }
.wm-lulla { color: var(--ink); }
.wm-beast { color: var(--amber); }
.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--dim);
}
.topbar__right .topbar__link:hover { color: var(--ink-bright); }
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav-cta .arrow { transition: transform .2s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(2px); }
.nav-cta--gh { border-color: var(--line-2); color: var(--ink); gap: 8px; }
.nav-cta--gh .gh-ico { display: block; }
.nav-cta--gh:hover { border-color: var(--ink); color: var(--ink-bright); background: rgba(199,207,221,.05); }
.nav-cta:active { transform: translateY(1px); }
.nav-cta--solid { background: var(--amber); color: #1a1205; font-weight: 600; }
.nav-cta--solid:hover { background: #ffba42; color: #1a1205; }
.nav-cta--ghost { border-color: var(--line-2); color: var(--ink); }
.nav-cta--ghost:hover { border-color: var(--ink); color: var(--ink-bright); }
.tag-beta {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}

/* ---------- shared section furniture ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-2);
}
.eyebrow--amber { color: var(--amber); }
.eyebrow--amber::before { background: currentColor; opacity: .6; }

.act { padding-block: clamp(72px, 12vh, 132px); position: relative; }
.act + .act { border-top: 1px solid var(--line); }

h1, h2, h3 { font-weight: 700; color: var(--ink-bright); letter-spacing: -.02em; line-height: 1.05; }

.lead {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}
.lead--wide { max-width: 68ch; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; padding-top: clamp(118px, 17vh, 178px); padding-bottom: clamp(44px, 8vh, 88px); }
.hero__title {
  font-size: clamp(40px, 7.2vw, 84px);
  letter-spacing: -.035em;
  line-height: .98;
  margin-top: 26px;
  max-width: 15ch;
}
.hero__title .b { color: var(--ink-bright); display: block; }
.hero__title .b2 { color: var(--dim); }
.hero__sub {
  margin-top: 28px;
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 58ch;
}
.hero__sub b { color: var(--ink-bright); font-weight: 600; }
.hero__candor {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.hero__candor span { display: inline-flex; align-items: center; gap: 14px; }
.hero__candor span::after { content: "·"; color: var(--dimmer); }
.hero__candor span:last-child::after { content: none; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  --bw: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .04em;
  padding: 13px 22px;
  border-radius: 8px;
  border: var(--bw) solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--amber); color: #1a1205; font-weight: 600; }
.btn--solid:hover { background: #ffba42; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(199,207,221,.04); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* quiet pipeline rail teaser under the hero */
.railhint {
  margin-top: clamp(40px, 8vh, 80px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(var(--panel), var(--panel-2));
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  overflow: hidden;
}
.railhint__node { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.railhint__node i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dimmer);
  box-shadow: 0 0 0 3px rgba(255,255,255,.02);
}
.railhint__node.is-gate i { background: var(--teal); box-shadow: 0 0 10px rgba(45,212,191,.5); }
.railhint__sep { color: var(--dimmer); padding-inline: 2px; }
.railhint__tail { color: var(--amber); }

/* ---------- section 01 - faults ---------- */
.why { min-height: 74vh; display: grid; align-content: center; }
.why__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.why h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 22px; max-width: 14ch; }
.why__body { margin-top: 26px; }
.why__closer {
  margin-top: 28px;
  font-size: 18px;
  color: var(--ink);
}
.why__closer b { color: var(--amber); font-weight: 600; }

.faults { list-style: none; display: grid; gap: 12px; }
.fault {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.fault:hover, .fault.is-open { border-color: var(--line-2); }
.fault__q {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.fault__n { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.fault:nth-child(1) .fault__n { color: var(--amber); }
.fault:nth-child(2) .fault__n { color: var(--teal); }
.fault:nth-child(3) .fault__n { color: var(--rose); }
.fault:nth-child(4) .fault__n { color: var(--violet); }
.fault__t { font-size: 15.5px; color: var(--ink); line-height: 1.45; }
.fault__t b { color: var(--ink-bright); font-weight: 600; }
.fault__x { position: relative; width: 16px; height: 16px; flex: none; }
.fault__x::before, .fault__x::after { content: ""; position: absolute; background: var(--dim); border-radius: 2px; }
.fault__x::before { left: 2px; right: 2px; top: 7px; height: 2px; }
.fault__x::after { top: 2px; bottom: 2px; left: 7px; width: 2px; }
.fault.is-open .fault__x::before { background: var(--ink-bright); }
.fault.is-open .fault__x::after { transform: scaleY(0); opacity: 0; }
.fault__a { max-height: 0; overflow: hidden; }
.fault__a p { font-size: 14px; color: var(--dim); line-height: 1.55; padding: 0 18px 16px 46px; }
.fault__lbl { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.fault.is-open .fault__a { max-height: 600px; }

/* ---------- temp footer marker for the WIP cut ---------- */
.wipnote {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dimmer);
}

/* ---------- 02.5 · the dashboard (UI flex) ---------- */
.ui h2 { font-size: clamp(30px, 4.6vw, 52px); margin-top: 22px; max-width: 16ch; }
.ui__intro { margin-top: 26px; max-width: 66ch; }
.ui__intro b { color: var(--ink-bright); font-weight: 600; }

.shot { margin-top: 40px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 34px 90px -46px rgba(0,0,0,.85); }
.shot__bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.shot__dots { display: inline-flex; gap: 7px; }
.shot__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.shot__url { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .03em; white-space: nowrap; }
.shot img { display: block; width: 100%; height: auto; }

.ui__pts { margin-top: 22px; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ui__pts li { display: flex; flex-direction: column; gap: 5px; padding: 16px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.ui__pts b { color: var(--ink-bright); font-size: 14.5px; font-weight: 600; }
.ui__pts span { font-size: 12.5px; color: var(--dim); line-height: 1.4; }

/* ---------- 03 · the MultiLife build (local vs cloud) ---------- */
.build h2 { font-size: clamp(30px, 4.6vw, 54px); margin-top: 22px; max-width: 16ch; }
.build__intro { margin-top: 26px; max-width: 62ch; }
.build__intro b { color: var(--ink-bright); font-weight: 600; }

.vs {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.vs__col {
  position: relative;
  background: linear-gradient(var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  padding: 26px 26px 28px;
}
.vs__col:first-child { border-radius: 14px 0 0 14px; }
.vs__col:last-child { border-radius: 0 14px 14px 0; }
.vs__col::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--c);
  opacity: .9;
}
.vs__col--local { --c: var(--teal); }
.vs__col--cloud { --c: var(--amber); border-left: none; }

.vs__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--dim);
}
.vs__mid span {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--panel);
}

.vs__tag {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.vs__tag b { color: var(--c); font-weight: 700; }
.vs__tag em { color: var(--dim); font-style: normal; letter-spacing: .06em; font-size: 11.5px; }

.vs__models {
  margin-top: 18px;
  display: grid;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.vs__model {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  align-items: baseline;
}
.vs__model span { color: var(--dim); letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
.vs__model code { color: var(--ink); }

.vs__rows { margin-top: 16px; display: grid; gap: 13px; }
.vs__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.vs__row > span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.vs__row > b { font-family: var(--mono); font-size: 15px; color: var(--ink-bright); font-weight: 600; }

.vs__cost {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.vs__cost .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.vs__cost .v {
  font-family: var(--mono);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c);
  line-height: 1.05;
  margin-top: 6px;
}
.vs__cost .note { font-size: 12.5px; color: var(--dim); margin-top: 4px; }

/* unfilled cloud data — honest placeholders, not fake numbers */
.slot {
  color: var(--dimmer);
  border-bottom: 1px dashed var(--line-2);
  padding-bottom: 1px;
}
.vs__cost .v.slot { border-bottom-width: 2px; padding-bottom: 4px; display: inline-block; }

/* tokens-by-agent split bar */
.vs__bar { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.vs__bar .bk { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.vs__bar .bk b { color: var(--ink); font-size: 12px; }
.vs__bar .bk b.slot { color: var(--dimmer); }
.vs__bar .bk span { white-space: nowrap; }
.vs__track { margin-top: 10px; height: 9px; border-radius: 5px; overflow: hidden; display: flex; gap: 2px; background: var(--panel); }
.vs__track i { display: block; height: 100%; border-radius: 2px; }
.vs__track--slot { background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 14px); }
.vs__key { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.vs__key span { display: inline-flex; align-items: center; gap: 7px; }
.vs__key i { width: 8px; height: 8px; border-radius: 2px; flex: none; }

.vs__legend {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.vs__legend i { width: 18px; height: 0; border-top: 1px dashed var(--line-2); }

.build__take {
  margin-top: 30px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  max-width: 60ch;
  color: var(--ink);
}
.build__take b { color: var(--ink-bright); font-weight: 600; }

/* walkthrough + finished-app teaser */
.next {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.next__card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
}
.next__card--live { display: flex; flex-direction: column; transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease); }
.next__card--live:hover { border-color: var(--amber); transform: translateY(-3px); background: var(--panel); box-shadow: 0 26px 54px -32px rgba(245,166,35,.5); }
.next__lead { margin-top: 44px; margin-bottom: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .03em; color: var(--amber); display: inline-flex; align-items: center; gap: 9px; }
.next__lead .arrow { animation: nudge-down 1.8s var(--ease) infinite; }
@keyframes nudge-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.next__cta { margin-top: 20px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--amber); border: 1px solid rgba(245,166,35,.45); border-radius: 8px; padding: 9px 15px; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.next__card--live:hover .next__cta { background: var(--amber); color: #1a1205; border-color: var(--amber); }
.next__cta .arrow { transition: transform .2s var(--ease); }
.next__card--live:hover .next__cta .arrow { transform: translateX(3px); }
.next__soon--live { color: var(--amber) !important; border-color: rgba(245,166,35,.45) !important; }
.next__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.next__t { font-size: 19px; margin-top: 10px; color: var(--ink-bright); }
.next__x { font-size: 14.5px; color: var(--dim); margin-top: 8px; line-height: 1.5; }
.next__soon {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dimmer); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px;
}

/* ---------- 04 · what else it builds (examples gallery) ---------- */
.ex h2 { font-size: clamp(28px, 4.4vw, 48px); margin-top: 22px; max-width: 17ch; }
.ex__intro { margin-top: 24px; max-width: 64ch; }
.ex__intro b { color: var(--ink-bright); font-weight: 600; }
.ex__grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ex__card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.ex__card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ex__shot, image-slot.ex__shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--live); border-bottom: 1px solid var(--line); }
.ex__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ex__name { font-size: 18px; font-weight: 700; color: var(--ink-bright); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.ex__flag { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(245,166,35,.4); border-radius: 999px; padding: 2px 8px; }
.ex__x { font-size: 13.5px; color: var(--dim); line-height: 1.5; margin-top: 8px; }
.ex__x b { color: var(--ink); font-weight: 500; }
.ex__meta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ex__links { display: inline-flex; gap: 12px; font-family: var(--mono); font-size: 12px; }
.ex__links a { color: var(--amber); }
.ex__links a:hover { color: #ffba42; }
.ex__models { font-family: var(--mono); font-size: 10.5px; color: var(--dimmer); margin-left: auto; letter-spacing: .02em; }
.ex__foot { margin-top: 30px; font-size: 13.5px; color: var(--dim); }
.ex__foot b { color: var(--ink); font-weight: 500; }
.ex__cta { margin-top: 34px; }

/* ---------- 05 · what it won't do (limits) ---------- */
.wont h2 { font-size: clamp(28px, 4.4vw, 48px); margin-top: 22px; }
.wont__intro { margin-top: 24px; max-width: 62ch; }
.wont__intro b { color: var(--ink-bright); font-weight: 600; }
.wont__list { margin-top: 38px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.wont__item { border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 10px; background: var(--panel-2); padding: 17px 20px; }
.wont__h { font-size: 15.5px; font-weight: 700; color: var(--ink-bright); }
.wont__p { font-size: 13.5px; color: var(--dim); line-height: 1.55; margin-top: 7px; }
.wont__p b { color: var(--ink); font-weight: 500; }

@media (max-width: 820px) {
  .ex__grid, .wont__list { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr; gap: 14px; }
  .vs__col, .vs__col:first-child, .vs__col:last-child { border-radius: 14px; border-left: 1px solid var(--line); }
  .vs__mid { width: auto; height: 40px; border: 1px solid var(--line); border-radius: 999px; justify-self: center; padding-inline: 18px; }
  .next { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .why__grid { grid-template-columns: 1fr; }
  .topbar__right .hide-sm { display: none; }
  .railhint { font-size: 11.5px; }
  .flow__setup { flex-direction: column; }
  .flow__arr { transform: rotate(90deg); }
}

/* ---------- 02 · how it works (the loop) ---------- */
.how h2 { font-size: clamp(30px, 4.6vw, 52px); margin-top: 22px; max-width: 15ch; }
.how__intro { margin-top: 26px; max-width: 64ch; }
.how__intro b { color: var(--ink-bright); font-weight: 600; }

.flow {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(var(--panel), var(--panel-2));
  padding: clamp(20px, 3vw, 34px);
}

/* setup strip */
.flow__band { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 12px; }
.flow__band::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.flow__setup { margin-top: 16px; display: flex; align-items: stretch; gap: 10px; }
.setup-node { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel-2); }
.setup-node b { color: var(--ink-bright); font-size: 15px; font-weight: 600; }
.setup-node__d { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.flow__arr { color: var(--dimmer); font-family: var(--mono); align-self: center; flex: none; }

/* phase loop */
.flow__phase { margin-top: 30px; }
.flow__loop { margin-top: 16px; display: flex; align-items: stretch; gap: 0; }

.stage {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--d, 0s);
}
.stage--p { --c: var(--violet); }
.stage--e { --c: var(--amber); }
.stage--r { --c: var(--teal); }
.stage__role { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.stage__name { font-size: 19px; font-weight: 700; color: var(--ink-bright); margin-top: 7px; letter-spacing: -.01em; }
.stage__job { font-size: 13.5px; color: var(--ink); line-height: 1.45; margin-top: 9px; }
.stage__out { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 7px; }
.stage__out b { color: var(--c); font-weight: 600; }

.gate {
  flex: none;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--d, 0s);
}
.gate__d {
  width: 26px; height: 26px;
  border: 1.5px solid var(--teal);
  background: rgba(45,212,191,.08);
  transform: rotate(45deg);
  border-radius: 5px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(45,212,191,.04);
}
.gate__d::after { content: "✓"; transform: rotate(-45deg); color: var(--teal); font-size: 12px; font-weight: 700; }
.gate__l { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

.stage--end {
  flex: none;
  width: 130px;
  background: rgba(45,212,191,.05);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--teal);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--d, 0s);
}
.stage--end .ck { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #06231f; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.stage--end b { color: var(--ink-bright); font-size: 14px; font-weight: 600; }
.stage--end span { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }

/* escalation branch */
.flow__escal {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: rgba(244,63,94,.03);
}
.flow__escal .pin { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); border: 1px solid rgba(244,63,94,.5); border-radius: 6px; padding: 6px 11px; white-space: nowrap; }
.flow__escal p { font-size: 14px; color: var(--ink); line-height: 1.45; }
.flow__escal p b { color: var(--ink-bright); font-weight: 600; }

/* the load-bearing caption */
.flow__gatenote {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.flow__gatenote .mark { width: 26px; height: 26px; border: 1.5px solid var(--teal); background: rgba(45,212,191,.08); transform: rotate(45deg); border-radius: 5px; display: grid; place-items: center; margin-top: 3px; }
.flow__gatenote .mark::after { content: "✓"; transform: rotate(-45deg); color: var(--teal); font-size: 12px; font-weight: 700; }
.flow__gatenote p { font-size: 16.5px; line-height: 1.5; color: var(--ink); max-width: none; }
.flow__gatenote p b { color: var(--ink-bright); font-weight: 600; }

/* entrance: only arm when JS is present, so no-JS shows everything */
body.anim .flow .stage,
body.anim .flow .gate,
body.anim .flow .stage--end { opacity: 0; transform: translateY(12px); }
body.anim .flow.is-in .stage,
body.anim .flow.is-in .gate,
body.anim .flow.is-in .stage--end { opacity: 1; transform: none; }

/* ---------- 02 extras: roadmap caption, completion, needs-attention ---------- */
.flow__sub { margin-top: 12px; font-size: 13.5px; color: var(--dim); font-style: italic; }

.flow__done {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: rgba(78,203,123,.04);
}
.done__head { display: flex; align-items: center; gap: 11px; }
.done__icon { color: var(--green); display: inline-flex; }
.done__icon svg { width: 19px; height: 19px; display: block; }
.done__title { font-size: 16px; font-weight: 700; color: var(--ink-bright); letter-spacing: -.01em; white-space: nowrap; }
.done__opt { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; }
.flow__done p { margin-top: 11px; font-size: 14px; color: var(--ink); line-height: 1.55; }

/* ---------- 08 · get started ---------- */
.start h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 22px; }
.start__intro { margin-top: 26px; max-width: 66ch; }
.start__intro b { color: var(--ink-bright); font-weight: 600; }
.start__grid { margin-top: 40px; display: grid; grid-template-columns: 1.3fr .9fr; gap: 22px; align-items: start; }
.steps { list-style: none; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.step__n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--amber); }
.step b { color: var(--ink-bright); font-size: 16px; }
.step p { font-size: 13.5px; color: var(--dim); margin-top: 5px; line-height: 1.45; }
.step__cmd { display: block; max-width: 100%; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--live); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; line-height: 1.7; overflow-x: auto; white-space: pre; }

.reqs { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(var(--panel), var(--panel-2)); padding: 22px; position: sticky; top: 84px; }
.reqs__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.reqs ul { list-style: none; margin-top: 14px; display: grid; gap: 11px; }
.reqs li { font-size: 14px; color: var(--ink); padding-left: 18px; position: relative; line-height: 1.4; }
.reqs li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.reqs li b { color: var(--ink-bright); font-weight: 600; }
.reqs__cta { margin-top: 20px; width: 100%; justify-content: center; white-space: nowrap; }
.reqs__note { font-size: 12.5px; color: var(--dim); margin-top: 14px; line-height: 1.5; }

.foot { border-top: 1px solid var(--line); padding-block: 30px; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__meta { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .03em; }
.foot a { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.foot a:hover { color: var(--ink); }
.foot .brand:hover { color: var(--ink-bright); }

@media (max-width: 820px) {
  .start__grid { grid-template-columns: 1fr; }
  .reqs { position: static; }
  .foot__in { justify-content: flex-start; }
  .ui__pts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .flow__loop { flex-direction: column; }
  .gate { width: auto; flex-direction: row; height: 44px; }
  .gate__d { transform: rotate(45deg) scale(.85); }
  .stage--end { width: auto; flex-direction: row; align-items: center; }
}

@media (max-width: 560px) {
  .topbar { padding-block: 13px; }
  .topbar__right { gap: 9px; }
  .wordmark { font-size: 17px; }
  .brand img { width: 21px; }
  .nav-cta { font-size: 11px; padding: 7px 10px; gap: 5px; }
  .gh-txt { display: none; }
  .nav-cta--gh { padding: 7px 9px; }
  .tag-beta { display: none; }
  .hero { padding-top: 84px; min-height: 0; padding-bottom: 8vh; }
  .ui__pts { grid-template-columns: 1fr; }
  .vs__cost .v { font-size: clamp(30px, 11vw, 40px); }
  .cta { gap: 10px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .flow { padding: 16px 14px; }
  .flow__gatenote { grid-template-columns: 1fr; gap: 12px; }
  .flow__escal { flex-direction: column; align-items: flex-start; gap: 11px; }
  .step { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  body.anim .flow .stage, body.anim .flow .gate, body.anim .flow .stage--end { opacity: 1; transform: none; }
}
