/* ============================================================
   Deen Cox IELTS — Landing Page
   Palette: Navy #0D2D52 · Teal #1A6B72 · Gold #C8A415 · Cream #FAF6EC
   Type: Fraunces (display) · Public Sans (body)
   ============================================================ */

:root {
  --navy: #0D2D52;
  --navy-deep: #081D38;
  --navy-soft: #16406e;
  --teal: #1A6B72;
  --teal-soft: #2b8b93;
  --gold: #C8A415;
  --gold-soft: #DCC168;
  --cream: #FAF6EC;
  --paper: #FFFFFF;
  --ink: #1d2126;
  --ink-soft: #4c5560;
  --rule: #E3DCC6;
  --nav-h: 72px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(13,45,82,.06), 0 4px 14px rgba(13,45,82,.06);
  --shadow-md: 0 2px 6px rgba(13,45,82,.08), 0 14px 40px rgba(13,45,82,.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* THE FIX: offset anchored scrolling by the fixed nav height */
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Belt-and-braces: every anchored target also carries its own margin */
section[id], header[id], [id="top"] { scroll-margin-top: calc(var(--nav-h) + 12px); }

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); font-weight: 600; line-height: 1.15; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: .5rem; }
.section-sub { color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }

/* Bilingual eyebrow — the structural signature */
.eyebrow {
  display: inline-flex; align-items: baseline; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .9rem;
}
.eyebrow .zh { font-weight: 500; letter-spacing: .3em; color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); align-self: center; }

.section-head { margin-bottom: 2.6rem; }

/* ---------- Band scale (signature motif) ---------- */
.band-scale { display: flex; align-items: flex-end; gap: 0; margin-top: 2rem; max-width: 520px; }
.band-scale .tick { flex: 1; text-align: center; position: relative; padding-top: 14px; }
.band-scale .tick::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 10px; background: rgba(255,255,255,.35);
}
.band-scale .tick span { font-size: .8rem; color: rgba(250,246,236,.55); font-weight: 600; }
.band-scale .tick.on::before { background: var(--gold); height: 14px; }
.band-scale .tick.on span { color: var(--gold-soft); font-size: .95rem; }
.band-scale .rail { position: absolute; }
.band-scale-rail { height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.18) 62%, var(--gold) 62%, var(--gold) 100%); max-width: 520px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8,29,56,.0);
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.scrolled { background: rgba(8,29,56,.96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(200,164,21,.35); }
.nav-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: #FBF8EE; letter-spacing: .01em; white-space: nowrap; }
.nav-logo .dot { color: var(--gold); }
.nav-links { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: 6px;
  color: rgba(250,246,236,.82); font-size: .92rem; font-weight: 500;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--gold-soft); }
.nav-links a.nav-cta {
  background: var(--gold); color: var(--navy-deep); font-weight: 700; margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: var(--gold-soft); color: var(--navy-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #FBF8EE; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(200,164,21,.35);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .nav-links a.nav-cta { margin: 10px 0 0; text-align: center; }
  .nav.menu-open { background: rgba(8,29,56,.98); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, #16406e 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 78%);
  color: #F3EFE1;
  padding: calc(var(--nav-h) + 72px) 0 0;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(200,164,21,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, transparent 45%, rgba(0,0,0,.65) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding-bottom: 84px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(200,164,21,.45); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 1.6rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  color: #FBF8EE; font-weight: 620; letter-spacing: -0.015em; line-height: 1.08;
  margin-bottom: 1.3rem;
}
.hero-title em { font-style: italic; color: var(--gold-soft); }
.hero-sub { font-size: 1.14rem; color: rgba(243,239,225,.85); max-width: 56ch; margin-bottom: 2rem; font-weight: 300; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 8px; font-weight: 700; font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 0; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #F3EFE1; border: 1.5px solid rgba(243,239,225,.4); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #FBF8EE; }
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-1px); }

.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 34px; border-top: 1px solid rgba(200,164,21,.35); padding-top: 22px; max-width: 620px; }
.hstat .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: #FBF8EE; }
.hstat .l { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); margin-top: 2px; }

/* Hero book stack (pure CSS) */
.hero-visual { display: flex; justify-content: center; }
.book-stack { display: grid; grid-template-columns: repeat(2, 150px); gap: 18px; transform: rotate(-2deg); }
.mini-book {
  height: 205px; border-radius: 4px 8px 8px 4px; padding: 16px 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-md);
  border-left: 6px solid rgba(0,0,0,.28);
  position: relative;
}
.mini-book .mb-series { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.mini-book .mb-title { font-family: var(--font-display); font-size: .98rem; font-weight: 650; line-height: 1.22; }
.mini-book .mb-foot { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.mb-navy { background: linear-gradient(150deg, #123a63, var(--navy-deep)); color: #F5F1E3; }
.mb-navy .mb-series, .mb-navy .mb-foot { color: var(--gold-soft); }
.mb-teal { background: linear-gradient(150deg, #1f7d85, #124d53); color: #F1F7F5; }
.mb-teal .mb-series, .mb-teal .mb-foot { color: #cfe8db; }
.mb-gold { background: linear-gradient(150deg, #d4b545, #a3850e); color: #221d05; }
.mb-cream { background: linear-gradient(150deg, #fdfaf1, #efe7d0); color: var(--navy); border: 1px solid var(--rule); }
.mb-cream .mb-series, .mb-cream .mb-foot { color: var(--teal); }
.mini-book.mb-wide { grid-column: 1 / -1; height: 120px; flex-direction: row; align-items: center; gap: 12px; }
.mini-book.mb-wide .mb-title { font-size: 1.05rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Endorsement strip */
.endorse-strip { background: var(--navy-deep); border-top: 1px solid rgba(200,164,21,.3); position: relative; z-index: 1; }
.endorse-inner { display: flex; gap: 22px; align-items: center; padding: 22px 0; }
.endorse-mark { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; flex-shrink: 0; }
.endorse-quote { font-family: var(--font-display); font-style: italic; font-size: 1.06rem; color: rgba(243,239,225,.92); line-height: 1.5; }
.endorse-attr { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; font-family: var(--font-body); font-style: normal; font-weight: 700; }

/* ============================================================
   SECTIONS (light)
   ============================================================ */
.section { padding: 96px 0; }
.section.alt { background: #F3EDDD; }
.section.dark { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #EDE9DA; }
.section.dark .section-title { color: #FBF8EE; }
.section.dark .section-sub { color: rgba(237,233,218,.75); }
.section.dark .eyebrow { color: var(--teal-soft); }
.section.dark .eyebrow .zh { color: var(--gold-soft); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.about-portrait {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius); padding: 30px; color: #F3EFE1;
  box-shadow: var(--shadow-md); position: sticky; top: calc(var(--nav-h) + 24px);
}
.portrait-frame {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(200,164,21,.5);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: radial-gradient(circle at 30% 25%, #16406e, var(--navy-deep));
  overflow: hidden;
}
/* Swap in a real headshot: <img src="images/deen.jpg" alt="Deen Cox"> inside .portrait-frame */
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-initials { font-family: var(--font-display); font-size: 4.4rem; color: var(--gold); font-weight: 600; }
.portrait-name { font-family: var(--font-display); font-size: 1.5rem; color: #FBF8EE; }
.portrait-role { font-size: .85rem; color: var(--gold-soft); margin: 4px 0 16px; }
.portrait-facts { list-style: none; border-top: 1px solid rgba(200,164,21,.35); padding-top: 14px; }
.portrait-facts li { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; padding: 5px 0; color: rgba(243,239,225,.85); }
.portrait-facts li b { color: #FBF8EE; font-weight: 600; text-align: right; }

.about-body p { margin-bottom: 1.1rem; max-width: 66ch; }
.about-body .lede { font-size: 1.2rem; color: var(--navy); font-weight: 500; }
.about-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 1.8rem; }
.pillar { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.pillar h4 { font-size: 1.02rem; margin-bottom: 6px; }
.pillar p { font-size: .89rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 420px; }
  .about-pillars { grid-template-columns: 1fr; }
}

/* ---------- Method ---------- */
.manifesto {
  background: var(--paper); border-left: 5px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px; margin-bottom: 3rem; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.manifesto h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.manifesto p { font-size: .96rem; color: var(--ink-soft); }
.manifesto .vs { font-family: var(--font-display); font-style: italic; color: var(--gold); }
@media (max-width: 800px) { .manifesto { grid-template-columns: 1fr; } }

.fw-group-title { display: flex; align-items: center; gap: 14px; margin: 2.6rem 0 1.2rem; }
.fw-group-title h3 { font-size: 1.35rem; }
.fw-group-title .count { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--teal); background: #E7F0EE; border-radius: 999px; padding: 4px 12px; }

.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fw-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.fw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fw-tag {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em;
  color: var(--navy); background: linear-gradient(120deg, #F1E6BD, #E4D28F);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 10px;
}
.fw-card h4 { font-size: 1.04rem; margin-bottom: 6px; }
.fw-card p { font-size: .89rem; color: var(--ink-soft); }
.fw-card .steps { font-size: .84rem; color: var(--teal); font-weight: 600; margin-bottom: 6px; }
@media (max-width: 900px) { .fw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .fw-grid { grid-template-columns: 1fr; } }

/* ---------- Books ---------- */
.book-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 34px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 30px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.book-cover {
  border-radius: 4px 10px 10px 4px; padding: 20px 16px; min-height: 265px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-left: 7px solid rgba(0,0,0,.28); box-shadow: var(--shadow-md);
}
.book-cover .bc-series { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; opacity: .9; }
.book-cover .bc-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 650; line-height: 1.22; margin-top: 10px; }
.book-cover .bc-sub { font-size: .72rem; opacity: .85; margin-top: 6px; }
.book-cover .bc-author { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

.book-info h3 { font-size: 1.4rem; }
.book-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.book-tagline { font-style: italic; color: var(--ink-soft); margin: 4px 0 14px; }
.book-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.spec {
  font-size: .78rem; font-weight: 700; color: var(--navy);
  background: #F1ECDA; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 13px;
}
.book-info ul { list-style: none; }
.book-info li { position: relative; padding-left: 22px; margin-bottom: 7px; font-size: .93rem; color: var(--ink-soft); }
.book-info li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: .7rem; }
.book-info li b { color: var(--ink); }
@media (max-width: 760px) {
  .book-row { grid-template-columns: 1fr; }
  .book-cover { max-width: 230px; }
}

/* ---------- Chinese Learner Insight ---------- */
.insight-intro { max-width: 68ch; margin-bottom: 2.2rem; color: rgba(237,233,218,.85); }
.insight-intro b { color: var(--gold-soft); }
.l1-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.03); border-radius: var(--radius); overflow: hidden; }
.l1-table th {
  text-align: left; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft); padding: 14px 18px; border-bottom: 2px solid var(--gold);
  background: rgba(200,164,21,.07); font-weight: 800;
}
.l1-table td { padding: 15px 18px; border-bottom: 1px solid rgba(250,246,236,.1); font-size: .93rem; vertical-align: top; }
.l1-table td.fam { color: #FBF8EE; font-weight: 700; width: 22%; }
.l1-table td.ex { font-style: italic; color: rgba(237,233,218,.65); width: 30%; }
.l1-table tr:last-child td { border-bottom: 0; }
.insight-note {
  margin-top: 1.8rem; border-left: 4px solid var(--gold); padding: 16px 22px;
  background: rgba(200,164,21,.08); border-radius: 0 8px 8px 0;
  font-size: .95rem; color: rgba(243,239,225,.9);
}
.insight-note b { color: var(--gold-soft); }
@media (max-width: 720px) {
  .l1-table, .l1-table thead, .l1-table tbody, .l1-table tr, .l1-table td, .l1-table th { display: block; }
  .l1-table thead { display: none; }
  .l1-table tr { border-bottom: 1px solid rgba(250,246,236,.15); padding: 10px 0; }
  .l1-table td { border: 0; padding: 6px 18px; }
  .l1-table td.fam, .l1-table td.ex { width: auto; }
}

/* ---------- Worked example ---------- */
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.example-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.example-head { background: var(--navy); color: #FBF8EE; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.example-head h4 { color: #FBF8EE; font-size: 1.02rem; }
.example-head .pill { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--navy-deep); background: var(--gold); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.example-body { padding: 22px; }
.example-q { font-style: italic; color: var(--ink-soft); border-left: 3px solid var(--rule); padding-left: 14px; margin-bottom: 16px; font-size: .95rem; }
.step-line { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 12px; }
.step-key {
  font-family: var(--font-display); font-weight: 700; color: var(--gold);
  background: var(--navy); border-radius: 8px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.step-line p { font-size: .92rem; color: var(--ink-soft); align-self: center; }
.step-line p em { color: var(--teal); font-style: normal; font-weight: 600; }
.formula {
  background: #F5EFDC; border-radius: 8px; padding: 14px 18px; font-size: .9rem;
  font-style: italic; color: var(--navy); margin-top: 6px;
}
@media (max-width: 860px) { .example-grid { grid-template-columns: 1fr; } }

/* ---------- Audio ---------- */
.audio-band {
  display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.audio-count { text-align: center; }
.audio-count .n { font-family: var(--font-display); font-size: 4.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.audio-count .l { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 800; margin-top: 4px; }
.audio-info h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.audio-info p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1rem; max-width: 62ch; }
.audio-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.audio-tags span { font-size: .8rem; font-weight: 600; color: var(--navy); background: #F1ECDA; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 13px; }
@media (max-width: 720px) { .audio-band { grid-template-columns: 1fr; text-align: center; } .audio-tags { justify-content: center; } }

/* ---------- Comparison ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--paper); }
.compare-table th { font-family: var(--font-display); text-align: left; font-size: 1rem; padding: 16px 20px; background: var(--navy); color: #FBF8EE; }
.compare-table th:first-child { width: 20%; }
.compare-table td { padding: 15px 20px; border-bottom: 1px solid var(--rule); font-size: .92rem; vertical-align: top; }
.compare-table td.dim { color: var(--teal); font-weight: 700; background: #F1ECDA; }
.compare-table td.typ { color: var(--ink-soft); }
.compare-table td.ours { background: #FBF8ED; font-weight: 500; }
.compare-note { font-size: .8rem; color: #9a8f6f; margin-top: 12px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-who { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.svc h3 { font-size: 1.18rem; margin-bottom: 8px; }
.svc > p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.svc ul { list-style: none; margin-top: auto; border-top: 1px solid var(--rule); padding-top: 12px; }
.svc li { font-size: .86rem; color: var(--ink-soft); padding: 4px 0 4px 20px; position: relative; }
.svc li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Licensing band ---------- */
.license-band {
  margin-top: 44px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #EDE9DA; padding: 44px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 36px; align-items: center;
  box-shadow: var(--shadow-md);
}
.license-band h3 { color: #FBF8EE; font-size: 1.6rem; margin-bottom: .6rem; }
.license-band p { color: rgba(237,233,218,.85); font-size: .98rem; max-width: 58ch; }
.license-band .cta-col { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (max-width: 800px) { .license-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { list-style: none; margin-top: 1.6rem; }
.contact-list li { display: flex; flex-direction: column; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.contact-list .k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 800; }
.contact-list .v { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.contact-list a.v { color: var(--navy); }
.contact-list a.v:hover { color: var(--teal); }

.form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--cream);
  transition: border-color .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--teal); outline: none; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(237,233,218,.75); padding: 56px 0 34px; border-top: 2px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.footer h4 { color: var(--gold-soft); font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(237,233,218,.75); font-size: .9rem; }
.footer a:hover { color: var(--gold-soft); }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #FBF8EE; margin-bottom: 8px; }
.footer-brand .dot { color: var(--gold); }
.footer-desc { font-size: .88rem; max-width: 32ch; }
.footer-bottom { border-top: 1px solid rgba(250,246,236,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(237,233,218,.5); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--gold-soft); font-size: 1.2rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--navy-soft); }

/* ============================================================
   MARKED MODEL ANSWERS
   ============================================================ */
.model-block { margin-bottom: 56px; }
.model-q {
  background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 26px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.model-q .q-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.model-q p { font-size: 1rem; color: var(--ink); }
.model-q .qscan { margin-top: 10px; font-size: .86rem; color: var(--ink-soft); background: #F5EFDC; border-radius: 8px; padding: 10px 14px; }
.model-q .qscan b { color: var(--navy); }

.model-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
@media (max-width: 960px) { .model-columns { grid-template-columns: 1fr; } }

.model-paper {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.model-paper-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--navy); color: #FBF8EE; padding: 14px 22px;
}
.model-paper-head h4 { color: #FBF8EE; font-size: 1rem; }
.model-paper-head .pill { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--navy-deep); background: var(--gold); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.model-text { padding: 22px 26px; }
.model-text h5 { font-family: var(--font-body); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 16px 0 6px; }
.model-text h5:first-child { margin-top: 0; }
.model-text p { font-size: .95rem; color: var(--ink); margin-bottom: 4px; line-height: 1.75; }
.model-foot { border-top: 1px dashed var(--rule); margin-top: 16px; padding-top: 12px; font-size: .8rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.model-foot b { color: var(--navy); }

/* Inline annotation highlights */
.hl-lr { background: linear-gradient(transparent 55%, rgba(200,164,21,.38) 55%); border-radius: 2px; }
.hl-gra { border-bottom: 2px solid var(--teal); }
.hl-cc { border-bottom: 2px dotted var(--navy); }

.hl-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 18px; font-size: .82rem; color: var(--ink-soft); }
.hl-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hl-legend i { font-style: normal; width: 26px; height: 14px; border-radius: 3px; display: inline-block; }
.hl-legend .sw-lr { background: linear-gradient(transparent 50%, rgba(200,164,21,.45) 50%); border: 1px solid var(--rule); }
.hl-legend .sw-gra { border-bottom: 2px solid var(--teal); height: 8px; }
.hl-legend .sw-cc { border-bottom: 2px dotted var(--navy); height: 8px; }

/* Feedback stack */
.fb-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.fb-head { background: #F1ECDA; padding: 12px 20px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--rule); }
.fb-table { width: 100%; border-collapse: collapse; }
.fb-table td, .fb-table th { padding: 11px 16px; font-size: .84rem; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.fb-table tr:last-child td { border-bottom: 0; }
.fb-table th { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: #FBF8ED; font-weight: 800; }
.fb-table td.k { font-weight: 700; color: var(--navy); width: 26%; }
.fb-table td.avoid { color: #8a4b3a; }
.fb-table td .crit { display: inline-block; font-size: .68rem; font-weight: 800; color: var(--teal); background: #E7F0EE; border-radius: 4px; padding: 1px 7px; margin-right: 4px; }
.fb-note { padding: 12px 20px; font-size: .82rem; color: var(--ink-soft); background: #FBF8ED; border-top: 1px solid var(--rule); }
.fb-note b { color: var(--navy); }

/* Chart figure */
.chart-fig { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px 10px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.chart-fig figcaption { font-size: .8rem; color: var(--ink-soft); text-align: center; padding: 8px 0 6px; font-style: italic; }
.chart-fig svg { width: 100%; height: auto; display: block; }

/* ============================================================
   INSIDE THE BOOKS
   ============================================================ */
.excerpt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.excerpt-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
}
.excerpt-card.wide { grid-column: 1 / -1; }
.excerpt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.excerpt-head .book-chip { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 5px 13px; }
.chip-navy { background: var(--navy); color: var(--gold-soft); }
.chip-teal { background: var(--teal); color: #ECF6F2; }
.chip-gold { background: var(--gold); color: var(--navy-deep); }
.chip-cream { background: #F1ECDA; color: var(--navy); border: 1px solid var(--rule); }
.excerpt-head .loc { font-size: .76rem; color: var(--ink-soft); font-weight: 600; }
.excerpt-body { padding: 20px 24px; flex: 1; }
.excerpt-body blockquote {
  font-family: var(--font-display); font-size: 1rem; font-style: italic; color: var(--navy);
  border-left: 3px solid var(--gold); padding-left: 16px; margin-bottom: 14px; line-height: 1.6;
}
.excerpt-body p, .excerpt-body li { font-size: .89rem; color: var(--ink-soft); }
.excerpt-body ul { list-style: none; margin: 10px 0 0; }
.excerpt-body li { padding: 3px 0 3px 20px; position: relative; }
.excerpt-body li::before { content: "◆"; position: absolute; left: 0; top: 5px; color: var(--gold); font-size: .62rem; }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.mini-table th { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); text-align: left; padding: 6px 10px; border-bottom: 2px solid var(--gold); font-weight: 800; }
.mini-table td { font-size: .82rem; padding: 7px 10px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); vertical-align: top; }
.mini-table td:first-child { color: var(--navy); font-weight: 700; white-space: nowrap; }
.mini-table tr:last-child td { border-bottom: 0; }
.excerpt-link {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FBF8ED; border-top: 1px solid var(--rule); padding: 13px 24px;
  font-size: .84rem; color: var(--ink-soft);
}
.excerpt-link .arrow { color: var(--gold); font-weight: 800; flex-shrink: 0; }
.excerpt-link b { color: var(--navy); }
@media (max-width: 860px) { .excerpt-grid { grid-template-columns: 1fr; } }
