/* Deck Gap — shared theme */

:root {
  --bg: #060607;
  --bg-panel: #0c0c0e;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #f5f5f7;
  --text-secondary: #9a9aa2;
  --text-muted: #6b6b73;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);
  --success: #6ee7b7;
  --warn: #fbbf6b;
  --danger: #f28b82;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(120, 130, 255, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* Nav */
/* Sticky top bar, requested 4 Aug: the nav previously scrolled away with
   the page, requiring a scroll back to the very top to reach any link.
   Targets the specific .wrap that directly wraps nav.topnav via :has()
   rather than adding a new class to 25 separate HTML files, .wrap itself
   is reused generically elsewhere on every page for plain content
   sections, which must NOT become sticky. Background matches var(--bg)
   exactly, so the fixed radial-gradient glow behind the page (body::before,
   900px wide, fully inside this wrap's 1120px max-width) is fully covered
   while stuck, no visible seam at the wrap's edges. */
.wrap:has(> nav.topnav) {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

nav.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; color: var(--text-primary); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #2a2a30, #16161a);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.navlinks { display: flex; align-items: center; gap: 28px; }
.navlinks a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s ease; }
.navlinks a:hover { color: var(--text-primary); }
.navlinks a.active:not(.nav-cta) { color: var(--text-primary); position: relative; }
.navlinks a.active:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -21px;
  height: 2px;
  background: var(--text-primary);
}
.nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  color: #0a0a0a !important;
  font-weight: 600;
  font-size: 13.5px;
}

/* Mobile nav toggle (hamburger). Hidden on desktop by default, only shown
   inside the <=760px media query below. Injected via app.js
   (initMobileNavToggle) into every page's nav.topnav rather than
   hand-edited into 20+ HTML files, same pattern as initHelpLink. Sits as
   its own flex child between .brand and .navlinks; on desktop it's
   display:none so it doesn't participate in the topnav's space-between
   layout at all. */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; display: block; }

/* Logo splash (full-height opening screen) */
.logo-splash {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 73px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse 800px 500px at 50% 35%, rgba(64, 84, 148, 0.28), transparent 70%);
}
.logo-splash-text {
  position: relative;
  z-index: 2;
  font-size: 92px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}
.logo-splash-sub {
  position: relative;
  z-index: 2;
  font-size: 22px;
  color: #aab4d4;
  line-height: 1.5;
  margin-bottom: 56px;
}
.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.scroll-line { width: 1px; height: 40px; background: var(--glass-border); }
.scroll-arrow { font-size: 16px; }
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 280px;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 640px) {
  .logo-splash-text { font-size: 48px; }
  .logo-splash-sub { font-size: 17px; }
}

/* Hero */
.hero { text-align: center; padding: 132px 0 64px; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--text-secondary); }
.hero p.sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text-primary); color: #0a0a0a; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: var(--glass); color: var(--text-primary); border-color: var(--glass-border); }
.btn-ghost:hover { background: var(--glass-hover); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Pill input */
.pill-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  max-width: 560px;
  margin: 0 auto;
}
.pill-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 10px 0;
}
.pill-input-wrap input::placeholder { color: var(--text-muted); }
.kbd-hint {
  display: flex; gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
}
.kbd-hint kbd {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  padding: 3px 7px;
  font-family: inherit;
}

/* Glass card */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background .15s ease, border-color .15s ease;
}
.card:hover { background: var(--glass-hover); }

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 40px; max-width: 520px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.step-num {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--text-primary); }
.card p { color: var(--text-secondary); font-size: 14.5px; }

/* Added 17 Aug 2026 per Kristian: centre-aligned variant, scoped to
   .center-content so it never touches the many other .grid-3/.card/
   .section-title uses across the site (upload-drop, pricing tiers, etc)
   that are deliberately left-aligned. Used on index.html's "How it works"
   and about.html's "Who's behind this", matching the already-centred look
   of the "What we actually catch" example card. */
.center-content.section-title,
.center-content.section-sub,
.center-content .card { text-align: center; }
.center-content.section-sub { margin-left: auto; margin-right: auto; }
.center-content .icon-badge { margin-left: auto; margin-right: auto; }
/* Added 17 Aug 2026 per Kristian, extending centring to security.html's
   feature-list sections: .gap-item is a flex row (see .gap-item's own
   definition above), so text-align alone doesn't centre its child block,
   the row itself needs justify-content, plus a max-width so centred
   multi-line body copy doesn't stretch edge-to-edge and become harder to
   scan than it already is centred. */
.center-content .gap-item { justify-content: center; }
.center-content .gap-item > div { max-width: 480px; }
.center-content .card p { max-width: 480px; margin-left: auto; margin-right: auto; }
.card a.card-link { color: var(--text-primary); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; }
.card a.card-link:hover { text-decoration: underline; }

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13.5px; }
.footer-links a:hover { color: var(--text-primary); }
.footer-note { color: var(--text-muted); font-size: 13px; }

/* Forms */
.form-page { max-width: 620px; margin: 0 auto; padding: 80px 0 100px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(255,255,255,0.25); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a0a0a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field select:invalid { color: var(--text-muted); }
.field select option { background: var(--bg-panel); color: var(--text-primary); }
.field-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.upload-drop {
  border: 1.5px dashed var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
  margin-bottom: 26px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.upload-drop:hover { border-color: rgba(255,255,255,0.3); background: var(--glass-hover); }
.upload-drop .icon-badge { margin: 0 0 14px; }
.upload-drop strong { display: block; margin-bottom: 6px; font-size: 15.5px; }
.upload-drop span { color: var(--text-muted); font-size: 13.5px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: #f5f5f5; }
.checkbox-row label { font-size: 13.5px; color: var(--text-secondary); }

/* Processing */
.processing-page { text-align: center; padding: 120px 0; }
.spinner-ring {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  border-top-color: var(--text-primary);
  margin: 0 auto 32px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wa-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 28px;
}

/* Score ring */
.score-hero { text-align: center; padding: 80px 0 40px; }
.score-circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 3px solid var(--glass-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 60%);
}
.score-circle .num { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.score-circle .of100 { font-size: 13px; color: var(--text-muted); }

/* Added 17 Aug 2026 per Kristian, sample-report.html cover only: a
   monochrome progress ring around the score, --pct set inline per page
   as the score/1000 as a whole-number percentage. New class, doesn't
   redefine .score-circle itself, so every real customer report page
   (results-free/mid/paid.html) that already uses .score-circle is
   completely unaffected by this. White conic-gradient arc only, no
   colour, per Kristian's explicit no-colour-glow note. */
.score-ring {
  width: 176px; height: 176px;
  border-radius: 50%;
  margin: 0 auto 28px;
  padding: 8px;
  background: conic-gradient(var(--text-primary) calc(var(--pct, 50) * 1%), var(--glass-border) 0);
  display: flex; align-items: center; justify-content: center;
  /* Added 23 Aug 2026 per Kristian: soft halo behind the ring, same
     --accent-glow token as .icon-badge elsewhere on the site, so it's
     the same white/no-colour glow already in use, not a new colour
     introduced just for this element. */
  box-shadow: 0 0 60px 12px var(--accent-glow);
}
.score-ring .score-circle { margin: 0; background: var(--bg); }

.gap-item {
  display: flex; gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--glass-border);
}
.gap-item:last-child { border-bottom: none; }

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--glass-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  font-size: 15.5px; font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }
.gap-tag {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(242, 139, 130, 0.12);
  color: var(--danger);
  height: fit-content;
}
.gap-tag.warn { background: rgba(251, 191, 107, 0.12); color: var(--warn); }
.gap-item h4 { font-size: 15.5px; font-weight: 650; margin-bottom: 4px; }
.gap-item p { font-size: 14px; color: var(--text-secondary); }

.locked-blur {
  position: relative;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}
.lock-overlay {
  position: relative;
  margin: -70px auto 20px;
  text-align: center;
  z-index: 2;
}

/* Pricing */
.price-card { position: relative; }
.price-card.featured { border-color: rgba(255,255,255,0.25); background: var(--glass-hover); }
.price-card .price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 4px; }
.price-card .price span { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 22px 0 26px; }
.price-card ul li { font-size: 14px; color: var(--text-secondary); padding: 7px 0; display: flex; gap: 10px; }
.price-card ul li::before { content: "\2713"; color: var(--success); font-weight: 700; }
.badge-featured {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: #0a0a0a;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--radius-pill);
}

/* Free report: weak categories, trust/compliance lines */
.weak-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.weak-cat-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 14px 16px; }
.weak-cat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.weak-cat-score { font-size: 20px; font-weight: 700; color: var(--danger); }
.weak-cat-note { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; margin-top: 8px; }
.trust-line, .projection-line { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
/* Report pages are a light card on the dark site background (see .report-page),
   so text/link colours meant for the dark theme (var(--text-primary/secondary))
   read as near-invisible here. Scope a readable override rather than editing
   the base classes, which are also used correctly on the dark background. */
.report-page .trust-line, .report-page .projection-line { color: #45454c; }
.report-page .trust-line a, .report-page .projection-line a { color: #17171a; font-weight: 600; }
.compliance-line { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; line-height: 1.5; }
.section-label { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Paginated report pages: light paper card on the dark site background,
   deliberately distinct wording/branding from any external reference.
   Item 21(a), Kristian 4 Aug: real A4 proportions (210:297, ~0.7071 ratio)
   on every tier, not just a loosely-sized card, so each page genuinely
   reads as a page from a PDF sitting on the dark background rather than a
   web card. min-height (not height) so genuinely long content still
   expands the page rather than clipping or overflowing awkwardly, A4
   proportion is a floor, not a hard cap. Stronger shadow gives it real
   lift off the dark background, reinforcing the "printed page" read. */
.report-page {
  background: #fbfbf9;
  color: #17171a;
  border-radius: 4px;
  padding: 64px 72px;
  width: 100%;
  /* Widened 23 Aug 2026 per Kristian, from 794px: at the .wrap max-width
     (1120px), 794px left a large empty gutter either side of the card.
     900px keeps it well short of edge-to-edge (padding: 0 28px on .wrap
     plus this card's own 64px/72px inner padding still frame the text)
     while visibly closing that gap. */
  max-width: 900px;
  min-height: 1123px;
  /* aspect-ratio removed 5 Aug: on long pages (external verification's
     4-5 full paragraphs plus raise entries) it pinned the card's rendered
     height to the 210/297 ratio instead of growing with content, so text
     spilled past the card's bottom edge and the next page/footer started
     overlapping it. min-height alone still gives every page the A4-ish
     floor for short content, height now grows purely from content above
     that floor, no ambiguity left for the browser to resolve. */
  box-sizing: border-box;
  margin: 32px auto;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.55), 0 4px 16px rgba(0,0,0,0.3);
  position: relative;
}
@media (max-width: 860px) {
  .report-page { min-height: 0; padding: 40px 32px; }
}
/* Added 17 Aug 2026 per Kristian: a running Deck Gap corner mark on every
   report page (single CSS rule on the shared .report-page class, so it
   applies automatically to every page of every tier's report, real or
   sample, with no per-page markup changes needed). Pure CSS, no extra DOM:
   ::before draws the bracket-mark icon as a background SVG, ::after sets
   the wordmark text next to it. Deliberately quiet: 10px caps at 55%
   opacity, reads as a letterhead stamp, not competing with the actual
   report content below it. No colour, matches the rest of this mark. */
.report-page::before {
  content: "";
  position: absolute; top: 24px; right: 76px;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5a62' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 4v16'/%3E%3Cpath d='M18 4v16'/%3E%3Cpath d='M9 12h6' stroke-dasharray='2 3'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.55;
}
.report-page::after {
  content: "Deck Gap";
  position: absolute; top: 22px; right: 24px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #8a8a92;
}
@media (max-width: 860px) {
  .report-page::before, .report-page::after { display: none; }
}
.report-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6b8c; margin-bottom: 18px; }
.report-title { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; color: #111114; }
.report-body { font-size: 14.5px; line-height: 1.7; color: #45454c; max-width: 460px; overflow-wrap: break-word; }
/* Fix, 5 Aug (Kristian, report page overflow bug): grid/flex children default
   to min-width: auto, which stops them shrinking below their content's
   intrinsic width, this is what let long founder-entered values (funding
   source names, revenue figures, company websites) push past the card edge
   instead of wrapping. min-width: 0 lets the column actually shrink to the
   grid track; overflow-wrap/word-break on the value itself then wraps long
   unbroken strings (e.g. a URL) rather than letting them stay as one line
   wider than the column. */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.report-grid > * { min-width: 0; }
.report-field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a92; margin-bottom: 6px; }
.report-field-value { font-size: 15px; color: #17171a; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
.report-stat-row { display: flex; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.report-stat-num { font-size: 34px; font-weight: 800; color: #111114; letter-spacing: -0.02em; }
.report-stat-label { font-size: 13px; color: #6a6a72; max-width: 220px; margin-top: 4px; line-height: 1.5; overflow-wrap: break-word; }
.report-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid #e4e4e0; }
.report-footer { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin: 0 auto 40px; padding: 0 4px; font-size: 11px; color: var(--text-muted); }
.report-nav-btn { background: none; border: none; color: var(--text-secondary); font-size: 13px; cursor: pointer; padding: 6px 10px; }
.report-nav-btn:hover { color: var(--text-primary); }

/* Demo-mode banner: visible flag when a report is placeholder content
   because Claude/the internet/the server wasn't reachable. */
.demo-banner {
  background: rgba(251,191,107,0.15);
  color: var(--warn);
  border-bottom: 1px solid rgba(251,191,107,0.3);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  position: relative;
  z-index: 5;
}

/* Added 5 Aug: a deep-dive/visual-only fallback (the core report is real,
   one bonus section isn't) reuses .demo-banner's layout but visibly lighter
   than a genuine core-content failure, so the two read as different in
   severity, not just in wording. */
.demo-banner-partial {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
}

/* Rating dots — Good / Fair / Weak / Not evidenced against each category.
   Reverse-engineered from third-party due-diligence report conventions,
   reskinned entirely in Deck Gap's own dark theme and copy. */
.rating-dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; vertical-align:middle; flex-shrink:0; }
.rating-dot.good { background: var(--success); }
.rating-dot.fair { background: var(--warn); }
.rating-dot.weak { background: var(--danger); }
.rating-dot.na { background: var(--text-muted); opacity: .5; }
.rating-legend { display:flex; flex-wrap:wrap; gap:20px; margin-top:16px; font-size:12px; color: var(--text-muted); }
.rating-legend span { display:inline-flex; align-items:center; }

/* Page map — a 50-cell grid signalling total report depth vs what's unlocked.
   Deliberately abstract (no per-page fabricated titles); the Contents page
   below carries the actual section detail. */
.page-map-caption { font-size:12.5px; color: var(--text-muted); margin-bottom:10px; }
.page-map { display:grid; grid-template-columns: repeat(25, 1fr); gap:4px; margin-bottom: 28px; }
.page-cell { aspect-ratio: 1; border-radius: 3px; background: var(--glass); border: 1px solid var(--glass-border); }
.page-cell.unlocked { background: var(--text-primary); border-color: var(--text-primary); }
@media (max-width: 760px) { .page-map { grid-template-columns: repeat(10, 1fr); } }

/* Contents / table of contents page, rendered inside .report-page */
.toc-row { display:flex; align-items:baseline; gap:14px; padding:13px 0; border-bottom:1px solid #ecece7; }
.toc-row:last-child { border-bottom:none; }
.toc-num { font-size:12.5px; font-weight:700; color:#8a8a92; width:24px; flex-shrink:0; }
.toc-label { flex:1; font-size:14.5px; font-weight:600; color:#17171a; }
.toc-pages { font-size:12px; color:#8a8a92; margin-right:6px; white-space:nowrap; }
.toc-status { font-size:10.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:3px 9px; border-radius:6px; white-space:nowrap; }
.toc-status.unlocked { background: rgba(110,231,183,0.18); color:#1f7a52; }
.toc-status.locked { background: rgba(0,0,0,0.06); color:#8a8a92; }

/* Report tags for gap pages, light-card variant of .gap-tag */
.report-tag { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:5px 12px; border-radius:6px; margin-bottom:18px; }
.report-tag.high { background: rgba(242,139,130,0.15); color:#a83226; }
.report-tag.quick { background: rgba(251,191,107,0.2); color:#8a5a12; }
.report-blur { filter: blur(4px); user-select: none; }

/* Legal pages */
.legal-page { max-width: 720px; margin: 0 auto; padding: 72px 0 100px; }
.legal-page h1 { font-size: 34px; margin-bottom: 8px; letter-spacing: -0.02em; }
.legal-page .updated { color: var(--text-muted); font-size: 13.5px; margin-bottom: 40px; }
.legal-page h2 { font-size: 19px; margin: 34px 0 12px; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 10px; }
.legal-page ul { padding-left: 20px; }

@media (max-width: 760px) {
  .hero h1 { font-size: 38px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  /* Mobile nav: fixed bug 4 Aug, Kristian reported "none of the top bar
     tabs are showing on mobile" — .navlinks was previously just
     display:none under this breakpoint with no replacement, so every nav
     link (Sample report, Methodology, Blog, Pricing, Check your deck,
     Help, account avatar) was completely unreachable on any phone-width
     screen, on every page site-wide. Replaced with a real hamburger
     dropdown: nav.topnav becomes the positioning context, .nav-toggle
     (injected by app.js) becomes visible, and .navlinks turns into an
     absolutely-positioned dropdown panel toggled by a .nav-open class
     rather than being permanently hidden. */
  nav.topnav { position: relative; }
  .nav-toggle { display: inline-flex; }
  .navlinks {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 10px 20px 18px;
    z-index: 60;
  }
  .navlinks.nav-open { display: flex; }
  .navlinks a { padding: 12px 0; width: 100%; }
  .navlinks a.active:not(.nav-cta)::after { display: none; }
  .nav-cta { width: 100%; text-align: center; margin-top: 6px; }
  .nav-avatar { margin: 6px 0 0 !important; }
}
