:root {
  --navy: #102c40;
  --ink: #172d3b;
  --muted: #586b77;
  --line: #d9e2e6;
  --paper: #fff;
  --bg: #f4f6f5;
  --gold: #e5b34c;
  --blue: #155b76;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

header {
  background: var(--navy);
  color: white;
  border-bottom: 3px solid var(--gold);
}
.bar {
  max-width: 1120px;
  margin: auto;
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { font-weight: 850; letter-spacing: 0.04em; color: inherit; text-decoration: none; display: flex; align-items: center; }
.brand-mark { height: 40px; width: auto; display: block; }
.brand b { color: var(--gold); }
.back {
  color: #e9f2f5;
  text-decoration: none;
  font-size: 0.9rem;
}
.back:hover { text-decoration: underline; }

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 70px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  font-weight: 850;
  color: #526a79;
}

.hero {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 10px;
  padding: 26px 30px;
  margin-bottom: 20px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
}
.hero-title { min-width: 0; }
.hero-actions {
  display: grid;
  gap: 9px;
  flex: 0 0 220px;
}
.hero-actions .pitch {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
}
.hero-actions button,
.hero-actions .download {
  width: 100%;
  text-align: center;
  font-size: 0.86rem;
  padding: 10px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  border: none;
}
.hero-actions button {
  background: var(--navy);
  color: white;
}
.hero-actions button:hover { background: #1a3a52; }
.hero-actions button.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #9cb6c3;
}
.hero-actions button.secondary:hover { background: #edf2f4; }
.hero-actions .download {
  display: block;
  color: var(--navy);
  border: 1px solid #9cb6c3;
  text-decoration: none;
  background: #fff;
}
.hero-actions .download:hover { background: #edf2f4; }

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 7px 0;
}
.lead { color: var(--muted); max-width: 75ch; margin: 0 0 12px; }
.flag {
  background: #fff4dc;
  color: #584113;
  border: 1px solid #e8cf91;
  border-radius: 7px;
  padding: 12px 15px;
  margin-top: 17px;
  font-size: 0.92rem;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  display: inline-block;
  background: #e8f1f4;
  border-radius: 100px;
  padding: 5px 11px;
  font-size: 0.82rem;
  font-weight: 750;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
}
.report section,
.sidebar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 21px 25px;
  margin-bottom: 14px;
}
.report h2 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--navy);
}
.report p, .report li { font-size: 0.94rem; color: var(--ink); }
.report ul { padding-left: 1.2em; margin: 0 0 10px; }
.unknown {
  color: var(--muted);
  font-style: italic;
}
.section-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-right: 6px;
}

.sidebar h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.sidebar p { font-size: 0.88rem; color: var(--muted); margin: 0 0 12px; }
.sidebar .btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 11px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 8px;
}
.sidebar .btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #9cb6c3;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.metric {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}
.metric-k {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--muted);
}
.metric-v {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--navy);
  line-height: 1.15;
  margin: 4px 0 2px;
}
.metric-n { font-size: 0.78rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 10px 0 6px; }
.report table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 420px;
}
.report th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  font-weight: 700;
}
.report td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
}
.report tr:nth-child(even) td { background: #f7fafb; }
.table-note { color: var(--muted); font-size: 0.82rem; margin: 0 0 8px; }
.callout {
  background: #fbf6ea;
  border: 1px solid #e8d7a4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
}
.callout strong { display: block; color: var(--navy); margin-bottom: 4px; }
.callout p { margin: 0; }
.sources a { color: var(--blue); word-break: break-all; }
.hero-actions .btn,
.bottom-actions .btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 7px;
  padding: 11px;
  font-weight: 700;
  font-size: 0.86rem;
  font-family: inherit;
  margin: 0;
}
.hero-actions .btn.secondary,
.bottom-actions .btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #9cb6c3;
}
.bottom-actions {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 20px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.bottom-actions h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}
.bottom-actions p { margin: 0 0 4px; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; }
  .hero-actions { flex: none; width: 100%; }
  .metrics { grid-template-columns: 1fr; }
}
dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
dialog::backdrop { background: rgba(12, 27, 42, 0.45); }
.modal-inner {
  padding: 28px;
  position: relative;
}
#closeModal {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
#modalBody h2 { margin: 0 0 8px; }
#modalBody .fee { font-size: 1.2rem; font-weight: 800; margin: 0 0 12px; }
#modalBody .notice {
  background: #f0f5f8;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  margin: 16px 0;
}
#modalBody .inactive {
  display: inline-block;
  background: #e2e8ec;
  color: #6a7a86;
  padding: 10px 16px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .hero-top { flex-direction: column; }
  .hero-actions { flex: none; width: 100%; }
}

.example-banner {
  background: #0c1b2a;
  color: #e7b650;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.verdict-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #f4f1ea;
  border-left: 6px solid #e7b650;
}
.verdict-box.is-pass {
  background: #f8ece8;
  border-left-color: #9a3b24;
}
.verdict-kicker {
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-after .btn, .sidebar .btn {
  display: inline-block;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
}
.buy-after .btn.secondary, .sidebar .btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #9cb6c3;
}
