/* ============================================================
   SEO Mastery 2026 — brand tokens
   Display: Fraunces (editorial serif, restrained use)
   Body: Inter
   Mono/utility: JetBrains Mono (chapter numbers, labels, price)
   ============================================================ */
:root {
  --bg: #0a1526;
  --bg-panel: #0e1e35;
  --bg-panel-2: #101f3a;
  --line: rgba(234, 241, 251, 0.09);
  --line-strong: rgba(234, 241, 251, 0.16);
  --text: #eaf1fb;
  --text-muted: #8ea3c2;
  --text-dim: #5f7392;
  --gold: #d4a24c;
  --gold-soft: rgba(212, 162, 76, 0.14);
  --cyan: #57d3e8;
  --cyan-soft: rgba(87, 211, 232, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; margin: 0; color: var(--text); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

p { color: var(--text-muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #e6bd6e, var(--gold));
  color: #14100a;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 24px rgba(212,162,76,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 12px 28px rgba(212,162,76,0.35); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------------- Nav ---------------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 21, 38, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: radial-gradient(circle at 30% 30%, var(--cyan), var(--gold) 120%);
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background: radial-gradient(ellipse at 30% 0%, var(--cyan-soft), transparent 60%),
              radial-gradient(ellipse at 80% 20%, var(--gold-soft), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { margin-top: 20px; font-size: 17.5px; max-width: 52ch; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero-price { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--text-dim); }
.hero-price b { color: var(--text); font-size: 16px; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat { }
.hero-stat .num { font-family: "Fraunces", serif; font-size: 26px; color: var(--text); }
.hero-stat .lbl { font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-cover {
  width: min(320px, 80%);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}

/* signature scanning search bar */
.scan-bar {
  margin-top: -34px;
  position: relative;
  z-index: 2;
  width: min(300px, 76%);
  margin-left: auto;
  margin-right: auto;
  height: 46px;
  border-radius: 999px;
  background: rgba(10,18,32,0.9);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 10px;
  overflow: hidden;
}
.scan-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.scan-bar .txt { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--text-dim); flex: 1; overflow: hidden; white-space: nowrap; }
.scan-bar .sweep {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(87,211,232,0.18) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0%,100% { transform: translateX(-120%);} 50% { transform: translateX(120%);} }

/* ---------------- Sections generic ---------------- */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 38px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 16.5px; }

/* ---------------- Problem / narrative ---------------- */
.narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .narrative-grid { grid-template-columns: 1fr; } }
.narrative-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.narrative-card .k { font-family: "JetBrains Mono", monospace; color: var(--cyan); font-size: 12.5px; letter-spacing: 0.08em; }
.narrative-card h3 { font-size: 19px; margin-top: 12px; }
.narrative-card p { margin-top: 10px; font-size: 15px; }

/* ---------------- Parts (what's inside) ---------------- */
.parts-list { display: flex; flex-direction: column; }
.part-row {
  display: grid;
  grid-template-columns: 90px 1fr 140px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.part-row:last-child { border-bottom: 1px solid var(--line); }
.part-num { font-family: "Fraunces", serif; font-size: 34px; color: var(--gold); }
.part-title { font-size: 19px; font-weight: 600; color: var(--text); font-family: "Fraunces", serif; }
.part-desc { margin-top: 6px; font-size: 14.5px; }
.part-range { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--text-dim); text-align: right; }
@media (max-width: 700px) {
  .part-row { grid-template-columns: 50px 1fr; }
  .part-range { grid-column: 2; text-align: left; margin-top: 6px; }
}

/* ---------------- Curriculum accordion ---------------- */
.curriculum { border-top: 1px solid var(--line); }
.curr-part { border-bottom: 1px solid var(--line); }
.curr-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}
.curr-summary::-webkit-details-marker { display: none; }
.curr-summary .left { display: flex; align-items: center; gap: 16px; }
.curr-summary .tag { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--text-dim); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; }
.curr-summary h4 { font-size: 17px; }
.curr-summary .chev { color: var(--text-dim); transition: transform 0.2s ease; }
details[open] .chev { transform: rotate(45deg); }
.curr-body { padding: 0 4px 24px; }
.curr-chapter {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text-muted);
  border-top: 1px dashed var(--line);
}
.curr-chapter:first-child { border-top: none; }
.curr-chapter .cn { font-family: "JetBrains Mono", monospace; color: var(--text-dim); width: 26px; flex-shrink: 0; }

/* ---------------- Pricing ---------------- */
.pricing-card {
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, var(--gold-soft), transparent 55%);
  pointer-events: none;
}
@media (max-width: 760px) { .pricing-card { grid-template-columns: 1fr; padding: 34px 26px; } }
.pricing-feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.pricing-feats li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.pricing-feats li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
.price-box { text-align: right; position: relative; }
.price-box .amount { font-family: "Fraunces", serif; font-size: 56px; color: var(--text); }
.price-box .amount sup { font-size: 22px; top: -22px; }
.price-box .note { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.price-box .btn { margin-top: 18px; width: 100%; }
@media (max-width: 760px) { .price-box { text-align: left; } .price-box .btn { width: auto; } }

.guarantee {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.guarantee .badge {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
}

/* ---------------- FAQ ---------------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 2px; cursor: pointer; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q h4 { font-size: 16px; font-weight: 600; font-family: "Inter", sans-serif; color: var(--text); }
.faq-q .plus { color: var(--gold); font-family: "JetBrains Mono", monospace; transition: transform 0.2s ease; }
details[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 2px 22px; font-size: 14.5px; max-width: 70ch; }

/* ---------------- About / publisher ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.about-card .row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.about-card .row:first-child { border-top: none; }
.about-card .row span:first-child { color: var(--text-dim); }

/* ---------------- Footer ---------------- */
footer {
  padding: 56px 0 40px;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--text-dim);
}

/* ---------------- Access modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 12, 22, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.open { opacity: 1; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 32px 30px;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); border-color: var(--gold); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- Legal pages ---------------- */
.legal-page { padding: 70px 0 100px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 38px); }
.legal-page .updated { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--text-dim); margin-top: 10px; }
.legal-body { max-width: 74ch; margin-top: 40px; }
.legal-body h2 { font-size: 20px; margin-top: 44px; margin-bottom: 12px; font-family: "Inter",sans-serif; font-weight: 700;}
.legal-body p, .legal-body li { font-size: 15px; color: var(--text-muted); margin-top: 10px; }
.legal-body ul { padding-left: 20px; }
.placeholder { color: var(--gold); background: var(--gold-soft); padding: 1px 6px; border-radius: 4px; font-family: "JetBrains Mono", monospace; font-size: 0.92em; }
