/* ==========================================================================
   TestedNotes.com — Editorial Consumer Lab & Multi-Vertical Hub Design System
   Aesthetic: Archival Ivory Paper + Ink Charcoal + Technical Lab Accents
   ========================================================================== */

:root {
  --bg: #faf8f4;
  --bg-subtle: #f3efe7;
  --surface: #ffffff;
  --surface-dark: #101318;
  --surface-dark-2: #171c24;
  --ink: #12151a;
  --ink-2: #3d4452;
  --ink-muted: #666e7d;
  --border: #e5e0d5;
  --border-strong: #d2cbbd;
  --accent: #cf4519;         /* Editorial Vermilion */
  --accent-hover: #b33811;
  --accent-soft: #fdf0eb;
  --safe: #0f766e;           /* Lab Teal */
  --safe-soft: #e9f6f4;
  --info: #1d4ed8;           /* Signal Cobalt */
  --info-soft: #eef4ff;
  --warn: #b45309;
  --warn-soft: #fef6e7;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(18, 21, 26, 0.04), 0 4px 12px rgba(18, 21, 26, 0.03);
  --shadow: 0 2px 6px rgba(18, 21, 26, 0.05), 0 14px 36px rgba(18, 21, 26, 0.06);
  --shadow-lg: 0 10px 30px rgba(18, 21, 26, 0.12);
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top FTC Disclosure Strip ---------- */
.disclosure-bar {
  background: var(--surface-dark);
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.disclosure-bar a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

/* ---------- Masthead & Sticky Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-dark);
  color: #faf8f4;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.04em;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-top: 2px;
}

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

.nav-links a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-subtle);
  color: var(--ink);
}
.nav-links a.active {
  font-weight: 600;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(207, 69, 25, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(207, 69, 25, 0.34);
}

.btn-dark {
  background: var(--surface-dark);
  color: #ffffff;
}
.btn-dark:hover { background: #232934; }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-muted);
}

.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
}

/* ---------- Typography & Eyebrows ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.display-title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.4vw, 3.65rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 14px 0 18px;
  color: var(--ink);
}
.display-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 6px 0 0;
}
.section-heading p {
  margin: 6px 0 0;
  color: var(--ink-muted);
  max-width: 560px;
  font-size: 15px;
}

/* ---------- Pills & Badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-safe { background: var(--safe-soft); color: var(--safe); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-neutral { background: var(--bg-subtle); color: var(--ink-2); }

/* ---------- Hero Asymmetric Editorial Grid ---------- */
.hero {
  padding: 44px 0 54px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: start;
}

.hero-lead {
  font-size: 17.5px;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.metric-val {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.metric-lbl {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Featured Lab Artifact inside Hero */
.lab-digest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lab-digest-head {
  background: var(--surface-dark);
  color: #f8fafc;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lab-digest-head .title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5eead4;
}
.live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.22);
}

.verdict-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.verdict-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--border);
  transition: background 0.14s ease;
}
.verdict-row:last-child { border-bottom: none; }
.verdict-row:hover { background: var(--bg); }

.verdict-info { min-width: 0; }
.verdict-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.verdict-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin: 2px 0;
}
.verdict-note {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verdict-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.score-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--safe-soft);
  color: var(--safe);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Filter Tabs & Search ---------- */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active {
  background: var(--surface-dark);
  color: #ffffff;
  border-color: var(--surface-dark);
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}
.search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(18, 21, 26, 0.08);
}
.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
}

/* ---------- Practical Field Notes Grid ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.note-visual {
  padding: 18px;
  background: var(--surface-dark);
  color: #e2e8f0;
  border-bottom: 1px solid var(--border);
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.note-visual.light-visual {
  background: linear-gradient(180deg, #f7f4ec 0%, #efeae0 100%);
  color: var(--ink);
}

.artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 10px;
}
.light-visual .artifact-header { color: var(--ink-muted); }

.artifact-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}
.light-visual .artifact-box {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--ink);
}

.red-flag-line {
  background: rgba(220, 38, 38, 0.18);
  border-left: 3px solid #f87171;
  color: #fecaca;
  padding: 5px 8px;
  border-radius: 4px;
  margin-top: 7px;
  font-size: 11.5px;
}
.safe-line {
  background: rgba(16, 185, 129, 0.16);
  border-left: 3px solid #34d399;
  color: #a7f3d0;
  padding: 5px 8px;
  border-radius: 4px;
  margin-top: 7px;
  font-size: 11.5px;
}

/* Storage bar artifact */
.storage-bar {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  display: flex;
  margin: 8px 0;
}
.storage-seg-apps { width: 46%; background: #ef4444; }
.storage-seg-msg { width: 16%; background: #f59e0b; }
.storage-seg-media { width: 14%; background: #3b82f6; }
.storage-seg-sys { width: 11%; background: #94a3b8; }

.note-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.note-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.note-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.note-body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.finding-bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-2);
}
.finding-bullets li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.finding-bullets li:last-child { margin-bottom: 0; }
.finding-bullets .k {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--safe);
  flex-shrink: 0;
}

.note-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.read-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.read-link:hover { color: var(--accent); }

/* ---------- Interactive Field Lab Diagnostic Widget ---------- */
.lab-shell {
  background: var(--surface-dark);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}
.lab-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lab-tab:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lab-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.lab-panel { display: none; }
.lab-panel.active { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 26px; align-items: start; }

.lab-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.lab-input {
  flex: 1;
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  outline: none;
}
.lab-input:focus { border-color: #38bdf8; }

.sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.sample-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 6px 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
}
.sample-chip:hover { background: rgba(255, 255, 255, 0.16); }

.lab-output {
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
}
.lab-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.status-pill-lg {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.st-danger { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.st-warn { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.st-safe { background: rgba(16, 185, 129, 0.22); color: #6ee7b7; }

.lab-findings {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #e2e8f0;
}
.lab-findings li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 9px;
}
.lab-findings li:last-child { border-bottom: none; }

.triage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.triage-option {
  text-align: left;
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  padding: 13px 15px;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.triage-option:hover,
.triage-option.active {
  border-color: var(--accent);
  background: rgba(207, 69, 25, 0.15);
}
.triage-option strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.triage-option span { font-size: 13px; color: #94a3b8; }

/* ---------- Verticals Directory Grid (8 Channels) ---------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.channel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 18px;
}
.channel-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin: 0 0 6px;
}
.channel-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
  flex: 1;
}
.channel-path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Offer Comparison Cards (Mobile-First Hub Pages) ---------- */
.hub-hero {
  padding: 38px 0 34px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.hub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.hub-breadcrumb a:hover { color: var(--accent); }

.offer-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0 42px;
}

.offer-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.72fr);
  gap: 26px;
  align-items: center;
  position: relative;
}
.offer-card.featured {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.offer-ribbon {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--surface-dark);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.offer-card.featured .offer-ribbon { background: var(--accent); }

.offer-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.offer-title-row h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.02em;
}
.offer-tagline {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.offer-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.pros-box, .cons-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.pros-box h4, .cons-box h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 7px;
}
.pros-box h4 { color: var(--safe); }
.cons-box h4 { color: var(--warn); }
.pros-box ul, .cons-box ul {
  margin: 0;
  padding-left: 16px;
  color: var(--ink-2);
}
.pros-box li, .cons-box li { margin-bottom: 4px; }

.offer-cta-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.offer-price-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.offer-disclosure {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-subtle);
  color: var(--ink-2);
}
.spec-table tr:last-child td { border-bottom: none; }

/* Case Study Deep-Dive Articles on Hub Pages */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.case-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  margin: 8px 0 10px;
  line-height: 1.25;
}
.case-card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }
.step-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.step-list li { margin-bottom: 6px; }

/* Methodology 4-pillar grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin: 0 0 8px;
}
.pillar-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Prose Legal / About Pages */
.prose {
  padding: 48px 0 72px;
}
.prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 10px 0 14px;
  line-height: 1.12;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 34px 0 10px;
}
.prose p, .prose li {
  color: var(--ink-2);
  font-size: 15.5px;
}
.callout-panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: #cbd5e1;
  padding: 54px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 340px;
  margin: 0 0 14px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 12px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lab-panel.active { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container, .container-narrow { padding: 0 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 28px 0 36px; }
  .hero-metrics { grid-template-columns: 1fr; gap: 12px; }
  .notes-grid, .channels-grid, .pillars-grid, .case-grid, .offer-pros-cons, .footer-grid {
    grid-template-columns: 1fr;
  }
  .offer-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .lab-shell { padding: 22px 18px; }
  .lab-input-row { flex-direction: column; }
  .section { padding: 44px 0; }
}


/* ---------- Sub-Niche Cluster Bar & Interactive Calculators ---------- */
.subnav-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.subnav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-right: 4px;
}
.subnav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.subnav-chip:hover {
  background: var(--bg-subtle);
  color: var(--ink);
  border-color: var(--ink-muted);
}
.subnav-chip.current {
  background: var(--surface-dark);
  color: #ffffff;
  border-color: var(--surface-dark);
}
.calc-card {
  background: var(--surface-dark);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
.calc-control {
  margin-bottom: 14px;
}
.calc-control label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 600;
}
.calc-control input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.calc-control select {
  width: 100%;
  background: var(--surface-dark-2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
}
.calc-output {
  background: var(--surface-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #cbd5e1;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-val-bad { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: #f87171; }
.calc-val-good { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: #5eead4; }
.calc-save-pill {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.25);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #5eead4;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
.hub-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.hub-filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.hub-filter-btn:hover { background: var(--bg-subtle); color: var(--ink); }
.hub-filter-btn.active { background: var(--surface-dark); color: #fff; border-color: var(--surface-dark); }
@media (max-width: 820px) {
  .calc-grid { grid-template-columns: 1fr; }
}
