/* TextFlag — design system and pages. */
:root {
  --brand: #F2542D;
  --brand-600: #D9431E;
  --brand-700: #B53718;
  --brand-50: #FFF5F1;
  --brand-100: #FFE6DC;
  --hl: #B2E5ED;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6475;
  --line: #E6E8EE;
  --line-2: #D5D9E2;
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --human: #14A37F;
  --human-50: #EAF8F3;
  --mixed: #E8A317;
  --mixed-50: #FDF6E6;
  --danger: #D92D20;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 60px -20px rgba(15, 23, 42, .25);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Lexend Deca", var(--font);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { background: #F6A58F; box-shadow: none; cursor: progress; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1E293B; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--brand-600); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--brand); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; padding: 40px 0 64px; overflow: hidden; }
.hero h1, .section h2, .page-hero h1 { text-wrap: balance; }
.hero .lede { text-wrap: pretty; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 720px; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 40%, rgba(242, 84, 45, .13), transparent 70%),
    radial-gradient(35% 45% at 85% 25%, rgba(20, 163, 127, .10), transparent 70%),
    linear-gradient(180deg, #FFF8F5, #fff 75%);
}
.hero-head { text-align: center; max-width: 860px; margin: 0 auto 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--human); box-shadow: 0 0 0 4px rgba(20, 163, 127, .15); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 16px 0 14px; }
.hero h1 .accent { color: var(--brand); display: block; }
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 680px; margin: 0 auto; }

/* Checker */
.checker { max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.checker-tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.checker-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-bottom: 0; background: none; padding: 11px 16px; border-radius: 12px 12px 0 0; font-weight: 600; font-size: 14.5px; color: var(--muted); margin-bottom: -1px; }
.checker-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: var(--line); }
.checker-tabs .plan-chip { margin: auto 6px auto auto; font-size: 12.5px; font-weight: 600; color: var(--human); background: var(--human-50); padding: 4px 10px; border-radius: 999px; }
.checker-body { padding: 0; }
.checker textarea {
  display: block; width: 100%; min-height: 280px; resize: vertical; border: 0; outline: 0;
  padding: 22px 24px; font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff;
}
.checker textarea::placeholder { color: #98A1B2; }
.checker-tools { display: flex; align-items: center; gap: 12px; padding: 8px 18px 10px 22px; border-top: 1px dashed var(--line); }
.word-count { margin-left: auto; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.word-count.over { color: var(--danger); font-weight: 600; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 318px; margin: 18px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface);
  cursor: pointer; transition: border-color .15s, background .15s; padding: 24px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone .dz-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.dropzone .dz-icon .icon { width: 26px; height: 26px; }
.dropzone strong { font-size: 17px; }
.dropzone small { color: var(--muted); font-size: 14px; }
.dropzone .browse { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; max-width: 100%; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { border: 0; background: var(--surface); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.checker-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px 16px 22px; border-top: 1px solid var(--line); background: #FCFCFD; }
.mode { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 320px; }
.mode-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: max-content; }
.mode-switch label { position: relative; }
.mode-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-switch span { display: block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.mode-switch input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.mode-switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.mode-hint { font-size: 13px; color: var(--muted); }
.checker-submit { margin-left: auto; }
.checker-submit .btn { min-width: 190px; }
.checker-status { padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.status-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 600; margin-bottom: 10px; }
.status-row span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #FF8A5B); transition: width .5s ease; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 22px; font-size: 14.5px; border-top: 1px solid #FBD5D1; background: #FEF3F2; color: #912018; }
.alert .icon { margin-top: 2px; }
.checker-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 18px auto 0; color: var(--muted); font-size: 14px; }
.checker-meta span { display: inline-flex; align-items: center; gap: 6px; }
.checker-meta .icon { width: 16px; height: 16px; color: var(--human); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.card-icon.green { background: var(--human-50); color: var(--human); }
.card-icon.ink { background: #EEF0F5; color: var(--ink); }
.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 26px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 15px var(--font-head); box-shadow: 0 0 0 6px var(--surface); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font: 600 26px/1.2 var(--font-head); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* Feature split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--ink-2); }
.checklist li .icon { color: var(--human); margin-top: 3px; }
.checklist strong { color: var(--ink); }

/* Mock report (marketing) */
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-body { display: grid; grid-template-columns: 170px 1fr; }
.mock-side { padding: 22px 18px; border-right: 1px solid var(--line); text-align: center; }
.mock-side .ring { margin: 0 auto 10px; }
.mock-doc { padding: 22px 22px 26px; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.mock-doc p + p { margin-top: 12px; }

/* Score ring */
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring .track { stroke: #E9ECF1; }
.ring .bar { stroke: var(--tone, var(--brand)); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.ring .value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .value strong { font: 600 32px/1 var(--font-head); letter-spacing: -.03em; }
.ring .value span { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ring.sm { width: 112px; height: 112px; }
.ring.sm .value strong { font-size: 26px; }
.ring.sm .value span { font-size: 10.5px; margin-top: 4px; }

mark.ai { background: var(--hl); color: inherit; padding: 1px 0; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Who it's for / comparison */
.mode-cards .card { position: relative; }
.mode-cards .tag { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--human-50); color: var(--human); }
.metric-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.metric-list li { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.metric-list b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Accuracy */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof .card strong { display: block; font: 600 40px/1.1 var(--font-head); letter-spacing: -.03em; color: var(--ink); }
.proof .card strong small { font-size: 20px; color: var(--muted); }
.note-box { margin-top: 24px; padding: 18px 20px; border-radius: var(--r); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-2); font-size: 15px; display: flex; gap: 12px; }
.note-box .icon { color: var(--brand-600); margin-top: 2px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px; transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font: 600 17px/1.4 var(--font-head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq .answer p + p { margin-top: 10px; }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 84, 45, .55), transparent 65%); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta p { color: #CBD2DE; font-size: 17px; }
.cta > * { position: relative; z-index: 1; }

/* Prose (legal, long-form) */
.page-hero { padding: 56px 0 36px; background: linear-gradient(180deg, #FFF8F5, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 720px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose > h2:first-child { margin-top: 0; }
.prose code { font-size: .9em; background: var(--surface, #F7F8FA); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.answer-box { background: #FFF6F2; border: 1px solid #FBD9CC; border-left: 4px solid var(--brand); border-radius: var(--r); padding: 16px 18px; margin: 0 0 8px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.small-note { font-size: 14px !important; color: var(--muted) !important; }
.byline { font-size: 14px !important; margin-top: 10px; }
.glossary { display: grid; gap: 4px; margin: 0; }
.glossary dt { font-family: var(--font-head, inherit); font-weight: 600; font-size: 18px; color: var(--ink); margin-top: 18px; scroll-margin-top: 90px; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); font-size: 16.5px; }
.related-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.related-card h3 { font-size: 17px; margin: 0; color: var(--ink); }
.related-card p { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.related-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 14px; }
.related-card .more .icon { width: 15px; height: 15px; }
.related-card:hover, .related-card:focus-visible { border-color: var(--brand); box-shadow: 0 6px 20px rgba(15,23,42,.07); transform: translateY(-2px); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--surface); }
.prose .table-wrap { overflow-x: auto; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.plan .badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #EEF0F5; color: var(--ink-2); font-family: var(--font); letter-spacing: 0; }
.plan .price { font: 600 48px/1 var(--font-head); letter-spacing: -.03em; margin: 20px 0 6px; }
.plan .price small { font-size: 16px; color: var(--muted); font-family: var(--font); letter-spacing: 0; font-weight: 500; }
.plan > p { color: var(--muted); }
.plan .checklist { margin: 24px 0 28px; flex: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.footer-grid p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-grid h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--ink-2); font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------------- Report viewer ---------------- */
.report-page { background: var(--surface); min-height: calc(100vh - 68px); padding: 28px 0 72px; }
.report-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.report-top h1 { font-size: clamp(22px, 2.6vw, 30px); word-break: break-word; }
.report-top .meta { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.report-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.score-panel { text-align: center; }
.score-panel .ring { margin: 4px auto 14px; width: 150px; height: 150px; }
.score-panel .ring .value strong { font-size: 38px; }
.band { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--tone, var(--brand)); }
.score-panel .verdict { font: 500 16.5px/1.45 var(--font-head); margin: 12px 0 0; letter-spacing: -.01em; }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #E9ECF1; margin: 18px 0 10px; }
.split-bar .ai { background: var(--tone, var(--brand)); }
.split-bar .human { background: var(--human); flex: 1; }
.split-legend { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.facts li:first-child { border-top: 0; padding-top: 0; }
.facts b { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.panel h2 { font-size: 15px; margin-bottom: 12px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.legend-row mark { padding: 2px 8px; }
.side-note { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.side-note + .side-note { margin-top: 10px; }
.warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--mixed-50); border: 1px solid #F6DDA6; color: #7A4F06; font-size: 13.5px; line-height: 1.5; }
.warn .icon { width: 18px; height: 18px; margin-top: 1px; }
.doc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.doc-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #FCFCFD; position: sticky; top: 68px; z-index: 5; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.doc-toolbar .title { font-weight: 600; font-size: 15px; }
.doc-toolbar .count { color: var(--muted); font-size: 14px; }
.toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .sw { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.toggle input:checked + .sw { background: var(--brand); }
.toggle input:checked + .sw::after { transform: translateX(16px); }
.toggle input:focus-visible + .sw { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.doc-text { padding: 36px clamp(20px, 5vw, 64px) 48px; font-family: Georgia, "Times New Roman", serif; font-size: 17.5px; line-height: 1.85; color: #1F2937; max-width: 860px; }
.doc-text p { margin: 0 0 1.1em; }
.doc-text mark.ai { cursor: help; transition: background .15s; }
.doc-text mark.ai:hover, .doc-text mark.ai:focus { background: #8FD6E1; outline: none; }
.doc-text.plain mark.ai { background: transparent; }
.suppressed { margin: 20px 20px 0; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.report-state { max-width: 560px; margin: 64px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 44px 32px; }
.report-state h1 { font-size: 26px; margin: 16px 0 10px; }
.report-state p { color: var(--muted); }
.report-state .btn { margin-top: 22px; }
.report-state .progress { margin-top: 22px; }
.spinner { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--brand-100); border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.recent a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink-2); font-size: 14px; }
.recent a:hover { background: var(--surface); text-decoration: none; }
.recent a[aria-current="page"] { background: var(--brand-50); }
.recent .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .pct { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Responsive */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .report-grid { grid-template-columns: 1fr; }
  .report-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-side .score-panel { grid-row: span 2; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-header.open .nav-links a { padding: 12px; font-size: 16px; }
  .grid-3, .proof { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 56px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px; }
  .stat strong { font-size: 21px; }
  .checker { border-radius: var(--r-lg); }
  .checker textarea { min-height: 230px; padding: 18px; font-size: 15.5px; }
  .checker-tabs button { padding: 10px 12px; font-size: 14px; }
  .checker-tabs .plan-chip { display: none; }
  .checker-foot { padding: 14px 16px; }
  .checker-submit, .checker-submit .btn { width: 100%; }
  .mode-switch span { padding: 6px 12px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .report-side { grid-template-columns: 1fr; }
  .report-side .score-panel { grid-row: auto; }
  .doc-toolbar { top: 68px; padding: 12px 16px; }
  .doc-text { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .report-actions, .doc-toolbar .toggle { display: none !important; }
  .report-page { background: #fff; }
}
