:root {
  --bg: #f3f6fc;
  --surface: #f4f7fc;
  --surface-alt: #eef3fb;
  --text: #1b2742;
  --muted: #5d6f96;
  --line: #d8e2f5;
  --line-strong: #b9c9ea;
  --brand: #1f6fff;
  --brand-soft: #eaf1ff;
  --accent: #0ea972;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 90% -8%, rgba(31,111,255,.09), transparent 55%),
    radial-gradient(800px 450px at -5% -12%, rgba(14,169,114,.07), transparent 50%),
    linear-gradient(180deg, #edf2fa 0%, #e2e9f5 100%);
}

a { color: #205bc6; text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(31, 111, 255, .45);
  outline-offset: 2px;
}

/* ── Top Navigation Bar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(244, 247, 252, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 10px rgba(17, 35, 82, .06);
}

.brand {
  display: flex;
  align-items: center;
  height: 58px;
  flex-shrink: 0;
}

.brand-logo {
  width: 200px;
  height: auto;
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color .15s, background .15s, border-color .15s;
}

.nav-list a:hover {
  text-decoration: none;
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-alt);
}

.nav-list a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #cadbff;
  pointer-events: none;
  cursor: default;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

/* Legacy sidebar fallback */
.sidebar { display: none; }
.side-note { display: none; }

/* ── Layout ── */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.main {
  display: grid;
  gap: 18px;
}

.page-head {
  background: linear-gradient(135deg, #f8faff 0%, #eef3fb 60%, #e8f0fe 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
}

.eyebrow {
  display: inline-flex;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid #cadbff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 800;
}

h1 {
  margin: 14px 0 12px;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
  max-width: 980px;
}

/* ── Content Panels ── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 18px rgba(17, 35, 82, .05);
}

.compare-table td:not(:first-child), .compare-table th:not(:first-child) {
  text-align: center;

}
.panel > h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.panel p,
.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 14px; }

.card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 35, 82, .08);
}

.media img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.media a { display: block; line-height: 0; cursor: zoom-in; }
.sample-thumb { width: 100%; height: 230px; object-fit: cover; display: block; margin-bottom: 12px; border-radius: 10px; }
.caption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid transparent;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}

.btn:hover { text-decoration: none; opacity: .92; transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line-strong); }

.list {
  margin: 8px 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.list li { margin: 6px 0; }
.price { color: var(--text); font-weight: 800; }
.meta { margin-top: 10px; color: var(--muted); font-size: 13px; }
.proof-list { margin: 8px 0 0 18px; color: var(--muted); line-height: 1.55; }
.proof-list li { margin: 6px 0; }

/* ── Sticky CTA bar ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(10, 29, 74, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(31, 111, 255, .25);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s ease, opacity .3s ease;
  pointer-events: none;
}

.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta span {
  color: #c0d0f0;
  font-size: 14px;
  font-weight: 600;
}

.sticky-cta .btn {
  padding: 9px 18px;
  font-size: 14px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal:nth-child(2) { transition-delay: .05s; }
.reveal:nth-child(3) { transition-delay: .1s; }
.reveal:nth-child(4) { transition-delay: .15s; }

/* ── Tabbed Report Preview ── */
.tab-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tab-btn {
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--text);
  background: var(--surface-alt);
  border-color: var(--line);
}

.tab-btn.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #cadbff;
}

.tab-pane {
  display: none;
  animation: tabFade .3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-pane p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
  max-width: 760px;
  margin: 0 0 14px;
}

.tab-highlights {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-highlights span {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ── Comparison Table ── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background: var(--surface-alt);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.compare-table thead th:first-child { border-radius: 10px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 10px 0 0; }

.compare-table tbody td:first-child {
  font-weight: 700;
  color: var(--text);
}

.compare-table .check { color: var(--accent); font-weight: 800; }
.compare-table .dash { color: var(--muted); opacity: .35; }
.compare-table .partial { color: #b45309; font-weight: 600; font-size: 13px; }

.compare-table .highlight-col {
  background: rgba(31, 111, 255, .035);
}

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 14px;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, .78);
  display: none;
  padding: 40px 24px;
  z-index: 2000;
  overflow-y: auto;
}

.lightbox.open { display: block; }

.lightbox-inner {
  position: relative;
  max-width: min(1200px, 96vw);
  margin: 0 auto;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: inline-block;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #23375f;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

/* ── Forms ── */
.form-grid { display: grid; gap: 10px; max-width: 620px; margin: 0 auto; }

.field,
.form-grid textarea {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.field::placeholder,
.form-grid textarea::placeholder { color: #8da1c5; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .topbar { padding: 0 16px; }
  .layout { padding: 16px; }
  .page-head { padding: 24px 20px; }
  h1 { font-size: 40px; }
}

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

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 16px;
    background: rgba(244, 247, 252, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(17, 35, 82, .08);
    gap: 4px;
  }

  .nav-list.open { display: flex; }
  .nav-toggle { display: flex; }
  .topbar { position: relative; }

  .tab-bar { gap: 2px; }
  .tab-btn { padding: 6px 10px; font-size: 12px; }
}