/* ButFirstConsent UI. Brand: navy, ink, slate, teal, mist, line. One family: Plus Jakarta Sans. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/brand/fonts/PlusJakartaSans-VF.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0A1A33;
  --navy-2: #13284A;
  --ink: #1E293B;
  --slate: #64748B;
  --slate-2: #475569;
  --teal: #0FA3A3;
  --teal-ink: #0A7676;       /* teal for small text on white (AA) */
  --teal-tint: #E3F4F4;
  --mist: #C9D4E3;
  --line: #E2E8F0;
  --bg: #F2F5F9;
  --paper: #FFFFFF;

  --crit: #B42335;  --crit-tint: #FBEBED;
  --high: #B9520F;  --high-tint: #FCEFE5;
  --med:  #8A6500;  --med-tint:  #FBF3DC;
  --low:  #5B6B80;  --low-tint:  #EEF2F6;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 26, 51, .06), 0 8px 24px -12px rgba(10, 26, 51, .18);
  --wrap: 1360px;
  --gutter: 40px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
@media (min-width: 1600px) { html { font-size: 18px; } }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal-ink); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 16px; }
.muted { color: var(--slate); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 720px) { :root { --gutter: 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 10px; padding: 12px 20px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0C8E8E; }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--mist); }
.btn-ghost:hover { border-color: var(--slate); }
.btn-teal { background: var(--teal-tint); color: var(--teal-ink); }
.btn-teal:hover { background: #CDEBEB; }
.btn-teal.is-done { background: var(--teal); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; }
.btn-small { padding: 8px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.link { font-weight: 700; color: var(--teal-ink); text-underline-offset: 3px; }

/* ---------- header / footer ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: block; }
.logo { height: 40px; width: auto; }
.logo-light { display: none; }
.header-actions { display: flex; gap: 10px; }
.header-tag { font-size: .875rem; font-weight: 600; color: var(--slate); }
body[data-page="landing"] .site-header { background: var(--navy); border-bottom-color: rgba(255,255,255,.08); }
body[data-page="landing"] .logo-dark { display: none; }
body[data-page="landing"] .logo-light { display: block; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 72px; }
.footer-row { display: flex; align-items: center; gap: 14px; padding-top: 22px; padding-bottom: 22px; font-size: .875rem; color: var(--slate-2); flex-wrap: wrap; }
.footer-row p:first-of-type { font-weight: 600; color: var(--ink); }
.footer-scope { margin-left: auto; }
body[data-page="landing"] .site-footer { margin-top: 0; }

/* ---------- landing ---------- */
.hero {
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(15,163,163,.22), transparent 60%),
    var(--navy);
  color: #fff; padding: 96px 0 104px; position: relative; overflow: hidden;
}
.hero-inner { max-width: 1180px; }
.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 5.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero-sub { margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: #C9D4E3; max-width: 58ch; line-height: 1.55; }
.scan-form { margin-top: 44px; max-width: 860px; }
.scan-field {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 8px 8px 8px 22px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.55);
}
.scan-globe { width: 26px; height: 26px; color: var(--slate); flex: none; }
.scan-field input {
  flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1.3rem; font-weight: 600; color: var(--ink);
  padding: 14px 0; background: transparent;
}
.scan-field input::placeholder { color: #94A3B8; font-weight: 500; }
.scan-field:focus-within { box-shadow: 0 0 0 4px rgba(15,163,163,.55), 0 20px 50px -20px rgba(0,0,0,.55); }
.form-error { margin-top: 12px; color: #FFD0D5; font-weight: 600; }
.demo-slot { min-height: 52px; margin-top: 22px; }
.demo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-label { font-size: .95rem; color: #9FB0C8; font-weight: 600; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.chip-demo { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.chip-demo img { filter: brightness(0) invert(1); opacity: .9; }
.chip-demo:hover { background: rgba(255,255,255,.16); }
.hero-trust { margin-top: 56px; display: flex; align-items: center; gap: 10px; color: #C9D4E3; font-weight: 600; font-size: 1rem; }

.how { padding: 88px 0 96px; background: var(--bg); }
.section-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--slate-2); margin-top: 6px; }

.timeline {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: 1fr 120px 1fr 1fr; gap: 0; align-items: stretch;
}
.tl-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 30px 32px; position: relative; }
.tl-step + .tl-step { margin-left: 20px; }
.tl-step h3 { font-size: 1.3rem; font-weight: 800; margin: 18px 0 10px; }
.tl-step p { color: var(--slate-2); }
.tl-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800;
}
.tl-before { border-color: var(--navy); box-shadow: inset 0 4px 0 var(--teal); }
.tl-before .tl-num { background: var(--teal); }
.tl-click { position: relative; display: grid; place-items: center; }
.tl-click::before { content: ''; position: absolute; top: 12px; bottom: 12px; left: 50%; border-left: 2px dashed var(--mist); }
.tl-click span {
  position: relative; background: var(--bg); padding: 8px 0; font-size: .8rem; font-weight: 700; color: var(--slate);
  text-align: center; line-height: 1.3; max-width: 90px;
}

/* ---------- running / states ---------- */
.run { padding: 72px 0; }
.run-inner { display: flex; flex-direction: column; align-items: center; }
.run-card {
  width: 100%; max-width: 720px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 44px 48px; box-shadow: var(--shadow);
}
.run-kicker { color: var(--slate); font-weight: 600; }
.run-host { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; margin-top: 4px; word-break: break-all; }
.run-steps { list-style: none; padding: 0; margin: 34px 0 0; position: relative; }
.run-step { display: flex; gap: 18px; padding: 12px 0; position: relative; }
.run-step:not(:last-child)::after {
  content: ''; position: absolute; left: 11px; top: 40px; bottom: -8px; width: 2px; background: var(--line);
}
.run-step.is-done:not(:last-child)::after { background: var(--teal); }
.run-dot {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--mist); background: var(--paper);
  margin-top: 2px; position: relative; transition: all .3s;
}
.run-step.is-active .run-dot { border-color: var(--teal); box-shadow: 0 0 0 6px rgba(15,163,163,.15); }
.run-step.is-active .run-dot::after {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--teal); animation: pulse 1.2s ease-in-out infinite;
}
.run-step.is-done .run-dot { background: var(--teal); border-color: var(--teal); }
.run-step.is-done .run-dot::after {
  content: ''; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.run-text { display: flex; flex-direction: column; }
.run-title { font-weight: 700; font-size: 1.15rem; color: var(--slate); transition: color .3s; }
.run-hint { font-size: .9rem; color: var(--slate); opacity: 0; max-height: 0; transition: opacity .3s; }
.run-step.is-active .run-title, .run-step.is-done .run-title { color: var(--ink); }
.run-step.is-active .run-hint { opacity: 1; max-height: 40px; }
.run-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.run-label { color: var(--slate-2); font-weight: 600; }
.run-time { font-variant-numeric: tabular-nums; color: var(--slate); font-weight: 600; }
.run-note { margin-top: 22px; color: var(--slate); font-size: .95rem; text-align: center; max-width: 60ch; }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

.state-card { text-align: left; display: flex; flex-direction: column; gap: 16px; }
.state-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.state-text { color: var(--slate-2); font-size: 1.05rem; max-width: 60ch; }
.state-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.state-card .demo-row { margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.state-card .demo-label { color: var(--slate-2); }
.state-card .chip-demo { background: var(--bg); color: var(--ink); border-color: var(--line); }
.state-card .chip-demo img { filter: none; }
.state-card .chip-demo:hover { border-color: var(--teal); }

.loading { display: flex; align-items: center; gap: 14px; padding-top: 120px; padding-bottom: 120px; justify-content: center; color: var(--slate); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- report: top ---------- */
.report-top { background: var(--paper); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.report-top .strip { margin-top: 0; }
.top-strip { grid-column: 1 / -1; min-width: 0; }
.top-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.meta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.source-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--slate-2);
  background: var(--bg); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.source-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--slate); }
.meta-host { font-weight: 700; color: var(--ink); }
.score-row { display: flex; gap: 36px; align-items: center; }
.score-text { min-width: 0; }
.headline { font-size: clamp(1.6rem, 2.1vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.14; max-width: 26ch; text-wrap: balance; }
.status-line { margin-top: 14px; font-size: 1.1rem; font-weight: 700; color: var(--slate-2); }
.next-step { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--teal-tint); color: var(--ink); max-width: 60ch; }
.next-step strong { color: var(--teal-ink); }
#topCta { margin-top: 18px; white-space: normal; text-align: left; }
.meta-when { font-size: .9rem; color: var(--slate-2); }

.gauge { position: relative; width: var(--size); flex: none; }
.gauge svg { display: block; }
.gauge circle { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge-track { stroke: var(--line); }
.gauge-value { stroke: var(--crit); }
.gauge.tone-good .gauge-value { stroke: var(--teal); }
.gauge.tone-warn .gauge-value { stroke: #C99400; }
.gauge-value.animate { animation: gauge-in 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
@keyframes gauge-in { from { stroke-dasharray: 0 999; } }
.gauge-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 8%; }
.gauge-score { font-size: calc(var(--size) * .3); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.gauge-of { font-size: .85rem; color: var(--slate); font-weight: 600; margin-top: 4px; }
.gauge-grade {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  font-weight: 800; font-size: .95rem; padding: 5px 14px; border-radius: 999px; color: #fff; background: var(--crit); white-space: nowrap;
}
.gauge.tone-good .gauge-grade { background: var(--teal-ink); }
.gauge.tone-warn .gauge-grade { background: #9A7200; }

.counts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.count { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--low-tint); }
.count-n { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.count-l { font-size: .875rem; font-weight: 600; }
.count.sev-critical { background: var(--crit-tint); color: var(--crit); }
.count.sev-high { background: var(--high-tint); color: var(--high); }
.count.sev-medium { background: var(--med-tint); color: var(--med); }
.sev { display: inline-flex; align-items: center; gap: 7px; }
.sev-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sev-info { background: var(--teal-tint); color: var(--teal-ink); }
.sev-i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .7rem; font-style: italic; font-family: Georgia, serif; }
.sev-border-info { border-left-color: var(--teal); }
.f-head { flex-direction: row; flex-wrap: wrap; align-items: center; }
.f-head .f-title { flex-basis: 100%; }
.f-num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.f-more { margin-top: 16px; display: grid; gap: 8px; }
details.more { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--paper); }
details.more > summary { cursor: pointer; padding: 10px 0; font-size: .9rem; font-weight: 700; color: var(--slate-2); }
details.more[open] > summary { color: var(--ink); }
details.more > p, details.more > .evidence, details.more > .steps { margin: 0 0 12px; color: var(--slate-2); font-size: .95rem; }
details.by-hand { margin-top: 14px; }
.count.sev-low { background: var(--low-tint); color: var(--low); }
.count.is-zero { background: transparent; color: var(--slate); border: 1px solid var(--line); }

.built-with { display: flex; align-items: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.built-with > span { font-size: .9rem; font-weight: 600; color: var(--slate); }
.stack-chips { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.stack-chip { padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
.stack-chip.is-none { background: var(--crit-tint); border-color: transparent; color: var(--crit); }

/* browser frame */
.browser { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--mist); background: var(--paper); box-shadow: 0 30px 60px -30px rgba(10,26,51,.45); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: #EEF2F7; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--mist); display: block; }
.browser-url {
  flex: 1; min-width: 0; background: var(--paper); border-radius: 7px; padding: 5px 12px; font-size: .82rem; color: var(--slate-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500;
}
.browser-view { aspect-ratio: 16 / 10; background: var(--bg); }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-empty { height: 100%; display: grid; place-items: center; color: var(--slate); }
.browser figcaption { padding: 12px 16px; font-size: .9rem; color: var(--slate-2); font-weight: 600; border-top: 1px solid var(--line); }

/* ---------- signature strip ---------- */
.strip {
  display: grid; grid-template-columns: 1.25fr 64px 1fr 1fr; margin-top: 32px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.strip-cell { padding: 26px 30px 28px; position: relative; }
.strip-cell + .strip-cell { border-left: 1px solid var(--line); }
.strip-cell::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--line); }
.strip-cell.tone-bad::before { background: var(--crit); }
.strip-cell.tone-good::before { background: var(--teal); }
.strip-cell.tone-neutral::before { background: var(--mist); }
.strip-cell.tone-warn::before { background: #C99400; }
.strip-cell.tone-nt::before { background: repeating-linear-gradient(90deg, var(--mist) 0 8px, transparent 8px 14px); }
.strip-phase { font-size: .9rem; font-weight: 700; color: var(--slate); }
.strip-big { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.1; }
.strip-big { display: flex; align-items: center; gap: 10px; }
.strip-icon { flex: none; width: 1.3em; height: 1.3em; border-radius: 50%; display: grid; place-items: center; font-size: .62em; font-weight: 800; background: var(--bg); color: var(--slate-2); }
.tone-bad .strip-icon { background: var(--crit-tint); color: var(--crit); }
.tone-warn .strip-icon { background: var(--med-tint); color: var(--med); }
.tone-good .strip-icon { background: var(--teal-tint); color: var(--teal-ink); }
.strip-timeline { margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--slate); }
.tone-bad .strip-big { color: var(--crit); }
.tone-good .strip-big { color: var(--teal-ink); }
.tone-neutral .strip-big, .tone-nt .strip-big { color: var(--slate-2); }
.tone-warn .strip-big { color: var(--med); }
.strip-text { margin-top: 6px; color: var(--slate-2); max-width: 40ch; }
.strip-click { position: relative; display: grid; place-items: center; background: var(--bg); border-left: 1px solid var(--line); }
.strip-click::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--mist); }
.strip-click span {
  position: relative; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--bg);
  padding: 10px 0; font-size: .78rem; font-weight: 700; color: var(--slate);
}
.vendor-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vendor-chips li { padding: 4px 11px; border-radius: 999px; background: var(--crit-tint); color: var(--crit); font-weight: 700; font-size: .85rem; }
.vendor-chips li.more { background: transparent; border: 1px solid var(--line); color: var(--slate-2); }

/* ---------- report body ---------- */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; margin-top: 48px; align-items: start; }
.findings-head { margin-bottom: 20px; }

.finding {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; overflow: hidden;
  border-left: 6px solid var(--low);
}
.sev-border-critical { border-left-color: var(--crit); }
.sev-border-high { border-left-color: var(--high); }
.sev-border-medium { border-left-color: #C99400; }
.f-head { padding: 26px 32px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sev { font-size: .8rem; font-weight: 800; padding: 4px 11px; border-radius: 6px; background: var(--low-tint); color: var(--low); }
.sev-critical { background: var(--crit-tint); color: var(--crit); }
.sev-high { background: var(--high-tint); color: var(--high); }
.sev-medium { background: var(--med-tint); color: var(--med); }
.sev { display: inline-flex; align-items: center; gap: 7px; }
.sev-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.sev-info { background: var(--teal-tint); color: var(--teal-ink); }
.sev-i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: .7rem; font-style: italic; font-family: Georgia, serif; }
.sev-border-info { border-left-color: var(--teal); }
.f-head { flex-direction: row; flex-wrap: wrap; align-items: center; }
.f-head .f-title { flex-basis: 100%; }
.f-num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.f-more { margin-top: 16px; display: grid; gap: 8px; }
details.more { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: var(--paper); }
details.more > summary { cursor: pointer; padding: 10px 0; font-size: .9rem; font-weight: 700; color: var(--slate-2); }
details.more[open] > summary { color: var(--ink); }
details.more > p, details.more > .evidence, details.more > .steps { margin: 0 0 12px; color: var(--slate-2); font-size: .95rem; }
details.by-hand { margin-top: 14px; }
.f-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.22; max-width: 40ch; }
.f-body { padding: 16px 32px 28px; }
.f-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.f-copy h4 { grid-row: 1; font-size: .85rem; font-weight: 700; color: var(--slate); }
.f-copy p { grid-row: 2; color: var(--ink); }
.f-proof { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.f-proof h4, .fix-head h4 { font-size: .85rem; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.evidence { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ev { display: flex; gap: 12px; align-items: baseline; font-size: .95rem; }
.ev-kind { flex: none; width: 92px; font-size: .78rem; font-weight: 700; color: var(--slate-2); background: var(--bg); padding: 2px 8px; border-radius: 5px; text-align: center; }
.more-ev { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--slate-2); }
.more-ev svg, .locked-line svg { width: 15px; height: 15px; flex: none; }
.law { margin-top: 14px; font-size: .9rem; color: var(--slate-2); display: flex; gap: 10px; }
.law span { font-weight: 700; color: var(--slate); }

/* locked fix */
.f-body > .locked-line { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--mist); }
.locked-line a { color: var(--navy); text-underline-offset: 3px; }
.locked { position: relative; margin-top: 22px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.locked-teaser { padding: 16px 24px 18px; filter: blur(5px); opacity: .55; user-select: none; pointer-events: none; }
.locked-teaser .lt-sum { font-weight: 800; }
.locked-teaser ol { margin: 10px 0; padding-left: 20px; }
.locked-teaser pre { margin: 0; font-family: inherit; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; white-space: pre-wrap; }
.locked-cta {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(242,245,249,.35), rgba(242,245,249,.85)); text-align: center; padding: 16px;
}
.locked-line { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); max-width: 52ch; }

/* full fix */
.fix { margin-top: 22px; border-radius: var(--r-md); background: #F7FAFC; border: 1px solid var(--line); padding: 22px 26px 24px; }
.fix-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fix-head h4 { margin: 0; color: var(--teal-ink); font-size: .95rem; }
.effort { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--slate-2); background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.effort svg { width: 14px; height: 14px; }
.fix-source { margin-top: 6px; font-size: .8rem; }
.fix-sum { margin-top: 10px; font-weight: 700; font-size: 1.08rem; }
.steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps li::before {
  content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: .8rem; font-weight: 800; display: grid; place-items: center; margin-top: 1px;
}
.prompt { margin-top: 18px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--navy); }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--navy); color: #C9D4E3; font-size: .85rem; font-weight: 600; flex-wrap: wrap; }
.prompt-head .btn-teal { background: var(--teal); color: #fff; }
.prompt-head .btn-teal:hover { background: #0C8E8E; }
.prompt-body {
  margin: 0; padding: 16px 18px; background: var(--navy-2); color: #E6EDF6; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .88rem; line-height: 1.6; max-height: 260px; overflow: auto;
}
.docs { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.docs a { font-weight: 600; font-size: .92rem; text-underline-offset: 3px; }

/* sidebar */
.side { position: sticky; top: 24px; display: grid; gap: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
.panel-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.panel-note { font-size: .92rem; color: var(--slate-2); margin-top: 14px; }
.panel-cta { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel-cta .panel-title { font-size: 1.35rem; line-height: 1.2; }
.panel-cta .panel-note { color: #C9D4E3; }
.panel-included { border-color: var(--teal); box-shadow: inset 0 4px 0 var(--teal); }
.panel-included .panel-note { margin-top: 0; }
.panel-quiet { background: transparent; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.signals { margin: 0; padding-left: 18px; color: var(--slate-2); font-size: .92rem; display: grid; gap: 4px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.check-icon svg { width: 16px; height: 16px; }
.check.is-pass .check-icon { background: var(--teal-tint); color: var(--teal-ink); }
.check.is-fail .check-icon { background: var(--crit-tint); color: var(--crit); }
.check.is-not_tested .check-icon { background: var(--bg); color: var(--slate); }
.check-text { display: flex; flex-direction: column; }
.check-label { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.check-short { font-size: .85rem; color: var(--slate); }
.check-group { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); margin: 16px 0 4px; }
.check-group:first-of-type { margin-top: 0; }
.gchecks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; }
.gcheck { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.gcheck:last-child { border-bottom: 0; }
.gcheck-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.gcheck.is-pass .gcheck-icon { background: var(--teal-tint); color: var(--teal-ink); }
.gcheck.is-fail .gcheck-icon { background: var(--crit-tint); color: var(--crit); }
.gcheck.is-not_tested .gcheck-icon { background: var(--bg); color: var(--slate-2); border: 1px dashed var(--mist); }
.gcheck.is-info .gcheck-icon { background: var(--teal-tint); color: var(--teal-ink); font-style: italic; font-family: Georgia, serif; }
.check-link { font-size: .85rem; font-weight: 700; color: var(--teal-ink); text-underline-offset: 3px; }
.setup > summary { cursor: pointer; margin-bottom: 0; }
.setup[open] > summary { margin-bottom: 14px; }
.setup .built-with { margin-top: 0; }

/* badge + earn */
.badge-sec {
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--paper); border: 1px solid var(--teal); border-radius: var(--r-lg); padding: 36px 40px;
}
.badge-copy h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.badge-copy p { margin: 12px 0 16px; color: var(--slate-2); max-width: 52ch; }
.badge-img { margin-bottom: 14px; }
.earn {
  display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 8px;
  background: var(--paper); border: 1px dashed var(--mist); border-radius: var(--r-lg); padding: 26px 30px;
}
.mini-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); font-weight: 800; color: var(--navy); line-height: 1.15; flex: none;
}
.mini-badge small { display: block; font-size: .72rem; font-weight: 600; color: var(--slate); }
.mini-badge.is-ghost { opacity: .55; filter: grayscale(1); border-style: dashed; }
.earn > div { flex: 1 1 320px; }
.earn .btn { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.earn h2 { font-size: 1.2rem; font-weight: 800; }
.earn p { color: var(--slate-2); margin-top: 6px; max-width: 60ch; }

.report-foot { margin-top: 32px; font-size: .85rem; color: var(--slate); display: grid; gap: 4px; }
.obs-foot { font-weight: 600; color: var(--slate-2); font-size: .85rem; }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,26,51,.55); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 500px; background: var(--paper); border-radius: 20px; padding: 34px 34px 28px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); max-height: calc(100vh - 32px); overflow: auto;
  animation: modal-in .22s ease-out;
}
@keyframes modal-in { from { transform: translateY(10px); opacity: 0; } }
.modal h2 { font-size: 1.55rem; font-weight: 800; }
.modal-site { color: var(--slate-2); margin-top: 6px; font-weight: 600; }
.modal-x { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; background: var(--bg); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--slate-2); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.price-note { color: var(--slate-2); font-weight: 600; }
.fake-card {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--slate); font-size: .95rem; background: var(--bg);
}
.fc-num { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.demo-note { margin: 12px 0 18px; font-size: .9rem; font-weight: 700; color: var(--teal-ink); background: var(--teal-tint); padding: 8px 12px; border-radius: 8px; }
.modal-foot { margin-top: 14px; font-size: .88rem; color: var(--slate-2); text-align: center; }
body.modal-open { overflow: hidden; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }

/* ---------- verify page ---------- */
.verify-main { padding: 56px 0 0; }
.verify-wrap { max-width: 980px; }
.verify-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 44px 48px; box-shadow: var(--shadow); }
.verify-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.verify-title { margin-top: 30px; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; word-break: break-word; }
.verify-date { margin-top: 10px; font-size: 1.2rem; font-weight: 700; color: var(--teal-ink); }
.verify-old { margin-top: 12px; display: inline-block; background: var(--med-tint); color: var(--med); font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.verify-scope { margin-top: 12px; color: var(--slate-2); font-weight: 600; }
.verify-grid { display: grid; grid-template-columns: 240px 1fr; gap: 44px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.verify-url { margin-top: 18px; font-size: .9rem; word-break: break-all; display: flex; flex-direction: column; font-weight: 600; }
.verify-url span { color: var(--slate); font-weight: 600; font-size: .82rem; }
.caveat { margin-top: 30px; padding: 16px 20px; border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 600; border-left: 4px solid var(--mist); }
.verify-cta { margin-top: 24px; text-align: center; color: var(--slate-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .top-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  /* The 5-second block first: score and headline, then the strip, then the screenshot. */
  .top-left { order: 1; }
  .top-strip { order: 2; }
  .top-right { order: 3; }
  .body-grid { grid-template-columns: minmax(0, 1fr); } /* minmax: a long prompt line must not widen the page */
  .side { position: static; }
  .strip { grid-template-columns: 1fr 1fr 1fr; }
  .strip-click { display: none; }
  .timeline { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .tl-click { display: none; }
  .tl-step + .tl-step { margin-left: 0; }
}
@media (max-width: 760px) {
  .header-row { height: 64px; }
  .logo { height: 32px; }
  .hero { padding: 56px 0 64px; }
  .scan-field { flex-wrap: wrap; padding: 10px; }
  .scan-field input { font-size: 1.1rem; padding: 10px 4px; }
  .scan-globe { display: none; }
  .scan-field .btn { width: 100%; }
  .timeline, .strip { grid-template-columns: 1fr; }
  .strip-cell + .strip-cell { border-left: 0; border-top: 1px solid var(--line); }
  .score-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .f-head, .f-body { padding-left: 20px; padding-right: 20px; }
  .f-copy { grid-template-columns: 1fr; }
  .f-copy h4, .f-copy p { grid-row: auto; }
  .f-copy p { margin-bottom: 10px; }
  .ev { flex-direction: column; gap: 4px; }
  .badge-sec, .verify-grid { grid-template-columns: 1fr; }
  .run-card, .verify-card { padding: 30px 22px; }
  .header-actions .btn { padding: 7px 10px; }
  .footer-scope { margin-left: 0; }
  .fake-card { grid-template-columns: 1fr 1fr; }
  #topCta { width: 100%; }
  .meta-when { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- print: clean PDF report ---------- */
@media print {
  @page { margin: 14mm; }
  html { font-size: 11pt; }
  body { background: #fff; display: block; }
  .site-header { border: 0; }
  .header-actions, .site-footer, .modal-backdrop, .toast, .skip, .js-copy, .js-copy-snippet, .prompt-head .btn, .earn .btn, .panel-cta { display: none !important; }
  .report-top { padding: 10px 0 20px; border: 0; }
  .top-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .wrap { padding: 0; max-width: none; }
  .body-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .strip { border-top: 1px solid var(--line); border-radius: 12px; break-inside: avoid; }
  .finding, .fix, .panel, .badge-sec, .strip-cell { break-inside: avoid; }
  .finding { box-shadow: none; }
  .prompt-body { max-height: none; overflow: visible; }
  .browser { box-shadow: none; }
  .gauge-value.animate { animation: none; }
  a { color: inherit; }
  .docs a::after { content: ' (' attr(href) ')'; font-weight: 400; font-size: .8em; color: var(--slate); word-break: break-all; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.state-card .source-label { align-self: flex-start; }

/* Demo recordings of failing sites are anonymised: blur the screenshot so the brand is not readable. */
.browser-view.is-anonymised img { filter: blur(6px) saturate(0.6); transform: scale(1.04); }
.browser-view.is-anonymised { overflow: hidden; }

.compare-strip { margin: 10px 0 4px; padding: 8px 12px; border-radius: 10px; background: #F1F5F9; color: #1E293B; font-size: 15px; border-left: 4px solid #64748B; }
.compare-strip.is-better { background: #E6F6F6; border-left-color: #0FA3A3; }

.verify-note { margin: 6px 0 0; color: #64748B; font-size: 15px; }

/* ---------- static (public, replay-only) mode ---------- */
.static-ribbon { background: #FFF4D6; color: #5C4300; border-bottom: 1px solid #EBD38B; text-align: center; font-size: .9rem; font-weight: 600; padding: 8px var(--gutter); }
.static-ribbon[hidden] { display: none; }
.footer-links { display: flex; gap: 16px; font-weight: 600; }
.footer-links a { color: var(--slate-2); }
.request-box { margin-top: 44px; max-width: 760px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 24px 28px; }
.request-box h2 { font-size: 1.35rem; color: #fff; }
.request-box p { margin-top: 10px; color: #C9D4E3; }
.request-mail { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.request-mail code { font: inherit; font-weight: 700; font-size: 1.15rem; color: #fff; word-break: break-all; }
.recent { margin-top: 36px; max-width: 860px; }
.recent h2 { font-size: 1.1rem; color: #fff; }
.recent-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.recent-row { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 16px; text-decoration: none; border: 1px solid transparent; }
.recent-row:hover { border-color: var(--teal); }
.recent-host { font-weight: 700; min-width: 12ch; }
.recent-meta { color: var(--slate-2); font-size: .9rem; flex: 1; }
.recent-result { font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.recent-result.is-passed { background: #E1F5EA; color: #11643A; }
.recent-result.is-problems { background: var(--crit-tint); color: var(--crit); }
.recent-result.is-untested { background: var(--low-tint); color: var(--low); }
.recent-go { color: var(--teal-ink); font-weight: 700; font-size: .9rem; }
.recorded-note { margin-top: 18px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; font-size: .92rem; color: var(--slate-2); }
.recorded-note strong { color: var(--ink); }
.recorded-note + .recorded-note { margin-top: 8px; }
.price-small { display: block; margin-top: 8px; font-size: .85rem; color: var(--slate-2); }
.panel-cta .price-small { color: #C9D4E3; }
.locked-cta .price-small { margin-top: 6px; }

/* Third-party render mode (public build): neutral, no severity colours, no score. */
.tp-top { padding: 36px 0 34px; }
.tp-top .meta-row { margin-bottom: 14px; }
.tp-headline { max-width: none; }
.tp-scope { margin-top: 14px; max-width: 78ch; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--slate); border-radius: 10px; font-size: .95rem; color: var(--slate-2); }
.tp-finding { border-left: 6px solid var(--mist); }
.tp-tag { font-size: .8rem; font-weight: 800; padding: 4px 11px; border-radius: 6px; background: var(--low-tint); color: var(--low); }
.tp-reply .tp-mail { word-break: break-all; }
.tp-reply p { margin-bottom: 14px; }
.tp-corr { margin-top: 14px; font-size: .92rem; color: var(--slate-2); }
.tp-corr-list { margin: 6px 0 0; padding-left: 18px; font-size: .92rem; color: var(--slate-2); }
.obs-checks .check { align-items: flex-start; }
.obs-word { flex: none; min-width: 6.2em; text-align: center; font-size: .78rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--low-tint); color: var(--slate-2); }
.obs-fail .obs-word { background: var(--navy); color: #fff; }
.obs-info .obs-word { background: var(--teal-tint); color: var(--teal-ink); }
.obs-not_tested .obs-word { background: transparent; border: 1px dashed var(--mist); }

/* Public build: sections under the app's landing (scripts/build-static.js appHomePage) */
.static-ribbon { background: #fff4d6; color: #5c4300; border-bottom: 1px solid #ebd38b; text-align: center; font-size: .88rem; font-weight: 600; padding: 8px 16px; }
.home-pub .pub { max-width: 1120px; margin: 0 auto; padding: 8px 24px 48px; }
.home-pub .pub h2 { margin: 0 0 10px; color: var(--navy); }
.home-pub .pub-sub { margin: 0 0 22px; color: var(--slate-2); max-width: 70ch; }
.home-pub .pub-note { margin: 16px 0 0; color: var(--slate); font-size: .92rem; max-width: 80ch; }
.home-pub .demo-cards, .home-pub .recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 900px; }
.home-pub .demo-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.home-pub .demo-card, .home-pub .recent-row { display: grid; gap: 6px; padding: 18px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.home-pub .demo-card:hover, .home-pub .recent-row:hover { border-color: var(--teal); }
.home-pub .dc-k, .home-pub .r-host { font-weight: 700; }
.home-pub .dc-score { color: var(--slate-2); }
.home-pub .dc-score b { font-size: 1.6rem; color: var(--navy); }
.home-pub .dc-meta, .home-pub .r-meta { color: var(--slate); font-size: .9rem; }
.home-pub .dc-go, .home-pub .r-go { color: var(--teal-ink); font-weight: 700; font-size: .92rem; }
.home-pub .req-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.home-pub .req-addr { font-weight: 800; font-size: 1.1rem; word-break: break-all; }
.home-pub .req-btn { display: inline-block; background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; border-radius: 99px; padding: 10px 18px; }
