/* CyberGuard — Sample results page.
   Marketing chrome (dark) + light owner-report shell matching
   scan_domain/reports/render.py (current Business Security Assessment PDF). */

:root {
  --bg: #061325;
  --card: linear-gradient(145deg, #0b1f36, #102a45);
  --line: rgba(125, 211, 252, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan: #7dd3fc;
  --soft: #cbd5e1;
  --mint: #7aeec3;
  --nav-h: 64px;
  /* Report document (light theme) */
  --r-bg: #f2f5f8;
  --r-card: #ffffff;
  --r-ink: #1f2933;
  --r-muted: #475569;
  --r-metric: #eef3f8;
  --r-header: linear-gradient(135deg, #061325, #153654);
  --r-accent: #1da1f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: #4bdcff; text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 56px;
}

/* ── Top nav ─────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 -16px 18px;
  padding: 12px 16px;
  background: rgba(6, 19, 37, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.topnav.is-scrolled {
  border-bottom-color: rgba(125, 211, 252, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.topnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none !important;
}
.topnav img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.topnav strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topnav em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.topnav-links > a:not(.btn) {
  color: #b7cfe3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  padding: 8px 6px;
}
.topnav-links > a:not(.btn):hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn-primary {
  color: #03111f;
  background: linear-gradient(135deg, #6ee7ff, #4bdcff, #3b82f6);
}
.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.btn-primary:hover { filter: brightness(1.05); text-decoration: none !important; }
.btn-ghost:hover { border-color: rgba(125, 211, 252, 0.4); text-decoration: none !important; }

/* ── Page intro ──────────────────────────────────────── */
.page-intro {
  margin: 0 0 16px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(29, 161, 242, 0.12), transparent 55%),
    linear-gradient(145deg, #071827, #0d2844);
}
.page-intro .eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.page-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}
.page-lede {
  margin: 0 0 14px;
  max-width: 760px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}
.banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 13px;
  font-weight: 600;
}
.banner strong { color: #fff; }

/* ── High-visibility PDF download hero ───────────────── */
.pdf-hero {
  position: relative;
  margin: 0 0 16px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 2px solid rgba(122, 238, 195, 0.55);
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(122, 238, 195, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(75, 220, 255, 0.16), transparent 55%),
    linear-gradient(135deg, #062a1c 0%, #0a2740 55%, #0d1f38 100%);
  box-shadow:
    0 0 0 1px rgba(122, 238, 195, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 80px;
}
.pdf-hero-badge {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7aeec3, #4bdcff);
  color: #03111f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(122, 238, 195, 0.35);
}
.pdf-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 18px;
  align-items: center;
}
.pdf-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #03111f;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.pdf-hero-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.pdf-hero-title {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pdf-hero-lede {
  margin: 0;
  font-size: 14px;
  color: #d1e8f8;
  line-height: 1.5;
  max-width: 560px;
}
.pdf-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 220px;
}
.pdf-hero-meta {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: #9ec8e8;
  font-weight: 650;
}
.btn-download-xl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #03111f !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #7aeec3 0%, #4bdcff 55%, #38bdf8 100%);
  border: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 10px 28px rgba(75, 220, 255, 0.35);
  cursor: pointer;
  white-space: nowrap;
  animation: pdf-pulse 2.4s ease-in-out infinite;
}
.btn-download-xl:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
}
.btn-download-nav {
  color: #03111f !important;
  background: linear-gradient(135deg, #7aeec3, #4bdcff);
  border: 0;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(75, 220, 255, 0.3);
}
.btn-download-nav:hover {
  filter: brightness(1.08);
  text-decoration: none !important;
}
@keyframes pdf-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 28px rgba(75,220,255,.35); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 12px 36px rgba(122,238,195,.5); }
}
#download-pdf { scroll-margin-top: 80px; }

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.path-hint {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── TOC ─────────────────────────────────────────────── */
.sample-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 0;
  position: sticky;
  top: calc(var(--nav-h) - 2px);
  z-index: 30;
  background: linear-gradient(180deg, rgba(6, 19, 37, 0.96), rgba(6, 19, 37, 0.88));
  backdrop-filter: blur(10px);
}
.sample-toc a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(94, 190, 255, 0.18);
  background: rgba(8, 17, 31, 0.65);
  color: #cdeaff;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none !important;
}
.sample-toc a:hover {
  border-color: rgba(122, 238, 195, 0.4);
  color: #fff;
  background: rgba(8, 122, 84, 0.16);
}

/* ══════════════════════════════════════════════════════
   REPORT DOCUMENT — light theme, mirrors render.py
   ══════════════════════════════════════════════════════ */
.report-doc {
  scroll-margin-top: 120px;
  background: var(--r-bg);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: var(--r-ink);
  margin-bottom: 18px;
}
#sample-themes,
#sample-brief,
#sample-impact,
#sample-actions,
#sample-issues,
#sample-plan,
#sample-profile,
#get-yours {
  scroll-margin-top: 120px;
}

.report-header {
  background: var(--r-header);
  color: #fff;
  padding: 48px 28px 36px;
  text-align: center;
  border-bottom: 6px solid var(--r-accent);
}
.report-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.report-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.5px;
  color: #fff;
}
.report-header p {
  margin: 0;
  font-size: 16px;
  color: #dbeafe;
}
.report-header-sub {
  margin-top: 10px !important;
  font-size: 13px !important;
  color: #9ec8e8 !important;
  font-weight: 600;
}

.report-body {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 28px;
}

.r-card {
  background: var(--r-card);
  border-radius: 14px;
  padding: 22px 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: var(--r-ink);
}
.r-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.r-card h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  color: #1e293b;
}
.r-card-trust {
  border: 2px solid var(--r-accent);
}
.r-card-engine {
  border-left: 8px solid var(--r-accent);
  background: linear-gradient(180deg, #f0f9ff, #fff);
}
.r-card-roi {
  border: 2px solid #0f766e;
}
.r-ver {
  font-size: 11pt;
  color: #64748b;
  font-weight: 600;
}
.r-lede {
  margin: 0 0 14px;
  color: var(--r-muted);
  line-height: 1.6;
  font-size: 14px;
}
.r-body {
  margin: 0 0 12px;
  color: #334155;
  line-height: 1.65;
  font-size: 14px;
}
.r-body:last-child { margin-bottom: 0; }
.r-body-tight { margin-top: 14px; }
.r-headline {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #153654;
  line-height: 1.4;
}
.r-muted {
  margin: 0 0 12px;
  color: var(--r-muted);
  line-height: 1.55;
  font-size: 14px;
}
.r-fineprint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.r-help {
  margin: 12px 0 0;
  font-size: 13px;
  color: #475569;
}
.demo-tag {
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
}

.r-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 4px;
}
.r-metric {
  background: var(--r-metric);
  padding: 16px 12px;
  border-radius: 12px;
  text-align: center;
}
.r-metric strong {
  display: block;
  font-size: 22px;
  color: #07111f;
  line-height: 1.15;
  margin-bottom: 6px;
}
.r-metric span {
  display: block;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.grade-f { color: #c62828 !important; }
.posture-risk { color: #ef6c00 !important; font-size: 18px !important; }
.risk-critical { color: #c62828 !important; }

.r-notice {
  margin-top: 14px;
  background: #fff8e1;
  border-left: 8px solid #f9a825;
  padding: 14px 16px;
  border-radius: 10px;
  color: #1f2933;
  font-size: 13.5px;
  line-height: 1.55;
}
.r-notice-muted {
  background: #f8fafc;
  border-left-color: #94a3b8;
}
.r-promise {
  margin-top: 14px;
  background: #ecfdf5;
  border-left: 6px solid #0f766e;
  padding: 14px 16px;
  border-radius: 10px;
  color: #134e4a;
  font-size: 13.5px;
  line-height: 1.55;
}
.r-promise-sub {
  display: block;
  margin-top: 8px;
  color: #334155;
}

/* Tables */
.r-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 0;
}
.r-table th {
  background: #17324d;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.r-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 13.5px;
  color: #1f2933;
  vertical-align: top;
}
.r-table tbody tr:last-child td { border-bottom: 0; }
.r-table th:nth-child(n+2),
.r-table td:nth-child(n+2) {
  text-align: center;
  width: 80px;
}
.r-row-rec td {
  background: #ecfdf5;
}
.r-table-money th:nth-child(n+2),
.r-table-money td:nth-child(n+2) {
  text-align: left;
  width: auto;
}
.r-table-money td:nth-child(2),
.r-table-money td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.r-kv {
  width: 100%;
  border-collapse: collapse;
}
.r-kv td {
  padding: 9px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13.5px;
  vertical-align: top;
  color: #1f2933;
}
.r-kv td:first-child {
  font-weight: 700;
  width: 38%;
  color: #334155;
}
.r-kv tr:last-child td { border-bottom: 0; }
.r-kv-loose { margin-top: 12px; }
.r-kv-loose td:first-child { width: 48%; }

/* Steps / bullets */
.r-steps {
  margin: 0;
  padding-left: 20px;
  color: #1f2933;
  line-height: 1.55;
}
.r-steps > li {
  margin: 0 0 10px;
  font-size: 13.5px;
}
.r-steps > li:last-child { margin-bottom: 0; }
.r-applies {
  display: block;
  margin-top: 3px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  color: #64748b;
}
.r-effort {
  color: #64748b;
  font-size: 12.5px;
}
.r-bullets {
  margin: 0 0 8px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.55;
  font-size: 14px;
}
.r-bullets li { margin-bottom: 6px; }

/* Issue cards (Every issue — explained) */
.issue-card {
  border-left: 8px solid #999;
  padding: 16px;
  margin: 0 0 14px;
  background: #fafafa;
  border-radius: 10px;
  color: #1f2933;
}
.issue-card:last-child { margin-bottom: 0; }
.issue-card.medium { border-left-color: #ef6c00; }
.issue-card.info { border-left-color: #0277bd; }
.issue-card.high { border-left-color: #c62828; }
.issue-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #0f172a;
}
.issue-meta {
  margin: 0 0 10px !important;
  color: #64748b !important;
  font-size: 12.5px !important;
}
.issue-card p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}
.issue-card ol {
  margin: 6px 0 0 18px;
  padding: 0;
  line-height: 1.55;
  font-size: 13.5px;
  color: #1f2933;
}
.issue-card ol li { margin-bottom: 4px; }
.issue-money {
  background: #ecfdf5 !important;
  border-left: 4px solid #0f766e;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: #134e4a !important;
}
.issue-teach {
  background: #f0f9ff !important;
  border-left: 4px solid #1da1f2;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: #0c4a6e !important;
}

.report-footer {
  text-align: center;
  color: #6b7280;
  padding: 20px 12px 8px;
  font-size: 12.5px;
  line-height: 1.55;
}

/* ── CTAs ────────────────────────────────────────────── */
.cta {
  margin-top: 18px;
  padding: 22px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(8, 122, 84, 0.25), rgba(18, 57, 93, 0.55));
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
}
.cta p {
  margin: 0 0 14px;
  color: #b7d4ec;
}
.cta .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cta-row-secondary { margin-top: 10px; }
.cta .path-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

/* ── Footer ──────────────────────────────────────────── */
.sample-footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.sample-footer-brand {
  margin: 0 0 8px;
  color: #9ec8e8;
  font-weight: 650;
}
.sample-footer-links {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.sample-footer-links a {
  color: #9ec8e8;
  font-weight: 700;
  text-decoration: none;
}
.sample-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.sample-footer .legal {
  margin: 0;
  color: #5f7386;
}

/* ── Mobile bar ──────────────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 19, 37, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
  gap: 8px;
}
.mobile-cta-bar .btn {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-kv td:first-child { width: 42%; }
  .r-table th:nth-child(n+2),
  .r-table td:nth-child(n+2) { width: auto; }
  .pdf-hero-inner {
    grid-template-columns: auto 1fr;
  }
  .pdf-hero-cta {
    grid-column: 1 / -1;
    min-width: 0;
  }
}
@media (max-width: 720px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .topnav-links > a:not(.btn) { display: none; }
  /* keep Download PDF button visible in mobile nav */
  .topnav-links > a.btn-download-nav { display: inline-flex !important; }
  .intro-actions .btn { width: 100%; }
  .pdf-hero-inner { grid-template-columns: 1fr; }
  .pdf-hero-icon { width: 52px; height: 52px; }
  .btn-download-xl { width: 100%; padding: 18px 16px; font-size: 16px; }
  .sample-toc {
    top: 56px;
    margin-left: -4px;
    margin-right: -4px;
  }
  .report-header { padding: 36px 18px 28px; }
  .report-body { padding: 16px 12px 20px; }
  .r-card { padding: 16px; }
  .r-kv td:first-child {
    display: block;
    width: 100%;
    padding-bottom: 2px;
    border-bottom: 0;
  }
  .r-kv td {
    display: block;
    width: 100%;
  }
  .r-kv td:last-child {
    padding-top: 0;
    padding-bottom: 12px;
  }
}
