/* NUMISCOPE website
   Layout concept: a specialist reference publication — navy "vault" bands
   alternating with white reading pages, gold hairlines, and real coin
   specifications used as content. One deliberate brand look (no dark variant). */

@font-face { font-family: "Cinzel"; font-weight: 400; font-display: swap; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 600; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-display: swap; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-display: swap; src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Color */
  --navy: #0e1a33;
  --navy-2: #172a52;
  --navy-3: #243b6e;
  --gold: #c39a45;
  --gold-soft: #e4cc8d;
  --gold-deep: #8f6b24;
  --paper: #ffffff;
  --mist: #f1f3f8;
  --ink: #18213a;
  --muted: #586179;
  --rule: #dde2ec;
  --on-navy: #eef1f8;
  --on-navy-muted: #b8c1d6;
  --warn: #9b2c2c;
  /* Type */
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "EB Garamond", "Garamond", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Scale */
  --step--1: 0.875rem;
  --step-0: 1.1875rem;
  --step-1: 1.4rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.9rem);
  --wrap: 72rem;
  --measure: 38rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.55; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; font: 600 0.9rem var(--ui); z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap.narrow { max-width: 48rem; }

/* ---------- Labels and type helpers ---------- */
.eyebrow { font: 600 0.74rem/1.3 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.on-navy .eyebrow { color: var(--gold-soft); }
.h-display { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; line-height: 1.12; color: var(--navy); }
.on-navy .h-display { color: #fff; }
.h2 { font-size: var(--step-3); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: var(--measure); }
.on-navy .lede { color: var(--on-navy-muted); }
.rule-gold { display: block; width: 4.5rem; height: 1px; background: var(--gold); border: 0; margin: 1.2rem 0; }
.center { text-align: center; }
.center .lede, .center .rule-gold { margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 3px; font: 600 0.98rem/1.2 var(--ui); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); border-color: var(--gold-soft); }
.btn-line { background: transparent; color: #fff; border-color: rgba(228,204,141,.6); }
.btn-line:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn .price { font-weight: 500; opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.fine { font: 400 0.84rem/1.5 var(--ui); color: var(--muted); }
.on-navy .fine { color: var(--on-navy-muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(195,154,69,.35); }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--gold); font: 600 1.18rem/1 var(--display); letter-spacing: 0.08em; }
.brand:hover { color: var(--gold-soft); }
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--on-navy); text-decoration: none; font: 500 0.92rem var(--ui); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-soft); }
.nav .btn { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9rem; color: var(--navy); }
.nav .btn:hover { color: var(--navy); }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(228,204,141,.5); color: var(--on-navy); border-radius: 3px; min-height: 2.6rem; padding: 0 0.85rem; font: 600 0.85rem var(--ui); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid rgba(195,154,69,.35); padding: 0.5rem var(--gutter-r) 1rem var(--gutter); }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .nav .btn { margin-top: 0.8rem; min-height: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.section.mist { background: var(--mist); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.vault { background: radial-gradient(ellipse 80% 70% at 75% 15%, #1f3466 0%, var(--navy) 65%); color: var(--on-navy); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2.4rem; max-width: 46rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: end; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.hero-copy { padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); min-width: 0; }
.hero h1 { font-size: var(--step-4); margin: 0.9rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lede { margin-bottom: 1.6rem; }
.hero-art { position: relative; align-self: end; min-width: 0; }
.hero-art img { width: 100%; max-width: 40rem; margin-left: auto; }
.spec-ticket { position: absolute; left: 0; bottom: 12%; background: rgba(14,26,51,.92); border: 1px solid rgba(195,154,69,.55); padding: 0.8rem 1rem; font: 400 0.8rem/1.5 var(--ui); color: var(--on-navy); max-width: 15rem; backdrop-filter: blur(3px); }
.spec-ticket b { display: block; font: 600 0.68rem var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.25rem; }
.spec-ticket .eq { font-variant-numeric: tabular-nums; color: #fff; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.3rem; padding: 0; list-style: none; font: 500 0.86rem var(--ui); color: var(--on-navy-muted); }
.trust-row li::before { content: "◆"; color: var(--gold); font-size: 0.55rem; margin-right: 0.5rem; vertical-align: 0.15em; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 1.5rem; }
  .hero-art img { max-width: 30rem; margin-inline: auto; }
  .spec-ticket { display: none; }
}

/* ---------- Method strip ---------- */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.method > div { padding: 1.4rem 1.2rem; border-right: 1px solid var(--rule); min-width: 0; }
.method > div:last-child { border-right: 0; }
.method .step { font: 600 0.72rem var(--ui); letter-spacing: 0.2em; color: var(--gold-deep); }
.method h3 { font: 600 1.15rem/1.2 var(--display); color: var(--navy); margin: 0.35rem 0 0.4rem; }
.method p { font-size: 1.02rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .method { grid-template-columns: repeat(2, minmax(0, 1fr)); } .method > div:nth-child(2) { border-right: 0; } .method > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } .method > div { border-right: 0; border-bottom: 1px solid var(--rule); } .method > div:last-child { border-bottom: 0; } }

/* ---------- Problem / solution ---------- */
.pairs { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.pair h3 { font: 600 1.25rem/1.3 var(--body); color: var(--navy); margin-bottom: 0.3rem; }
.pair p { margin: 0; color: var(--muted); }
.pair .fix { border-left: 2px solid var(--gold); padding-left: 1.2rem; }
.pair .fix .tag { font: 600 0.7rem var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 0.3rem; }
.pair .fix p { color: var(--ink); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Parts grid ---------- */
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.part { background: var(--paper); padding: 1.6rem 1.5rem; min-width: 0; }
.part .roman { font: 400 2.2rem/1 var(--display); color: var(--gold); }
.part h3 { font: 600 1.1rem/1.25 var(--display); color: var(--navy); margin: 0.5rem 0 0.7rem; letter-spacing: 0.02em; }
.part ol { margin: 0; padding-left: 1.6rem; font-size: 1.04rem; }
.part li { margin-bottom: 0.28rem; }
.part li::marker { font: 600 0.78rem var(--ui); color: var(--muted); }

/* ---------- Page gallery ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 17rem); gap: 1.4rem; overflow-x: auto; padding: 0.5rem 0 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shelf figure { margin: 0; scroll-snap-align: start; }
.page-thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.page-thumb img { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; box-shadow: 0 1px 2px rgba(14,26,51,.18), 0 10px 26px -10px rgba(14,26,51,.45); transition: transform .2s ease, box-shadow .2s ease; }
.page-thumb:hover img { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(14,26,51,.2), 0 18px 34px -12px rgba(14,26,51,.55); }
.shelf figcaption, .grid-pages figcaption { font: 400 0.86rem/1.45 var(--ui); color: var(--muted); margin-top: 0.75rem; }
.shelf figcaption b, .grid-pages figcaption b { display: block; color: var(--navy); font-weight: 600; }
.grid-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2rem 1.6rem; }
.grid-pages figure { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,14,30,.94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(env(safe-area-inset-top, 0px) + 0.6rem) max(0.6rem, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 0.8rem) max(0.6rem, env(safe-area-inset-left, 0px)); color: #fff; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: 500 0.88rem var(--ui); padding: 0 0.4rem; }
.lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; overflow: auto; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-height: 100%; max-width: min(100%, 56rem); width: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #fff; }
.lb-bottom { display: flex; justify-content: center; align-items: center; gap: 0.8rem; padding-top: 0.6rem; flex-wrap: wrap; }
.lb-btn { background: transparent; color: #fff; border: 1px solid rgba(228,204,141,.55); border-radius: 3px; min-height: 2.8rem; min-width: 2.8rem; padding: 0 1rem; font: 600 0.9rem var(--ui); cursor: pointer; }
.lb-btn:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.lb-caption { font: 400 0.88rem/1.4 var(--ui); color: var(--on-navy-muted); text-align: center; max-width: 40rem; }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.tool-card { border: 1px solid rgba(195,154,69,.45); padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; background: rgba(255,255,255,.02); }
.tool-card .which { font: 600 0.7rem var(--ui); letter-spacing: 0.2em; color: var(--gold-soft); text-transform: uppercase; }
.tool-card h3 { font: 600 1.3rem/1.2 var(--display); color: #fff; }
.tool-card p { color: var(--on-navy-muted); margin: 0; font-size: 1.06rem; }
.tool-card ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--on-navy); font-size: 1rem; }
.tool-card li::marker { color: var(--gold); }
.tool-card .page-thumb { margin-top: auto; padding-top: 0.6rem; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.audience h3 { font: 600 1.15rem var(--display); color: var(--navy); margin-bottom: 0.8rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px var(--navy); }
.check-list.no li::before { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.check-list.no li::after { content: ""; position: absolute; left: 0.28rem; top: calc(0.35em + 0.48rem); width: 0.5rem; height: 1px; background: var(--muted); }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: center; background: var(--paper); color: var(--ink); border: 1px solid var(--gold); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); max-width: 56rem; margin-inline: auto; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.price-card .cover { max-width: 16rem; margin-inline: auto; box-shadow: 0 18px 30px -14px rgba(14,26,51,.6); }
.price-tag { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 0.2rem; }
.price-tag .amount { font: 600 3rem/1 var(--display); color: var(--navy); }
.price-tag .label { font: 600 0.72rem var(--ui); letter-spacing: 0.18em; text-transform: uppercase; background: var(--navy); color: var(--gold-soft); padding: 0.35rem 0.6rem; border-radius: 2px; }
.included { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: 0.55rem; font-size: 1.06rem; }
.included li { padding-left: 1.6rem; position: relative; }
.included li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font: 700 0.95rem var(--ui); top: 0.1em; }
.price-card .btn { width: 100%; font-size: 1.05rem; min-height: 3.4rem; }
.checkout-note { margin-top: 0.9rem; padding: 0.7rem 0.9rem; background: var(--mist); border-left: 2px solid var(--gold); font: 400 0.86rem/1.5 var(--ui); color: var(--muted); }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; gap: 1.4rem; } .price-card .cover { max-width: 11rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font: 600 1.15rem/1.35 var(--body); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--ui); color: var(--gold-deep); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.3rem; color: var(--ink); max-width: var(--measure); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 3rem; }
.faq-group h2 { font: 600 1.35rem var(--display); color: var(--navy); margin-bottom: 0.8rem; }

/* ---------- Prose pages ---------- */
.page-hero { padding-block: clamp(2.8rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { font-size: var(--step-3); margin: 0.6rem 0 0.8rem; }
.prose { max-width: var(--measure); }
.prose h2 { font: 600 1.45rem/1.25 var(--display); color: var(--navy); margin: 2.4rem 0 0.7rem; }
.prose h3 { font: 600 1.15rem var(--body); color: var(--navy); margin: 1.6rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--gold-deep); }
.prose .updated { font: 400 0.86rem var(--ui); color: var(--muted); }
.note-box { background: var(--mist); border-left: 2px solid var(--gold); padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: 1.05rem; }

/* ---------- Contents page ---------- */
.toc-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.toc-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5rem); display: grid; gap: 0.2rem; font: 500 0.9rem var(--ui); }
.toc-nav a { text-decoration: none; color: var(--muted); padding: 0.4rem 0 0.4rem 0.8rem; border-left: 2px solid var(--rule); }
.toc-nav a:hover { color: var(--navy); border-left-color: var(--gold); }
.toc-part { margin-bottom: 3rem; scroll-margin-top: 5.5rem; }
.toc-part > header { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--navy); padding-bottom: 0.6rem; margin-bottom: 0.4rem; }
.toc-part .roman { font: 400 2rem/1 var(--display); color: var(--gold); }
.toc-part h2 { font: 600 1.45rem var(--display); color: var(--navy); }
.chapter-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.chapter-row .n { font: 600 0.95rem var(--ui); color: var(--gold-deep); font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
.chapter-row h3 { font: 600 1.15rem/1.3 var(--body); color: var(--navy); }
.chapter-row p { margin: 0.2rem 0 0; color: var(--muted); font-size: 1.04rem; }
.chapter-row .sample { display: inline-block; margin-left: 0.5rem; font: 600 0.66rem var(--ui); letter-spacing: 0.14em; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 0.2rem 0.45rem; border-radius: 2px; vertical-align: 0.2em; }
@media (max-width: 860px) { .toc-layout { grid-template-columns: 1fr; } .toc-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact ---------- */
.contact-card { border: 1px solid var(--rule); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); max-width: 40rem; }
.email-line { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0.8rem 0 1rem; }
.email-line code { font: 600 1.05rem var(--ui); color: var(--navy); background: var(--mist); padding: 0.6rem 0.8rem; border-radius: 3px; user-select: all; word-break: break-all; }
.copy-status { font: 500 0.85rem var(--ui); color: var(--gold-deep); min-height: 1.2em; }

/* ---------- Final CTA + footer ---------- */
.final-cta { text-align: center; }
.final-cta .h-display { font-size: var(--step-3); }
.final-cta .btn-row { justify-content: center; margin-top: 1.6rem; }
.site-footer { background: #0a1328; color: var(--on-navy-muted); padding-block: 3rem calc(2rem + env(safe-area-inset-bottom, 0px)); font: 400 0.9rem/1.6 var(--ui); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer h4 { font: 600 0.72rem var(--ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.4rem; padding-top: 1.4rem; font-size: 0.82rem; display: grid; gap: 0.5rem; }
.site-footer .brand { margin-bottom: 0.8rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- Mobile buy bar (home page) ---------- */
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); border-top: 1px solid rgba(195,154,69,.5); padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter); display: none; align-items: center; gap: 0.8rem; transform: translateY(110%); transition: transform .25s ease; }
.buy-bar.show { transform: none; }
.buy-bar .what { font: 500 0.82rem/1.3 var(--ui); color: var(--on-navy); min-width: 0; }
.buy-bar .what b { display: block; color: #fff; font-weight: 600; }
.buy-bar .btn { margin-left: auto; min-height: 2.8rem; padding: 0.5rem 1rem; flex: none; }
@media (max-width: 760px) { .buy-bar { display: flex; } body.has-buy-bar .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); } }

/* Price card sits on a navy band but is a white panel: reset on-navy colors inside it */
.price-card .h-display { color: var(--navy); }
.price-card .eyebrow { color: var(--gold-deep); }
.price-card .fine { color: var(--muted); }
.price-card a:not(.btn) { color: var(--navy-3); }

/* Lightbox controls: caption on its own line, arrows side by side */
.lb-bottom .lb-caption { flex: 1 0 100%; order: -1; margin: 0 auto 0.2rem; }
