/* Rankglory · assembled from components already used on earlier wedge sites:
 * Firstline (hero layout, glass step card, nav, auto-filling rail, comparison table, FAQ, dialog),
 * Stayput (scroll-lit statement, live-view window + numbered steps, node graph, pilot pass, statement footer),
 * Upstep (monthly report table). 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); }


/* ---------- comparison table ---------- */
.tbl-wrap { border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-glass); overflow: hidden; }
.ctbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ctbl thead { display: none; }
.ctbl tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: var(--space-5); border-top: 1px solid var(--color-line); }
.ctbl tbody tr:first-child { border-top: 0; }
.ctbl tbody th { padding-bottom: var(--space-3); font-size: var(--text-md); font-weight: var(--weight-medium); text-align: left; }
.ctbl td { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border-top: 1px solid var(--color-line); color: var(--color-ink-2); text-align: right; }
.ctbl td::before { content: attr(data-label); color: var(--color-ink-3); text-align: left; }
.ctbl td.is-us { color: var(--color-ink); font-weight: var(--weight-medium); }
.ctbl td.is-us::before { color: var(--color-sky); }


/* ---------- 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; }

/* ---------- 3 · connect: node graph ---------- */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.flow__svg { display: none; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__col { position: relative; z-index: 1; display: grid; align-content: start; gap: var(--s3); }
.flow__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.flow__nodes { display: grid; gap: var(--s2); }
.node { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 48px; padding: var(--s3) var(--s5); border: 1px solid var(--stroke-2); border-radius: var(--r-pill); background: var(--surface); font-size: var(--text-sm); }
.node__in { display: inline-flex; align-items: center; gap: var(--s2); }
.node__in .ic { width: 16px; height: 16px; color: var(--muted); }
.node--pipe { justify-content: flex-start; border-color: rgba(255, 154, 77, 0.35); background: #1a120c; }
.node--pipe strong { font-weight: var(--weight-semibold); color: #ffd2ad; }
.node__sub { margin-left: auto; font-size: var(--text-xs); color: var(--muted); }
.port { display: none; position: absolute; top: 50%; right: -5px; width: 9px; height: 9px; margin-top: -4.5px; border: 1.5px solid #5c4636; border-radius: var(--r-pill); background: var(--bg); transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease); }
.port--in { right: auto; left: -5px; }
.port.is-hit { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(255, 154, 77, 0.18); }
.flow__link { position: relative; justify-self: center; width: 2px; height: 44px; overflow: hidden; background: var(--stroke-2); }
.flow__link i { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--grad); box-shadow: var(--glow); animation: flow-v 1.6s linear infinite; }
@keyframes flow-v { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.hub { position: relative; display: grid; gap: var(--s4); padding: var(--s5); border: 1px solid #3a2c22; border-radius: var(--r-card); background: linear-gradient(180deg, rgba(255, 122, 61, 0.1), transparent 60%), var(--surface); transition: box-shadow 0.6s var(--ease), border-color 0.6s var(--ease); }
.hub.is-hit { border-color: rgba(255, 154, 77, 0.55); box-shadow: 0 0 44px -10px rgba(255, 122, 61, 0.55); }
.hub__title { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.hub__people { display: grid; gap: var(--s3); }
.hub__people li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s3); font-size: var(--text-sm); }
.hub__people em { font-style: normal; font-size: var(--text-xs); color: var(--muted); }
.av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--stroke-2); font-size: 10px; font-weight: var(--weight-semibold); }
.hub__foot { display: flex; align-items: center; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--stroke-2); font-size: var(--text-xs); color: var(--ok); }
/* svg connectors, drawn by app.js from the real node positions */
.fl-base { fill: none; stroke: #2b2622; stroke-width: 1.25; }
.fl-trail { fill: none; stroke: url(#fl-grad); stroke-width: 2; stroke-linecap: round; opacity: 0.9; }
.fl-dot { fill: #fff1e4; }
.fl-halo { fill: rgba(255, 154, 77, 0.25); }

/* ---------- 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; }
  .flow { grid-template-columns: minmax(0, 1fr) minmax(56px, 0.45fr) minmax(0, 0.9fr) minmax(56px, 0.45fr) minmax(0, 1.25fr); align-items: center; gap: 0; }
  .flow__svg { display: block; }
  .flow__link { visibility: hidden; }
  .port { display: block; }
  .ctbl thead { display: table-header-group; }
  .ctbl thead th { padding: var(--space-6) var(--space-4) var(--space-4); font-size: var(--text-md); font-weight: var(--weight-medium); text-align: left; vertical-align: bottom; }
  .ctbl thead th span { display: block; margin-top: 2px; font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--color-ink-3); }
  .ctbl tbody tr { display: table-row; padding: 0; }
  .ctbl tbody th, .ctbl td { display: table-cell; padding: var(--space-4); border-top: 1px solid var(--color-line); vertical-align: middle; }
  .ctbl tbody th { width: 24%; padding-left: var(--space-6); font-size: var(--text-sm); }
  .ctbl td { text-align: left; }
  .ctbl td::before { content: none; }
  .ctbl .is-us { background: var(--color-accent-bg); }
  .ctbl thead th.is-us { color: var(--color-accent); border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); }
  .ctbl thead th.is-us span { color: var(--color-accent); }
  .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); }
}

/* 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); }
