/* decomPirate — components + pages, built on tokens.css. Mobile-first. Dark only. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; background: #000; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
}
@media (min-width: 900px) { body { font-size: 16.5px; } }
main { flex: 1 0 auto; counter-reset: sec; }
[hidden] { display: none !important; }
button, input, select, textarea { font-family: inherit; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.04em;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
  color: var(--text);
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); letter-spacing: -0.03em; }
p { margin: 0 0 var(--s-4); }
a { color: var(--blue-bright); text-decoration-color: rgba(91, 155, 255, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--text); text-decoration-color: var(--blue-bright); }
strong { font-weight: 700; color: var(--text); }
code, kbd, pre, .mono { font-family: var(--font-mono); }
code { font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--border); padding: 0.05em 0.35em; border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.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-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: var(--s-4); top: var(--s-2); z-index: 100; background: var(--text); color: #000; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.page-narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.page-narrow.container { padding-block: var(--s-7) var(--s-8); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section--tight { padding-block: var(--s-7); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h1, .section__head h2 { margin-top: var(--s-4); }

/* Section labels — numbered automatically per page: [01] HOW IT WORKS */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  counter-increment: sec;
  content: '[' counter(sec, decimal-leading-zero) ']';
  color: var(--blue-bright);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.eyebrow::after { content: ''; order: -1; display: none; }
.section__head--center .eyebrow { justify-content: center; }

.lead { font-size: var(--fs-md); color: var(--text-2); }
.muted { color: var(--muted); }
.grad-text { color: var(--blue-bright); }
.value, .num-value { font-family: var(--font-mono); color: var(--value); font-variant-numeric: tabular-nums; font-weight: 600; }
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 959px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font: 700 15px/1.2 var(--font-mono);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, box-shadow var(--dur) ease, color var(--dur) ease, transform var(--dur) ease;
}
.btn:hover { border-color: var(--blue-bright); color: #fff; }
.btn:active, .btn-primary:active, .btn-ghost:active { transform: translateY(1px); }
.btn-primary, .btn.btn-primary {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover, .btn.btn-primary:hover { background: var(--blue-hover); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 48px -10px var(--blue-glow); }
.btn-ghost, .btn.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover, .btn.btn-ghost:hover { border-color: var(--blue-bright); color: #fff; background: transparent; }
.btn--sm, .btn-ghost--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn .arrow { font-weight: 500; transition: transform var(--dur) ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled], .btn-primary[disabled], .btn-ghost[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-bright); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.cta-note { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-3); }

/* ---------- Cards, pills, badges ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  min-width: 0;
  position: relative;
}
@media (min-width: 720px) { .card { padding: var(--s-6); } }
.card > :last-child { margin-bottom: 0; }
.card--glow {
  border-color: rgba(91, 155, 255, 0.45);
  background: radial-gradient(120% 60% at 50% 0%, rgba(30, 91, 255, 0.14), rgba(30, 91, 255, 0) 60%), var(--surface);
  box-shadow: 0 0 0 1px rgba(30, 91, 255, 0.2), 0 30px 80px -40px rgba(30, 91, 255, 0.6);
}
.card__title { font-size: 1rem; line-height: 1.35; margin-bottom: var(--s-2); text-wrap: pretty; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-2);
  font: 500 var(--fs-xs)/1.4 var(--font-mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.pill--accent { background: var(--blue-soft); border-color: rgba(91, 155, 255, 0.4); color: #a9c8ff; }
.pill--credits { background: var(--blue-soft); border-color: rgba(91, 155, 255, 0.4); color: #cfe0ff; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; font-weight: 600; }
.pill--credits:hover { color: #fff; border-color: var(--blue-bright); }
.pill__unit { color: var(--text-2); font-size: var(--fs-xs); font-weight: 400; }
.pill--success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.pill--warning { background: var(--warning-soft); border-color: transparent; color: var(--warning); }
.pill--danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }

/* Job status badges (queued | preparing | running | done | failed | cancelled) */
.status-badge, [class*="status--"] {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.25rem 0.65rem; border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  font: 700 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  background: transparent; color: var(--text-2); white-space: nowrap;
}
.status--queued, .status-badge--queued { color: var(--text-2); }
.status--preparing, .status--running, .status-badge--preparing, .status-badge--running { background: var(--blue-soft); border-color: rgba(91, 155, 255, 0.5); color: #a9c8ff; }
.status--running::before, .status-badge--running::before, .status--preparing::before, .status-badge--preparing::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright);
  animation: pulse 1.4s var(--ease) infinite;
}
.status--done, .status-badge--done { color: var(--text); border-color: #3b414c; }
.status--done::before, .status-badge--done::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.status--failed, .status-badge--failed { background: var(--danger-soft); border-color: rgba(255, 106, 98, 0.45); color: var(--danger); }
.status--cancelled, .status-badge--cancelled { background: var(--warning-soft); border-color: rgba(242, 192, 79, 0.35); color: var(--warning); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Flash + notices ---------- */
.flash {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
}
.flash--success { background: var(--success-soft); border-color: rgba(127, 214, 168, 0.3); color: var(--success); }
.flash--error { background: var(--danger-soft); border-color: rgba(255, 106, 98, 0.35); color: var(--danger); }
.flash--info { background: var(--blue-soft); border-color: rgba(91, 155, 255, 0.35); color: #cfe0ff; }
.flash--warning { background: var(--warning-soft); border-color: rgba(242, 192, 79, 0.3); color: var(--warning); }
.notice {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-size: var(--fs-sm); color: var(--text-2);
}
.notice > :last-child { margin-bottom: 0; }

/* Upgrade / low-credit nudge (dashboard, job page) */
.upgrade-nudge {
  display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5); border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 0% 0%, rgba(30, 91, 255, 0.16), rgba(30, 91, 255, 0) 60%), var(--surface);
  border: 1px solid rgba(91, 155, 255, 0.4);
}
.upgrade-nudge p { margin: 0; }

/* Payment note: Stripe for Bondstone */
.pay-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: var(--s-4) 0 0; padding-top: var(--s-3);
  border-top: 1px dashed var(--border-strong);
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
  max-width: 64ch;
}
.pay-note svg { width: 14px; height: 14px; flex: none; margin-top: 0.2em; color: var(--blue-bright); }
.pay-note strong { color: var(--text-2); font-weight: 700; letter-spacing: 0.04em; }
.pay-note--center { margin-inline: auto; justify-content: center; text-align: left; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); min-width: 0; }
.field__label, label { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.field__hint { font-size: 12.5px; margin: 0; line-height: 1.55; }
.field__error { font-size: var(--fs-xs); color: var(--danger); margin: 0; }
.input, textarea.input, select.input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: #000;
  color: var(--text);
  font: 400 var(--fs-base)/1.4 var(--font-mono);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
.input::placeholder { color: #6a7381; }
.input:hover { border-color: #3a404c; }
.input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(30, 91, 255, 0.35); }
.input[readonly] { color: var(--text-2); font-size: var(--fs-sm); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); font-weight: 400; color: var(--text-2); line-height: 1.55; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  margin: 2px 0 0; width: 20px; height: 20px;
  border: 1px solid var(--border-strong); border-radius: 4px; background: #000;
  display: grid; place-items: center; cursor: pointer;
}
.check input::after { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--blue-bright); transform: scale(0); transition: transform .12s ease; }
.check input:checked { border-color: var(--blue-bright); }
.check input:checked::after { transform: scale(1); }
.inline-form { display: inline; margin: 0; }
.copy-row { display: flex; gap: var(--s-2); align-items: stretch; min-width: 0; }
.copy-row .input { flex: 1 1 auto; min-width: 0; }
.inline-signup { display: flex; flex-direction: column; gap: var(--s-2); max-width: 480px; }
@media (min-width: 520px) { .inline-signup { flex-direction: row; } .inline-signup .input { flex: 1; } }

/* ---------- Status strip (above the header) ---------- */
.status-strip {
  border-bottom: 1px solid var(--border);
  background: #000;
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-strip__row { display: flex; align-items: center; gap: var(--s-4); min-height: var(--strip-h); }
.status-strip__ok { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); white-space: nowrap; }
.status-strip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 0 rgba(91, 155, 255, 0.6); animation: strip-pulse 2.4s ease-out infinite; }
@keyframes strip-pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 155, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(91, 155, 255, 0); } }
.status-strip__sep { width: 1px; height: 12px; background: var(--border-strong); flex: none; }
.status-strip__item { white-space: nowrap; }
.status-strip__clock { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 719px) { .status-strip .hide-sm { display: none; } }

/* ---------- Header + nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--header-h); flex-wrap: wrap; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; padding: 6px 2px; color: var(--text); text-decoration: none; }
.site-logo:hover { color: var(--text); }
.site-logo__mark { width: 22px; height: 22px; flex: none; display: block; }
.site-logo__mark svg { width: 22px; height: 22px; }
.site-logo__word, .wordmark { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.wm-a { font-weight: 300; color: var(--text-2); }
.wm-b { font-weight: 800; color: var(--text); }
.wm-p { font-weight: 800; color: var(--blue-bright); }
.site-nav { display: flex; align-items: center; gap: var(--s-2) var(--s-4); flex-wrap: wrap; justify-content: flex-end; }
.site-nav__link { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: var(--s-2) 0; }
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--text); }
.site-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--blue-bright); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.site-nav__ix { color: var(--muted); font-size: 11.5px; margin-right: 8px; }
.site-nav__logout { margin: 0; display: inline; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  height: 38px; padding: 0 12px; gap: 8px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--border-strong); color: var(--text); cursor: pointer;
  font: 600 13px/1 var(--font-mono);
}
.nav-toggle:hover { border-color: var(--blue-bright); }
.nav-toggle svg { width: 18px; height: 18px; }
.header-tools { display: inline-flex; gap: var(--s-2); align-items: center; }
@media (min-width: 860px) {
  .has-js-nav .site-nav { margin-left: auto; }
  .has-js-nav .header-tools { display: none; }
}

/* Mobile nav: site.js adds .has-js-nav to the header, then the toggle collapses the nav. */
@media (max-width: 859px) {
  .has-js-nav .nav-toggle { display: inline-flex; }
  .has-js-nav .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) 0 var(--s-4); border-top: 1px solid var(--border);
  }
  .has-js-nav.nav-open .site-nav { display: flex; }
  .has-js-nav .site-nav__link { padding: var(--s-3) 0; font-size: var(--fs-base); border-bottom: 1px solid var(--border); }
  .has-js-nav .site-nav .btn, .has-js-nav .site-nav .btn-ghost, .has-js-nav .site-nav .pill { margin-top: var(--s-3); align-self: flex-start; }
  .has-js-nav .site-nav__logout { margin-top: var(--s-3); }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s-8); border-top: 1px solid var(--border); padding-block: var(--s-7) var(--s-6); font-size: var(--fs-sm); }
.site-footer__wave { margin: 0 0 var(--s-6); font: 500 14px/1.2 var(--font-mono); color: #2f353e; white-space: pre; overflow: hidden; user-select: none; }
.site-footer__row { display: flex; flex-direction: column; gap: var(--s-5); }
.site-footer__brand { display: grid; gap: var(--s-2); }
.site-footer__copy { margin: 0; }
.site-footer__powered { margin: 0; color: var(--text-2); }
.site-footer__powered strong { letter-spacing: 0.06em; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer__link { color: var(--text-2); text-decoration: none; }
.site-footer__link:hover { color: var(--text); }
.site-footer__legal { margin: var(--s-6) 0 0; font-size: 12.5px; color: var(--muted); }
@media (min-width: 860px) { .site-footer__row { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

/* ---------- Hero (inner pages) ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) var(--s-7); position: relative; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero__title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.05em; margin-bottom: var(--s-4); }
.hero__sub { font-size: var(--fs-md); color: var(--text-2); max-width: 40rem; margin-bottom: var(--s-5); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); padding: 0; list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__trust li::before { content: '+'; color: var(--blue-bright); font-weight: 700; }

/* ---------- Landing hero: giant wordmark + ASCII ship on an ASCII sea ---------- */
.hero-cine {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--strip-h));
  min-height: calc(100svh - var(--header-h) - var(--strip-h));
  display: flex; flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(16px, 3vh, 44px);
}
.hero-cine__light { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-cine__light .glow {
  position: absolute; left: 50%; bottom: 4%;
  width: min(1500px, 140vw); height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 70%, rgba(30, 91, 255, .30) 0%, rgba(30, 91, 255, .10) 42%, rgba(30, 91, 255, 0) 72%);
}
.hero-cine__light .streak {
  position: absolute; height: 1px; width: 70vw; left: 50%; top: 0;
  background: linear-gradient(90deg, rgba(91,155,255,0), rgba(91,155,255,.55) 50%, rgba(91,155,255,0));
  transform-origin: 0 0; opacity: .5;
}
.hero-cine__light .s1 { top: 10%; left: 48%; transform: rotate(24deg); }
.hero-cine__light .s2 { top: 2%; left: 58%; transform: rotate(24deg); opacity: .28; width: 55vw; }
.hero-cine__light .s3 { top: 18%; left: -8%; transform: rotate(-24deg); width: 30vw; opacity: .2; }
.hero-cine__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font: 500 12.5px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.hero-eyebrow .tick { color: var(--blue-bright); font-weight: 700; }
.hero-eyebrow .rule { width: 28px; height: 1px; background: var(--border-strong); }
.display-mark {
  margin: clamp(8px, 1.6vh, 20px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, min(calc((100vw - 40px) / 7.8), 11.5vh), 150px);
  line-height: .95;
  letter-spacing: -0.055em;
  white-space: nowrap;
  user-select: none;
}
.display-mark .wm-a { font-weight: 300; color: #d9dee6; }
.display-mark .wm-b { font-weight: 800; color: #fff; }
.display-mark .wm-p { font-weight: 800; color: var(--blue-bright); text-shadow: 0 0 .35em rgba(30, 91, 255, .65); }
.display-mark .cursor {
  display: inline-block; width: .52em; height: .09em; margin-left: .08em;
  background: var(--blue-bright); vertical-align: 0;
  box-shadow: 0 0 .3em rgba(30, 91, 255, .9);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-cine__title {
  margin: clamp(14px, 2.2vh, 26px) 0 0;
  font-size: clamp(21px, min(2.6vw, 4.2vh), 40px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.035em;
}
.hero-cine__title .dim { color: var(--muted); font-weight: 400; }
@media (max-width: 700px) { .hero-cine__title .dim { display: block; } }
.hero-cine__sub {
  margin: clamp(12px, 1.8vh, 20px) 0 0;
  max-width: 84ch; color: var(--text-2);
  font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.7; text-wrap: pretty;
}
.hero-cine__copy .cta-row { margin-top: clamp(18px, 3vh, 32px); justify-content: center; }
.hero-cine__copy .cta-note { margin: var(--s-3) 0 0; }
.hero-cine__copy .hero__badges { margin: 0 0 var(--s-3); }
@media (max-width: 520px) {
  .hero-cine__copy .cta-row { flex-direction: column; align-self: stretch; }
  .hero-cine__copy .cta-row .btn, .hero-cine__copy .cta-row .btn-ghost { width: 100%; }
}

/* Stage: ship + sea. The stage takes the height the copy leaves; the ship sizes itself to it. */
.stage {
  --sea-rows: 5;
  --sea-fs: clamp(11px, calc(6px + .62vw), 16px);
  --sea-h: calc(var(--sea-rows) * 1.22 * var(--sea-fs));
  position: relative; z-index: 1;
  flex: 1 1 0;
  min-height: 250px;
  container-type: size;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  margin-top: clamp(8px, 1.6vh, 28px);
}
@media (min-width: 640px) and (min-height: 960px) { .stage { --sea-rows: 6; } }
@media (min-width: 640px) and (min-height: 1000px) { .stage { --sea-rows: 7; } }
.ship-wrap {
  /* 77 columns of JetBrains Mono at .6em = 46.2em wide; 20 visible rows at 1.15 = 23em tall */
  --ship-fs: clamp(5px, min(calc((100cqw - 24px) / 46.8), calc((100cqh - var(--sea-h) - 10px) / 23.4)), 16px);
  font-size: var(--ship-fs);
  flex: none;
  height: calc(20 * 1.15em);
  width: 46.2em;
  position: relative;
  clip-path: inset(-400px -400px 0 -400px);
}
.ship {
  position: absolute; left: 0; top: 0; margin: 0;
  font-family: var(--font-mono);
  font-size: 1em; line-height: 1.15; font-weight: 500;
  color: #e9edf3;
  white-space: pre;
  transform-origin: 50% 23em;
  will-change: transform;
}
.ship .fl { color: var(--blue-bright); font-weight: 700; text-shadow: 0 0 10px rgba(30, 91, 255, .75); }
.ship .sk { color: #fff; font-weight: 700; }
.ship .hp { color: var(--blue-bright); text-shadow: 0 0 8px rgba(30, 91, 255, .8); }
.horizon {
  position: absolute; left: 0; right: 0; height: 1px; z-index: 0; bottom: var(--sea-h);
  background: linear-gradient(90deg, rgba(91,155,255,0) 0%, rgba(91,155,255,0) 12%, rgba(91,155,255,.55) 50%, rgba(91,155,255,0) 88%);
  pointer-events: none;
}
.sea {
  margin: 0; width: 100%; flex: none;
  font-family: var(--font-mono);
  font-size: var(--sea-fs);
  line-height: 1.22;
  height: calc(var(--sea-rows) * 1.22em);
  font-weight: 500;
  white-space: pre;
  overflow: hidden;
  color: var(--muted);
  user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.sea .r0 { color: #e7ecf4; }
.sea .r1 { color: #b9c2cf; }
.sea .r2 { color: #8f99a8; }
.sea .r3 { color: #6c7684; }
.sea .r4 { color: #525a66; }
.sea .r5 { color: #3d434d; }
.sea .r6 { color: #2d323a; }
.sea .r7 { color: #22262c; }
.sea .w  { color: #ffffff; }
.sea .g1 { color: #8fbaff; text-shadow: 0 0 8px rgba(30, 91, 255, .9); }
.sea .g2 { color: #4d8cff; text-shadow: 0 0 6px rgba(30, 91, 255, .6); }
.sea .g3 { color: #2a62e0; }

/* Spec strip under the hero */
.spec-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec-strip > div { padding: var(--s-4); border-left: 1px solid var(--border); min-width: 0; }
.spec-strip > div:nth-child(odd) { border-left: 0; }
.spec-strip > div:nth-child(n+3) { border-top: 1px solid var(--border); }
.spec-strip dt { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.spec-strip dd { margin: 0; font-size: 14px; color: var(--text); font-weight: 500; line-height: 1.5; }
@media (min-width: 900px) {
  .spec-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec-strip > div { padding: var(--s-5) var(--s-6); }
  .spec-strip > div:nth-child(odd) { border-left: 1px solid var(--border); }
  .spec-strip > div:first-child { border-left: 0; }
  .spec-strip > div:nth-child(n+3) { border-top: 0; }
  .spec-strip dd { font-size: 15px; }
}

/* ASCII mini panels inside step cards */
.mini {
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font: 500 13.5px/1.45 var(--font-mono);
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
}
.mini .hl { color: var(--text); }
.mini .bl { color: var(--blue-bright); }
.mini .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--blue); vertical-align: -0.2em; animation: blink 1.1s steps(1) infinite; }

/* Games tip */
.tip {
  display: flex; gap: 12px; align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(91, 155, 255, 0.3);
  border-left: 2px solid var(--blue-bright);
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--text-2);
  font-size: var(--fs-sm); line-height: 1.6;
}
.tip > :last-child { margin-bottom: 0; }
.tip__k { color: var(--blue-bright); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; flex: none; padding-top: 0.2em; }

/* ---------- Steps, features, trust ---------- */
.steps { display: grid; gap: var(--s-4); counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; display: flex; flex-direction: column; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: var(--s-3);
  font: 800 14px/1 var(--font-display); letter-spacing: .02em; color: var(--blue-bright);
}
.step .mini + h3, .step h3 { margin-top: 0; }
.step .mini { order: -1; }
.step p { color: var(--text-2); }
.feature { display: grid; gap: var(--s-2); align-content: start; }
.feature__icon {
  width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--blue-soft); border: 1px solid rgba(91, 155, 255, 0.3); color: var(--blue-bright); margin-bottom: var(--s-2);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature p { color: var(--text-2); font-size: var(--fs-sm); }
.split { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .split--reverse > :first-child { order: 2; } }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--text-2); }
.checklist li::before { content: '+'; position: absolute; left: 0; top: 0; color: var(--blue-bright); font-weight: 700; }
.crosslist li::before { content: '×'; color: var(--danger); }
.stat-row { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat__value { font: 800 var(--fs-xl)/1.1 var(--font-display); letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums; margin: 0; }
.stat__label { font-size: var(--fs-sm); color: var(--muted); margin: var(--s-1) 0 0; }
.quote { font-size: var(--fs-md); color: var(--text); line-height: var(--lh-snug); }
.quote footer { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.format-list { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: 0; list-style: none; }
.format-list .pill--accent { color: #cfe0ff; }
.cta-band {
  text-align: center; padding: clamp(40px, 6vw, 72px) var(--s-5); border-radius: var(--r-xl);
  background: radial-gradient(40rem 20rem at 50% 0%, rgba(30, 91, 255, .2), transparent 70%), var(--surface);
  border: 1px solid rgba(91, 155, 255, 0.35);
}
.cta-band .cta-row { justify-content: center; }
.cta-band p { margin-inline: auto; max-width: 42rem; }

/* FAQ */
.faq { display: grid; gap: var(--s-2); max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue-bright); font-family: var(--font-mono); flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: var(--s-3) 0 0; color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- Pricing ---------- */
.billing-note { display: flex; justify-content: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-6); }
.pricing-grid { display: grid; gap: var(--s-4); align-items: stretch; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.price-card { display: flex; flex-direction: column; gap: var(--s-3); position: relative; }
.price-card--featured {
  border-color: rgba(91, 155, 255, 0.55);
  background: radial-gradient(120% 60% at 50% 0%, rgba(30, 91, 255, .16), rgba(30, 91, 255, 0) 60%), var(--surface);
  box-shadow: 0 0 0 1px rgba(30, 91, 255, .25), 0 30px 80px -40px rgba(30, 91, 255, .6);
}
.price-card--selected { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.price-card__ribbon { position: absolute; top: -12px; left: var(--s-5); padding: 3px 10px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font: 700 11.5px/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.price-card__name { font: 700 13px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); margin: 0; }
.price-card__for { font-size: var(--fs-sm); color: var(--muted); margin: 0; min-height: 2.6em; }
.price-card__price { display: flex; align-items: baseline; gap: var(--s-2); margin: var(--s-2) 0 0; }
.price-card__amount { font: 800 2.8rem/1 var(--font-display); letter-spacing: -0.06em; color: var(--text); }
.price-card__per { color: var(--muted); font-size: var(--fs-sm); }
.price-card__credits { font-family: var(--font-mono); color: var(--text); font-weight: 700; font-size: var(--fs-sm); margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.price-card__builds { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.price-card .checklist { font-size: var(--fs-sm); margin-top: var(--s-2); flex: 1; }
.price-card form { margin: 0; }
.price-card .cta-slot { margin-top: auto; }
.cost-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cost-table th, .cost-table td { text-align: left; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--border); }
.cost-table th { color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; }
.cost-table td.num, .cost-table th.num { text-align: right; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* ---------- Referral ---------- */
.ref-steps { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .ref-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ref-share { display: grid; gap: var(--s-3); }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.ref-stats .stat__value { font-size: var(--fs-lg); }

/* ---------- Auth ---------- */
.auth-page { padding-block: var(--s-7) var(--s-8); }
.auth-card { padding: var(--s-6) var(--s-5); }
@media (min-width: 520px) { .auth-card { padding: var(--s-6); } }
.auth-card__title { font-size: var(--fs-xl); }
.auth-card__sub { margin-bottom: var(--s-5); }
.auth-card__alt { margin: var(--s-5) 0 0; font-size: var(--fs-sm); text-align: center; }
.auth-card__legal { margin: var(--s-3) 0 0; font-size: var(--fs-xs); text-align: center; }

/* ---------- Account ---------- */
.account-page { padding-block: var(--s-6) var(--s-8); }
.account-head { margin-bottom: var(--s-5); }
.account-head h1 { margin-bottom: var(--s-1); }
.account-grid { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
@media (min-width: 760px) { .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .account-referral { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .account-grid { grid-template-columns: 1fr 1fr 1.4fr; } .account-referral { grid-column: auto; } }
.account-stat { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }
.account-stat p { margin: 0; }
.account-stat .pay-note { margin-top: var(--s-2); }
.account-stat__label { font: 700 11.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; }
.account-stat__value { font: 800 var(--fs-2xl)/1 var(--font-display); letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.account-stat__value--plan { color: var(--text); }
.account-referral .copy-row { width: 100%; }
.account-ledger h2, .section--tight > h2 { font-size: var(--fs-lg); }

/* Ledger / generic data tables */
.ledger-table, .data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ledger-table th, .ledger-table td, .data-table th, .data-table td { padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.ledger-table th, .data-table th { color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; }
.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--success); }
.neg { color: var(--danger); }
@media (max-width: 559px) {
  .ledger-table thead { display: none; }
  .ledger-table tr { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
  .ledger-table td { border: 0; padding: 0; }
  .ledger-table td:nth-child(1) { grid-column: 1 / -1; font-size: var(--fs-xs); }
  .ledger-table td:nth-child(4) { grid-column: 2; font-size: var(--fs-xs); }
}

/* ---------- Dashboard / combine (app) ---------- */
.dashboard, .app-page { padding-block: var(--s-6) var(--s-8); }
.dashboard__head, .app-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; justify-content: space-between; margin-bottom: var(--s-5); }
.dashboard__head h1, .app-head h1 { margin: 0; }
.dashboard__grid { display: grid; gap: var(--s-5); }
@media (min-width: 1000px) { .dashboard__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.combine-form { display: grid; gap: var(--s-4); }
.slots, .combine-slots { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .slots, .combine-slots { grid-template-columns: 1fr 1fr; } }
.dropzone {
  position: relative; display: grid; place-items: center; gap: var(--s-2); text-align: center;
  min-height: 160px; padding: var(--s-5) var(--s-4); border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong); background: var(--bg-2); color: var(--text-2);
  cursor: pointer; transition: border-color var(--dur) ease, background-color var(--dur) ease;
  min-width: 0; font-weight: 400;
}
.dropzone:hover, .dropzone.is-dragover, .dropzone:focus-within { border-color: var(--blue-bright); background: var(--blue-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--blue-bright); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone__label { font: 700 12px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright); }
.dropzone__file { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.estimate { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.estimate strong, .estimate .value { color: var(--blue-bright); font-family: var(--font-mono); }
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.job-list__item, .job-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); align-items: center;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.job-list__item:hover, .job-row:hover { border-color: var(--blue-bright); color: var(--text); background: var(--surface-2); }
.job-list__prompt, .job-row__prompt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: 600; }
.job-list__meta, .job-row__meta { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); }
.empty-state { text-align: center; padding: var(--s-7) var(--s-5); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-2); }
.empty-state h2, .empty-state h3 { color: var(--text); }

/* ---------- Job page + live transcript ---------- */
.job-page { padding-block: var(--s-6) var(--s-8); }
.job-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.job-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font: 400 var(--fs-xs)/1.5 var(--font-mono); color: var(--muted); }
.job-meta .value { color: var(--blue-bright); }
.progress { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--blue); box-shadow: 0 0 12px var(--blue-glow); border-radius: inherit; transition: width 400ms var(--ease); }
.progress--indeterminate .progress__bar { width: 35%; animation: slide 1.4s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.job-transcript, .transcript {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  max-height: 70vh;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.75;
  display: grid;
  gap: var(--s-1);
  overscroll-behavior: contain;
}
@media (min-width: 720px) { .job-transcript, .transcript { padding: var(--s-4); font-size: 0.82rem; } }
.job-event, .transcript__line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-3);
  padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); border-left: 2px solid transparent;
  color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.job-event__kind { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-top: 0.15em; min-width: 4.5em; }
.job-event__body { min-width: 0; }
.job-event__time { grid-column: 2; font-size: 0.68rem; color: #6f7988; }
.job-event--status { color: var(--muted); }
.job-event--assistant { color: var(--text); background: var(--surface); border-left-color: var(--blue-bright); font-size: var(--fs-sm); }
.job-event--tool { border-left-color: var(--blue); }
.job-event--tool .job-event__kind { color: var(--blue-bright); }
.job-event--result { background: var(--blue-soft); border-left-color: var(--blue-bright); color: var(--text); }
.job-event--error { background: var(--danger-soft); border-left-color: var(--danger); color: var(--danger); }
.job-output { display: grid; gap: var(--s-3); }
.file-list { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: var(--fs-sm); display: grid; gap: var(--s-1); }
.file-list li { padding: var(--s-2) var(--s-3); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); overflow-wrap: anywhere; }

/* ---------- Error page ---------- */
.error-page { text-align: center; }
.error-page__code {
  font: 800 clamp(4rem, 3rem + 8vw, 9rem)/1 var(--font-display); letter-spacing: -0.06em;
  margin: 0 0 var(--s-3); color: #fff;
}
.error-page__code::after { content: '_'; color: var(--blue-bright); text-shadow: 0 0 .3em rgba(30, 91, 255, .9); animation: blink 1.1s steps(1) infinite; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------- Prose (legal/how pages) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: var(--fs-2xl); }
.prose h2 { margin-top: var(--s-7); font-size: var(--fs-lg); }
.prose h3 { margin-top: var(--s-5); font-size: var(--fs-md); }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-1); }
.prose li::marker { color: var(--blue-bright); }

/* ---------- Dashboard: spending limit, upload progress ---------- */
.combine-card { display: grid; gap: var(--s-3); }
.dropzone__hint { font-size: var(--fs-xs); line-height: 1.5; }
.dropzone.is-invalid { border-color: var(--danger); background: var(--danger-soft); }
.limit-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.limit-picker legend { padding: 0; margin-bottom: var(--s-2); }
.limit-options { display: grid; gap: var(--s-2); }
@media (min-width: 560px) { .limit-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.limit-option { position: relative; display: block; cursor: pointer; font-weight: 400; }
.limit-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.limit-option__body {
  display: grid; gap: 2px; height: 100%; padding: var(--s-3);
  border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--bg-2);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.limit-option:hover .limit-option__body { border-color: var(--blue-bright); }
.limit-option input:checked + .limit-option__body { border-color: var(--blue-bright); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue-bright) inset; }
.limit-option input:focus-visible + .limit-option__body { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.limit-option__name { font-weight: 700; font-size: var(--fs-sm); color: var(--text); }
.limit-option__credits { font-size: var(--fs-sm); }
.limit-option__eg { font-size: var(--fs-xs); line-height: 1.45; }
.upload-progress { display: grid; gap: var(--s-2); }
.upload-progress p { margin: 0; font-size: var(--fs-sm); }
.dashboard-tips { margin-top: var(--s-4); }
.dashboard-tips .checklist { font-size: var(--fs-sm); margin: 0; }
.notice--warning { background: var(--warning-soft); border-color: rgba(242, 192, 79, 0.3); color: var(--warning); }
.notice--warning strong { color: inherit; }

/* ---------- Job page ---------- */
.job-prompt {
  margin: 0; padding: var(--s-3) var(--s-4); border-left: 2px solid var(--blue-bright);
  background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere;
}
.job-result { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.job-result > * { margin: 0; }
.job-result--done { border-color: rgba(91, 155, 255, 0.5); box-shadow: 0 0 0 1px rgba(30, 91, 255, .2), 0 30px 80px -40px rgba(30, 91, 255, .6); }
.job-summary {
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: var(--fs-sm);
  max-height: 22rem; overflow-y: auto; padding: var(--s-3) var(--s-4);
  background: var(--bg-2); border-radius: var(--r-md); border: 1px solid var(--border);
}
.job-files summary, .job-log__summary { cursor: pointer; font-weight: 700; font-size: var(--fs-sm); padding: var(--s-2) 0; }
.job-files .file-list { margin-top: var(--s-2); max-height: 20rem; overflow-y: auto; }
.job-files .file-list a { color: var(--text-2); text-decoration: none; }
.job-files .file-list a:hover { color: var(--text); text-decoration: underline; }
.job-log { margin-top: var(--s-5); }
.job-transcript { list-style: none; margin: 0; }

/* ---------- Checkout result ---------- */
.checkout-result { text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.checkout-result > * { margin: 0; }
.checkout-result .cta-row { justify-content: center; }
.checkout-result .pay-note { margin-top: var(--s-3); text-align: left; }
.checkout-result__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; background: var(--blue-soft); border: 1px solid rgba(91, 155, 255, 0.4); color: var(--blue-bright);
}
.checkout-result__icon--ok { background: var(--blue-soft); color: var(--blue-bright); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--blue-bright); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Billing ---------- */
.pricing-grid--compact { margin-bottom: var(--s-3); }
@media (min-width: 1080px) { .pricing-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section--tight h2 { margin-bottom: var(--s-4); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Final polish ---------- */
.dashboard__head h1, .app-head h1, .account-head h1 { font-size: var(--fs-xl); }
.ledger-table th.num, .ledger-table td.num, .data-table th.num, .data-table td.num { text-align: right; }
.estimate { column-gap: 0.6ch; }
.error-page__code::after { margin-right: -0.62em; }

/* ---------- Admin ---------- */
.admin-stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--s-6); }
.admin-stats .card > * { margin: 0; }
.admin-stats .stat__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: var(--s-2); }
.admin-stats .muted { font-size: var(--fs-xs); margin-top: var(--s-2); }
.admin-section { margin-bottom: var(--s-6); }
.admin-section h2 { font-size: var(--fs-lg); }
