/* Draftwell (wedge #35) · Rankglory's shell and theme as on #27 (Firstline hero, glass steps, nav, rail, FAQ and dialog;
 * Stayput statement, live-view window, pass and footer), plus the stat board and detailed comparison table (from #30, via #32)
 * and the Upstep report board (via #34). Night-garden video and orange accent are Rankglory's own. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font-family: var(--font); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--color-sky); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--space-4); top: var(--space-4); z-index: 30; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--color-pill); color: var(--color-pill-ink); transform: translateY(-300%); }
.skip:focus { transform: none; }

/* ---------- layout ---------- */
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-10) 0; }
.section--edge { border-top: 1px solid var(--color-line); }
.h2 { font-size: var(--text-h2); font-weight: var(--weight-medium); line-height: 1.08; letter-spacing: var(--track-heading); max-width: 22ch; text-wrap: balance; }
.muted { color: var(--color-ink-3); }
.lede { font-size: var(--text-lg); color: var(--color-ink-2); max-width: var(--measure); text-wrap: pretty; }
.note { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--color-ink-3); }
.head { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }

/* ---------- pill buttons (template: white pill, black text, hover scale) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-pill); background: var(--color-pill); color: var(--color-pill-ink); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.pill:hover { transform: scale(1.04); }
.pill:active { transform: scale(0.99); }
.pill--sm { min-height: 40px; padding: 0 var(--space-5); }
.pill--lg { min-height: 52px; padding: 0 var(--space-7); font-size: var(--text-md); }
.pill--block { width: 100%; }
.pill--block:hover { transform: none; background: oklch(92% 0 0); }
.pill--ink { background: var(--color-pill); color: var(--color-pill-ink); }
.pill[aria-busy="true"] { cursor: progress; opacity: 0.7; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-solid { background: oklch(0% 0 0 / 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--color-line); }
.nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); max-width: var(--max); margin: 0 auto; padding: var(--space-4) var(--space-5); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--color-ink); font-size: 1.125rem; font-weight: var(--weight-semibold); letter-spacing: var(--track-heading); text-decoration: none; }
.brand__mark { width: 24px; height: 24px; }
.nav__links { display: none; position: absolute; left: 50%; transform: translateX(-50%); gap: var(--space-7); }
.nav__links a { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; font-size: var(--text-sm); color: var(--color-ink); text-decoration: none; opacity: 0.85; transition: opacity var(--dur-fast) var(--ease-out); }
.nav__links a:hover { opacity: 1; }
.nav__links svg { width: 14px; height: 14px; }

/* ---------- hero (template) ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100svh; overflow: hidden; background: var(--color-bg); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; transform: scale(1.5); transform-origin: left top; }
.hero__body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--space-12) - var(--space-4)) var(--space-5) var(--space-9); text-align: center; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-4); border: 1px solid oklch(100% 0 0 / 0.2); border-radius: var(--radius-pill); background: oklch(100% 0 0 / 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: var(--text-sm); color: var(--color-ink); }
.hero__title { max-width: 12em; margin-top: var(--space-6); font-size: var(--text-hero); font-weight: var(--weight-medium); line-height: 1; letter-spacing: var(--track-display); text-wrap: balance; }
.hero__sub { max-width: 38rem; margin: var(--space-6) 0 var(--space-8); font-size: var(--text-lg); color: oklch(100% 0 0 / 0.82); text-wrap: pretty; text-shadow: 0 1px 18px oklch(0% 0 0 / 0.85), 0 0 2px oklch(0% 0 0 / 0.6); }
.hero__steps { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--space-5) var(--space-6); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid oklch(100% 0 0 / 0.16); border-radius: var(--radius-card); background: var(--color-glass-dark); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.steps li { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-5) var(--space-6); border-top: 1px solid var(--color-line); }
.steps li:first-child { border-top: 0; }
.steps__n { font-size: var(--text-xs); font-weight: var(--weight-medium); letter-spacing: var(--track-label); color: var(--color-ink-3); }
.steps__t { font-size: var(--text-md); font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.steps p { font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-2); }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--dur-rise) var(--ease-out) both; }
.rise--1 { animation-delay: 120ms; }
.rise--2 { animation-delay: 240ms; }
.rise--3 { animation-delay: 380ms; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- the agent · auto-filling rail ---------- */
.wx { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.wx__tabs { position: relative; display: grid; align-content: start; align-self: center; }
.wx__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--color-line); overflow: hidden; }
.wx__rail i { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--color-sky), var(--color-signal), var(--color-amber)); transform: scaleY(0); transform-origin: top; will-change: transform; }
.wt { position: relative; display: grid; gap: 2px; width: 100%; padding: var(--space-4) 0 var(--space-4) var(--space-6); border: 0; background: none; text-align: left; color: var(--color-ink-3); cursor: pointer; transition: color var(--dur-med) var(--ease-out); }
.wt:hover { color: var(--color-ink-2); }
.wt[aria-selected="true"] { color: var(--color-ink); }
.wt__name { font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: -0.02em; }
.wt__desc { margin-top: 2px; font-size: var(--text-sm); color: var(--color-ink-2); opacity: 0.7; transition: opacity var(--dur-med) var(--ease-out); }
.wt[aria-selected="true"] .wt__desc { opacity: 1; }
.wx__stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 380px; padding: var(--space-8) var(--space-5); border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-bg-2); }
.wx__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: 0.85; }
.wx__panes { position: relative; display: grid; width: 100%; max-width: 440px; }
.wp { grid-area: 1 / 1; opacity: 0; transition: opacity 600ms var(--ease-out); pointer-events: none; }
.wp.is-active { opacity: 1; pointer-events: auto; }
.wx__tag { position: absolute; left: var(--space-4); bottom: var(--space-4); padding: 2px var(--space-3); border: 1px solid var(--color-line-2); border-radius: var(--radius-pill); background: oklch(0% 0 0 / 0.5); font-size: var(--text-xs); color: var(--color-ink-2); }

.card { display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--color-line-2); border-radius: var(--radius-card); background: oklch(10% 0.004 270 / 0.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 40px 80px -40px var(--color-shadow); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.card__meta { font-size: var(--text-xs); color: var(--color-ink-3); }
.card__title { font-size: var(--text-h3); font-weight: var(--weight-medium); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.card__sub { font-size: var(--text-sm); color: var(--color-ink-2); }
.card__quote { font-size: var(--text-h3); line-height: 1.3; letter-spacing: -0.02em; }
.card__facts { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.card__facts dt { font-size: var(--text-xs); color: var(--color-ink-3); }
.card__facts dd { font-size: var(--text-sm); color: var(--color-ink-2); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-medium); }
.badge--signal { background: var(--color-signal-bg); color: var(--color-signal); }
.badge--person { background: var(--color-sky-bg); color: var(--color-sky); }
.badge--draft { background: var(--color-amber-bg); color: var(--color-amber); }
.badge--sent { background: var(--color-sky-bg); color: var(--color-sky); }
.badge--booked { background: var(--color-ok-bg); color: var(--color-ok); }
.person { display: flex; align-items: center; gap: var(--space-4); }
.person__av { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--color-sky), var(--color-signal)); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-pill-ink); }
.mail__subj { font-weight: var(--weight-medium); }
.mail__body { font-size: var(--text-sm); line-height: 1.65; color: var(--color-ink-2); }
.mail__body mark { padding: 1px 2px; border-radius: 4px; background: var(--color-mark); color: var(--color-ink); }
.seq { display: grid; gap: var(--space-3); }
.seq li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-ink-3); }
.seq li span { flex: none; width: 10px; height: 10px; border: 1.5px solid var(--color-ink-3); border-radius: var(--radius-pill); }
.seq li.is-done { color: var(--color-ink); }
.seq li.is-done span { border-color: var(--color-sky); background: var(--color-sky); }
.slot { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-glass); }
.slot__day { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--color-ok-bg); color: var(--color-ok); font-size: var(--text-sm); font-weight: var(--weight-semibold); }


/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.accordion { display: grid; gap: var(--space-3); }
.acc { border: 1px solid var(--color-line); border-radius: var(--radius-md); background: var(--color-glass); }
.acc h3 { font-size: inherit; font-weight: inherit; }
.acc button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 60px; padding: var(--space-4) var(--space-5); border: 0; border-radius: var(--radius-md); background: none; font-weight: var(--weight-medium); text-align: left; color: var(--color-ink); cursor: pointer; }
.acc__icon { flex: none; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-med) var(--ease-out); }
.acc.is-open .acc__icon { transform: translateY(2px) rotate(-135deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; opacity: 1; }
.acc__inner { min-height: 0; overflow: hidden; }
.acc__panel p { padding: 0 var(--space-5) var(--space-5); color: var(--color-ink-2); }


/* ---------- dialog ---------- */
.waitlist { width: min(28rem, calc(100vw - var(--space-7))); max-width: none; padding: 0; border: 1px solid var(--color-line-2); border-radius: var(--radius-card); background: var(--color-card); color: var(--color-ink); box-shadow: 0 30px 80px -20px var(--color-shadow); }
.waitlist::backdrop { background: var(--color-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.waitlist[open] { animation: rise var(--dur-med) var(--ease-out); }
.waitlist__form { position: relative; padding: var(--space-8) var(--space-6) var(--space-6); }
.waitlist__close { position: absolute; top: var(--space-3); right: var(--space-3); width: 40px; height: 40px; border: 0; border-radius: var(--radius-pill); background: var(--color-glass-2); font-size: var(--text-h3); line-height: 1; color: var(--color-ink); cursor: pointer; }
.waitlist__close:hover { background: var(--color-line-2); }
.waitlist__title { padding-right: var(--space-8); font-size: 1.75rem; font-weight: var(--weight-medium); letter-spacing: var(--track-heading); line-height: 1.15; }
.waitlist__desc { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-ink-2); }
.field { display: grid; gap: var(--space-2); margin-top: var(--space-6); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.field input { min-height: 50px; width: 100%; padding: var(--space-3) var(--space-5); border: 1px solid var(--color-line-2); border-radius: var(--radius-pill); background: var(--color-glass); font: inherit; font-size: var(--text-md); font-weight: var(--weight-regular); color: var(--color-ink); }
.field input::placeholder { color: var(--color-ink-3); }
.field input:focus { border-color: var(--color-ink-2); }
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist__error { min-height: 2.4em; padding: var(--space-2) var(--space-2) 0; font-size: var(--text-sm); color: var(--color-error); }
.waitlist__fine { margin-top: var(--space-3); text-align: center; font-size: var(--text-sm); color: var(--color-ink-3); }
[data-step="done"] .waitlist__title::before { content: ""; display: block; width: 12px; height: 12px; margin-bottom: var(--space-4); border-radius: var(--radius-pill); background: var(--color-ok); box-shadow: 0 0 0 6px var(--color-ok-bg); }
[data-step="done"] .pill { margin-top: var(--space-7); }


/* ---------- helpers (Stayput) ---------- */
.ic { display: inline-block; flex: none; width: 18px; height: 18px; stroke-width: 1.75; vertical-align: -3px; }
.ic--sm { width: 15px; height: 15px; vertical-align: -2px; }
.kicker { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--muted); }
.center-head { display: grid; justify-items: center; gap: var(--s4); max-width: 44rem; margin: 0 auto var(--s8); text-align: center; }
.center-head .lede { margin: 0 auto; }

/* ---------- 1 · statement with scroll-lit words ---------- */
.sec--say { padding-top: var(--s9); }
.sec--say .shell { display: flex; flex-direction: column; align-items: center; text-align: center; }
.say p { text-wrap: balance; }
.say { display: grid; gap: var(--s3); max-width: 860px; margin: var(--s6) auto 0; font-size: clamp(1.375rem, 0.95rem + 1.7vw, 2.25rem); font-weight: var(--weight-medium); line-height: 1.32; letter-spacing: -0.03em; }
.say p { text-wrap: pretty; }
.say .w { display: inline; transition: opacity 0.12s linear; }
.say .w.chip { display: inline-flex; }
.js .say .w { opacity: 0.16; }
.chip { display: inline-flex; align-items: center; gap: 0.32em; margin: 0 0.06em; padding: 0.06em 0.45em 0.08em 0.38em; border-radius: 0.32em; font-size: 0.86em; line-height: 1.25; vertical-align: 0.04em; white-space: nowrap; }
.chip .ic { width: 0.78em; height: 0.78em; stroke-width: 2.25; vertical-align: 0; }
.chip--blue { background: rgba(255, 154, 77, 0.16); color: #ffd2ad; }
.chip--grad { background: var(--grad); color: #1c0e04; }
.chip--red { background: rgba(240, 106, 90, 0.18); color: #f4a196; }
.say__more { display: inline-flex; align-items: center; gap: var(--s2); margin-top: var(--s8); font-size: var(--text-md); color: var(--muted); text-decoration: underline; text-decoration-color: var(--stroke-2); text-underline-offset: 6px; transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease); }
.say__more:hover { color: var(--text); text-decoration-color: var(--blue); }

/* ---------- 2 · live view: browser window + numbered steps ---------- */
.demo { max-width: 960px; margin: 0 auto; }
.win { overflow: hidden; border: 1px solid #2a2a2a; border-radius: var(--r-card); background: var(--bg); box-shadow: 0 60px 120px -60px #000; }
.win__tabs { display: flex; align-items: flex-end; gap: var(--s4); padding: var(--s2) var(--s4) 0; background: #0f0f0f; }
.win__dots { display: none; gap: 6px; padding-bottom: 12px; }
.win__dots i { width: 10px; height: 10px; border-radius: var(--r-pill); background: #2c2c2c; }
.win__tab { display: inline-flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 240px; padding: 8px var(--s4); border-radius: 10px 10px 0 0; background: #161616; font-size: var(--text-xs); color: var(--text-2); }
.win__tab > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__fav { display: grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--grad); font-size: 9px; font-weight: var(--weight-semibold); color: #1c0e04; }
.win__bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); border-bottom: 1px solid var(--stroke); background: #161616; }
.win__nav { display: none; gap: var(--s2); color: #5c5c5c; }
.win__nav .ic { width: 15px; height: 15px; }
.win__url { display: flex; flex: 1; align-items: center; gap: var(--s2); min-width: 0; padding: 6px var(--s3); border-radius: var(--r-pill); background: #0d0d0d; font-size: var(--text-xs); color: var(--muted); }
.win__url .ic { width: 13px; height: 13px; }
.win__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__live { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 3px 10px; border: 1px solid rgba(255, 154, 77, 0.3); border-radius: var(--r-pill); font-size: var(--text-xs); color: var(--blue); }
.win__live .ic { width: 13px; height: 13px; }
.win__body { display: grid; min-height: 360px; background: radial-gradient(80% 70% at 50% 0%, rgba(255, 122, 61, 0.1), transparent 70%), var(--bg); }
.dpane { grid-area: 1 / 1; display: grid; place-items: center; padding: var(--s8) var(--s5); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.dpane.is-active { opacity: 1; pointer-events: auto; }
.form { display: grid; gap: var(--s3); width: 100%; max-width: 320px; }
.form__title { margin-bottom: var(--s1); font-size: var(--text-h3); font-weight: var(--weight-medium); letter-spacing: -0.02em; }
.form__field { display: grid; gap: var(--s1); font-size: var(--text-xs); color: var(--muted); }
.form__input { padding: 10px var(--s3); border: 1px solid var(--stroke-2); border-radius: var(--r-sm); background: var(--surface); font-size: var(--text-sm); color: var(--text); }
.form__input--dots { letter-spacing: 0.15em; }
.form__btn { margin-top: var(--s1); padding: 10px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-size: var(--text-sm); font-weight: var(--weight-medium); text-align: center; }
.form__hint { font-size: var(--text-xs); color: var(--muted); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.otp span { display: grid; place-items: center; aspect-ratio: 1 / 1.15; border: 1px solid var(--stroke-2); border-radius: var(--r-sm); background: var(--surface); font-size: 1.125rem; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.otp .is-caret { border-color: var(--blue); }
.otp .is-caret::after { content: ""; width: 1.5px; height: 1.1em; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dpane--app { place-items: stretch; padding: var(--s6) var(--s5); }
.app { display: grid; align-content: start; gap: var(--s4); width: 100%; max-width: 640px; margin: 0 auto; }
.app__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.app__title { font-size: var(--text-h3); font-weight: var(--weight-medium); }
.app__meta { font-size: var(--text-xs); color: var(--muted); }
.app__tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.app__tbl th { padding: 0 0 var(--s2); border-bottom: 1px solid var(--stroke-2); font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--muted); text-align: left; }
.app__tbl th:last-child, .app__tbl td:last-child { text-align: right; }
.app__tbl td { padding: var(--s3) 0; border-bottom: 1px solid var(--stroke); }
.app__tbl td:last-child { font-variant-numeric: tabular-nums; }
.stage { display: inline-flex; padding: 1px 8px; border-radius: var(--r-pill); background: var(--stroke); font-size: var(--text-xs); color: var(--text-2); }
.stage--won { background: var(--ok-bg); color: var(--ok); }
.toast { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); border: 1px solid rgba(127, 209, 168, 0.28); border-radius: var(--r-md); background: var(--ok-bg); }
.toast .ic { margin-top: 2px; color: var(--ok); }
.toast__title { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.toast__sub { font-size: var(--text-xs); color: var(--muted); }
.dsteps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s5); }
.dstep { display: grid; gap: 2px; padding: var(--s3) 0; border: 0; background: none; color: var(--muted); text-align: left; cursor: pointer; transition: color var(--med) var(--ease); }
.dstep__bar { position: relative; height: 2px; margin-bottom: var(--s3); overflow: hidden; border-radius: 2px; background: var(--stroke-2); }
.dstep__bar i { position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.dstep__n { font-size: var(--text-xs); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.dstep__t { font-size: var(--text-md); font-weight: var(--weight-medium); }
.dstep__d { font-size: var(--text-sm); color: #6e6e6e; }
.dstep[aria-selected="true"] { color: var(--text); }
.dstep[aria-selected="true"] .dstep__d { color: var(--muted); }
.dstep:hover { color: var(--text); }
.demo__tag { margin-top: var(--s4); font-size: var(--text-xs); color: #5c5c5c; text-align: center; }

/* ---------- 5 · pilot pass ---------- */
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 880px; margin: 0 auto; border: 1px solid #333; border-radius: var(--r-lg); background: radial-gradient(90% 140% at 0% 0%, rgba(255, 122, 61, 0.2), transparent 60%), var(--surface); }
.pass__stub { position: relative; display: grid; align-content: center; gap: var(--s1); padding: var(--s7) var(--s6); border-bottom: 2px dashed #2e2e2e; }
.pass__stub::before, .pass__stub::after { content: ""; position: absolute; bottom: -13px; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid #333; }
.pass__stub::before { left: -13px; clip-path: inset(0 0 0 50%); }
.pass__stub::after { right: -13px; clip-path: inset(0 50% 0 0); }
.pass__kind { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--blue); }
.pass__big { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem); font-weight: var(--weight-medium); line-height: 1; letter-spacing: var(--track-display); white-space: nowrap; }
.pass__seats { font-size: var(--text-sm); color: var(--muted); }
.pass__main { display: grid; align-content: center; justify-items: start; gap: var(--s6); padding: var(--s7) var(--s6); }
.pass__title { font-size: var(--text-h2); line-height: 1.12; letter-spacing: var(--track-heading); text-wrap: balance; }
.pass__list { display: grid; gap: var(--s3); }
.pass__list li { display: flex; align-items: flex-start; gap: var(--s3); color: var(--text-2); }
.pass__list .ic { margin-top: 4px; color: var(--blue); }

/* ---------- footer ---------- */
.foot { padding: var(--s11) 0 var(--s7); }
.foot__cta { display: grid; justify-items: start; gap: var(--s7); padding-bottom: var(--s10); border-bottom: 1px solid var(--stroke-2); }
.foot__big { font-size: clamp(2.75rem, 1.2rem + 6vw, 6rem); font-weight: var(--weight-medium); line-height: 0.98; letter-spacing: var(--track-display); }
.foot__big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot__row { display: grid; gap: var(--s5); padding: var(--s7) 0; }
.foot__brand { display: inline-flex; align-items: center; gap: var(--s3); font-size: var(--text-lg); font-weight: var(--weight-semibold); text-decoration: none; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.foot__links a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--text-sm); color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.foot__links a:hover { color: var(--text); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s5); border-top: 1px solid var(--stroke); font-size: var(--text-xs); color: #5c5c5c; }


/* ---------- Rankglory overrides ---------- */
.hero__media video { transform: none; object-position: 50% 45%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.55) 100%); }
.hero__title { max-width: 14em; text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.hero__sub { text-shadow: 0 1px 18px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.6); }
.brand__mark { width: 26px; height: 26px; }
.sec--say .shell { display: flex; flex-direction: column; align-items: center; text-align: center; }
.say { margin: var(--s6) auto 0; max-width: 860px; font-size: clamp(1.375rem, 0.95rem + 1.7vw, 2.25rem); }
.say p { text-wrap: balance; }
.say .w.chip { display: inline-flex; }
.chip--leaf { background: rgba(143, 209, 158, 0.14); color: #b8e6c2; }
.wx__bg { object-position: 50% 40%; opacity: 0.7; }
.card__ex { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.card__ex p { font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-3); }
.card__ex p.rep { padding-left: var(--space-3); border-left: 2px solid var(--color-accent); color: var(--color-ink); }
.card__tip { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: #ffd2ad; }
.card__tip .ic { margin-top: 2px; color: var(--color-accent); }
.prep { display: grid; gap: var(--s4); width: 100%; max-width: 520px; margin: 0 auto; }
.prep__evt { display: grid; gap: 2px; padding: var(--s4) var(--s5); border: 1px solid var(--stroke-2); border-left: 3px solid var(--color-ok); border-radius: var(--r-md); background: var(--surface); }
.prep__time { display: flex; align-items: center; gap: var(--s2); font-size: var(--text-xs); color: var(--color-ok); }
.prep__title { font-size: var(--text-h3); font-weight: var(--weight-medium); }
.prep__who { font-size: var(--text-sm); color: var(--muted); }
.prep__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.prep__label { margin-bottom: var(--s2); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.prep ul { display: grid; gap: var(--s2); }
.prep li { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--text-sm); color: var(--text-2); }
.prep li .ic { margin-top: 2px; color: var(--muted); }
.pass__list .ic { color: var(--color-accent); }

/* ---------- ≥ 640 ---------- */
@media (min-width: 640px) {
  .shell, .nav__inner { padding-left: var(--space-8); padding-right: var(--space-8); }
  .hero__steps { padding: 0 var(--space-8) var(--space-7); }
  .section { padding: var(--space-11) 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { border-top: 0; border-left: 1px solid var(--color-line); }
  .steps li:nth-child(odd) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--color-line); }
  .sec--say { padding-top: var(--s10); }
  .win__dots { display: inline-flex; }
  .win__nav { display: inline-flex; }
  .dsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .prep__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass { grid-template-columns: 250px minmax(0, 1fr); }
  .pass__stub { border-bottom: 0; border-right: 2px dashed #2e2e2e; }
  .pass__stub::before, .pass__stub::after { bottom: auto; left: auto; right: -13px; }
  .pass__stub::before { top: -13px; clip-path: inset(50% 0 0 0); }
  .pass__stub::after { bottom: -13px; clip-path: inset(0 0 50% 0); }
  .pass__main { padding: var(--s8); }
  .foot__row { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .foot__links { justify-content: flex-end; }
}
@media (max-width: 639px) {
  .nav .pill--sm { padding: 0 var(--space-4); }
}
/* ---------- ≥ 1024 ---------- */
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-9); margin-bottom: var(--space-9); }
  .head .lede { padding-bottom: var(--space-2); }
  .head .h2 { max-width: 22ch; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li, .steps li:nth-child(n+3) { border-top: 0; border-left: 1px solid var(--color-line); }
  .steps li:first-child { border-left: 0; }
  .steps li { padding: var(--space-6) var(--space-6) var(--space-7); }
  .wx { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-10); align-items: stretch; }
  .wx__stage { min-height: 520px; }
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-10); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .js .reveal, .js .in-name, .js .in-up { opacity: 1; transform: none; }
  .js .say .w { opacity: 1; }
}


/* rail on phones and tablets: a tighter list and a shorter card so the pinned block fits under the nav */
@media (max-width: 1023px) {
  .wx .wt { padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .wx__stage { min-height: 300px; padding: var(--space-4) var(--space-4) var(--space-9); }
}


/* ---------- why now · stat board (from #30): one box, the headline figure across the top, three below ---------- */
.stats__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.stats__title { max-width: none; }
.stats { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--color-line-2); border-radius: var(--radius-card); overflow: hidden; }
.stat { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-6); }
.stat + .stat { border-top: 1px solid var(--color-line-2); }
.stat__num { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); font-weight: var(--weight-medium); line-height: 1.1; letter-spacing: -0.02em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.stat__num--accent { color: var(--color-accent); }
.stat__label { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-ink); }
.stat--lead .stat__label { max-width: 52rem; }
.stat__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); font-size: var(--text-xxs); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--color-accent); }
.stat__note { font-size: var(--text-xs); color: var(--color-ink-3); }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat--lead { grid-column: 1 / -1; }
  .stat + .stat { border-top: 0; }
  .stat:not(.stat--lead) { border-top: 1px solid var(--color-line-2); }
  .stat:not(.stat--lead) + .stat { border-left: 1px solid var(--color-line-2); }
}

/* ---------- weekly report · report board (Upstep, via #34), on the theme's dark panels; .tag is the hero badge here, so the board's is .btag ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding: var(--space-5) var(--space-4); border: 1px solid var(--color-line-2); border-radius: var(--radius-lg); background: var(--color-bg-2); box-shadow: 0 40px 80px -50px var(--color-shadow); }
.board__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 0 var(--space-1); }
.panel__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.btag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--space-3); border: 1px solid var(--color-line-2); border-radius: var(--radius-pill); font-size: var(--text-xs); color: var(--color-ink-2); white-space: nowrap; }
.board__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.board__sum p { display: grid; align-content: space-between; gap: 2px; padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-glass); }
.board__sum span { font-size: var(--text-xs); color: var(--color-ink-2); }
.board__sum strong { font-size: clamp(1.125rem, 0.95rem + 0.9vw, 1.625rem); font-weight: var(--weight-semibold); line-height: 1.15; letter-spacing: var(--track-heading); font-variant-numeric: tabular-nums; }
/* the table stays a table at every width and scrolls sideways on phones (user, #29: no cards) */
.rtbl-wrap { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rtbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.rtbl thead th { padding: 0 var(--space-3) var(--space-3); border-bottom: 1px solid var(--color-line); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-ink-3); text-align: left; white-space: nowrap; }
.rtbl tbody th, .rtbl td { padding: var(--space-4) var(--space-3); border-top: 1px solid var(--color-line); vertical-align: middle; text-align: left; }
.rtbl tbody tr:first-child th, .rtbl tbody tr:first-child td { border-top: 0; }
.rtbl tbody th { font-weight: var(--weight-semibold); }
.rtbl td { color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.flag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: oklch(80% 0.14 75 / 0.16); color: var(--color-amber); font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap; }
.flag--ok { background: var(--color-ok-bg); color: var(--color-ok); }
.flag--plain { background: var(--color-glass-2); color: var(--color-ink-2); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.facts li { display: grid; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-glass); }
.facts h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--track-heading); }
.facts p { font-size: var(--text-sm); color: var(--color-ink-2); }
@media (min-width: 640px) {
  .board { padding: var(--space-6); }
  .board__sum p { padding: var(--space-4); }
}
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .rtbl { min-width: 660px; font-size: 0.8125rem; }
  .rtbl tbody th, .rtbl td { padding: var(--space-3); }
}

/* comparison: detailed table (layout after the CodeRabbit pricing table): intro cell with the brand and an accent word over a
   fading dot texture, plain centred column heads, bold feature + description rows, zebra rows, thin dividers, round check icons */
.dc { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.dc:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.dc__table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.dc__table thead th { padding: var(--space-5) var(--space-3); font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-ink); text-align: center; vertical-align: middle; border-bottom: 1px solid var(--color-line); }
.dc__table thead .dc__us { color: var(--color-accent); }
.dc__intro { position: relative; width: 44%; padding: var(--space-6) var(--space-6) !important; text-align: left !important; isolation: isolate; }
.dc__intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle, oklch(80% 0.13 55 / 0.22) 1px, transparent 1.4px) 0 0 / 6px 6px; -webkit-mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 0.55) 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, rgb(0 0 0 / 0.55) 55%, transparent 100%); }
.dc__brand { font-size: 1.375rem; font-weight: var(--weight-semibold); letter-spacing: -0.01em; color: var(--color-ink); }
.dc__brand span { color: var(--color-accent); }
.dc__lead { max-width: 34rem; margin-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-ink-2); }
.dc__table tbody tr { border-top: 1px solid var(--color-line); }
.dc__table tbody tr:nth-child(odd) { background: oklch(100% 0 0 / 0.035); }
.dc__table tbody th { padding: var(--space-4) var(--space-6); font-weight: var(--weight-regular, 400); color: var(--color-ink-2); text-align: left; vertical-align: middle; }
.dc__table tbody th strong { font-weight: var(--weight-semibold); color: var(--color-ink); }
.dc__table tbody td { padding: var(--space-4) var(--space-3); text-align: center; vertical-align: middle; border-left: 1px solid var(--color-line); }
.dc__txt { font-size: var(--text-xs); color: var(--color-ink-2); }
.dc__us .dc__txt { color: var(--color-ink); font-weight: var(--weight-medium); }
.dc__yes { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.dc__yes circle { fill: var(--color-accent-bg); }
.dc__yes path { fill: none; stroke: var(--color-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc__no { display: inline-block; width: 10px; height: 1.5px; vertical-align: middle; background: var(--color-ink-3); }
@media (max-width: 899px) {
  .dc__table { min-width: 760px; font-size: var(--text-xs); }
  .dc__intro { padding: var(--space-5) !important; }
  .dc__brand { font-size: 1.125rem; }
  .dc__table tbody th { padding: var(--space-3) var(--space-4); }
}
@media (max-width: 639px) {
  .dc__table { min-width: 720px; }
  .dc__intro, .dc__table tbody th { width: 220px; }
  .dc__lead { font-size: var(--text-xxs); }
  .dc__intro::before { opacity: 0.55; }
  .dc { border-radius: var(--radius-card); }
}

/* rail: 5 steps; on phones the closed tabs hide their line so the rail and card fit under the nav and pin (as on #32, #34) */
@media (max-width: 639px) {
  .wt[aria-selected="false"] .wt__desc { display: none; }
}

/* the live-view window spans the container like every other section block (skill rule 4) */
.demo { max-width: none; }

/* text inputs: no focus ring around the field; its own border changes colour on focus instead */
input:not([type="radio"]):not([type="checkbox"]):focus,
input:not([type="radio"]):not([type="checkbox"]):focus-visible { outline: none; }
.say { max-width: 1120px; }
.pass { max-width: none; width: 100%; }
.pass__big { font-size: clamp(1.85rem, 1.15rem + 1.4vw, 2.55rem); }
@media (min-width: 640px) {
  .pass { grid-template-columns: minmax(22rem, 28rem) minmax(0, 1fr); }
}
.foot__links button { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--text-sm); color: var(--muted); cursor: pointer; }
.foot__links button:hover { color: var(--text); }
.wx__stage { background: radial-gradient(80% 70% at 82% 18%, rgba(255, 138, 76, 0.22), transparent 56%), radial-gradient(50% 70% at 8% 88%, rgba(255, 194, 122, 0.1), transparent 52%), var(--color-bg-2); }

/* ---------- phones: hero in three rows at most (it took four or five), and a compact rail card so the 4-step rail fits under the nav and pins (the stage kept 56px of bottom padding for a tag it no longer has) ---------- */
@media (max-width: 639px) {
  .wx { gap: var(--space-4); }
  .wx__stage { min-height: 0; padding: var(--space-3); }
  .wx .card { gap: var(--space-3); padding: var(--space-4); }
  .wx .card__ex { padding-top: var(--space-3); }
}
@media (max-width: 479px) {
  .hero__title br { display: none; }
  .hero__title { font-size: min(2.5rem, calc(0.5rem + 7.5vw)); }
}
/* #35 H1 is longer than #27's: three rows at 320 */
@media (max-width: 359px) {
  .hero__title { font-size: 1.75rem; }
}

/* ---------- contrast (AA): inactive queue-step lines (#6e6e6e, 4.12:1) and the footer line (#5c5c5c, 3.14:1) use the theme's muted ink ---------- */
.dstep__d { color: var(--color-ink-3); }
.foot__legal { color: var(--color-ink-3); }

/* ---------- phones: the live-view table's first two columns touched, so the first column gets right padding (#27) ---------- */
@media (max-width: 639px) {
  .app__tbl th:first-child, .app__tbl td:first-child { padding-right: var(--s3); }
}
@media (max-width: 359px) {
  .dpane--app { padding-left: var(--s3); padding-right: var(--s3); }
}
