/* FuncHole landing. Plain CSS, no build step: this file ships as-is. */

:root {
  --paper: #ECEBE4;
  --paper-2: #E0DED3;
  --card: #FBFAF6;
  --ink: #17181C;
  --mute: #555861;
  --line: #CBC9BC;

  --blue: #2F5BFF;
  --blue-d: #1B3BC2;
  --blue-soft: #E1E7FF;
  --live: #14A35A;
  --live-ink: #0A7439;
  --live-soft: #D3F1E0;
  --sun: #FFD23F;
  --sun-soft: #FFF1B8;
  --coral: #FF7A59;
  --coral-soft: #FFE1D8;

  --display: 'Bricolage Grotesque', 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --stroke: 2px solid var(--ink);
  --hard: 4px 4px 0 var(--ink);
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.08; }
.h1-pre { display: inline; }
.h1-big { display: inline-block; margin: .04em 0 .02em -.06em; padding-inline: .06em; max-width: 100%; font-size: 1.05em; line-height: 1.06; letter-spacing: -0.04em; color: var(--ink); background: linear-gradient(transparent 56%, var(--sun) 56% 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#rot.swap { display: inline-block; animation: swap .38s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(.25em); } }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 17ch; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  border: var(--stroke); border-radius: 10px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background-color .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-onblue { background: #fff; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-header[data-scrolled] { border-bottom-color: var(--ink); }
.bar { display: flex; align-items: center; gap: 16px; height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 22px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.nav { display: none; align-items: center; gap: 4px; margin-left: 18px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 16px; text-decoration: none; }
.nav a:hover { background: var(--paper-2); }
.nav a.nav-main { background: var(--sun); border: var(--stroke); font-weight: 700; padding: 5px 14px; margin-right: 4px; }
.nav a.nav-main:hover { background: #FFC81A; }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.stars:not(:empty)::before { content: "★ "; }
.stars { font-size: 14px; color: var(--mute); }
.bar-cta { margin-left: auto; min-height: 42px; padding: 0 16px; font-size: 15px; }
.menu-btn { min-height: 42px; padding: 0 14px; font-weight: 600; background: var(--card); border: var(--stroke); border-radius: 10px; }
.nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 10px var(--gutter) 16px; background: var(--paper); border-bottom: var(--stroke); }
.nav.open .nav-gh { margin-left: 0; }
.nav.open a { padding: 12px 10px; }
.nav.open a.nav-main { text-align: center; margin: 0 0 6px; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(64px, 9vw, 112px); border-top: var(--stroke); }
.band-card { background: var(--card); }
.band-coral { background: var(--coral-soft); }
.band-blue { background: var(--blue-soft); }
.band-sun { background: var(--sun-soft); }
.band-ink { background: var(--ink); color: #F4F3EC; }
.sec-head { margin-bottom: 48px; }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-lede { margin-top: 18px; max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--mute); }
.band-ink .sec-lede { color: #B9B8B0; }
.fine { font-size: 14px; color: var(--mute); }

/* Hand-drawn margin notes */
.note { font: 600 clamp(22px, 2.2vw, 28px)/1.1 var(--hand); color: var(--ink); transform: rotate(-3deg); }
.note-inline { display: inline-block; margin-top: 10px; }
.arrow { width: 64px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Status pieces ---------- */
.live { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--body); letter-spacing: .05em; color: var(--live-ink); background: var(--live-soft); border: 2px solid var(--ink); border-radius: 99px; padding: 4px 9px; white-space: nowrap; }
.live-lg { font-size: 16px; padding: 8px 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(20, 163, 90, .5); animation: ring 2.2s infinite; }
.live.is-wait { background: var(--sun-soft); color: var(--ink); }
.live.is-wait .dot { background: #E0A100; animation: none; }
.tag { display: inline-block; font: 600 12px/1 var(--body); padding: 5px 9px; border: 2px solid var(--ink); border-radius: 99px; background: var(--card); white-space: nowrap; }
.tag-ok { background: var(--live-soft); color: var(--live-ink); }
.tag-sun { background: var(--sun); }
.chip { display: inline-block; min-width: 7.6em; text-align: center; font: 600 13px/1 var(--body); padding: 6px 11px; border: 2px solid var(--ink); border-radius: 99px; white-space: nowrap; transition: background-color .2s; }
.chip.is-wait { background: var(--sun-soft); color: var(--ink); }
.chip.is-ok { background: var(--live-soft); color: var(--live-ink); }

/* ---------- Windows (tiny product frames) ---------- */
.win { background: var(--card); border: var(--stroke); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; color: var(--ink); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--paper-2); border-bottom: var(--stroke); }
.win-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); }
.win-bar i:first-child { background: var(--coral); }
.win-bar i:nth-child(2) { background: var(--sun); }
.win-bar i:nth-child(3) { background: var(--live); }
.url { flex: 1; min-width: 0; margin-left: 4px; padding: 3px 10px; font: 500 11px/1.3 var(--mono); background: var(--card); border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-strong { font-weight: 700; }
.win-body { padding: 14px; }
.win-title { font-size: 17px; }
.win-sub { font-size: 13px; color: var(--mute); }
.win-flat { box-shadow: var(--hard); }

.mini-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; font: 600 14px/1 var(--body); color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: 8px; }
.mini-btn:disabled { opacity: .45; cursor: not-allowed; }
.mini-btn.is-done { background: var(--live); }
.mini-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.mini-static { margin-top: 12px; background: var(--blue); }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.slot { min-height: 40px; font: 600 14px/1 var(--body); background: var(--card); border: 2px solid var(--ink); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
button.slot:not(:disabled):hover { background: var(--sun-soft); }
button.slot[aria-pressed="true"], .slot.on { background: var(--blue); color: #fff; }
.slot:disabled { background: var(--paper-2); color: var(--mute); text-decoration: line-through; cursor: not-allowed; }
.slots-static { grid-template-columns: repeat(3, 1fr); }

.ideas { display: grid; gap: 8px; margin-top: 12px; }
.ideas li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.vote { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; min-height: 44px; padding: 2px 8px; font: 700 13px/1.1 var(--body); background: var(--card); border: 2px solid var(--ink); border-radius: 8px; }
.vote span { font-size: 10px; }
.vote[aria-pressed="true"] { background: var(--sun); }

.who { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; font: 800 17px/1 var(--display); background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; }
.bills { margin-top: 12px; display: grid; gap: 8px; }
.bills li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 14px; font-weight: 500; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; min-height: 44px; }

.big { font: 800 46px/1 var(--display); letter-spacing: -0.04em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.bars i { flex: 1; height: var(--h); background: var(--blue); border: 2px solid var(--ink); border-radius: 3px; transition: height .5s; }

.api-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verb { font: 700 12px/1 var(--mono); padding: 5px 7px; background: var(--live-soft); color: var(--live-ink); border: 2px solid var(--ink); border-radius: 6px; }
.api-line code { font: 500 13px/1 var(--mono); }
.api-line .mini-btn { margin-left: auto; }
.resp { margin-top: 10px; padding: 10px; font: 500 12px/1.5 var(--mono); background: var(--ink); color: #E8E7DF; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.resp .ok { color: #6EE7A0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-copy { padding-top: clamp(0px, 3vw, 36px); }
.lede { margin: 24px 0 32px; max-width: 40ch; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; }
.hero-sub { margin-top: 20px; font-size: 15px; color: var(--mute); }
.stage-wrap { position: relative; }
.note-hero { display: none; }
.note-swipe { margin: 0 0 18px; }
.stage { display: flex; gap: 18px; overflow-x: auto; padding: 4px 4px 22px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
.stage::-webkit-scrollbar { display: none; }
.stage .win { flex: none; width: min(82vw, 320px); scroll-snap-align: center; }

/* ---------- 2. Needs ---------- */
.needs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.need { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; padding: 10px 10px 14px; text-align: left; background: var(--paper); border: var(--stroke); border-radius: 14px; box-shadow: var(--hard); transition: transform .12s, box-shadow .12s, background-color .12s; }
.need:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--sun-soft); }
.need:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.thumb { display: block; width: 100%; margin-bottom: 8px; }
.thumb svg { width: 100%; height: auto; }
.t-f { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.t-s { fill: none; stroke: var(--ink); stroke-width: 2; }
.t-i { fill: var(--ink); }
.t-b { fill: var(--blue); }
.t-g { fill: #D9D7CC; }
.t-y { fill: var(--sun); }
.need strong { font: 800 18px/1.15 var(--display); letter-spacing: -0.02em; }
.said { font-size: 15px; line-height: 1.35; color: var(--mute); }
.cp { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3. Problem ---------- */
.problem-grid { display: grid; gap: 20px; align-items: center; }
.pile-card, .path-card { padding: 24px; background: var(--card); border: var(--stroke); border-radius: 16px; box-shadow: var(--hard); }
.pile-card { background: var(--coral-soft); border-style: dashed; box-shadow: none; background: #FFF4EF; }
.pile { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.pile li { padding: 8px 14px; font: 600 16px/1.1 var(--body); background: var(--c); border: var(--stroke); border-radius: 9px; transform: rotate(var(--r)); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), background-color .3s, color .3s; }
.pile li.done { transform: rotate(0); background: var(--live-soft); color: var(--mute); text-decoration: line-through; text-decoration-thickness: 2px; }
.pile li.done::after { content: " ✓"; display: inline-block; text-decoration: none; color: var(--live-ink); font-weight: 800; }
.flow-arrow { display: none; width: 48px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.path { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.path .node { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 10px 18px; font: 800 20px/1 var(--display); letter-spacing: -0.02em; background: var(--paper); border: var(--stroke); border-radius: 12px; }
.path .node-fh { background: var(--ink); color: #fff; }
.path .node-live { background: var(--live-soft); gap: 12px; }
.tick { font: 800 26px/1 var(--display); color: var(--live-ink); }
.join { align-self: center; width: 0; height: 26px; border-left: 3px dashed var(--ink); }
.path-card .fine { margin-top: 18px; }

/* ---------- 4. Handles ---------- */
.handles { display: grid; gap: 0 44px; grid-template-columns: 1fr; }
.handles li { padding: 20px 0 30px; border-top: var(--stroke); }
.h-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.handles h3 { font-size: 21px; max-width: 14ch; }
.handles p { margin-top: 10px; color: var(--mute); max-width: 36ch; }

/* ---------- 5. How ---------- */
.flow { display: flex; flex-direction: column; align-items: stretch; }
.fnode { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 14px 18px; text-align: center; background: var(--card); border: var(--stroke); border-radius: 16px; box-shadow: var(--hard); }
.f-label { font: 800 19px/1.1 var(--display); letter-spacing: -0.02em; }
.f-art { display: grid; place-items: center; min-height: 54px; }
.f-art svg:not([width]) { width: 70px; height: 52px; }
.a-fill { fill: var(--sun-soft); stroke: var(--ink); stroke-width: 2.5; }
.a-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.a-solid { fill: var(--blue); stroke: var(--ink); stroke-width: 2; }
.f-sub { font-size: 14.5px; line-height: 1.4; color: var(--mute); }
.fnode-fh { background: var(--ink); color: #fff; }
.fnode-fh .f-sub { color: #C9C8C0; }
.fnode-live { background: var(--live-soft); }
.fjoin { align-self: center; width: 0; height: 30px; margin-block: 6px 10px; border-left: 3px dashed var(--ink); position: relative; }
.fjoin::after { content: ""; position: absolute; left: -8px; bottom: -4px; width: 11px; height: 11px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); }
.split { display: grid; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 2px dashed var(--ink); }
.split h3 { font-size: 22px; }
.split p { margin-top: 6px; color: var(--ink); max-width: 44ch; }

/* ---------- 5b. Agents ---------- */
.agents { display: grid; gap: 22px; }
.agent-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.agent-tabs button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 12px; font: 700 17px/1.1 var(--display); letter-spacing: -0.01em; background: var(--paper); border: var(--stroke); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background-color .12s; }
.agent-tabs button:hover { background: var(--sun-soft); }
.agent-tabs button[aria-selected="true"] { background: var(--sun); transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.glyph { font: 700 15px/1 var(--mono); }
.agent-panel { padding: 24px; color: #F4F3EC; background: var(--ink); border: var(--stroke); border-radius: 16px; box-shadow: 6px 6px 0 var(--blue); }
.agent-panel .steps { margin-top: 0; }
.ph { padding: 1px 5px; color: var(--ink); background: var(--sun); border-radius: 4px; }
.btn-line { color: #F4F3EC; background: transparent; border-color: #F4F3EC; box-shadow: none; }
.btn-line:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.agent-cmd { width: 100%; margin: 0; padding: 16px; font: 500 14px/1.6 var(--mono); color: #C5D0FF; background: #0D0E11; border: 2px solid #3A3C44; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-panel .btn-sun { box-shadow: 0 4px 0 #F4F3EC; }

/* ---------- 6. Journey ---------- */
.journey { display: grid; gap: 38px; }
.j-step { position: relative; }
.j-label { margin-bottom: 12px; font: 600 15px/1 var(--body); color: var(--mute); }
.j-step:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -26px; width: 12px; height: 12px; border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: translateX(-50%) rotate(135deg); }
.bubble { display: inline-block; max-width: 100%; padding: 18px 20px; background: var(--sun); border: var(--stroke); border-radius: 6px 14px 14px 14px; box-shadow: var(--hard); transform: rotate(-1.5deg); }
.bubble p { font: 600 clamp(24px, 2.4vw, 30px)/1.1 var(--hand); }
.check { display: grid; gap: 10px; }
.check li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; font: 600 17px/1 var(--body); background: var(--card); border: var(--stroke); border-radius: 10px; }
.check li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 26px; height: 26px; font-size: 14px; font-weight: 800; color: #fff; background: var(--live); border: 2px solid var(--ink); border-radius: 50%; }
.win-live { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 14px; }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: 50%; top: 42%; width: 9px; height: 9px; border-radius: 2px; background: var(--sun); opacity: 0; }
.burst i:nth-child(3n+2) { background: var(--blue); }
.burst i:nth-child(3n) { background: var(--coral); }
.burst i:nth-child(1) { --a: 0deg; } .burst i:nth-child(2) { --a: 45deg; } .burst i:nth-child(3) { --a: 90deg; } .burst i:nth-child(4) { --a: 135deg; }
.burst i:nth-child(5) { --a: 180deg; } .burst i:nth-child(6) { --a: 225deg; } .burst i:nth-child(7) { --a: 270deg; } .burst i:nth-child(8) { --a: 315deg; }

/* ---------- 7. Now ---------- */
.now { display: grid; gap: 44px; align-items: center; }
.mcp { margin-top: 22px; max-width: 50ch; font-size: 16px; }
.before-after { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ba-before { transform: rotate(-1.2deg); }
.ba-before .win-bar { background: var(--paper-2); }
.ba-before .win-body { opacity: .85; }
.ba-after { transform: rotate(1deg); }
.ba-mid { display: flex; align-items: center; justify-content: center; gap: 10px; }
.arrow-down { width: 30px; height: 30px; transform: rotate(90deg); }

/* ---------- 8. Developers ---------- */
.caps { display: grid; margin-top: 40px; border-bottom: 1px solid #3A3C44; }
.caps li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid #3A3C44; }
.caps strong { font: 600 17px/1.3 var(--display); }
.caps span { color: #B9B8B0; font-size: 15.5px; }
.dev-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; font-weight: 600; }
.dev-links a { padding: 6px 0; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: #5B5E68; }
.dev-links a:hover { text-decoration-color: var(--sun); }
.band-ink .stars { color: #B9B8B0; }
.steps { display: grid; gap: 24px; margin-top: 20px; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 14px; justify-items: start; padding-left: 44px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 30px; height: 30px; font: 800 15px/1 var(--display); color: var(--ink); background: var(--sun); border-radius: 50%; }
.steps p { color: #C9C8C0; }
.steps strong { color: #fff; }
.steps p code { font: 500 14px/1 var(--mono); color: #C5D0FF; }

/* ---------- 9. Compare ---------- */
.compare { display: grid; gap: 28px; }
.lane { padding: 24px; border: var(--stroke); border-radius: 16px; background: var(--card); }
.lane h3 { margin-bottom: 20px; font-size: 22px; }
.lane-fh { background: var(--blue-soft); box-shadow: var(--hard); }
.chain { display: flex; flex-direction: column; align-items: flex-start; }
.chain li { position: relative; padding: 9px 16px; font-weight: 500; font-size: 16px; background: var(--paper); border: var(--stroke); border-radius: 99px; }
.chain li:not(:last-child) { margin-bottom: 14px; }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 24px; top: 100%; width: 0; height: 14px; border-left: 3px dashed var(--ink); }
.chain .end { background: var(--sun-soft); font-weight: 700; }
.lane-fh .chain li { background: var(--card); }
.lane-fh .chain .fh { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font: 800 20px/1 var(--display); padding: 12px 22px; }
.lane-fh .chain .end { background: transparent; border: 0; padding: 0; }
.lane-fh .chain .end .live { font-size: 18px; padding: 10px 20px; }
.mini { display: block; font-size: 13px; font-weight: 400; color: var(--mute); }
.lane-fh .note { margin-top: 22px; }

/* ---------- 10. Control ---------- */
.says li { display: grid; gap: 10px; padding: 26px 0 30px; border-top: var(--stroke); }
.says li:last-child { border-bottom: var(--stroke); }
.s-ico { width: 56px; height: 56px; }
.says h3 { font: 800 clamp(1.6rem, 3.2vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.03em; max-width: 18ch; }
.says p { max-width: 42ch; color: var(--mute); font-size: 18px; align-self: center; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 22px; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 28px; background: var(--card); border: var(--stroke); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 26px; }
.price { font-size: 17px; color: var(--mute); }
.price b { font: 800 clamp(3rem, 6vw, 4rem)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.plan ul { display: grid; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--live-ink); }
.plan .btn { width: 100%; }

/* ---------- Final CTA ---------- */
.final { padding-block: clamp(72px, 10vw, 128px); background: var(--blue); color: #fff; border-top: var(--stroke); text-align: center; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.final h2 { max-width: 16ch; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.final .cta-row { justify-content: center; }
.final .btn { box-shadow: 0 4px 0 var(--ink); }
.final-dev { font-weight: 600; font-size: 16px; text-underline-offset: 5px; text-decoration-thickness: 2px; padding: 8px; }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 36px; border-top: var(--stroke); }
.foot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; font-size: 15px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 12px; max-width: 30ch; color: var(--mute); }
.foot-h { margin-bottom: 12px; font-weight: 600; }
.footer li + li { margin-top: 8px; }
.footer li a { color: var(--mute); text-decoration: none; display: inline-block; padding: 2px 0; }
.footer li a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; margin: 0; padding: 12px 20px; font-weight: 600; font-size: 15px; color: #fff; background: var(--ink); border-radius: 99px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion (only inside .play, so the resting page is always complete) ---------- */
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(20, 163, 90, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(20, 163, 90, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes tick { from { transform: scale(.5); background: var(--card); color: transparent; } 60% { transform: scale(1.25); } }
@keyframes confetti { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) rotate(200deg); } }

.play .fnode { animation: rise .5s calc(var(--i) * .38s) backwards; }
.play .path .node-live { animation: pop .55s 1.9s backwards; }
.play .j-step { animation: rise .5s calc(var(--i) * .45s) backwards; }
.play .check li::before { animation: tick .4s calc(1.5s + var(--k) * .4s) backwards; }
.play .j-live { animation-delay: 3.4s; }
.play .j-live .live-lg { animation: pop .5s 3.7s backwards; }
.play .burst i { animation: confetti .9s 3.7s both; }
.play .chain li { animation: rise .35s calc(var(--n, 0) * .1s) backwards; }

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

/* ---------- Breakpoints ---------- */
@media (max-width: 639px) {
  .bar { gap: 8px; }
  .brand { font-size: 19px; gap: 7px; }
  .bar-cta { padding: 0 12px; font-size: 14px; }
  .menu-btn { padding: 0 10px; font-size: 14px; }
}

@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .handles { grid-template-columns: repeat(2, 1fr); }
  .needs { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .agent-tabs { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (min-width: 820px) {
  .journey { grid-template-columns: repeat(4, 1fr); gap: 36px; align-items: start; }
  .j-step:not(:last-child)::after { left: auto; right: -26px; bottom: auto; top: 58%; transform: rotate(45deg); }
  .says li { grid-template-columns: 56px 1.1fr 1fr; gap: 40px; align-items: start; }
  .now { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .compare { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .caps { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
}

@media (min-width: 920px) {
  .nav { display: flex; flex: 1; }
  .menu-btn { display: none; }
  .bar-cta { margin-left: 28px; }
  .flow { flex-direction: row; align-items: stretch; }
  .fnode { flex: 1 1 0; min-width: 0; }
  .fjoin { flex: none; align-self: center; width: 34px; height: 0; margin: 0 10px 0 6px; border-left: 0; border-top: 3px dashed var(--ink); }
  .fjoin::after { left: auto; right: 0; bottom: auto; top: -8px; transform: rotate(-45deg); }
  .problem-grid { grid-template-columns: 1.15fr auto 1fr; gap: 24px; }
  .flow-arrow { display: block; }
  .handles { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .foot-brand { grid-column: auto; }
}

@media (min-width: 1100px) {
  .needs { grid-template-columns: repeat(5, 1fr); }
  .agent-tabs { grid-template-columns: repeat(6, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 56px; }
  .note-swipe { display: none; }
  .note-hero { display: flex; align-items: flex-end; gap: 6px; position: absolute; left: 0; bottom: 0; z-index: 5; }
  .note-hero .arrow { transform: scaleY(-1); }
  .stage { display: block; position: relative; height: 800px; margin: 0; padding: 0; overflow: visible; }
  .stage .win { position: absolute; left: var(--l); top: var(--t); width: var(--w); transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)); transition: box-shadow .15s; }
  .stage .win:hover { box-shadow: 8px 8px 0 var(--ink); }
  .stage .win-bar { cursor: grab; touch-action: none; user-select: none; }
  .stage .win.dragging { transition: none; box-shadow: 10px 10px 0 var(--ink); }
  .stage .win.dragging .win-bar { cursor: grabbing; }
}
