:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f2ed;
  --border: #e4e2da;
  --border-strong: #cfccc2;
  --text: #1b1a17;
  --muted: #6a6860;
  --ink: #1b1a17;          /* primary buttons */
  --ink-hover: #3a3833;
  --ink-text: #ffffff;
  --link: #24489b;
  --accent: #d9541a;       /* used sparingly: logo iris, focus ring */
  --focus: rgba(27, 26, 23, .16);
  --human: #1e7f4f;
  --human-soft: #e6f2ea;
  --unsure: #a86500;
  --unsure-soft: #f8eedb;
  --ai: #c8372d;
  --ai-soft: #f9e6e3;
  --hl: 200, 55, 45;
  --shadow: 0 1px 2px rgba(27, 26, 23, .05);
  --shadow-lg: 0 12px 32px rgba(27, 26, 23, .12);
  --radius: 10px;
  --serif: "Newsreader", "Newsreader Fallback", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131312;
    --surface: #1b1b19;
    --surface-2: #242421;
    --border: #2f2f2b;
    --border-strong: #45443f;
    --text: #ecebe5;
    --muted: #9c9a91;
    --ink: #ecebe5;
    --ink-hover: #ffffff;
    --ink-text: #141412;
    --link: #8fb0ff;
    --focus: rgba(236, 235, 229, .18);
    --human: #4cc38a;
    --human-soft: #16291f;
    --unsure: #e0a640;
    --unsure-soft: #2f2610;
    --ai: #f0685c;
    --ai-soft: #351a17;
    --hl: 240, 104, 92;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--link); text-underline-offset: 2px; }
svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons */
.primary, .secondary, .danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; border-radius: 8px; padding: 10px 18px;
  cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, opacity .12s; border: 1px solid transparent;
}
.primary { color: var(--ink-text); background: var(--ink); }
.primary:hover:not(:disabled) { background: var(--ink-hover); }
.primary:disabled { opacity: .35; cursor: not-allowed; }
.secondary { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.secondary:hover { border-color: var(--text); }
.danger { color: #fff; background: var(--ai); }
.wide { width: 100%; }
.big { padding: 13px 22px; font-size: 16px; }
.ghost-btn { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 7px; padding: 6px 11px; cursor: pointer; }
.ghost-btn:hover { color: var(--text); border-color: var(--border-strong); }
.linklike { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.icon-btn { width: 32px; height: 32px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: 1040px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand .logo { width: 30px; height: 30px; display: block; }
.brand.small { font-size: 18px; }
.brand.small .logo { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.account { display: flex; align-items: center; gap: 10px; }
.account .primary { padding: 7px 14px; font-size: 14px; }
.nav-login { font: inherit; font-size: 15px; color: var(--text); background: none; border: 0; cursor: pointer; padding: 6px 4px; }
.nav-login:hover { text-decoration: underline; text-underline-offset: 3px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); cursor: pointer; color: var(--text); background: var(--surface-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.menu { position: absolute; right: 24px; top: 56px; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.menu .who span { font-size: 13px; color: var(--muted); }
.menu button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; background: none; border: 0; padding: 8px 12px; border-radius: 6px; cursor: pointer; color: var(--text); }
.menu button:hover { background: var(--surface-2); }
.menu button.danger-text { color: var(--ai); }
.pro-chip { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--border-strong); padding: 0 5px; border-radius: 4px; line-height: 16px; text-transform: uppercase; }
.pro-chip.big { font-size: 11.5px; padding: 1px 7px; color: var(--text); }
/* Pre-launch switch (PRO_COMING_SOON): paid calls to action and their "coming soon" twins. Driven by the
   server-rendered data attribute so the right copy shows before any script runs. */
body[data-soon="1"] .if-paid, body:not([data-soon="1"]) .if-soon { display: none !important; }
.pro-chip.soon-chip { border-style: dashed; }

/* ---------- hero */
.hero { padding: 56px 0 32px; }
.hero-text { max-width: 860px; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; margin: 0 0 14px; letter-spacing: -.02em; }
.lede { color: var(--muted); margin: 0; max-width: 620px; font-size: 18px; }
.tool { max-width: 860px; margin: 0 auto; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; flex: none; font: inherit; font-size: 15px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 14px 10px; cursor: pointer; white-space: nowrap; }
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.composer { position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.composer:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px var(--focus); }
.panel { position: relative; }
textarea { display: block; width: 100%; min-height: 220px; max-height: 50vh; resize: vertical; border: 0; outline: 0; padding: 18px 20px; background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.65; }
textarea.short { min-height: 120px; }
textarea::placeholder { color: var(--muted); }
.field-label { display: block; padding: 12px 20px 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.split-top { border-bottom: 1px solid var(--border); }
.composer-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }
.spacer { flex: 1; }
.count { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.count.warn { color: var(--unsure); }
.count.over { color: var(--ai); font-weight: 600; }
.seg-ctl { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 7px; overflow: hidden; }
.seg-ctl button { font: inherit; font-size: 13.5px; padding: 5px 10px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.seg-ctl button + button { border-left: 1px solid var(--border-strong); }
.seg-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); }
.limit-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--border); background: var(--unsure-soft); }
.limit-note svg { flex: none; color: var(--unsure); }
.limit-note .linklike { margin-left: auto; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 270px; padding: 28px; text-align: center; cursor: pointer; color: var(--muted); border: 1.5px dashed var(--border-strong); border-radius: 8px; margin: 12px; transition: border-color .12s, background .12s; }
.dropzone:hover { border-color: var(--text); background: var(--surface-2); }
.dropzone svg { width: 34px; height: 34px; color: var(--text); margin-bottom: 6px; stroke-width: 1.6; }
.dropzone b { color: var(--text); font-size: 16px; }
.dropzone span { font-size: 14px; max-width: 460px; }
.lock-overlay { display: none; }
body.free .lock-overlay { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, var(--surface) 40%, transparent); z-index: 2; }
body.free .panel[data-pro] .dropzone, body.free .panel[data-pro] textarea, body.free .panel[data-pro] .composer-bar { filter: grayscale(1); opacity: .45; }
.lock-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 380px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 22px; }
.lock-card b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.lock-card > span:not(.lock-icon) { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.lock-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text) !important; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.lock-icon svg { width: 16px; height: 16px; }
.drop-overlay { position: absolute; inset: 8px; border: 2px dashed var(--text); border-radius: 8px; z-index: 3; background: color-mix(in srgb, var(--surface) 94%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .12s; }
.drop-overlay svg { width: 30px; height: 30px; }
body.dragging .drop-overlay { opacity: 1; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: var(--human); stroke-width: 2.4; }

/* ---------- results */
.results { display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin: 26px auto 0; }
.results:empty { margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.card-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); }
.thumb { width: 36px; height: 36px; border-radius: 6px; flex: none; background: var(--surface-2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10.5px; font-weight: 700; border: 1px solid var(--border); }
.thumb svg { width: 17px; height: 17px; }
.card-title { min-width: 0; flex: 1; }
.name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: var(--muted); font-size: 13px; }
.card-body { padding: 22px; }
.skeleton { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 8px 0; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { display: flex; gap: 10px; align-items: flex-start; color: var(--ai); }
.error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.upsell-inline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.upsell-inline p { margin: 0; flex: 1; min-width: 220px; }

.verdict { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.gauge { position: relative; width: 120px; height: 120px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { stroke: var(--surface-2); }
.gauge .bar { transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); stroke-linecap: butt; }
.gauge .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.gauge .num b { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; }
.gauge .num span { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 2px 9px; border-radius: 5px; margin-bottom: 8px; }
.tone-human { color: var(--human); }  .bg-human { background: var(--human-soft); color: var(--human); }
.tone-unsure { color: var(--unsure); } .bg-unsure { background: var(--unsure-soft); color: var(--unsure); }
.tone-ai { color: var(--ai); }         .bg-ai { background: var(--ai-soft); color: var(--ai); }
.headline { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 4px; line-height: 1.25; }
.summary { color: var(--muted); margin: 0; }
.notes { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.notes li { font-size: 13.5px; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--unsure); }
.section-h { margin-top: 24px; }
.section-h h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--border); border-radius: 8px; }
.stat { position: relative; padding: 12px 16px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.locked b { filter: blur(6px); user-select: none; }
.stat.locked::after { content: "Pro"; position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-strong); padding: 0 5px; border-radius: 4px; line-height: 16px; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.legend .ramp { width: 80px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(var(--hl), .2) 45%, rgba(var(--hl), .55)); border: 1px solid var(--border); }
.passage { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; max-height: 420px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.75; }
.seg { border-radius: 2px; padding: 1px 0; }
.seg:hover { outline: 1px solid rgba(var(--hl), .6); }
.toggle { font: inherit; font-size: 12px; color: var(--link); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: underline; }
/* The card sets the box height (so it is never clipped); the blurred preview fills whatever space that is. */
.locked-box { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.locked-box .passage { position: absolute; inset: 0; border: 0; border-radius: 0; filter: blur(5px); user-select: none; pointer-events: none; max-height: none; overflow: hidden; }
body.free .locked-box .lock-overlay, .locked-box .lock-overlay { display: flex; position: relative; inset: auto; min-height: 240px; align-items: center; justify-content: center; padding: 24px 16px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.locked-box .lock-card { box-shadow: none; max-width: min(380px, 100%); }
.image-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; margin-top: 24px; align-items: start; }
.preview { border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.preview img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; }
.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.finding { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); }
.finding .fi { width: 20px; height: 20px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.finding .fi svg { width: 12px; height: 12px; stroke-width: 2.6; }
.finding.ai .fi { background: var(--ai-soft); color: var(--ai); }
.finding.edit .fi { background: var(--unsure-soft); color: var(--unsure); }
.finding.real .fi { background: var(--human-soft); color: var(--human); }
.finding.info .fi { background: var(--surface-2); color: var(--muted); }
.finding b { display: block; font-size: 14px; font-weight: 600; }
.finding span { display: block; font-size: 13px; color: var(--muted); }
.finding a { font-size: 13px; word-break: break-all; }
.finding q { display: block; font-size: 13.5px; color: var(--text); margin-top: 4px; font-style: italic; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.barrow { font-size: 13.5px; }
.barrow .top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.barrow .top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barrow .top span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); flex: none; }
.track-h { height: 5px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.track-h i { display: block; height: 100%; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
mark.match { background: rgba(var(--hl), .2); color: inherit; border-bottom: 2px solid rgba(var(--hl), .7); padding: 0 1px; }
mark.claim-supported { background: var(--human-soft); color: inherit; border-bottom: 2px solid var(--human); }
mark.claim-contradicted { background: var(--ai-soft); color: inherit; border-bottom: 2px solid var(--ai); }
mark.claim-unverified { background: var(--unsure-soft); color: inherit; border-bottom: 2px dashed var(--unsure); }

/* ---------- marketing sections */
.catches { padding: 40px 0 64px; }
.catches p { margin: 0 auto; max-width: 860px; color: var(--muted); font-size: 15px; }
.catches b { color: var(--text); font-weight: 600; }
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section.alt { background: var(--surface); }
.section h2, .cta-band h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.12; margin: 0 0 10px; }
.section-lede { color: var(--muted); margin: 0 0 40px; max-width: 580px; font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.feature { position: relative; padding: 26px 24px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.feature h3 { margin: 14px 0 6px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.plan-tag { position: absolute; top: 24px; right: 22px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.plan-tag svg { width: 11px; height: 11px; stroke-width: 2.4; }
.plan-tag.free { color: var(--human); }
body.pro .plan-tag.pro svg { display: none; }
.f-icon { width: 22px; height: 22px; color: var(--text); }
.f-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--text); padding-top: 16px; }
.steps span { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.steps h3 { margin: 6px 0 6px; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.big-stat { padding: 22px 20px 0 0; }
.big-stat b { display: block; font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.big-stat span { color: var(--muted); font-size: 15px; display: block; max-width: 210px; }
.fineprint { color: var(--muted); font-size: 13px; max-width: 760px; margin: 32px 0 0; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 20px; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.price-card.featured { border: 2px solid var(--text); }
.price-card h3 { margin: 0; font-size: 22px; }
.price { margin: 10px 0 4px; }
.price b { font-family: var(--serif); font-size: 44px; font-weight: 600; letter-spacing: -.02em; }
.price-note { margin: 0; color: var(--muted); font-size: 14px; }
.ribbon { position: absolute; top: 28px; right: 28px; font-size: 12px; font-weight: 600; color: var(--human); background: var(--human-soft); padding: 2px 8px; border-radius: 5px; }
.ribbon.soon { color: var(--muted); background: var(--surface-2); }
.ticks { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ticks li { display: flex; gap: 10px; font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7f4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks li.no { color: var(--muted); }
.ticks li.no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a097' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E"); }
.ticks.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 6px 0 4px; }
.faq { margin-top: 24px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 18px 32px 18px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 20px; color: var(--muted); max-width: 680px; }
.cta-band { padding: 80px 0; border-top: 1px solid var(--border); background: var(--surface); }
.cta-band p { margin: 0 0 24px; color: var(--muted); font-size: 17px; }
.footer { padding: 32px 0 44px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer nav a, .footer nav .linklike { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--text); text-decoration: underline; }
.fine { color: var(--muted); font-size: 13px; margin: 0; flex-basis: 100%; }
.fine.center { text-align: center; margin-top: 10px; }

/* ---------- dialogs, toast, consent */
.dialog { border: 1px solid var(--border); padding: 0; border-radius: 12px; background: var(--surface); color: var(--text); width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.dialog.wide { width: min(520px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(20, 19, 17, .5); }
.dialog[open] { animation: pop .15s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.dialog-body { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dialog-body h2 { margin: 0; font-size: 26px; }
.dialog-body .pro-chip { align-self: flex-start; }
.dialog-sub { margin: -6px 0 4px; color: var(--muted); font-size: 15px; }
.dialog-close { position: absolute; top: 14px; right: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); outline: 0; }
.field input:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--focus); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.form-error { margin: 0; color: var(--ai); font-size: 14px; background: var(--ai-soft); padding: 9px 12px; border-radius: 7px; }
.switch { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.trial-terms { border: 1px solid var(--border); border-radius: 8px; padding: 4px 16px; }
.trial-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; }
.trial-row + .trial-row { border-top: 1px solid var(--border); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--ink-text); padding: 11px 16px; border-radius: 8px; font-size: 15px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); animation: rise .2s ease-out; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 640px; margin: 0 auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 14px 16px; }
.consent p { margin: 0; flex: 1; min-width: 220px; font-size: 14px; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { padding: 8px 14px; font-size: 14px; }

/* ---------- social login */
.social { display: flex; flex-direction: column; gap: 8px; }
.social:empty { display: none; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px 14px; font: inherit; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 7px; cursor: pointer; transition: border-color .12s; }
.social-btn:hover { border-color: var(--text); }
.social-btn.preview { cursor: not-allowed; color: var(--muted); border-style: dashed; }
.social-btn.preview:hover { border-color: var(--border-strong); }
.social-btn.preview small { margin-left: 4px; font-weight: 500; font-size: 12px; color: var(--muted); }
.social-btn svg { width: 20px; height: 20px; flex: none; stroke: none; }
.social-terms { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

body.pro .tab .pro-chip { display: none; }

/* figures use the UI sans; the serif is for headings only */
.big-stat b, .stat b, .gauge .num b, .price b { font-family: var(--sans); font-weight: 650; letter-spacing: -.03em; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .big-stat { padding-bottom: 12px; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap, .nav-inner { padding-left: 18px; padding-right: 18px; }
  .nav-inner { gap: 10px; }
  .hero { padding-top: 32px; }
  .feature-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .image-layout { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; justify-items: start; }
  .card-body { padding: 18px; }
  .section, .cta-band { padding: 56px 0; }
  .tab { padding: 8px 10px 9px; }
  .tab svg { display: none; }
  .composer-bar #analyzeBtn, .composer-bar .run-btn { flex: 1 0 100%; }
  .ticks.two-col { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .big-stat b { font-size: 42px; }
}
@media (max-width: 380px) {
  .brand { font-size: 20px; }
  .account .primary { padding: 7px 11px; font-size: 13px; }
}

/* ---------- progress while a check runs */
.progress { padding: 4px 0 2px; }
.progress-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.progress-head b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.progress-eta { display: block; color: var(--muted); font-size: 14px; }
.blink-eye { width: 40px; height: 40px; flex: none; stroke: none; }
.blink-eye .lid { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.2; }
.blink-eye .iris { fill: var(--accent); }
.blink-eye .pupil { fill: var(--text); }
.blink-eye .iris, .blink-eye .pupil { transform-origin: 16px 16px; animation: eye-look 3.2s ease-in-out infinite; }
.blink-eye { transform-origin: 50% 50%; animation: eye-blink 3.2s ease-in-out infinite; }
@keyframes eye-look { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
@keyframes eye-blink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.progress-track { position: relative; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.progress-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--text); border-radius: 2px; transition: width .2s linear; }
.progress-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent), transparent); animation: sheen 1.4s linear infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress-steps { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.progress-steps li { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.progress-steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: background .2s, border-color .2s; }
.progress-steps li.now { color: var(--text); }
.progress-steps li.now::before { border-color: var(--text); background: var(--surface); box-shadow: 0 0 0 3px var(--focus); }
.progress-steps li.done::before { border-color: var(--human); background: var(--human); }
@media (prefers-reduced-motion: reduce) {
  .blink-eye, .blink-eye .iris, .blink-eye .pupil, .progress-track i::after { animation: none; }
  .progress-track i { transition: none; }
}

/* ---------- layout stability (CLS) */
/* The web font loads after first paint (fonts.js). Until it arrives, headings use Times New Roman Bold
   resized and re-spaced to Newsreader's metrics, so the swap doesn't re-wrap lines or move the page. */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  font-weight: 400 700;
  size-adjust: 102%; ascent-override: 72.5%; descent-override: 26.5%; line-gap-override: 0%;
}
/* /api/me fills #account after load; reserve its space so the header doesn't grow and push the page down. */
.nav-inner { min-height: 63px; }
.account:empty { min-width: 160px; }

.progress.queued .progress-track i::after { animation-duration: 2.2s; }
.progress.queued .progress-track { background: repeating-linear-gradient(90deg, var(--surface-2) 0 10px, var(--border) 10px 12px); }

/* ---------- pricing comparison */
.trust .trust-price a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.trust .trust-price a:hover { text-decoration-color: var(--text); }
.compare { margin-top: 40px; max-width: 820px; }
.compare h3 { font-size: 22px; margin: 0 0 12px; }
.compare table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare thead th:nth-child(2) { color: var(--text); }
.compare tbody th { font-weight: 500; color: var(--muted); width: 34%; }
.compare td:nth-child(2) { font-weight: 600; background: color-mix(in srgb, var(--human-soft) 45%, transparent); }
.compare td:nth-child(3) { color: var(--muted); }
.compare td.yes::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e7f4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 620px) {
  .compare th, .compare td { padding: 10px 10px; font-size: 14px; }
  .compare tbody th { width: 38%; }
}
