/* ════════════════════════════════════════════════════════════════
   Guided onboarding (js/onboardingFlow.js) — Ink & Signal.
   Everything is scoped to .onx; tokens mirror css/landing.css (.ik).
   One dot field (only on welcome, assistant and analysis) and one
   creature canvas (assistant screen), both in the shared dot-field loop.
   ════════════════════════════════════════════════════════════════ */
html.onx-lock, html.onx-lock body { overflow: hidden; }

.onx {
  --ink: #0B0C0A; --ink-2: #0F110E; --surface: #141612; --raised: #1C1F1A;
  --line: #262A23; --line-strong: #3A3F35; --line-input: #6A7064;
  --text: #ECEEE6; --text-2: #A6AA9F; --text-3: #7A7F73;
  --volt: #EAFD13; --on-volt: #0B0C0A; --volt-soft: rgba(234, 253, 19, .08); --volt-line: rgba(234, 253, 19, .55);
  --warn: #FFB38A;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 4vw, 56px);
  position: fixed; inset: 0; z-index: 10050;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--ink); color: var(--text);
  font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
.onx *, .onx *::before, .onx *::after { box-sizing: border-box; }
.onx :focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }
.onx h1[tabindex="-1"]:focus { outline: none; } /* focus is moved to the heading for screen readers, not as a control */
.onx a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.onx a:hover { text-decoration-color: var(--volt); }

/* ── Dot field: fixed behind the content, only on its screens ─────── */
.onx-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 42%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 75% 80% at 50% 42%, #000 20%, transparent 78%); }
.onx.has-field .onx-field { display: block; }
.onx-field__c { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s ease; }
.onx-field__c.is-on { opacity: 1; }
.onx[data-step="assistant"] .onx-field { opacity: .55; }

/* ── Top bar ─────────────────────────────────────────────────────── */
.onx-top { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gut); background: linear-gradient(var(--ink) 70%, rgba(11, 12, 10, 0)); }
.onx-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.onx-brand img { width: 28px; height: 28px; }
.onx-progress { display: flex; align-items: center; gap: 4px; }
.onx-progress i { position: relative; overflow: hidden; width: 28px; height: 3px; border-radius: 2px; background: var(--line-strong); }
.onx-progress i::after { content: ''; position: absolute; inset: 0; background: var(--volt); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .35s var(--ease); }
.onx-progress i.is-done::after { background: var(--volt-line); }
.onx-progress b { margin-left: 12px; font: 500 12px/1 var(--mono); color: var(--text-2); letter-spacing: .04em; white-space: nowrap; }
.onx-progress b span { color: var(--text-3); }
.onx-save { justify-self: end; font: 400 12px/1 var(--mono); color: var(--text-3); min-height: 12px; }
.onx-save[data-state="error"] { color: var(--warn); }

/* ── Main column ─────────────────────────────────────────────────── */
.onx-main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) var(--gut) 72px; outline: none;
  display: flex; flex-direction: column; align-items: center; }
.onx-main > section { width: 100%; margin-inline: auto; }
.onx-main.is-in > * { animation: onx-in .5s var(--ease-out) both; }
@keyframes onx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.onx-kicker { margin: 0 0 14px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 10px; }
.onx-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--volt); transform: rotate(45deg); flex: none; }
.onx-h1 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.onx-display { margin: 0 0 20px; font-size: clamp(44px, 7.4vw, 92px); line-height: .98; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.onx-display--md { font-size: clamp(38px, 5.6vw, 68px); }
.onx-lede { margin: 0 auto 8px; max-width: 58ch; color: var(--text-2); font-size: 17px; }
.onx-lede--lg { font-size: clamp(18px, 1.7vw, 21px); color: var(--text); max-width: 36ch; line-height: 1.45; }
.onx-body { max-width: 52ch; color: var(--text-2); margin: 0 auto 8px; }
.onx-intro { margin: 0 0 10px; color: var(--text-2); font-size: 17px; }
.onx-hint { margin: 0 0 10px; font-size: 14px; color: var(--text-3); }
.onx-note { font-size: 14px; color: var(--text-3); }
.onx-opt { font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-left: 6px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.onx-btn { appearance: none; border: 1px solid transparent; background: none; color: var(--text); font: 500 15px/1 var(--font); border-radius: var(--r-s);
  min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.onx-btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.onx-btn--primary { background: var(--volt); color: var(--on-volt); font-weight: 600; box-shadow: 0 10px 32px -16px rgba(234, 253, 19, .6); }
.onx-btn--primary:hover:not(:disabled) svg { transform: translateX(3px); }
.onx-btn--primary:hover:not(:disabled) { transform: translateY(-1px); }
.onx-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.onx-btn--ghost { border-color: var(--line-strong); }
.onx-btn--ghost:hover:not(:disabled), .onx-btn--outline:hover:not(:disabled) { border-color: var(--text-2); }
.onx-btn--outline { border-color: var(--line-input); width: 100%; }
.onx-btn--text { color: var(--text-2); padding: 0 10px; }
.onx-btn--text:hover { color: var(--text); }
.onx-btn--small { min-height: 34px; padding: 0 12px; font-size: 13px; border-color: var(--line-strong); }
.onx-btn:disabled { opacity: .55; cursor: default; }

.onx-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.onx-nav--start { justify-content: center; border-top: 0; padding-top: 0; margin-top: 36px; flex-wrap: wrap; gap: 18px; }

/* ── Form screens ────────────────────────────────────────────────── */
.onx-form { max-width: 640px; text-align: center; }
.onx-form--wide { max-width: 860px; }
.onx-ask { min-height: calc(100vh - 190px); display: flex; flex-direction: column; justify-content: center; }
.onx-ask__body { margin-top: 28px; }
.onx-ask__body > .onx-q:last-child { margin-bottom: 0; }
/* The first control's own label repeats the heading: kept for screen readers only. */
.onx-ask__body > .onx-q:first-child > legend.onx-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.onx-ask .onx-nav { margin-top: 36px; }
.onx-q { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.onx-label { display: block; margin: 0 0 8px; padding: 0; font-weight: 500; font-size: 16px; color: var(--text); }
.onx-input { width: 100%; text-align: left; min-height: 48px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line-input); background: var(--surface);
  color: var(--text); font: 400 16px/1.4 var(--font); transition: border-color .15s var(--ease), background .15s var(--ease); }
.onx-input::placeholder { color: var(--text-3); }
.onx-input:hover { border-color: var(--text-3); }
.onx-input:focus { outline: none; border-color: var(--volt); background: var(--ink-2); box-shadow: 0 0 0 3px rgba(234, 253, 19, .12); }
.onx-input--area { resize: vertical; min-height: 84px; }
.onx-input[aria-invalid="true"], .onx-choices[aria-invalid="true"] { border-color: var(--warn); }
.onx-choices[aria-invalid="true"] { border-radius: var(--r-s); outline: 1px dashed var(--warn); outline-offset: 6px; }
.onx-err { margin: 6px 0 0; font-size: 14px; color: var(--warn); min-height: 0; }
.onx-err:empty { display: none; }
.onx-other { margin-top: 10px; }
.onx-other[hidden] { display: none; }
.onx-row { display: flex; gap: 10px; }
.onx-row .onx-input { flex: 1; min-width: 0; }
.onx-group { margin: 40px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--line-strong); }
.onx-group__t { margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.onx-site__m { margin: 10px 0 0; font-size: 14px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: left; }
.onx-site__m.is-ok { color: var(--text); }
.onx-site__m.is-ok::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--volt); }

/* Choices: chips (default), segmented row, cards, a grid and a ladder. */
.onx-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.onx-choice { appearance: none; position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left;
  min-height: 44px; padding: 10px 14px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 400 15px/1.3 var(--font); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.onx-choice:hover { border-color: var(--text-3); }
.onx-choice[aria-checked="true"], .onx-choice[aria-pressed="true"] { border-color: var(--volt); background: var(--volt-soft); }
.onx-choice[aria-pressed="true"] { padding-left: 32px; }
.onx-choice[aria-pressed="true"]::before { content: ''; position: absolute; left: 12px; top: 50%; width: 10px; height: 6px; margin-top: -5px; border: solid var(--volt); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.onx-choice__s { font: 400 12px/1.2 var(--mono); color: var(--text-3); letter-spacing: .04em; }
.onx-choices--seg { gap: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r-s); padding: 3px; background: var(--surface); }
.onx-choices--seg .onx-choice { border-color: transparent; background: none; min-height: 40px; align-items: center; }
.onx-choices--seg .onx-choice[aria-checked="true"] { background: var(--volt); color: var(--on-volt); font-weight: 600; }
.onx-choices--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.onx-choices--cards .onx-choice { min-height: 88px; padding: 16px; justify-content: flex-end; font-size: 17px; font-weight: 500; width: 100%; }
.onx-choices--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.onx-choices--grid .onx-choice { min-height: 56px; padding: 14px 16px; width: 100%; }
.onx-choices--grid .onx-choice[aria-checked="true"]::after, .onx-choices--cards .onx-choice[aria-checked="true"]::after { content: ''; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
/* Ladder: ordered amounts; the bar grows with each step. */
.onx-choices--ladder { display: flex; flex-direction: column; gap: 6px; }
.onx-choices--ladder .onx-choice { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; min-height: 46px; }
.onx-choices--ladder .onx-choice::after { content: ''; flex: none; height: 4px; border-radius: 2px; background: var(--line-strong); }
.onx-choices--ladder .onx-choice:nth-child(1)::after { width: 6px; } .onx-choices--ladder .onx-choice:nth-child(2)::after { width: 14px; }
.onx-choices--ladder .onx-choice:nth-child(3)::after { width: 24px; } .onx-choices--ladder .onx-choice:nth-child(4)::after { width: 36px; }
.onx-choices--ladder .onx-choice:nth-child(5)::after { width: 50px; } .onx-choices--ladder .onx-choice:nth-child(6)::after { width: 66px; }
.onx-choices--ladder .onx-choice:nth-child(7)::after { width: 84px; }
.onx-choices--ladder .onx-choice[aria-checked="true"]::after { background: var(--volt); }
.onx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: start; }

.onx-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.onx-chip { appearance: none; border: 1px dashed var(--line-strong); background: none; color: var(--text-2); border-radius: 999px; padding: 6px 12px; min-height: 34px; font: 400 13px/1.2 var(--font); cursor: pointer; }
.onx-chip:hover { color: var(--text); border-color: var(--text-3); }

/* Website suggestion, under its question */
.onx-suggest { margin-top: 14px; text-align: left; padding: 14px 16px; border-radius: var(--r-m); background: var(--raised); border: 1px solid var(--line); display: grid; gap: 6px; justify-items: start; }
.onx-suggest__k { margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.onx-suggest__k span { color: var(--text-3); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.onx-suggest__v { margin: 0; font-weight: 500; }
.onx-suggest__q { margin: 0 0 4px; font-size: 13px; color: var(--text-3); font-style: italic; }

/* Value proposition draft */
.onx-vp { margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); text-align: left; }
.onx-vp__k { margin: 0 0 8px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.onx-vp__t { margin: 0 0 6px; font-size: 20px; line-height: 1.4; letter-spacing: -.01em; max-width: 40ch; }
.onx-vp__e { margin: 0; font-size: 13px; color: var(--text-3); }

/* ── Welcome ─────────────────────────────────────────────────────── */
.onx-welcome { min-height: calc(100vh - 160px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; max-width: 820px; }

/* ── Quotes: two compositions ────────────────────────────────────── */
.onx-quote { min-height: calc(100vh - 170px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.onx-quote__t { margin: 0; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.onx-quote__n { margin: 28px 0 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.onx-quote .onx-nav { border-top: 0; padding-top: 0; justify-content: center; gap: 12px; }
.onx-quote--a { max-width: 980px; }
.onx-quote--a .onx-quote__mark { width: 18px; height: 18px; background: var(--volt); margin: 0 auto 36px; }
.onx-quote--a .onx-quote__t { font-size: clamp(36px, 6vw, 76px); line-height: 1.02; }
.onx-quote--b { max-width: 900px; }
.onx-quote--b .onx-quote__rule { width: min(420px, 60%); height: 1px; background: var(--line-strong); margin-bottom: 40px; position: relative; overflow: hidden; }
.onx-quote--b .onx-quote__rule span { position: absolute; inset: 0; background: var(--volt); transform-origin: center; animation: onx-rule 1.4s var(--ease-out) .2s both; }
@keyframes onx-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.onx-quote--b .onx-quote__t { font-size: clamp(32px, 4.8vw, 60px); line-height: 1.08; font-weight: 500; }
.onx-quote--b .onx-quote__t em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--volt); font-size: 1.12em; }


/* ── Assistant ───────────────────────────────────────────────────── */
.onx-asst { max-width: 1080px; }
.onx-asst__intro { max-width: 680px; margin: 0 auto; text-align: center; }
.onx-asst__grid { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 28px; margin-top: 32px; align-items: start; }
.onx-asst__list { display: flex; flex-direction: column; gap: 6px; }
.onx-agent { appearance: none; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  padding: 12px 14px; min-height: 60px; border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(20, 22, 18, .82); color: var(--text); cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease); }
.onx-agent .onx-glyph { grid-row: 1 / 3; width: 32px; height: 32px; fill: var(--ac); }
.onx-agent__n { font-weight: 600; font-size: 16px; }
.onx-agent__r { font: 400 12px/1.2 var(--mono); color: var(--text-3); }
.onx-agent:hover { border-color: var(--line-strong); }
.onx-agent[aria-checked="true"] { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 9%, var(--surface)); }
.onx-asst__card { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 28px; padding: 28px; border-radius: var(--r-l); border: 1px solid var(--line);
  background: rgba(15, 17, 14, .9); align-items: center; min-height: 340px; }
.onx-asst__stage { position: relative; aspect-ratio: 1; width: 100%; }
.onx-creature { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.onx-creature.is-on { opacity: 1; }
.onx-asst__stage > .onx-glyph { position: absolute; inset: 22%; width: 56%; height: 56%; fill: var(--ac); transition: opacity .4s ease; }
.onx-asst__stage.is-live > .onx-glyph { opacity: 0; }
.onx-asst__role { margin: 0 0 4px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }
.onx-asst__name { margin: 0 0 16px; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.onx-asst__dl { margin: 0 0 16px; display: grid; gap: 10px; }
.onx-asst__dl div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.onx-asst__dl dt { font: 500 12px/1.6 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.onx-asst__dl dd { margin: 0; font-size: 15px; color: var(--text-2); }
.onx-asst__dl div:first-child dd { color: var(--text); }
.onx-asst__k { margin: 0 0 8px; font: 500 12px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.onx-asst__s { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.onx-asst__s li { padding-left: 18px; position: relative; font-size: 15px; }
.onx-asst__s li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.onx-compare { margin-top: 24px; }
.onx-compare[hidden] { display: none; }
.onx-compare__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--ink-2); }
.onx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.onx-table caption { text-align: left; padding: 14px 16px 4px; font: 500 12px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.onx-table th, .onx-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.onx-table thead th { font: 500 12px/1 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
.onx-table tbody th { white-space: nowrap; font-weight: 600; }
.onx-table tbody th .onx-glyph { width: 18px; height: 18px; fill: var(--ac); vertical-align: -4px; margin-right: 8px; }
.onx-table td { color: var(--text-2); }

/* ── Analysis ────────────────────────────────────────────────────── */
.onx-analyze { max-width: 640px; min-height: calc(100vh - 170px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.onx-inputs { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--line); }
.onx-inputs li { text-align: left; display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); background: rgba(11, 12, 10, .72); }
.onx-inputs b { font: 500 12px/1.6 var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.onx-inputs span { color: var(--text); }
.onx-status { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text); font-weight: 500; }
.onx-status__time { font: 500 13px/1 var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 3ch; }
.onx-status[hidden], .onx-fail[hidden] { display: none; }
.onx-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--volt); animation: onx-spin .9s linear infinite; display: inline-block; }
@keyframes onx-spin { to { transform: rotate(360deg); } }
.onx-fail { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 20px; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: var(--surface); }
.onx-fail__t { margin: 0; font-weight: 500; }
.onx-fail .onx-hint { margin: 0; }

/* ── Ready / unlocked ────────────────────────────────────────────── */
.onx-ready { min-height: calc(100vh - 170px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; max-width: 860px; }
.onx-ready__mark .onx-glyph { width: 72px; height: 72px; fill: var(--ac); margin-bottom: 24px; }

/* ── Paywall ─────────────────────────────────────────────────────── */
.onx-pay { max-width: 1180px; }
.onx-pay__head { max-width: 720px; margin: 0 auto; text-align: center; }
/* A payment still being processed after the silent check (js/onboardingFlow.js checkAccess): plain text, no banner. */
.onx-pay__note { max-width: 640px; margin: 16px auto 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--text-2, rgba(255,255,255,.7)); }
.onx-pay__note[hidden] { display: none; }
.onx-plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 12px; row-gap: 0; margin-top: 32px; }
.onx-plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-items: start; margin-bottom: 12px;
  padding: 16px 18px 18px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); text-align: left; }
.onx-plan.is-featured { border-color: var(--volt-line); background: linear-gradient(180deg, rgba(234, 253, 19, .06), var(--surface) 60%); }
.onx-plan__badge { justify-self: start; min-height: 20px; margin: 0 0 12px; padding: 3px 8px; border-radius: 4px; font: 600 11px/14px var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.onx-plan.has-badge .onx-plan__badge { background: var(--volt); color: var(--on-volt); }
.onx-plan:not(.has-badge) .onx-plan__badge { visibility: hidden; }
.onx-plan:not(.is-featured).has-badge .onx-plan__badge { background: transparent; color: var(--volt); box-shadow: inset 0 0 0 1px var(--volt-line); }
.onx-plan__n { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.onx-plan__p { margin: 0; font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.onx-plan__d { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.onx-plan__c { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 500 13px/1.3 var(--mono); }
.onx-plan__m { margin: 4px 0 0; min-height: 2.7em; font-size: 12px; line-height: 1.35; color: var(--text-3); } /* two lines on every card, note or not: equal heights when stacked */
.onx-plan .onx-btn { align-self: end; margin-top: 18px; width: 100%; min-width: 0; max-width: 100%; padding: 10px 12px; white-space: normal; line-height: 1.2; text-align: center; overflow-wrap: anywhere; } /* narrow cards: the label wraps inside the button, never past the card */
.onx-pay__fine { margin: 12px 0 0; font-size: 13px; color: var(--text-3); text-align: center; }
.onx-pay__out { margin: 24px 0 0; display: flex; justify-content: center; gap: 12px; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .onx-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onx-asst__card { grid-template-columns: 1fr; }
  .onx-asst__stage { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .onx-asst__grid { grid-template-columns: 1fr; }
  .onx-asst__list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .onx-cols { grid-template-columns: 1fr; }
  .onx-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .onx-top { grid-template-columns: auto 1fr; padding: 10px 16px; }
  .onx-brand span { display: none; }
  .onx-progress { justify-self: end; }
  .onx-progress i { width: 14px; }
  .onx-progress b { margin-left: 8px; }
  .onx-progress b span { display: none; }
  .onx-save { display: none; }
  .onx-main { padding: 20px 16px 56px; }
  .onx-choices--cards { grid-template-columns: 1fr; }
  .onx-choices--cards .onx-choice { min-height: 56px; }
  .onx-choices--grid { grid-template-columns: 1fr; }
  .onx-choices--seg { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .onx-row { flex-direction: column; }
  .onx-asst__list { grid-template-columns: 1fr; }
  .onx-asst__card { padding: 20px; }
  .onx-asst__name { font-size: 32px; }
  .onx-asst__dl div { grid-template-columns: 1fr; gap: 2px; }
  .onx-plans { grid-template-columns: 1fr; }
  .onx-inputs li { grid-template-columns: 1fr; gap: 2px; }
  .onx-nav { position: sticky; bottom: 0; margin-left: -16px; margin-right: -16px; padding: 12px 16px; background: var(--ink); }
  .onx-nav { flex-wrap: wrap; }
  .onx-nav .onx-btn--primary { flex: 1; }
  .onx-asst .onx-nav [data-confirm-agent] { flex: 1 1 100%; order: 3; }
  .onx-asst .onx-nav [data-compare] { margin-left: auto; }
  .onx-nav--start, .onx-quote .onx-nav { position: static; margin-left: 0; margin-right: 0; padding: 0; background: none; }
  .onx-welcome, .onx-quote, .onx-analyze, .onx-ready { min-height: calc(100vh - 140px); }
  .onx-ask { min-height: 0; justify-content: flex-start; }
  .onx-plan__p { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .onx *, .onx *::before, .onx *::after { animation: none !important; transition: none !important; }
  .onx-quote--b .onx-quote__rule span { transform: none; }
}
@media (forced-colors: active) {
  .onx-choice[aria-checked="true"], .onx-choice[aria-pressed="true"], .onx-agent[aria-checked="true"] { outline: 2px solid Highlight; }
}

/* The plan chosen on the public pricing page (js/plans.js orvRememberPlanChoice). */
.onx-plan.is-chosen { box-shadow: 0 0 0 2px #EAFD13; }

/* Signed in, the server is deciding where this account goes (js/auth.js
   _orvEntryState): the sign-in screen shows a spinner instead of its form —
   never the app, never the form of a session that already exists. */
html.orv-routing #authOverlay > :not(:first-child) { visibility: hidden; }
html.orv-routing #authOverlay::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: #EAFD13; animation: orv-routing-spin .8s linear infinite; }
@keyframes orv-routing-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html.orv-routing #authOverlay::after { animation-duration: 2.4s; } }
