/* CiteReady design system: design-system/citeready/MASTER.md (UI/UX Pro Max)
   Trust blue + orange accent, Plus Jakarta Sans, light glass surfaces, purposeful motion. */
:root {
  --bg: #f8fafc;
  --bg-2: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.72);
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-ink: #ffffff;
  --brand-soft: #e8efff;
  --accent: #ea580c;
  --accent-soft: #fff1e8;
  --pass: #0f8a5f;
  --pass-soft: #e4f6ee;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --fail: #dc2626;
  --fail-soft: #fdecec;
  --info: #475569;
  --info-soft: #eef2f7;
  --code-bg: #0b1220;
  --code-ink: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px -12px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 30px 80px -24px rgba(37, 99, 235, 0.35), 0 12px 32px -16px rgba(15, 23, 42, 0.2);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c;
    --bg-2: #0f1830;
    --surface: #111a2e;
    --surface-2: #17223a;
    --glass: rgba(17, 26, 46, 0.72);
    --ink: #eef2fa;
    --ink-2: #c7cfdf;
    --muted: #94a0b8;
    --line: #22304d;
    --line-2: #2e3d5e;
    --brand: #6b93ff;
    --brand-2: #8aa9ff;
    --brand-ink: #0a0f1c;
    --brand-soft: #18264a;
    --accent: #fb8a4c;
    --accent-soft: #33200f;
    --pass: #3ccf91;
    --pass-soft: #11291f;
    --warn: #f3b552;
    --warn-soft: #2e2412;
    --fail: #ff6b74;
    --fail-soft: #331a1e;
    --info: #a3adc2;
    --info-soft: #1b2337;
    --code-bg: #060a14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code { background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: linear-gradient(100deg, var(--brand), #7c3aed 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not (background-clip: text) { .grad-text { color: var(--brand); } }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--glass); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
@supports (backdrop-filter: blur(12px)) { .site-header { backdrop-filter: saturate(160%) blur(14px); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; font-size: 1.12rem; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--brand-ink); }
@media (max-width: 680px) { .nav a.hide-sm { display: none; } .nav { gap: 14px; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 48px 0 64px; color: var(--muted); font-size: 0.9rem; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h3, .site-footer h4 { color: var(--ink); font-size: 0.9rem; margin: 0 0 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0.7em 1.25em; border-radius: 11px; border: 1px solid transparent;
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -10px color-mix(in srgb, var(--brand) 80%, transparent);
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s, background 0.2s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 28px -12px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); box-shadow: none; }
.btn.accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.btn.danger { background: var(--fail); color: #fff; box-shadow: none; }
.btn.sm { min-height: 36px; padding: 0.4em 0.85em; font-size: 0.86rem; border-radius: 9px; }
.btn.lg { min-height: 52px; padding: 0.85em 1.6em; font-size: 1.05rem; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
input[type="text"], input[type="url"], input[type="email"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 0.7em 0.95em; width: 100%; outline: none; min-height: 44px; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; min-height: 200px; resize: vertical; }
label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.url-form { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 8px; border-radius: 18px; box-shadow: var(--shadow-lg); max-width: 640px; }
.url-form input { border: 0; box-shadow: none !important; font-size: 1.05rem; padding: 0.7em 0.8em; background: transparent; }
@media (max-width: 560px) { .url-form { flex-direction: column; } .url-form .btn { width: 100%; } }
.form-error { color: var(--fail); font-size: 0.92rem; margin-top: 10px; min-height: 1.3em; }

/* ---------- sections ---------- */
.hero { padding: 80px 0 40px; position: relative; }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pass) 25%, transparent); }
section { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { text-align: center; }
.kicker { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.hover { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.7em; position: relative; margin: 0.45em 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--pass-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f8a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.pill.pass { background: var(--pass-soft); color: var(--pass); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.fail { background: var(--fail-soft); color: var(--fail); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.82rem; max-width: 100%; overflow-wrap: anywhere; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.data th, table.data td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 0.76rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
table.data tbody tr { transition: background 0.15s; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) { .col-purpose { display: none; } table.data th, table.data td { padding: 9px 6px; } }

/* ---------- hero art ---------- */
.mesh { position: absolute; inset: -120px 0 auto 0; height: 720px; z-index: -1; pointer-events: none; overflow: hidden; }
.mesh::before, .mesh::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.mesh::before { width: 620px; height: 620px; left: -120px; top: 40px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 45%, transparent), transparent 65%); animation: float 18s ease-in-out infinite; }
.mesh::after { width: 520px; height: 520px; right: -80px; top: 120px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%); animation: float 22s ease-in-out infinite reverse; }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%); opacity: 0.55; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: var(--muted); font-size: 0.88rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 16px; height: 16px; color: var(--pass); }

/* Animated product mock */
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar .url { margin-left: 10px; flex: 1; font-size: 0.78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-family: var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-body { padding: 20px; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; }
@media (max-width: 480px) { .mock-body { grid-template-columns: 1fr; justify-items: start; } }
.mock .rows { display: grid; gap: 8px; }
.mock .row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; font-size: 0.86rem; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.mock .row .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; }
.mock .row.ok .ic { background: var(--pass-soft); color: var(--pass); }
.mock .row.bad .ic { background: var(--fail-soft); color: var(--fail); }
.mock .row.mid .ic { background: var(--warn-soft); color: var(--warn); }
.mock .row b { font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--muted); }
.mock-fix { margin: 0 20px 20px; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; font: 0.76rem/1.55 var(--mono); white-space: pre; overflow: hidden; min-height: 116px; }
.mock-fix .k { color: #93c5fd; } .mock-fix .s { color: #fcd34d; } .mock-fix .c { color: #64748b; }
.float-badge { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 0.84rem; font-weight: 700; }
@supports (backdrop-filter: blur(10px)) { .float-badge { backdrop-filter: blur(12px); } }
.float-badge.b1 { top: -16px; right: 18px; color: var(--pass); }
.float-badge.b2 { bottom: 64px; left: -22px; color: var(--accent); }
@media (max-width: 980px) { .float-badge.b2 { left: 10px; } }
.caret { display: inline-block; width: 7px; height: 1em; background: currentColor; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Engines marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding: 6px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.engine { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink-2); white-space: nowrap; box-shadow: var(--shadow-sm); }
.engine i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { grid-column: span 2; }
.bento .w3 { grid-column: span 3; }
.bento .w4 { grid-column: span 4; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento > *, .bento .w3, .bento .w4 { grid-column: span 2; } }
.feat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feat-ic svg { width: 22px; height: 22px; }
.feat-ic.o { background: var(--accent-soft); color: var(--accent); }
.feat-ic.g { background: var(--pass-soft); color: var(--pass); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--brand-ink); margin-bottom: 12px; box-shadow: 0 0 0 6px var(--brand-soft); }
.progress-line { position: absolute; top: 43px; left: 6%; right: 6%; height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; z-index: 0; }
.progress-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; }
@media (max-width: 820px) { .progress-line { display: none; } }
.steps .card { position: relative; z-index: 1; }

/* Two-score explainer */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }
.meter { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: var(--w, 0%); transition: width 1.2s var(--ease); }
.meter.o i { background: linear-gradient(90deg, var(--accent), #f59e0b); }
.big-num { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -12px; left: 24px; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.plan .price span { font-size: 0.95rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { flex: 1; margin: 14px 0 20px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 4px; }
.toggle button { font: inherit; font-weight: 700; font-size: 0.88rem; border: 0; background: transparent; color: var(--ink-2); padding: 7px 16px; border-radius: 9px; cursor: pointer; min-height: 36px; transition: background 0.2s, color 0.2s; }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq h3 { display: inline; font-size: 1.04rem; letter-spacing: -0.01em; margin: 0; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* Code blocks */
.code { position: relative; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius-sm); margin: 10px 0; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 0.82rem; line-height: 1.55; white-space: pre; }
.code .copy { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: none; min-height: 32px; }
.code .where { font-size: 0.75rem; color: #94a3b8; padding: 10px 16px 0; font-family: var(--font); }

/* Loading */
.loader { display: none; margin-top: 18px; color: var(--ink-2); }
.loader.on { display: flex; align-items: center; gap: 12px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- report ---------- */
.report-head { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 40px 0 24px; }
@media (max-width: 700px) { .report-head { grid-template-columns: 1fr; justify-items: start; gap: 20px; } }
.ring { width: 160px; height: 160px; position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .num b { font-size: 2.8rem; letter-spacing: -0.04em; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.ring .num small { color: var(--muted); font-size: 0.8rem; }
.ring circle.arc { transition: stroke-dashoffset 1.3s var(--ease); }
.groups { display: grid; gap: 12px; margin-top: 16px; max-width: 540px; }
.gbar { display: grid; grid-template-columns: 170px 1fr 60px; align-items: center; gap: 12px; font-size: 0.92rem; }
@media (max-width: 480px) { .gbar { grid-template-columns: 1fr 60px; } .gbar .track { grid-column: 1 / -1; grid-row: 2; } }
.track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width 1s var(--ease); }
.gbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.check:hover { border-color: var(--line-2); }
.check[open] { box-shadow: var(--shadow); }
.check > summary { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 16px 18px; cursor: pointer; list-style: none; }
.check > summary::-webkit-details-marker { display: none; }
.check .icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.check.pass .icon { background: var(--pass-soft); color: var(--pass); }
.check.warn .icon { background: var(--warn-soft); color: var(--warn); }
.check.fail .icon { background: var(--fail-soft); color: var(--fail); }
.check.info .icon { background: var(--info-soft); color: var(--info); }
.check .t { font-weight: 700; }
.check .s { color: var(--ink-2); font-size: 0.92rem; margin-top: 2px; }
.check .pts { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.check .body { padding: 0 18px 18px 58px; }
@media (max-width: 560px) { .check .body { padding-left: 18px; } }
.check .why { color: var(--ink-2); font-size: 0.92rem; }
.evidence { font-family: var(--mono); font-size: 0.8rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; list-style: none; overflow-x: auto; }
.evidence li { margin: 3px 0; white-space: pre-wrap; word-break: break-word; }
.fix { border-top: 1px dashed var(--line-2); margin-top: 14px; padding-top: 14px; }
.fix h4 { margin: 0 0 6px; font-size: 0.98rem; }
.fix ol { padding-left: 1.2em; margin: 6px 0; color: var(--ink-2); font-size: 0.94rem; }
.group-title { margin: 40px 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.group-title h2 { margin: 0; font-size: 1.35rem; }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand-soft), var(--accent-soft)); border: 1px solid var(--line); border-radius: 22px; padding: 32px; margin-top: 36px; }
.cta-band.dark { background: radial-gradient(circle at 15% 20%, #3b5bdb 0, transparent 45%), radial-gradient(circle at 85% 80%, #ea580c 0, transparent 40%), #0b1220; color: #fff; border: 0; }
.cta-band.dark .muted { color: #c3cbe0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; width: auto; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); border: 1px solid var(--line); }
.notice.err { background: var(--fail-soft); }
.notice.ok { background: var(--pass-soft); }
.notice.info { background: var(--brand-soft); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.raw-text { font-family: var(--mono); font-size: 0.82rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; max-height: 420px; overflow: auto; white-space: pre-wrap; }
.bot-row td:first-child { font-weight: 700; white-space: nowrap; }
.tool-grid .card { text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.tool-grid .card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.updated { font-size: 0.85rem; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; }

/* ---------- motion (content stays visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); animation: reveal-fallback 0.01s 2.5s forwards; }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); animation: none; }
.js .reveal.d1.in { transition-delay: 0.08s; } .js .reveal.d2.in { transition-delay: 0.16s; } .js .reveal.d3.in { transition-delay: 0.24s; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

@media print {
  .site-header, .site-footer, .toolbar, .cta-band, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .check { break-inside: avoid; box-shadow: none; }
  .check .body { display: block; }
  .code pre { white-space: pre-wrap; }
}
