/* Sage & Focus Studio — Calm Low-Stimulation ADHD Micro-Tools Stylesheet */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #eef2ee;
  --ink: #222a25;
  --muted: #5b6860;
  --sage: #4a6656;
  --sage-dark: #354c3f;
  --sage-light: #dce5de;
  --terra: #b97557;
  --terra-soft: #f5e8e1;
  --border: #dfe5df;
  --shadow: 0 10px 30px rgba(34, 42, 37, 0.06);
  --radius: 18px;
}

[data-theme="dark"] {
  --bg: #151a17;
  --surface: #1e2521;
  --surface-soft: #26302a;
  --ink: #eef2ee;
  --muted: #a6b4aa;
  --sage: #7fa68e;
  --sage-dark: #97bfa6;
  --sage-light: #2b3830;
  --terra: #d99576;
  --terra-soft: #362720;
  --border: #313d36;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  transition: background 0.25s ease, color 0.25s ease;
}
h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.22;
}
a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

.promo-bar {
  background: var(--sage);
  color: #f6f4ef;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}
.promo-bar a { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 6px; }
.promo-code {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.93rem; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
}
.btn:active { transform: scale(0.98); }
.btn-primary, .nav-links a.btn-primary { background: var(--sage); color: #ffffff !important; }
.btn-primary:hover, .nav-links a.btn-primary:hover { background: var(--sage-dark); color: #ffffff !important; }
[data-theme="dark"] .btn-primary, [data-theme="dark"] .nav-links a.btn-primary { background: #4c745d; color: #ffffff !important; }
[data-theme="dark"] .btn-primary:hover, [data-theme="dark"] .nav-links a.btn-primary:hover { background: #5a876d; color: #ffffff !important; }
.btn-terra, .nav-links a.btn-terra { background: var(--terra); color: #ffffff !important; }
[data-theme="dark"] .btn-terra { background: #c47654; color: #ffffff !important; }
.btn-terra:hover { filter: brightness(0.94); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }

.hero { padding: 54px 0 34px; text-align: center; }
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
[data-theme="dark"] .pill { color: #d5eadc; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin: 0 auto 16px; max-width: 820px; }
.hero p.lead { max-width: 680px; margin: 0 auto 26px; font-size: 1.08rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.quick-jump {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 34px 0 18px;
}
.jump-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.2s ease;
  display: block;
  color: var(--ink);
}
.jump-card:hover { transform: translateY(-2px); border-color: var(--sage); text-decoration: none; }
.jump-card strong { display: block; margin-bottom: 4px; font-size: 0.98rem; }
.jump-card span { font-size: 0.86rem; color: var(--muted); }

section.section { padding: 42px 0; }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); max-width: 720px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

/* Timer Widget */
.timer-shell { display: grid; grid-template-columns: 1fr 270px; gap: 26px; align-items: center; }
@media (max-width: 780px) { .timer-shell { grid-template-columns: 1fr; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.86rem;
  cursor: pointer;
}
.chip.active, .chip:hover { border-color: var(--sage); background: var(--sage-light); font-weight: 600; }
.input-row { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.text-input {
  flex: 1;
  min-width: 210px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.96rem;
}
.micro-step-box {
  background: var(--surface-soft);
  border-left: 4px solid var(--sage);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 14px 0;
}
.micro-step-box small { text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage); font-weight: 700; font-size: 0.76rem; }
.micro-step-box p { margin: 4px 0 0; font-weight: 600; font-size: 1.02rem; }
.dial-wrap { text-align: center; }
.dial-svg { width: 220px; height: 220px; display: block; margin: 0 auto 10px; }
.dial-time { font-size: 2.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.dial-sub { font-size: 0.86rem; color: var(--muted); margin: 2px 0 14px; }
.noise-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-soft);
  flex-wrap: wrap;
}

/* ADHD Tax Calculator */
.slider-group { margin-bottom: 15px; }
.slider-label { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 4px; }
.slider-label strong { color: var(--sage); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--sage); cursor: pointer; }
.tax-result {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--border);
}
.tax-big { font-family: Georgia, serif; font-size: 2.8rem; font-weight: 700; color: var(--terra); margin: 4px 0; line-height: 1.1; }
.bar-row { margin: 10px 0; }
.bar-meta { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--muted); }
.bar-track { height: 9px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.bar-fill { height: 100%; background: var(--sage); border-radius: 99px; transition: width 0.25s ease; }

/* Doom Pile 4-Box */
.boxes-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 540px) { .boxes-4 { grid-template-columns: 1fr; } }
.box-btn {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.1s ease, border-color 0.2s ease;
}
.box-btn:hover { border-color: var(--sage); }
.box-btn:active { transform: scale(0.98); }
.box-count { font-size: 1.7rem; font-weight: 700; color: var(--sage); float: right; font-variant-numeric: tabular-nums; }
.dice-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--terra-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Dopamine Menu */
.battery-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.menu-col { background: var(--surface-soft); border-radius: 14px; padding: 16px; }
.menu-col h4 { margin: 0 0 8px; color: var(--sage); font-size: 0.96rem; }
.menu-col ul { margin: 0; padding-left: 18px; font-size: 0.91rem; color: var(--ink); }
.menu-col li { margin-bottom: 6px; }

/* Audio Preview Players */
.audio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.audio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.audio-card audio { width: 100%; margin-top: 10px; height: 38px; }
.audio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  background: var(--sage-light);
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 6px;
}

/* Storefront Product Cards */
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.prod-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-soft); }
.prod-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.prod-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--sage); white-space: nowrap; }
.price del { color: var(--muted); font-weight: 400; font-size: 0.9rem; margin-right: 4px; }
.prod-body h3 { margin: 0 0 8px; font-size: 1.12rem; }
.prod-body p { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; flex: 1; }
.prod-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Podcast List */
.ep-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.ep-meta { font-size: 0.8rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.05em; }
.ep-card h3 { margin: 4px 0 6px; font-size: 1.06rem; }
.ep-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }

footer.footer {
  margin-top: 56px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Phase 4C — Pillar Guides, Extra Interactive Tools & Global Hub */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.article-body h2 { margin-top: 28px; margin-bottom: 10px; font-size: 1.48rem; color: var(--ink); }
.article-body h3 { margin-top: 22px; margin-bottom: 8px; font-size: 1.15rem; color: var(--sage); }
.article-body p, .article-body li { font-size: 1.01rem; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 22px; }
.callout-box { background: var(--surface-soft); border-left: 4px solid var(--sage); padding: 16px 20px; border-radius: 12px; margin: 22px 0; }
.faq-item { border-top: 1px solid var(--border); padding: 14px 0; }
.faq-item strong { display: block; margin-bottom: 4px; color: var(--ink); }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.guide-card h3 { margin: 6px 0 8px; font-size: 1.08rem; }
.guide-card p { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.field-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.output-pre {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}
.battery-meter { height: 18px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 12px 0; }
.battery-fill { height: 100%; border-radius: 99px; background: var(--sage); transition: width 0.3s ease, background 0.3s ease; }
@media (max-width: 640px) { .article-body { padding: 22px 18px; } }

/* Phase 5B — Focus Room 3-Channel Soundscape Mixer & Print-Clean Worksheets */
.mixer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 16px; }
.mixer-ch {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.mixer-ch strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.mixer-ch small { color: var(--muted); display: block; margin-bottom: 10px; font-size: 0.82rem; }
.win-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--terra-soft); color: var(--terra);
  font-weight: 700; font-size: 0.86rem;
}
.print-sheet {
  background: #ffffff; color: #161d19;
  border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.print-sheet h3 { margin: 0 0 6px; color: #161d19; }
.print-line { height: 26px; border-bottom: 1px solid #b5bfb8; }
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 640px) { .print-grid { grid-template-columns: 1fr; } }

@media print {
  .promo-bar, .nav-wrap, .footer, .no-print, .hero, .section-head { display: none !important; }
  body { background: #ffffff !important; color: #111111 !important; }
  .print-sheet { box-shadow: none !important; border: 1.5pt solid #222 !important; page-break-after: always; margin: 0 !important; }
  .print-sheet.print-hidden { display: none !important; }
}
/* Phase 6B — v4.0 Price Anchor Table, Dynamic ROI, VIP Vault & Wallpaper Generator */
.roi-banner {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--terra-soft);
  border-left: 4px solid var(--terra);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}
.roi-banner strong { color: var(--terra); }

.celebrate-box {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--sage-light);
  border: 1.5px solid var(--sage);
  text-align: left;
}
.celebrate-box.show { display: block; }
.celebrate-box strong { display: block; margin-bottom: 4px; color: var(--ink); }

.compare-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.93rem;
}
.compare-table th, .compare-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--ink);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .win-col {
  background: color-mix(in srgb, var(--sage) 11%, var(--surface));
  font-weight: 600;
  color: var(--ink);
}
.compare-table thead .win-col {
  background: var(--sage);
  color: #ffffff;
}
.badge-save {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
}

.vip-spotlight {
  margin-top: 26px;
  background: linear-gradient(135deg, #1b251f 0%, #27372d 60%, #161d18 100%);
  color: #f3f6f2;
  border: 2px solid #496152;
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: center;
  box-shadow: 0 22px 48px rgba(15, 22, 18, 0.22);
}
@media (max-width: 820px) { .vip-spotlight { grid-template-columns: 1fr; } }
.vip-spotlight img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #4d6656;
  display: block;
}
.vip-pill {
  display: inline-block;
  background: linear-gradient(90deg, #e2b87f, #c9865b);
  color: #151c17;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.vip-spotlight h3 { margin: 0 0 8px; color: #faf9f5; font-size: 1.55rem; }
.vip-spotlight p { margin: 0 0 12px; color: #c7d5cb; font-size: 0.94rem; }
.vip-spotlight audio { width: 100%; max-width: 440px; height: 38px; margin: 6px 0 14px; }

/* Tool #9 Wallpaper Studio */
.wp-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) { .wp-layout { grid-template-columns: 1fr; } }
.wp-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.wp-phone-bezel {
  width: 286px;
  padding: 10px;
  border-radius: 38px;
  background: #1b201d;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  border: 3px solid #35413a;
}
.wp-phone-bezel canvas {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}
.palette-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.swatch-btn.active { border-color: var(--sage); background: var(--sage-light); }
.swatch-dot { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.2); }

/* Commercial Buyer-Intent Landing Pages (/best/*) */
.best-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
@media (max-width: 820px) { .best-hero-grid { grid-template-columns: 1fr; padding: 20px; } }
.best-hero-grid img { width: 100%; border-radius: 14px; border: 1px solid var(--border); display: block; }
.check-list { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check-list li::before { content: "✓"; color: var(--sage); font-weight: 900; }
.buyer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.buyer-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color 0.16s ease, transform 0.12s ease;
}
.buyer-link:hover { border-color: var(--sage); transform: translateY(-2px); text-decoration: none; }
.buyer-link strong { display: block; color: var(--sage); margin-bottom: 3px; font-size: 0.93rem; }
/* Phase 6E — v4.5 Peek-Inside Gallery, Lightbox & PWA Polish */
.peek-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 16px;
}
.peek-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.peek-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: var(--shadow);
}
.peek-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-soft);
  display: block;
}
.peek-meta {
  padding: 13px 14px 15px;
}
.peek-meta strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.peek-meta span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.42;
}
.sf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 20, 17, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sf-lightbox.open { display: flex; }
.sf-lb-inner {
  max-width: 760px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.sf-lb-inner img {
  max-height: 70vh;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: contain;
}
.sf-lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Phase 7 — Website v5.0 Viral Quiz, Editable Printables, Alternatives & Share Bar */
.share-bar {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.share-bar-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Interactive Brain Archetype Quiz */
.quiz-shell {
  max-width: 780px;
  margin: 0 auto;
}
.quiz-progress-track {
  height: 9px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 18px;
}
.quiz-progress-fill {
  height: 100%;
  width: 16%;
  background: linear-gradient(90deg, var(--sage), var(--terra));
  border-radius: 999px;
  transition: width 0.25s ease;
}
.quiz-q-meta {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 8px;
}
.quiz-q-title {
  margin: 0 0 18px;
  font-size: clamp(1.22rem, 2.5vw, 1.55rem);
  line-height: 1.3;
  color: var(--ink);
}
.quiz-opts {
  display: grid;
  gap: 11px;
}
.quiz-opt {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.12s ease, background 0.16s ease;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.quiz-opt:hover {
  border-color: var(--sage);
  background: var(--sage-light);
  transform: translateY(-1px);
}
.quiz-opt-letter {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sage);
}
.quiz-result-box {
  display: none;
}
.quiz-result-box.show {
  display: block;
}
.archetype-hero {
  background: linear-gradient(135deg, #1b251f 0%, #27382e 65%, #161d18 100%);
  color: #f4f7f2;
  border-radius: 20px;
  padding: 26px;
  border: 2px solid #496152;
  margin-bottom: 18px;
}
.archetype-hero h2 { color: #faf9f5; margin: 8px 0; font-size: clamp(1.5rem, 3vw, 2.05rem); }
.archetype-hero p { color: #cedad1; margin: 0 0 12px; }
.strength-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.strength-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.2);
  color: #f3f7f2;
  font-size: 0.83rem;
  font-weight: 600;
}
.permission-quote {
  padding: 13px 16px;
  border-left: 4px solid #e2b87f;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  font-style: italic;
  color: #f7e6cb;
  margin-top: 12px;
}

/* Editable Interactive Printables (/templates/*) */
.tpl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.tpl-sheet {
  background: #ffffff;
  color: #1c2420;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.tpl-sheet-head {
  border-bottom: 2px solid #2b3a32;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.tpl-sheet-head h2 {
  margin: 0 0 4px;
  color: #1c2420;
  font-size: 1.35rem;
}
.tpl-sheet-head p {
  margin: 0;
  color: #4f5e56;
  font-size: 0.88rem;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.tpl-box {
  border: 1px solid #c6d0c9;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fbfcf9;
}
.tpl-box h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: #2f4a3c;
}
.tpl-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.tpl-item input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #4a6656;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.tpl-edit {
  flex: 1;
  border-bottom: 1px dashed #c8d2cb;
  padding: 2px 4px;
  min-height: 22px;
  color: #1c2420;
  outline: none;
  border-radius: 4px;
}
.tpl-edit:focus {
  background: #edf5ef;
  border-bottom-color: #4a6656;
}
.tpl-sheet-foot {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #dce3de;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #5b6a62;
}
.sub-calc-strip {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f2f6f2;
  border: 1px solid #c9d6cc;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  color: #1e2822;
}
.sub-calc-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sub-calc-inputs input {
  width: 78px;
  padding: 6px 8px;
  border: 1px solid #b5c3b9;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  color: #1c2420;
}

/* Discovery Hub Grid on Index */
.v5-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.v5-hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: block;
  color: var(--ink);
  transition: border-color 0.16s ease, transform 0.14s ease;
}
.v5-hub-card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
  text-decoration: none;
}
.v5-hub-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terra);
  margin-bottom: 6px;
}
.v5-hub-card strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.v5-hub-card span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

@media print {
  .promo-bar, .nav-wrap, .footer, .no-print, .share-bar, .tpl-toolbar {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .section, .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .tpl-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 6px !important;
  }
}
