/* Blindspotter — Signal Recovery Room design system, ported from the Manus funnel build. */
:root {
  --paper: #f7f2ea;
  --paper-muted: #e7e3dd;
  --card: #ffffff;
  --ink: #172129;
  --ink-soft: #64717a;
  --ink-soft2: #59676f;
  --ink-faint: #7c878b;
  --border: rgba(23, 33, 41, 0.14);
  --border-strong: rgba(23, 33, 41, 0.22);
  --signal: #f3502d;
  --signal-hover: #ff6b47;
  --signal-wash: rgba(243, 80, 45, 0.08);
  --shadow-tint: #ded9d2;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", "Arial Narrow", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--signal); color: var(--ink); }
.serif { font-family: "Source Serif 4", Georgia, serif; }
em.accent { font-style: italic; font-weight: 400; font-family: "Source Serif 4", Georgia, serif; color: var(--signal); }

.shell { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.shell-narrow { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
@media (max-width: 640px) { .shell, .shell-narrow { width: min(100% - 2rem, 1240px); } }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---- evidence label / eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.1;
}
.pin { width: 0.58rem; height: 0.58rem; background: var(--signal); box-shadow: 0 0 0 3px rgba(243,80,45,.14); flex-shrink: 0; display: inline-block; }

/* ---- brand ---- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.07rem; letter-spacing: -0.055em; text-decoration: none; transition: color 160ms var(--ease); }
.brand-mark { width: 1.55rem; height: 1.55rem; flex-shrink: 0; }
.brand-light { color: var(--paper); } .brand-light:hover { color: var(--signal); }
.brand-dark { color: var(--ink); } .brand-dark:hover { color: var(--signal); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border: none; cursor: pointer; transition: transform 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease); font-family: inherit; font-size: 1rem; padding: 0.9rem 1.4rem; }
.btn-signal { background: var(--signal); color: var(--ink); box-shadow: 4px 4px 0 rgba(247,242,234,.5); }
.btn-signal:hover { background: var(--signal-hover); box-shadow: 6px 6px 0 rgba(247,242,234,.5); transform: translate(-1px,-1px); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 rgba(23,33,41,.16); }
.btn-ink:hover { background: #2c3a42; box-shadow: 6px 6px 0 rgba(23,33,41,.16); transform: translate(-1px,-1px); }
.btn:active { transform: scale(0.97); box-shadow: 1px 1px 0 rgba(23,33,41,.16); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 1.6rem; font-size: 1.05rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.55rem; border-bottom: 1px solid rgba(23,33,41,.35); padding-bottom: 0.25rem; font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--ink); transition: color 160ms var(--ease), border-color 160ms var(--ease), gap 160ms var(--ease); }
.link-arrow:hover { gap: 0.75rem; border-color: var(--signal); color: var(--signal); }
.link-arrow.on-dark { color: var(--paper); border-color: rgba(247,242,234,.35); }
.link-arrow.on-dark:hover { color: var(--signal); }

/* ---- header ---- */
.site-header { position: absolute; inset-inline: 0; top: 0; z-index: 30; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; padding-block: 1.5rem; color: var(--paper); }
.site-header nav { display: none; gap: 1.75rem; font-size: 0.9rem; font-weight: 500; color: rgba(247,242,234,.78); }
.site-header nav a { text-decoration: none; transition: color 160ms var(--ease); }
.site-header nav a:hover { color: var(--signal); }
@media (min-width: 768px) { .site-header nav { display: flex; } .site-header .btn-signal.nav-cta { display: inline-flex; } }
.btn-signal.nav-cta { display: none; height: 2.75rem; padding: 0 1.25rem; font-size: 0.9rem; }

/* ---- hero ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); padding: 8rem 0 4rem; }
@media (min-width: 768px) { .hero { padding: 10rem 0 5rem; } }
.hero-texture { position: absolute; inset: 0; opacity: 0.16; background-image: repeating-linear-gradient(90deg, transparent 0, transparent 72px, rgba(244,242,234,.14) 73px, transparent 74px), repeating-linear-gradient(0deg, transparent 0, transparent 72px, rgba(244,242,234,.08) 73px, transparent 74px); -webkit-mask-image: linear-gradient(90deg, black 0%, black 48%, transparent 94%); mask-image: linear-gradient(90deg, black 0%, black 48%, transparent 94%); }
.hero .shell { position: relative; display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .hero .shell { grid-template-columns: 0.93fr 1.07fr; gap: 2rem; } }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); line-height: 0.94; letter-spacing: -0.05em; font-weight: 600; margin: 1.7rem 0 0; max-width: 14ch; }
.hero .lede { margin-top: 1.7rem; max-width: 34rem; font-size: 1.1rem; line-height: 1.7; color: rgba(247,242,234,.73); }
.hero-actions { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; } }
.hero-tags { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(247,242,234,.55); }
.hero-tags span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-tags .tick { color: var(--signal); font-weight: 900; }
.hero-panel { position: relative; min-height: 320px; }
.hero-visual { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, #10181f 0%, #1c2b34 55%, #101820 100%); min-height: 320px; }
.hero-visual::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 30% 25%, rgba(243,80,45,.18), transparent 45%), radial-gradient(circle at 75% 70%, rgba(255,255,255,.06), transparent 50%); }
.report-float { position: relative; margin-top: -3.5rem; margin-left: 0; width: 84%; max-width: 380px; background: var(--paper); padding: 1.1rem; color: var(--ink); box-shadow: 0 26px 80px rgba(0,0,0,.38); }
.report-float .rf-top { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.report-float .rf-label { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin: 0; }
.report-float .rf-title { margin: 0.25rem 0 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.rf-bars { margin-top: 1rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.rf-bars .bars { display: grid; gap: 0.4rem; }
.rf-bars .bar { height: 6px; background: #c9d0cf; }
.rf-bars .bar.b1 { width: 80%; background: var(--ink); }
.rf-bars .bar.b2 { width: 60%; }
.rf-bars .bar.b3 { width: 91%; }
.rf-badge { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid rgba(243,80,45,.35); background: var(--signal-wash); color: var(--signal); font-weight: 700; font-size: 0.9rem; }
.rf-tags { margin-top: 1rem; border-block: 1px solid var(--border); padding-block: 0.6rem; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft2); }
.rf-tags .row { display: flex; align-items: center; gap: 0.4rem; }
.rf-tags .row span.tag { border: 1px solid var(--border-strong); padding: 0.15rem 0.4rem; }
.rf-tags .row .rule { height: 1px; flex: 1; background: var(--border-strong); }
.rf-tags .signal-note { margin-top: 0.5rem; color: var(--signal); }
.rf-risk { margin-top: 0.75rem; border-left: 2px solid var(--signal); padding-left: 0.7rem; font-size: 0.72rem; line-height: 1.4; color: #526068; }
.live-pill { position: absolute; right: 1rem; top: 1.75rem; display: flex; align-items: center; gap: 0.5rem; background: rgba(23,33,41,.85); padding: 0.5rem 0.75rem; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(247,242,234,.85); }
.hero-bottom-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: rgba(243,80,45,.7); }

/* ---- section basics ---- */
section.pane { position: relative; background: var(--paper); padding: 5rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { section.pane { padding: 7rem 0; } }
section.pane.muted { background: var(--paper-muted); }
section.pane.ink { background: var(--ink); color: var(--paper); }
h2.display { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; margin: 1.25rem 0 0; }
@media (min-width: 768px) { h2.display { font-size: 2.9rem; } }
h2.display.big { font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 0.9; }
.section-lede { font-size: 1.1rem; line-height: 1.7; color: var(--ink-soft2); }
.section-lede.serif-lg { font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem; line-height: 1.4; color: #26343d; }
@media (min-width: 768px) { .section-lede.serif-lg { font-size: 1.8rem; } }

.two-col { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; } }
.two-col.rev { }
@media (min-width: 1024px) { .two-col.rev { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.trio { display: grid; gap: 0.9rem; margin-top: 2.2rem; }
@media (min-width: 640px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio .item { border-top: 1px solid var(--border-strong); padding-top: 1rem; }
.trio .num { font-size: 0.78rem; font-weight: 700; color: var(--signal); }
.trio h3 { margin: 0.75rem 0 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.trio p { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }

/* ---- inside-the-map list ---- */
.map-visual { position: relative; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(150deg, #101820 0%, #1d2c35 60%, #12191f 100%); box-shadow: 20px 20px 0 var(--shadow-tint); aspect-ratio: 4/3; }
.map-visual::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 65% 30%, rgba(243,80,45,.16), transparent 45%); }
.map-visual .caption { position: absolute; inset-inline: 2rem; bottom: 2rem; border: 1px solid rgba(255,255,255,.15); background: rgba(23,33,41,.9); padding: 1rem 1.2rem; color: var(--paper); }
.map-visual .caption .top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.map-visual .caption .top p { margin: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--signal); }
.map-visual .caption .body { margin-top: 0.5rem; font-family: "Source Serif 4", Georgia, serif; font-size: 1.05rem; line-height: 1.4; }

.map-list { margin-top: 1.5rem; border-top: 1px solid var(--border-strong); }
.map-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-strong); }
.map-item .num { font-size: 0.75rem; font-weight: 700; color: var(--signal); padding-top: 0.15rem; }
.map-item h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.map-item p { margin: 0.3rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); max-width: 30rem; }

/* ---- risk terrain ---- */
.terrain-visual { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(160deg, #0e161c 0%, #1a2830 65%, #0e161c 100%); min-height: 280px; }
@media (min-width: 1024px) { .terrain-visual { min-height: 500px; } }
.terrain-visual::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 35% 60%, rgba(243,80,45,.14), transparent 40%); }
.terrain-visual .caption { position: absolute; inset: auto 1.25rem 1.25rem; border-left: 2px solid var(--signal); background: rgba(23,33,41,.85); padding: 0.9rem 1rem; font-size: 0.85rem; line-height: 1.5; color: rgba(247,242,234,.8); }
.terrain-visual .caption .tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--signal); display: block; margin-bottom: 0.25rem; }

.risk-toggle { margin-top: 2rem; border-block: 1px solid rgba(255,255,255,.13); }
.risk-toggle button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem; padding: 0.9rem 0.3rem; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.13); color: var(--paper); text-align: left; cursor: pointer; font-family: inherit; }
.risk-toggle button:last-child { border-bottom: none; }
.risk-toggle button:hover { background: rgba(255,255,255,.04); }
.risk-toggle button.active { background: rgba(255,255,255,.07); }
.risk-toggle .rdot { width: 8px; height: 8px; border-radius: 999px; background: rgba(247,242,234,.3); }
.risk-toggle button.active .rdot { background: var(--signal); box-shadow: 0 0 0 5px rgba(243,80,45,.14); }
.risk-toggle .rname { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.risk-toggle .rchev { color: rgba(247,242,234,.38); transition: transform 160ms var(--ease); }
.risk-toggle button.active .rchev { color: var(--signal); transform: rotate(90deg); }
.risk-detail { margin-top: 1.25rem; border: 1px solid rgba(243,80,45,.4); background: var(--signal-wash); padding: 1.4rem; }
.risk-detail .tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--signal); }
.risk-detail h3 { margin: 0.6rem 0 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; font-size: 1.5rem; line-height: 1.35; }
.risk-detail p { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.55; color: rgba(247,242,234,.65); max-width: 34rem; }
.risk-detail .out { display: inline-block; margin-top: 1rem; border: 1px solid rgba(255,255,255,.13); padding: 0.4rem 0.7rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(247,242,234,.75); }

/* ---- process ---- */
.process-head { display: grid; gap: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.6rem; }
@media (min-width: 1024px) { .process-head { grid-template-columns: 0.6fr 1.4fr; align-items: end; } }
.process-grid { position: relative; margin-top: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.process-step .top { display: flex; align-items: center; justify-content: space-between; }
.process-step .stepnum { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--paper); font-weight: 700; font-size: 0.9rem; color: var(--signal); }
.process-step h3 { margin: 1.1rem 0 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.process-step p { margin: 0.6rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); max-width: 20rem; }

/* ---- privacy boundary ---- */
.boundary-cards { margin-top: 1.75rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .boundary-cards { grid-template-columns: 1fr 1fr; } }
.boundary-cards .bc { border-left: 2px solid var(--signal); background: rgba(247,242,234,.7); padding: 1rem; }
.boundary-cards .bc h3 { margin: 0.9rem 0 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.boundary-cards .bc p { margin: 0.4rem 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.boundary-callout { margin-top: 1.25rem; border: 1px solid var(--border-strong); background: var(--ink); padding: 1.3rem; color: var(--paper); }
.boundary-callout .tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--signal); }
.boundary-callout h3 { margin: 0.7rem 0 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 400; font-size: 1.4rem; line-height: 1.35; max-width: 32rem; }
.boundary-callout p { margin: 0.7rem 0 0; font-size: 0.87rem; line-height: 1.55; color: rgba(247,242,234,.68); max-width: 40rem; }
.boundary-visual { position: relative; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 3/2; background: linear-gradient(155deg, #f1ece2 0%, #e2d9c9 100%); box-shadow: 18px 18px 0 var(--shadow-tint); }
.boundary-visual::after { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 70% 30%, rgba(243,80,45,.14), transparent 45%); }

/* ---- final CTA ---- */
.cta-pane { position: relative; overflow: hidden; }
.cta-topline { position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--signal); }
.cta-grid { position: relative; display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1.05fr 0.95fr; } }
.cta-card { border: 1px solid rgba(243,80,45,.55); background: var(--paper); padding: 1.6rem; color: var(--ink); box-shadow: 10px 10px 0 var(--signal); }
.cta-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--border-strong); padding-bottom: 1.2rem; }
.cta-card .top .kicker { margin: 0; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-soft); }
.cta-card .top .headline { margin: 0.5rem 0 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.cta-card .top .note { text-align: right; font-size: 0.85rem; font-weight: 700; line-height: 1.3; color: var(--ink-soft); max-width: 9ch; flex-shrink: 0; }
.cta-card ul { margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: 0.88rem; color: #56636a; }
.cta-card li { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; }
.cta-card li::before { content: "✓"; color: var(--signal); font-weight: 700; flex-shrink: 0; }
.cta-card .fine { margin-top: 0.9rem; text-align: center; font-size: 0.72rem; line-height: 1.4; color: var(--ink-soft); }

footer.site-footer { background: var(--ink); color: rgba(247,242,234,.62); padding: 2.2rem 0; }
footer.site-footer .shell { display: flex; flex-direction: column; gap: 1.4rem; }
@media (min-width: 640px) { footer.site-footer .shell { flex-direction: row; align-items: center; justify-content: space-between; } }
footer.site-footer p { max-width: 24rem; font-size: 0.76rem; line-height: 1.5; margin: 0; }
footer.site-footer .flinks { display: flex; gap: 1.2rem; font-size: 0.76rem; font-weight: 600; }
footer.site-footer .flinks a { text-decoration: none; }
footer.site-footer .flinks a:hover { color: var(--signal); }

/* ================= inner pages (signal check / intake / success) ================= */
.page-header { border-bottom: 1px solid var(--border); }
.page-header.on-ink { background: var(--ink); color: var(--paper); border-color: rgba(255,255,255,.1); }
.page-header .shell-narrow { display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
.pill-note { display: none; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); border: 1px solid var(--border-strong); background: rgba(23,33,41,.05); padding: 0.5rem 0.85rem; }
.page-header.on-ink .pill-note { color: var(--paper); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
@media (min-width: 480px) { .pill-note { display: inline-flex; } }

.page-main { padding: 2.5rem 0 4rem; }
@media (min-width: 768px) { .page-main { padding: 3.5rem 0 5rem; } }
.page-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: color 160ms var(--ease); }
.page-back:hover { color: var(--signal); }

.split { margin-top: 2.3rem; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 0.72fr 1.28fr; gap: 4rem; } }
.split aside h1 { margin: 1.25rem 0 0; font-size: 2.2rem; font-weight: 600; letter-spacing: -0.055em; line-height: 0.98; max-width: 22rem; }
@media (min-width: 768px) { .split aside h1 { font-size: 2.8rem; } }
.split aside .lede { margin-top: 1.1rem; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); max-width: 26rem; }
.side-features { margin-top: 2.2rem; border-block: 1px solid var(--border-strong); padding-block: 1.2rem; }
.side-features .feat { display: flex; align-items: flex-start; gap: 0.75rem; }
.side-features .feat + .feat { margin-top: 1.2rem; }
.side-features .feat .ic { color: var(--signal); flex-shrink: 0; margin-top: 0.15rem; font-weight: 700; }
.side-features .feat p.t { margin: 0; font-weight: 700; font-size: 0.92rem; }
.side-features .feat p.d { margin: 0.25rem 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.side-fine { margin-top: 1.6rem; font-size: 0.76rem; line-height: 1.5; color: var(--ink-faint); }

.panel { border: 1px solid var(--border-strong); background: var(--card); box-shadow: 12px 12px 0 var(--shadow-tint); }
.panel-head { border-bottom: 1px solid var(--border); padding: 1.3rem 1.5rem; }
.panel-head .row1 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-head .row1 .l { display: flex; align-items: center; gap: 0.5rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.panel-head .row1 .r { font-size: 0.88rem; font-weight: 700; letter-spacing: -0.02em; }
.panel-body { padding: 1.3rem 1.5rem 1.6rem; }
@media (min-width: 640px) { .panel-body { padding: 2rem; } }

.track { margin-top: 1rem; display: grid; gap: 0.4rem; }
.track.t3 { grid-template-columns: repeat(3, 1fr); }
.track.t4 { grid-template-columns: repeat(4, 1fr); }
.track span, .track button { height: 6px; border: none; padding: 0; background: var(--border-strong); cursor: default; }
.track span.done, .track button.done { background: var(--signal); }
.stage-tags { margin-top: 1rem; display: flex; align-items: center; gap: 0.4rem; font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.stage-tags .tag { border: 1px solid var(--border-strong); padding: 0.15rem 0.4rem; }
.stage-tags .rule { height: 1px; flex: 1; background: var(--border); }

.q-eyebrow { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--signal); margin: 0; }
.q-title { margin: 0.6rem 0 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; }
.q-sub { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }

.opt-grid { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .opt-grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .opt-grid.three { grid-template-columns: repeat(3, 1fr); } }
.opt {
  border: 1px solid var(--border-strong); background: var(--paper); padding: 1.1rem; text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.opt:hover { border-color: rgba(23,33,41,.45); }
.opt.sel { border-color: var(--signal); background: var(--signal-wash); }
.opt .ot { margin: 0; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.opt .od { margin: 0.45rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); }
.opt-simple { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 1.1rem; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }

.q-nav { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.1rem; }
.q-back { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: none; font-family: inherit; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.q-back:disabled { opacity: 0.35; cursor: not-allowed; }

.finding-box { margin-top: 1rem; border: 1px solid rgba(243,80,45,.45); background: var(--signal-wash); padding: 1.3rem; }
@media (min-width: 640px) { .finding-box { padding: 1.6rem; } }
.finding-box .frow { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.finding-box .frow .ftag { margin: 0; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--signal); }
.finding-box .frow h3 { margin: 0.7rem 0 0; font-size: 1.35rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.03em; max-width: 34rem; }
.finding-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(243,80,45,.45); background: var(--card); color: var(--signal); flex-shrink: 0; font-weight: 700; }
.finding-body { margin-top: 1.1rem; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft2); max-width: 34rem; }
.finding-check { margin-top: 1.1rem; border-left: 2px solid var(--signal); background: rgba(255,255,255,.5); padding: 0.9rem 1rem; }
.finding-check .lbl { margin: 0; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.finding-check p.txt { margin: 0.5rem 0 0; font-size: 0.9rem; line-height: 1.55; color: #26343d; }

.category-track { margin-top: 1.3rem; border-top: 1px solid var(--border); padding-top: 1.1rem; display: grid; gap: 0.6rem; }
.category-track .lbl { margin: 0 0 0.2rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.category-track .crow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--border); background: var(--card); padding: 0.7rem 0.9rem; }
.category-track .crow .cname { font-weight: 700; font-size: 0.88rem; letter-spacing: -0.01em; }
.category-track .crow .cstate { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-align: right; }
.category-track .crow.flagged { border-color: rgba(243,80,45,.45); background: var(--signal-wash); }
.category-track .crow.flagged .cstate { color: var(--signal); }
.category-track .crow.clear { border-color: rgba(63,174,86,.35); background: rgba(63,174,86,.07); }
.category-track .crow.clear .cstate { color: #2f9647; }
.category-track .crow.locked { opacity: 0.5; }
.category-track .crow.locked .cstate { color: var(--ink-faint); }

.finding-next { margin-top: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.4rem; display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .finding-next { grid-template-columns: 1fr auto; align-items: center; } }
.finding-next p.t1 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.finding-next p.t2 { margin: 0.3rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); max-width: 30rem; }
.rerun { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: none; font-family: inherit; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.rerun:hover { color: var(--signal); }

/* ---- form fields ---- */
label.field-label { display: block; font-weight: 700; font-size: 0.83rem; letter-spacing: -0.02em; color: #26343d; margin: 1.3rem 0 0.5rem; }
.detected-note { display: none; font-weight: 700; font-size: 0.72rem; letter-spacing: 0; text-transform: none; color: #2f9647; margin-left: 0.3rem; }
label.field-label .hint { font-weight: 400; color: var(--ink-faint); display: block; font-size: 0.8rem; margin-top: 3px; letter-spacing: 0; }
.field {
  width: 100%; border: 1px solid rgba(23,33,41,.2); background: var(--card); color: var(--ink);
  padding: 0.8rem 0.9rem; font-size: 0.95rem; line-height: 1.5; font-family: inherit;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field::placeholder { color: #99a1a2; }
.field:hover { border-color: rgba(23,33,41,.42); }
.field:focus { outline: none; border-color: var(--signal); box-shadow: 4px 4px 0 rgba(243,80,45,.13); }
textarea.field { min-height: 200px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.83rem; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; font-size: 0.88rem; }
.radio-row input { width: auto; accent-color: var(--signal); }
.consent-row { margin-top: 1.1rem; display: flex; align-items: flex-start; gap: 0.7rem; border: 1px solid var(--border); background: var(--paper); padding: 0.9rem; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft2); cursor: pointer; }
.consent-row input { margin-top: 0.2rem; accent-color: var(--signal); }

.prompt-box { position: relative; margin-top: 1rem; background: var(--ink); color: rgba(247,242,234,.88); border: 1px solid var(--border-strong); padding: 1.1rem 2.9rem 1.1rem 1.1rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; line-height: 1.6; white-space: pre-wrap; }
.copy-btn { position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem; display: grid; place-items: center; background: rgba(247,242,234,.06); border: 1px solid rgba(247,242,234,.18); color: var(--paper); cursor: pointer; font-size: 0.9rem; }
.copy-btn.copied { border-color: var(--signal); color: var(--signal); }

#status { margin-top: 1rem; font-size: 0.9rem; font-weight: 700; }
#status.success { color: #3fae56; }
#status.error { color: #e0554b; }
.hp { position: absolute; left: -9999px; }
.error-msg { margin-top: 1.2rem; border-left: 2px solid var(--signal); background: var(--signal-wash); padding: 0.75rem 1rem; font-size: 0.88rem; color: #913420; }
.next-note { margin-top: 1.3rem; border-left: 2px solid var(--signal); background: rgba(243,80,45,.07); padding: 0.9rem 1rem; }
.next-note p.t { margin: 0; font-weight: 700; font-size: 0.92rem; }
.next-note p.d { margin: 0.35rem 0 0; font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); }

.step-actions { margin-top: 1.7rem; display: flex; flex-direction: column-reverse; gap: 0.8rem; border-top: 1px solid var(--border); padding-top: 1.1rem; }
@media (min-width: 640px) { .step-actions { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---- success page ---- */
.success-wrap { background: var(--ink); color: var(--paper); min-height: 100vh; }
.success-main { padding: 3rem 0; }
@media (min-width: 768px) { .success-main { padding: 5rem 0; } }
.success-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .success-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }
.success-badge { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid rgba(243,80,45,.55); background: var(--signal-wash); color: var(--signal); font-size: 1.4rem; }
.success-grid h1 { margin: 1.25rem 0 0; font-size: 2.4rem; font-weight: 600; letter-spacing: -0.06em; line-height: 0.95; max-width: 30rem; }
@media (min-width: 768px) { .success-grid h1 { font-size: 3.1rem; } }
.success-grid .lede { margin-top: 1.1rem; font-size: 1.05rem; line-height: 1.65; color: rgba(247,242,234,.68); max-width: 30rem; }
.success-actions { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 640px) { .success-actions { flex-direction: row; } }
.success-aside { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); padding: 1.5rem; }
@media (min-width: 768px) { .success-aside { padding: 2rem; } }
.success-aside .top { display: flex; align-items: center; justify-content: space-between; }
.success-aside .top p { margin: 0; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--signal); }
.success-steps { margin-top: 1rem; border-block: 1px solid rgba(255,255,255,.12); }
.success-steps .s { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.success-steps .s:last-child { border-bottom: none; }
.success-steps .s .n { font-size: 0.75rem; font-weight: 700; color: var(--signal); }
.success-steps .s h2 { margin: 0; font-size: 0.98rem; font-weight: 700; letter-spacing: -0.02em; }
.success-steps .s p { margin: 0.3rem 0 0; font-size: 0.85rem; line-height: 1.55; color: rgba(247,242,234,.57); }
.success-note { margin-top: 1.3rem; display: flex; gap: 0.7rem; font-size: 0.86rem; line-height: 1.55; color: rgba(247,242,234,.68); }
.success-note.boxed { border-left: 2px solid var(--signal); background: rgba(243,80,45,.08); padding: 0.9rem 1rem; }

/* ================= pricing page ================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pricing-hero { padding: 7rem 0 3.5rem; }
@media (min-width: 768px) { .pricing-hero { padding: 9rem 0 4.5rem; } }
.pricing-hero .shell { display: block; }
.pricing-hero h1 { max-width: 18ch; }
.pricing-hero .lede { max-width: 38rem; }

.price-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.price-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border-strong); background: var(--card); padding: 1.6rem; box-shadow: 10px 10px 0 var(--shadow-tint); }
.price-card.feature { border-color: rgba(243,80,45,.55); box-shadow: 10px 10px 0 var(--signal); }
@media (min-width: 900px) { .price-card.feature { margin-top: -1.25rem; padding-block: 2.1rem; } }
.pc-flag { position: absolute; top: 0; left: 0; transform: translateY(-100%); background: var(--signal); color: var(--ink); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; padding: 0.4rem 0.7rem; }
/* Subordinate to the solid flag: states a condition, does not make a value claim. */
.pc-flag.quiet { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-soft); font-weight: 600; }
/* Stacked layout has no room above the card for an out-of-flow flag. */
@media (max-width: 899px) { .pc-flag { position: static; transform: none; display: inline-block; margin-bottom: 0.9rem; } }
.pc-kicker { margin: 0; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-soft); }
.pc-price { margin: 0.6rem 0 0; font-size: 2.6rem; font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.pc-price .unit { display: block; margin-top: 0.4rem; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); min-height: 0.8rem; }
.pc-line { margin: 0.9rem 0 0; font-family: "Source Serif 4", Georgia, serif; font-size: 1.05rem; line-height: 1.4; color: #26343d; }
.pc-list { margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: 0.88rem; line-height: 1.5; color: #56636a; border-top: 1px solid var(--border); padding-top: 1.1rem; }
.pc-list li { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; }
.pc-list li::before { content: "✓"; color: var(--signal); font-weight: 700; flex-shrink: 0; }
.price-card .btn { margin-top: auto; }
.pc-list + .btn { margin-top: 1.2rem; }
.pc-fine { margin: 0.9rem 0 0; font-size: 0.72rem; line-height: 1.45; color: var(--ink-faint); }

.compare-wrap { margin-top: 1.8rem; overflow-x: auto; border: 1px solid var(--border-strong); background: var(--card); }
table.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.88rem; }
table.compare th, table.compare td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
table.compare thead th { vertical-align: bottom; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); border-bottom: 1px solid var(--border-strong); }
table.compare thead th span { display: block; margin-top: 0.35rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.04em; text-transform: none; color: var(--ink); }
table.compare tbody th { font-weight: 500; color: #26343d; max-width: 22rem; }
table.compare td { text-align: center; width: 8.5rem; color: var(--ink-soft); }
table.compare td.y { color: var(--signal); font-weight: 700; }
table.compare td.n { color: var(--ink-faint); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover { background: rgba(23,33,41,.02); }
.compare-fine { margin-top: 1rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink-faint); }
.compare-fine a { color: var(--ink-soft2); }

.faq-list { margin-top: 1.8rem; border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; transition: color 160ms var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal); }
.faq-item summary::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); color: var(--signal); font-weight: 700; font-size: 1.2rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1.2rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); max-width: 44rem; }
