/* Joyride marketing shell + landing sections. Depends on tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; letter-spacing: -0.025em; margin: 0; line-height: 1.12; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wide { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--paper-3); color: var(--ink); }
.tag.blue { background: var(--blue); color: #fff; }
.lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); font-weight: 400; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: 0.005em; transition: background-color .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[hidden] { display: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-white .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #fff; }

/* Floating nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; display: flex; justify-content: space-between; align-items: flex-start; padding: 14px; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav-pill { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 10px; padding: 0 10px 0 16px; height: 56px; box-shadow: 0 1px 0 rgba(10,23,64,.06), 0 8px 24px rgba(10,23,64,.06); }
.nav-logo { display: flex; align-items: center; gap: 8px; padding-right: 14px; color: var(--ink); font-weight: 600; letter-spacing: -0.03em; font-size: 18px; }
.nav-logo img { height: 22px; width: auto; }
.nav-tabs { display: flex; align-items: center; }
.nav-tabs a { padding: 18px 12px; font-size: 14px; color: var(--ink); letter-spacing: -0.01em; border-radius: 6px; }
.nav-tabs a:hover { color: var(--blue); }
.nav-tabs a.active { color: var(--blue); }
.nav-tabs .nav-signin { display: none; color: var(--ink-3); margin-left: 6px; }
.nav-tabs .nav-signin:hover { color: var(--ink); }
.nav-menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font-size: 20px; }
.nav-actions { display: flex; gap: 8px; }
.nav-actions .btn { height: 56px; padding-inline: 18px; }
@media (max-width: 900px) {
  .nav-tabs { display: none; }
  .nav-pill.open .nav-signin { display: block; }
  .nav-pill.open .nav-tabs { display: flex; flex-direction: column; position: absolute; top: 64px; left: 14px; right: 14px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 8px 24px rgba(10,23,64,.1); }
  .nav-menu { display: inline-flex; align-items: center; justify-content: center; }
  .nav-actions .btn-blue { display: none; }
  .nav { padding: 10px; }
  .nav-pill { height: 48px; padding: 0 6px 0 12px; }
  .nav-actions .btn { height: 48px; padding-inline: 14px; }
  .hero { padding-top: 96px; }
  .hero h1 { max-width: none; }
}

/* Contact panel (slides in from the right like Sable's) */
.contact { position: fixed; top: 14px; right: 14px; z-index: 1100; width: min(360px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 20px 60px rgba(10,23,64,.18); transform: translateX(120%); opacity: 0; transition: transform .6s var(--ease), opacity .2s; }
.contact.open { transform: none; opacity: 1; }
.contact[hidden] { display: block; }
.contact-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; color: var(--ink); }
.contact-close { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--ink-2); padding: 4px 8px; }
.contact-form { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.contact-form h3, .contact-done h3 { font-size: 16px; font-weight: 600; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink); }
.contact-form input, .contact-form select { font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); }
.contact-form .btn { justify-self: end; }
.contact-done { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.contact-done a { color: var(--blue); }

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

/* Sections */
section { padding: 88px 0; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { font-size: 17px; color: var(--ink-2); max-width: 60ch; }

/* Hero: copy left, live session-outcomes panel right */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 92px 0 36px; box-sizing: border-box; }
.hero-wrap { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; width: min(100% - 2 * clamp(24px, 5vw, 72px), 1320px); }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero-cta .btn { padding: 13px 17px; font-size: 14.5px; }
.hero h1 { font-size: clamp(40px, 4.5vw, 66px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; max-width: 13ch; }
.hero-copy p { font-size: 20px; max-width: 28ch; color: var(--ink-2); line-height: 1.35; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.hero-proof b { color: var(--ink); font-weight: 500; }
.hero-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 14px; box-shadow: 0 1px 0 rgba(10,23,64,.04), 0 24px 60px -30px rgba(10,23,64,.18); }
.hero-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hero-panel-head h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hero-panel-head .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.hero-panel-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 0 rgba(63,191,127,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,191,127,.5);} 70% { box-shadow: 0 0 0 8px rgba(63,191,127,0);} 100% { box-shadow: 0 0 0 0 rgba(63,191,127,0);} }
.sankey { margin-top: 12px; }
.sankey svg { width: 100%; height: auto; aspect-ratio: 700 / 400; margin-top: 8px; overflow: visible; display: block; }
.sankey .lbl { font-family: var(--font-sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.sankey .sub { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-3); }
.sankey .ribbon { transition: opacity .3s; }
.sankey .particle { pointer-events: none; }
.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hero-tiles .tile { padding: 12px 14px; }
.hero-tiles .value { font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hero-tiles .delta { font-size: 10.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles { display: grid; gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--paper-2); }
.tile .eyebrow { font-size: 11px; }
.tile .value { font-size: 30px; color: var(--ink); font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .delta { font-family: var(--font-mono); font-size: 11px; margin-top: 4px; color: var(--ink-3); }
.tile .delta.up { color: #177d48; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-2); text-transform: uppercase; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
@media (max-width: 1000px) { .hero { min-height: 0; } .hero-wrap { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: none; } .hero-copy { min-width: 0; } }
@media (max-width: 600px) { .hero-tiles { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .hero-tiles .delta { white-space: normal; } }


/* Hero story scene: observe → attribute → context → best run */
.story { padding: 16px 18px 18px; overflow: hidden; }
.story-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.story-steps span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 6px 9px; border-radius: 6px; border: 1px solid transparent; transition: color .5s, background-color .5s, border-color .5s; }
.story-steps span b { font-weight: 500; margin-right: 4px; color: inherit; }
.story.s1 [data-step="1"], .story.s2 [data-step="2"], .story.s3 [data-step="3"], .story.s4 [data-step="4"] { color: var(--blue); background: var(--blue-soft); }
.story.s2 [data-step="1"], .story.s3 [data-step="1"], .story.s3 [data-step="2"], .story.s4 [data-step="1"], .story.s4 [data-step="2"], .story.s4 [data-step="3"] { color: var(--ink); background: transparent; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; margin-top: 12px; }
.editor { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; display: flex; flex-direction: column; }
.editor-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.editor-head .who { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.editor-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.editor-lines { padding: 10px 12px 8px 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.line { display: grid; grid-template-columns: 5px 34px 1fr; align-items: center; height: 17px; position: relative; }
.line .g { height: 100%; background: var(--gc); opacity: 0; transition: opacity .6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.line .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-align: right; padding-right: 10px; opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i) * 220ms); }
.line .bar { height: 10px; width: 0; border-radius: 5px; background: var(--paper-3); transition: width .7s var(--ease), background-color .6s; transition-delay: calc(var(--i) * 220ms); }
.line .cursor { position: absolute; left: 40px; width: 2px; height: 14px; background: var(--blue); opacity: 0; animation: blink 1s steps(2) infinite; }
.story.s1 .line .n, .story.s1 .line .cursor { opacity: 1; }
.story.s1 .line .bar { width: var(--w); }
.story.s2 .line .g { opacity: 1; }
.story.s2 .line .bar { background: color-mix(in srgb, var(--gc) 55%, #fff); transition-delay: calc(var(--i) * 90ms); }
.story.s2 .line .cursor, .story.s3 .line .cursor, .story.s4 .line .cursor { opacity: 0; animation: none; }
.story.s3 .line.sel::after { content: ""; position: absolute; inset: -4px -6px -4px 0; border-radius: 6px; background: var(--blue-soft); z-index: -1; }
.story.s3 .line.sel .bar, .story.s4 .line.sel .bar { background: var(--blue); }
.line.sel::after { opacity: 0; transition: opacity .5s; }
.story.s3 .line.sel::after, .story.s4 .line.sel::after { opacity: 1; }
.story.s4 .line.sel::after { background: var(--blue-soft); }
.editor-legend { display: flex; gap: 14px; padding: 8px 12px 10px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity .6s; }
.editor-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.story.s2 .editor-legend, .story.s3 .editor-legend, .story.s4 .editor-legend { opacity: 1; }
@keyframes blink { to { opacity: 0; } }
.story-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.scard { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 11px 13px; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .5s; }
.scard .eyebrow { font-size: 10.5px; }
.scard .value { font-size: 28px; color: var(--ink); font-weight: 500; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.scard .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.scard .q { font-size: 13px; color: var(--ink); margin-top: 6px; line-height: 1.4; }
.scard .a { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
.scard .a b { color: var(--ink); font-weight: 500; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.story.s2 .scard.cost, .story.s3 .scard.cost, .story.s4 .scard.cost { opacity: 1; transform: none; }
.story.s3 .scard.ctx, .story.s4 .scard.ctx { opacity: 1; transform: none; border-color: var(--blue); }
.story.s4 .scard.ctx { border-color: var(--line); }
.story.s4 .scard.wf { opacity: 1; transform: none; }
.fbar { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--ink); }
.fbar i { display: block; height: 12px; border-radius: 6px; background: var(--c); width: 0; transition: width 1.1s var(--ease); }
.fbar em { font-family: var(--font-mono); font-style: normal; font-size: 11px; color: var(--ink-2); text-align: right; }
.story.s4 .fbar i { width: var(--w); }
.story.s4 .fbar.win span { color: var(--blue); font-weight: 500; }
.promote { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); opacity: 0; transition: opacity .6s .9s; }
.promote i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(36,85,214,.4); animation: pulse 2.4s infinite; }
.story.s4 .promote { opacity: 1; }
@media (max-width: 1000px) { .story-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .line .bar, .line .g, .line .n, .scard, .fbar i, .promote, .editor-legend { transition: none !important; } }

/* Meet Joyride: accordion + pane */
.meet { background: var(--paper); }
.meet-wrap { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 560px); gap: 56px; align-items: stretch; justify-content: center; }
.meet-wrap .lead { margin-top: 16px; }
.acc { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 22px 0; background: none; border: 0; text-align: left; }
.acc-head .tag { transition: background-color .3s, color .3s; }
.acc-head .plus { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; background: var(--paper-3); color: var(--ink); font-size: 16px; line-height: 1; transition: background-color .3s, color .3s, transform .3s; }
.acc-item.active .tag, .acc-item.active .plus { background: var(--blue); color: #fff; }
.acc-item.active .plus { transform: none; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-item.active .acc-body { max-height: 220px; }
.acc-body p { padding: 0 0 22px; max-width: 46ch; font-size: 17px; color: var(--ink-2); }
.acc-body .more { display: inline-block; margin: -10px 0 22px; font-family: var(--font-mono); font-size: 12px; color: var(--blue); }
.pane { position: relative; width: 100%; min-height: 520px; justify-self: start; align-self: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pane-item { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; opacity: 0; transform: scale(.985); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pane-item.active { opacity: 1; transform: none; }
@media (max-width: 900px) { .meet-wrap { grid-template-columns: 1fr; } .pane { margin: 20px 0 0; height: 520px; width: 100%; } }

/* Mini figures used inside panes and functional sections */
.fig-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.hbars { display: grid; gap: 10px; margin-top: 18px; }
.pane-item .hbars { flex: 1; align-content: space-evenly; margin-top: 8px; }
.pane-item > .fig-title + .hbars + .fig-title { margin-top: 26px; }
.pane-item .prompt-card { flex: 1; display: flex; flex-direction: column; }
.pane-item .prompt-card .ask { margin-top: auto; padding-top: 12px; }
.pane-item .flow { margin-top: auto; }
.pane-item .muted { margin-top: 18px; font-size: 12px; }
.pane-item .code { margin-top: 12px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 12px; font-size: 13px; color: var(--ink); }
.hbar .track { height: 26px; border-radius: 5px; background: var(--paper-3); overflow: hidden; }
.hbar .track i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 5px; transition: width 1.2s var(--ease); }
.hbar .mono { font-size: 12px; }
.hbar .val { font-family: var(--font-mono); font-size: 12px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code .row { display: grid; grid-template-columns: 6px 36px 1fr; align-items: stretch; }
.code .row:hover { background: var(--paper); }
.code .g { background: var(--gc, transparent); }
.code .n { color: var(--ink-3); text-align: right; padding-right: 10px; user-select: none; }
.code .t { white-space: pre; color: var(--ink); padding-right: 12px; }
.code .row.sel { background: var(--blue-soft); }
.prompt-card { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 12px 14px; font-size: 13px; }
.prompt-card p + .who { margin-top: 10px; }
.prompt-card .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.prompt-card p { margin-top: 6px; color: var(--ink); }
.prompt-card .ask { margin-top: 10px; display: flex; gap: 8px; }
.prompt-card .ask input { flex: 1; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; }
.prompt-card .ask button { font-size: 13px; padding: 8px 12px; }
.tree { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--ink); }
.tree .m { color: var(--ink-3); }
.tree .tree-foot { margin-top: 10px; }
.tree .k { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--c); color: var(--ink); font-size: 11px; margin-left: 6px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.flow .node { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--paper-2); font-size: 13px; }
.flow .node b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.flow .node .mono { font-size: 11px; color: var(--ink-3); display: block; margin-top: 4px; }
.ring { width: 96px; height: 96px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--paper-3); }
.ring .fg { stroke: var(--blue); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 1.4s var(--ease); }

/* Steps carousel (How to get started) */
.steps { background: var(--paper-2); overflow: hidden; }
.steps-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.steps-nav .tag { cursor: pointer; }
.steps-nav .tag.on { background: var(--blue); color: #fff; }
.steps h2 { text-align: center; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 40px; }
.track { position: relative; height: 372px; --cw: min(696px, 72vw); }
.stage { position: absolute; top: 0; left: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2); min-height: 340px; display: flex; gap: 32px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transform: translateX(var(--x, 0px)) scale(var(--s, 1)); opacity: var(--o, 1); z-index: var(--z, 1); transition: transform .9s var(--ease), opacity .9s var(--ease), border-color .2s; }
.stage.is-active { cursor: default; border-color: var(--line-strong); box-shadow: 0 20px 50px -30px rgba(10,23,64,.25); }
.stage:not(.is-active):hover { opacity: .75; }
.stage .col { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; max-width: 232px; }
.stage .num { font-family: var(--font-mono); color: var(--ink-3); }
.stage p { font-size: 15px; color: var(--ink-2); }
.stage .tag + p { margin-top: 14px; }
.stage .art { flex: 1; min-width: 0; margin: -32px -32px -32px 0; border-radius: 0 12px 12px 0; background: #fff; border-left: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.footer-demo { font-size: 13px; line-height: 1.55; color: var(--ink); }
.footer-demo-head { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.footer-demo-link { margin-top: 8px; color: var(--blue); font-size: 12px; }
.steps-arrows { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.steps-arrows button { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 16px; }
.steps-arrows button:hover { background: var(--ink); color: #fff; }
@media (max-width: 760px) { .track { --cw: 88vw; height: 560px; } .stage { flex-direction: column-reverse; } .stage .art { margin: -32px -32px 0; border-radius: 12px 12px 0 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Figures grid (what a report shows) */
.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; min-height: 340px; display: flex; flex-direction: column; gap: 14px; }
.figure h3 { font-size: 18px; font-weight: 500; }
.figure p.cap { font-size: 13.5px; color: var(--ink-2); max-width: 52ch; }
.figure .body { flex: 1; display: flex; flex-direction: column; }
.figure .mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.figure .foot { margin-top: auto; padding-top: 14px; }
.mid-ring { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.mid-ring .eyebrow { margin-top: 8px; }
.mid-ring .hbars { margin: 0; }
.figure .body .foot { margin-top: auto; }
.figure .body > .tree { margin-bottom: 0; }
.figure.cost .stack { height: 16px; margin: 12px 0 12px; }
.figure .mid > .stack, .figure .mid > table { flex: none; }
.figure.cost table.srcs { font-size: 14px; }
.figure.cost table.srcs td { padding: 12px 10px; }
.figure.cost table.srcs th { padding: 8px 10px 10px; }
.figure.cost .big { font-size: 40px; color: var(--ink); letter-spacing: -.03em; font-weight: 500; display: flex; align-items: baseline; gap: 10px; }
@media (max-width: 900px) { .figs { grid-template-columns: 1fr; } }
table.srcs { width: 100%; border-collapse: collapse; font-size: 13px; }
table.srcs th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); font-weight: 500; }
table.srcs td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
table.srcs td.num, table.srcs th.num { text-align: right; }
table.srcs .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; background: var(--c); }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 10px 0 8px; }
.stack i { display: block; height: 100%; width: 0; background: var(--c); transition: width 1.2s var(--ease); }

/* Compare */
.compare { background: var(--paper-2); }
.cmp-wrap { overflow: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cmp th, table.cmp td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.cmp th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
table.cmp th.jr { color: var(--blue); }
table.cmp td { color: var(--ink); }
table.cmp td.jr { background: var(--blue-soft); font-weight: 500; }
table.cmp .no { color: var(--ink-3); }
table.cmp .part { color: #b56a14; }

/* Arena CTA (full-bleed image) */
.arena { position: relative; padding: 0; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.arena img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.arena::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,23,64,.62) 0%, rgba(10,23,64,.28) 45%, rgba(10,23,64,0) 75%); }
.arena .container { position: relative; z-index: 1; padding: 120px 0; }
.arena h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); max-width: 16ch; }
.arena h2 span { color: rgba(255,255,255,.55); display: block; }
.arena .btn { margin-top: 28px; }

/* Footer */
.footer { padding: 0; }
.gradient-panel { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 15%, #2f8ff7 0%, rgba(47,143,247,0) 55%), radial-gradient(80% 70% at 20% 90%, #1d3fbf 0%, rgba(29,63,191,0) 60%), linear-gradient(110deg, #081a55 0%, #0d2b8f 40%, #1550d8 70%, #2e9bf5 100%); color: #fff; padding: 56px var(--gutter) 0; }
.gradient-panel::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); pointer-events: none; }
.footer-links { position: relative; display: flex; justify-content: flex-end; gap: clamp(20px, 5vw, 72px); font-size: 14px; font-weight: 600; letter-spacing: -0.02em; width: min(100%, 1440px); margin-inline: auto; }
.footer-links a:hover { text-decoration: underline; }
.footer-wordmark { position: relative; display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 28px); width: min(100%, 1440px); margin: clamp(80px, 12vw, 180px) auto 0; font-size: clamp(96px, 20vw, 300px); font-weight: 600; letter-spacing: -0.05em; line-height: .92; color: #fff; overflow: visible; height: auto; padding-bottom: .02em; }
.footer-wordmark .footer-mark { width: .72em; height: .72em; margin-bottom: .04em; }
.footer-wordmark span { white-space: nowrap; }
.footer-meta { position: relative; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); padding: 14px 0 16px; width: min(100%, 1440px); margin-inline: auto; }

/* Generic page (docs/blog/teams headers) */
.page-head { padding: 140px 0 36px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
