/* ============ Tokens ============ */
:root {
  --ink: #16203A;
  --ink-2: #2E3956;
  --muted: #5B667D;
  --line: #E2E6EF;
  --line-2: #CDD3E0;
  --paper: #FFFFFF;
  --wash: #F3F5FA;
  --cobalt: #2B4BF2;
  --cobalt-ink: #1B34C2;
  --cobalt-soft: #E7EBFE;
  --hi: #FFE066;
  --hi-soft: #FFF3B8;
  --flag: #C9372F;
  --flag-soft: #FDECEA;
  --warn: #9A5B00;
  --warn-soft: #FFF1D6;
  --ok: #0F7A50;
  --ok-soft: #E3F5EC;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 0 rgba(22, 32, 58, .04), 0 8px 24px -12px rgba(22, 32, 58, .18);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); font-optical-sizing: auto; }
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-size: .88em; background: var(--wash); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.narrow { max-width: 820px; }
.hp { position: absolute; left: -9999px; }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 600 1rem/1 var(--text); padding: .78em 1.25em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--wash); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--hi); color: var(--ink); }
.btn-danger { background: var(--flag); color: #fff; }
.btn-danger:hover { background: #a42a23; color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--flag); border-color: #F2C4C0; }
.btn-danger-ghost:hover { background: var(--flag-soft); color: var(--flag); }
.btn-sm { font-size: .875rem; padding: .55em .95em; }
.btn-lg { font-size: 1.06rem; padding: .95em 1.5em; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.btn.is-static { cursor: default; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ============ Forms ============ */
label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
input, select, textarea { display: block; width: 100%; margin-top: .4em; font: 400 1rem/1.4 var(--text); color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: .7em .85em; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
input[type=checkbox], input[type=radio] { width: auto; display: inline-block; margin: 0 .5em 0 0; accent-color: var(--cobalt); }
input[disabled] { background: var(--wash); color: var(--muted); }
label.check { display: flex; align-items: flex-start; font-weight: 500; gap: .1em; }
label.check input { margin-top: .25em; }
.hint { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: .35em; }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 1rem; margin-bottom: .6rem; padding: 0; }
.form-grid, .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; align-items: start; }
.form-grid .span-2, .grid-2 .span-2 { grid-column: span 2; }
.form-end { grid-column: 1 / -1; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.inline-form input { width: auto; flex: 1 1 220px; margin: 0; }
.copy-field { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; margin-top: .4rem; }
@media (max-width: 640px) { .form-grid, .grid-2 { grid-template-columns: 1fr; } .form-grid .span-2, .grid-2 .span-2 { grid-column: auto; } }

/* ============ Alerts ============ */
.flashes { max-width: var(--wrap); margin: 1rem auto 0; padding: 0 clamp(18px, 4vw, 32px); }
.app .flashes, .admin .flashes { margin: 1rem 0 0; padding: 0 clamp(16px, 3vw, 36px); max-width: none; }
.alert { border-radius: var(--r); padding: .85rem 1rem; margin-bottom: .75rem; font-size: .95rem; border: 1px solid; }
.alert-success { background: var(--ok-soft); border-color: #BFE5D2; color: #0B5A3B; }
.alert-error { background: var(--flag-soft); border-color: #F4C7C3; color: #8E241E; }
.alert-info { background: var(--cobalt-soft); border-color: #C9D2FB; color: #1A2C8F; }
.alert p { margin: 0; }
.error-box { margin-top: 1rem; background: var(--flag-soft); color: #8E241E; border-radius: var(--r); padding: .85rem 1rem; font-size: .95rem; }
.error-box a { font-weight: 600; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: .7rem .9rem; font-size: .9rem; margin: 1rem 0; }

/* ============ Header ============ */
.site-banner { background: var(--ink); color: #fff; text-align: center; font-size: .9rem; padding: .55rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { color: var(--ink); display: inline-flex; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-mark { color: #fff; }
.logo-light .logo-mark svg rect:last-child { fill: var(--ink); opacity: .9; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .2s; }
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { top: -7px; left: 0; }
.nav-toggle .bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded=true] .bars { background: transparent; }
.nav-toggle[aria-expanded=true] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded=true] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(18px, 4vw, 32px) 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
}

/* ============ Hero ============ */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-h { font-size: clamp(2.5rem, 5.4vw, 4.3rem); max-width: 11em; text-wrap: balance; font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin-bottom: .45em; font-variation-settings: "opsz" 96; }
.hero-sub { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Demo card: the one orchestrated moment */
.demo { margin: 0 10px 10px 0; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-lg); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; border-bottom: 1.5px solid var(--ink); background: var(--wash); }
.demo-title { font-weight: 700; font-size: .95rem; }
.demo-score { font-size: .85rem; font-weight: 600; padding: .3em .75em; border-radius: 999px; transition: background .5s, color .5s; font-variant-numeric: tabular-nums; }
.demo-score b { font-size: 1rem; }
.demo-score[data-band=ai] { background: var(--flag-soft); color: var(--flag); }
.demo-score[data-band=mixed] { background: var(--warn-soft); color: var(--warn); }
.demo-score[data-band=human] { background: var(--ok-soft); color: var(--ok); }
.demo-body { padding: 1.4rem 1.4rem .6rem; min-height: 290px; position: relative; }
.demo-text { font-family: var(--serif); font-size: 1.16rem; line-height: 1.7; margin: 0; transition: opacity .45s; }
.demo-text .m { background-image: linear-gradient(var(--hi), var(--hi)); background-repeat: no-repeat; background-size: 0% 88%; background-position: 0 60%; transition: background-size .55s cubic-bezier(.6,.1,.3,1); border-radius: 2px; }
.demo-text .m.on { background-size: 100% 88%; }
.demo-text.fade { opacity: 0; }
.demo-after { color: var(--ink); }
.demo-notes { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2rem; }
.demo-notes li { font-size: .78rem; font-weight: 600; background: var(--ink); color: #fff; padding: .28em .65em; border-radius: 999px; animation: pop .3s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }
.demo-foot { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.4rem 1rem; font-size: .88rem; color: var(--muted); }

/* ============ Sections ============ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-wash { background: var(--wash); }
.section-h { margin-bottom: .35em; }
.section-h-sm { font-size: 1.3rem; margin: 2rem 0 1rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin-bottom: 2rem; }
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { max-width: 22em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 44em; }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card.pad, .pad { padding: clamp(18px, 2.5vw, 28px); }
.card h2 { font-size: 1.2rem; }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: none; }
.step { position: relative; padding-top: 3.2rem; }
.step-n { position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 1.2rem; left: 3.2rem; right: -1rem; border-top: 2px dashed var(--line-2); }
.step p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* Tells */
.tells { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.tell-list { margin: 0; display: grid; gap: 0; }
.tell-list > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.tell-list > div:last-child { border-bottom: 1px solid var(--line); }
.tell-list dt { font-weight: 700; }
.tell-list dt::before { content: ""; display: inline-block; width: .7em; height: .7em; background: var(--hi); border-radius: 2px; margin-right: .55em; vertical-align: -.02em; }
.tell-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .tells { grid-template-columns: 1fr; } .tell-list > div { grid-template-columns: 1fr; gap: .25rem; } }

/* Use-case grid */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.case { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.2rem 1.1rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.case:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.case h3 { margin-bottom: .35rem; }
.case p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 960px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .case-grid { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; align-items: stretch; margin-bottom: 1.25rem; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.plan-current { border-color: var(--cobalt); }
.plan-flag { position: absolute; top: -.8rem; left: 1.5rem; background: var(--hi); color: var(--ink); font-size: .8rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; margin: 0; border: 1.5px solid var(--ink); }
.plan-name { font-size: 1.35rem; margin-bottom: .15rem; }
.plan-tag { color: var(--muted); font-size: .93rem; }
.plan-price { margin: .25rem 0 1.1rem; }
.plan-price .amt { font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.plan-price .per { color: var(--muted); font-size: .95rem; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan-feats li { padding: .38rem 0 .38rem 1.6rem; position: relative; font-size: .95rem; }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: .72rem; width: .95rem; height: .5rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* Compare strip & hub */
.compare-strip { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.compare-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.compare-links a { display: flex; flex-direction: column; gap: .1rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s; }
.compare-links a:hover { border-color: var(--ink); color: var(--ink); }
.compare-links small { color: var(--muted); font-weight: 400; font-size: .84rem; }
.compare-links-row { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 1.25rem; }
@media (max-width: 860px) { .compare-strip { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .compare-links { grid-template-columns: 1fr; } }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.hub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; }
.hub-card h2 { font-size: 1.3rem; }
.hub-card h2 a { color: var(--ink); text-decoration: none; }
.hub-card h2 a:hover { text-decoration: underline; }
.hub-cat { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.hub-facts { margin: .25rem 0 1.2rem; display: grid; gap: .5rem; flex: 1; }
.hub-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; font-size: .9rem; }
.hub-facts dt { color: var(--muted); }
.hub-facts dd { margin: 0; }

.verdict-box { border: 2px solid var(--ink); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); margin-bottom: 3rem; background: #fff; }
.verdict-box h2 { font-size: 1.35rem; }
.verdict-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.verdict-cols h3 { font-size: 1.05rem; }
.verdict-cols p { margin: 0; color: var(--ink-2); }
@media (max-width: 720px) { .verdict-cols { grid-template-columns: 1fr; } }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.cmp-table thead th { font-size: 1rem; background: var(--wash); }
.cmp-table tbody th { width: 22%; font-weight: 600; color: var(--ink-2); }
.cmp-table td.us, .cmp-table th.us { background: #FAFBFF; width: 39%; }
.cmp-table thead th.us { background: var(--cobalt-soft); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.pc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.pc h2 { font-size: 1.3rem; }
.pc-h { font-size: .95rem; color: var(--muted); margin: 1rem 0 .4rem; }
.pros, .cons { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li { padding: .35rem 0 .35rem 1.6rem; position: relative; font-size: .95rem; }
.pros li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: var(--ok); }
.cons li::before { content: "−"; position: absolute; left: 0; font-weight: 800; color: var(--flag); }
@media (max-width: 720px) { .pc-grid { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.5em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }

/* Use case pages */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }
.ba-card { margin: 0; border-radius: var(--r-lg); padding: 1.4rem 1.5rem; border: 1px solid var(--line); background: #fff; }
.ba-card figcaption { font-weight: 700; font-size: .9rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.ba-card figcaption::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; }
.ba-before figcaption::before { background: var(--flag); }
.ba-after figcaption::before { background: var(--ok); }
.ba-card p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.65; margin: 0; }
.ba-before p { color: var(--muted); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.point h2 { font-size: 1.2rem; }
.point p { color: var(--ink-2); margin: 0; }
.pill-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-links a { display: inline-block; padding: .45em .95em; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.pill-links a:hover { border-color: var(--ink); }
@media (max-width: 760px) { .ba, .points { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.08rem; }
.faq-item summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .6rem; height: .6rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 46em; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; max-width: 18em; }
.cta-band p { color: #C5CCDD; margin: 0; }

/* Footer */
.site-footer { background: #0F1730; color: #C5CCDD; padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2rem; }
.footer-brand p { margin: 1rem 0 .5rem; max-width: 24em; }
.footer-h { font-size: .95rem; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #C5CCDD; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid #263256; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .82rem; color: #8F99B3; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ Checker (shared) ============ */
.checker { padding: clamp(16px, 2.5vw, 24px); }
.draft-input { font-family: var(--serif); font-size: 1.1rem; line-height: 1.65; resize: vertical; min-height: 160px; }
.checker-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.checker-actions { display: flex; gap: .5rem; }
.guest-next { margin-top: 1.5rem; padding: 1.2rem; background: var(--hi-soft); border-radius: var(--r); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.guest-next p { margin: 0; }
.results { margin-top: 1.75rem; scroll-margin-top: 88px; }
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; }
.dial { width: 120px; height: 120px; position: relative; }
.dial svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 10; }
.dial-track { stroke: var(--wash); }
.dial-fill { stroke: var(--muted); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1s cubic-bezier(.3,.7,.2,1), stroke .3s; }
.dial[data-band=ai] .dial-fill { stroke: var(--flag); }
.dial[data-band=mixed] .dial-fill { stroke: #D98E04; }
.dial[data-band=human] .dial-fill { stroke: var(--ok); }
.dial-num { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font-family: var(--display); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.dial-num small { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: .2rem; }
.verdict { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: .25rem; }
.verdict[data-band=ai] { color: var(--flag); }
.verdict[data-band=mixed] { color: var(--warn); }
.verdict[data-band=human] { color: var(--ok); }
.result-summary p { margin-bottom: .4rem; }
.engine-note { font-size: .82rem; color: var(--muted); }
.result-h { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.marked { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; margin-top: .5rem; max-height: 460px; overflow: auto; }
.marked p { margin: 0 0 .8em; }
.marked p:last-child { margin: 0; }
.sent { position: relative; border-radius: 3px; }
.sent.f-low { background: linear-gradient(transparent 62%, var(--hi-soft) 62%); }
.sent.f-medium { background: var(--hi-soft); box-shadow: 0 0 0 1px var(--hi-soft); }
.sent.f-high { background: var(--hi); box-shadow: 0 0 0 1px var(--hi); }
.sent[data-reason] { cursor: help; }
.sent[data-reason]:hover, .sent[data-reason]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.tip-pop { position: absolute; z-index: 50; max-width: 300px; background: var(--ink); color: #fff; font: 500 .85rem/1.4 var(--text); padding: .55rem .75rem; border-radius: 8px; pointer-events: none; box-shadow: var(--shadow); }
.result-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.signals { list-style: none; padding: 0; margin: 0; }
.signals li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; }
.signals li:last-child { border-bottom: 0; }
.signals strong { font-size: .95rem; }
.signals p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .88rem; }
.sev { font-size: .75rem; font-weight: 700; padding: .15em .55em; border-radius: 999px; align-self: start; }
.sev-low { background: var(--ok-soft); color: var(--ok); }
.sev-medium { background: var(--warn-soft); color: var(--warn); }
.sev-high { background: var(--flag-soft); color: var(--flag); }
.tips { padding-left: 1.2rem; margin: 0; }
.tips li { margin-bottom: .5rem; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 720px) { .result-cols { grid-template-columns: 1fr; } .result-head { grid-template-columns: 1fr; justify-items: start; } }

/* chips */
.chips { display: inline-flex; align-items: center; gap: .3rem; }
.chip { display: inline-block; min-width: 2.1rem; text-align: center; font-weight: 700; font-size: .82rem; padding: .2em .5em; border-radius: 999px; font-variant-numeric: tabular-nums; background: var(--wash); color: var(--muted); }
.chip-ai { background: var(--flag-soft); color: var(--flag); }
.chip-mixed { background: var(--warn-soft); color: var(--warn); }
.chip-human { background: var(--ok-soft); color: var(--ok); }
.chip-lg { font-size: .95rem; padding: .35em .8em; }
.chip-arrow { color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15em .55em; border-radius: 999px; background: var(--wash); color: var(--ink-2); vertical-align: .1em; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

/* ============ Auth ============ */
.auth { min-height: calc(100vh - 68px - 300px); display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) 18px; background: var(--wash); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; font-size: .93rem; margin: 1rem 0 0; }

/* ============ App shell ============ */
body.app, body.admin { background: var(--wash); }
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.app-side { background: #fff; border-right: 1px solid var(--line); padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-side .logo { padding: 0 .5rem; }
.app-nav { display: flex; flex-direction: column; gap: .15rem; }
.app-nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.app-nav a svg { width: 18px; height: 18px; fill: currentColor; opacity: .75; }
.app-nav a:hover { background: var(--wash); color: var(--ink); }
.app-nav a.on { background: var(--ink); color: #fff; }
.app-nav a.on svg { opacity: 1; }
.side-usage { margin-top: auto; background: var(--wash); border-radius: var(--r); padding: 1rem; }
.side-usage p { margin: .4rem 0 .6rem; }
.side-plan { font-weight: 700; margin: 0 0 .5rem !important; }
.side-out { padding: 0 .75rem; }
.meter { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; }
.meter-lg { height: 12px; margin: .4rem 0; }
.app-main { min-width: 0; }
.app-top { display: none; height: 60px; align-items: center; justify-content: space-between; padding: 0 1rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-hello { margin: 0; font-weight: 600; color: var(--ink-2); }
.app-content { padding: clamp(18px, 3vw, 36px); max-width: 1400px; }
.app-content > h1 { font-size: 1.9rem; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow); }
  .app-side.open { transform: none; }
  .app-top { display: flex; }
  .nav-toggle.app-toggle { display: block; }
}
.page-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-title-row h1 { margin: 0; font-size: 1.9rem; }
.count { font-size: 1rem; color: var(--muted); font-weight: 500; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-bar input, .filter-bar select { width: auto; margin: 0; }
.filter-bar input { flex: 1 1 240px; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.ed-input { padding: clamp(16px, 2vw, 24px); position: sticky; top: 20px; }
.title-input { border: 0; padding: .2em 0; margin: 0 0 .6rem; font: 700 1.3rem/1.2 var(--display); letter-spacing: -0.02em; box-shadow: none !important; }
.title-input:focus { border-bottom: 2px solid var(--cobalt); border-radius: 0; }
.title-lg { font-size: 1.8rem; }
.draft-tall { min-height: 300px; height: 42vh; }
.ed-meta { display: flex; gap: 1.1rem; align-items: center; font-size: .86rem; color: var(--muted); margin: .6rem 0 1rem; flex-wrap: wrap; }
.ed-meta > span { margin-right: auto; font-variant-numeric: tabular-nums; }
.ed-meta .over { color: var(--flag); font-weight: 700; }
.ed-options { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.ed-options select { margin-top: .3em; }
.seg { grid-column: 1 / -1; }
.seg legend { font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: .4rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0; }
.seg legend { width: 100%; }
.seg label { flex: 1; margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .55em .5em; border: 1.5px solid var(--line-2); font-weight: 500; font-size: .9rem; cursor: pointer; margin-left: -1.5px; }
.seg label:first-of-type span { border-radius: 10px 0 0 10px; margin-left: 0; }
.seg label:last-of-type span { border-radius: 0 10px 10px 0; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; z-index: 1; }
.seg input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; font-weight: 600; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle-ui { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .toggle-ui { background: var(--cobalt); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.toggle small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.toggle.is-off { cursor: default; }
.ed-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; padding-top: .4rem; }
.ed-output { min-height: 400px; }
.ed-output .results { margin-top: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.5vw, 28px); box-shadow: var(--shadow); }
.empty-state { background: #fff; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.empty-state h2 { font-size: 1.35rem; }
.empty-state p { color: var(--ink-2); }
.loading { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem; }
.loading p { margin: 1.2rem 0 0; color: var(--muted); font-weight: 500; }
.loading-lines span { display: block; height: 14px; border-radius: 7px; margin-bottom: 12px; background: linear-gradient(90deg, var(--wash) 0%, var(--hi-soft) 40%, var(--wash) 80%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.loading-lines span:nth-child(2) { width: 86%; } .loading-lines span:nth-child(3) { width: 64%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.disclaimer { font-size: .82rem; color: var(--muted); margin-top: 1.5rem; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .ed-input { position: static; } .draft-tall { height: 34vh; } }
@media (max-width: 520px) { .ed-options { grid-template-columns: 1fr; } }

/* Rewrite output */
.ba-scores { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ba-score { display: flex; flex-direction: column; gap: .25rem; }
.ba-score .lbl { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ba-arrow svg { width: 26px; height: 26px; color: var(--muted); margin-top: 1rem; }
.ba-saved { margin-left: auto; font-size: .9rem; margin-top: 1rem; }
.rewrite-card { padding: 0; overflow: hidden; }
.rewrite-tools { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--wash); flex-wrap: wrap; }
.tabs { display: flex; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.tabs button { border: 0; background: none; font: 600 .86rem var(--text); padding: .45em .9em; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected=true] { background: var(--ink); color: #fff; }
.rewrite-btns { display: flex; gap: .2rem; }
.rewrite-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; padding: 1.3rem 1.4rem; white-space: pre-wrap; }
.rewrite-text ins { background: var(--ok-soft); color: #0B5A3B; text-decoration: none; border-radius: 2px; }
.rewrite-text del { color: var(--flag); text-decoration: line-through; text-decoration-color: rgba(201,55,47,.6); opacity: .8; }
.change-list { margin: 0; padding: .2rem 1.4rem 1.2rem 2.6rem; font-size: .92rem; color: var(--ink-2); }
.change-list li { margin-bottom: .3rem; }
.rewrite-card [data-voice-note] { padding: 0 1.4rem 1rem; margin: 0; }
.after-details { margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.after-details > summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; }
.after-details > div { padding: 0 1.1rem 1.1rem; }
.after-details .results { margin-top: 0; border: 0; box-shadow: none; padding: 0; }

/* Documents */
.doc-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a { display: flex; justify-content: space-between; gap: 1.25rem; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.doc-list a:hover { background: #FAFBFD; }
.doc-main { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.doc-t { font-weight: 600; }
.doc-ex { color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.doc-when { font-size: .82rem; color: var(--muted); }
.doc-list-compact { border-radius: var(--r); }
.doc-list-compact a { padding: .7rem .9rem; align-items: center; }
.doc-head { margin-bottom: 1.25rem; }
.rename-form { display: flex; gap: .5rem; align-items: center; margin: .6rem 0 .2rem; }
.rename-form input { flex: 1; margin: 0; }
.doc-actions { display: flex; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.doc-view .results { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.5vw, 28px); margin-top: .5rem; }
.danger-row { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .doc-list a { flex-direction: column; } .doc-side { align-items: flex-start; flex-direction: row; } }

/* Account & billing */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.settings-grid .span-2 { grid-column: span 2; }
.danger-zone { border-color: #F4C7C3; }
@media (max-width: 800px) { .settings-grid { grid-template-columns: 1fr; } .settings-grid .span-2 { grid-column: auto; } }
.usage-card { margin-bottom: 1rem; }
.usage-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.usage-plan { font-family: var(--display); font-size: 1.6rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.usage-meter p { margin: 0; }
@media (max-width: 760px) { .usage-row { grid-template-columns: 1fr; gap: 1rem; } }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--wash); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a { font-weight: 600; text-decoration: none; }

/* ============ Admin ============ */
.admin-side { background: var(--ink); border-right: 0; color: #C5CCDD; }
.admin-tag { margin: -1rem 0 0; padding: 0 .5rem; font-size: .82rem; color: var(--hi); font-weight: 700; }
.admin-side .app-nav a { color: #C5CCDD; }
.admin-side .app-nav a:hover { background: #22305A; color: #fff; }
.admin-side .app-nav a.on { background: #fff; color: var(--ink); }
.side-links { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; padding: 0 .75rem; font-size: .9rem; }
.side-links a, .side-links .link-btn { color: #C5CCDD; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.kpi-l { font-size: .84rem; color: var(--muted); margin: 0 0 .25rem; }
.kpi-v { font-family: var(--display); font-size: 1.75rem; font-weight: 800; margin: 0; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.admin-grid .span-2 { grid-column: span 2; }
.admin-grid .span-3 { grid-column: 1 / -1; }
@media (max-width: 1100px) { .admin-grid { grid-template-columns: 1fr; } .admin-grid .span-2, .admin-grid .span-3 { grid-column: auto; } }
.bars-wrap p { margin: .6rem 0 .3rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: var(--cobalt); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars-alt span { background: var(--ink); }
.bars-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.health { list-style: none; padding: 0; margin: 0 0 1rem; }
.health li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.health li:last-child { border-bottom: 0; }
.health .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; flex: none; }
.health .ok .dot { background: var(--ok); }
.health .todo .dot { background: #D98E04; }
.health strong { display: block; font-size: .93rem; }
.health small { color: var(--muted); }
.mini-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list small { color: var(--muted); text-align: right; }
.mini-list a { font-weight: 600; text-decoration: none; }
.kv { margin: 0 0 1.25rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; word-break: break-all; }
.plan-edit-list { display: grid; gap: 1.25rem; }
.plan-edit legend { font-size: 1.15rem; padding: 0; margin-bottom: 1rem; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--wash) 30%); padding: 1.25rem 0 .75rem; display: flex; gap: .6rem; }
.narrow-card { max-width: 560px; }
.setup-steps { padding-left: 1.2rem; color: var(--ink-2); font-size: .93rem; margin: 0 0 1.25rem; }
.setup-steps li { margin-bottom: .5rem; }
.pager { display: flex; gap: .3rem; margin-top: 1rem; flex-wrap: wrap; }
.pager a { padding: .4em .8em; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pager a.on { background: var(--ink); color: #fff; }
.prose-box { font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; max-height: 520px; overflow: auto; }
.err-code { font-family: var(--display); font-size: 5rem; font-weight: 800; margin: 0; color: var(--line-2); letter-spacing: -0.05em; }

/* Installer */
body.install { background: var(--wash); padding: 40px 16px; }
.install-card { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.install-card fieldset { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.install-card fieldset > label + label { margin-top: 1rem; }
.code-block { background: var(--ink); color: #E6EAF5; padding: 1rem; border-radius: var(--r); overflow: auto; font-size: .82rem; }
