/* Canadian Shield — book landing page
   Brand: blue #024DC2, off-white #F5F4EF, red #E22625 (accent only). */

:root {
  --blue: #024dc2;
  --blue-deep: #013a93;
  --blue-ink: #0b1f44;
  --paper: #f5f4ef;
  --paper-2: #ebe9e0;
  --white: #ffffff;
  --red: #e22625;
  --ink: #16181d;
  --ink-2: #3d424c;
  --rule: #cfccc0;

  --display: "League Spartan", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: 20px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 21px; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 40px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 12px 16px; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}
h2 { font-size: clamp(36px, 6vw, 60px); color: var(--blue); }
h3 { font-size: 26px; line-height: 1.05; }
p { margin: 0 0 1em; }
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.lede { font-size: 1.1em; color: var(--ink-2); max-width: 36em; }
.tbc {
  font-family: var(--sans);
  font-size: 0.8em;
  font-weight: 700;
  color: var(--red);
  background: #fde9e8;
  padding: 0 5px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--paper); }
.btn-line { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-line:hover { background: var(--white); }
.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.brand img { width: 44px; height: 44px; border-radius: 3px; }
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 3px;
}
.wordmark b { font-weight: 800; background: var(--red); color: var(--white); padding: 4px 6px 2px; }
.site-header .btn { min-height: 48px; padding: 10px 18px; font-size: 18px; }
@media (max-width: 420px) {
  .site-header .brand img { display: none; }
  .wordmark { font-size: 18px; }
  .site-header .btn { padding: 10px 14px; font-size: 17px; }
}

/* ---------- hero ---------- */
.hero { background: var(--paper); padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 72px; }
}
.hero .kicker { color: var(--red); }
.hero h1 { font-size: clamp(46px, 8.4vw, 88px); line-height: 0.92; color: var(--blue); }
.hero-sub {
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.4;
  margin: 22px 0 18px;
  color: var(--ink);
}
.hero p { max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.hero-cta a.text { font-family: var(--sans); font-weight: 600; font-size: 19px; min-height: 48px; display: inline-flex; align-items: center; }
.hero-note { font-family: var(--sans); font-size: 18px; color: var(--ink-2); margin-top: 14px; }

/* ---------- cover mockup (replace with assets/cover.jpg later) ---------- */
.cover-stage { display: flex; justify-content: center; }
.cover {
  container-type: inline-size;
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  background: var(--blue);
  color: var(--white);
  position: relative;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    inset 6px 0 0 rgba(0, 0, 0, 0.18),
    inset 8px 0 0 rgba(255, 255, 255, 0.10),
    0 2px 0 rgba(0, 0, 0, 0.12),
    0 24px 50px rgba(0, 10, 40, 0.45);
  overflow: hidden;
}
@media (min-width: 900px) { .cover, .cover-img { width: min(100%, 420px); } }
.cover-in { /* padding lives here so cqi units measure the full cover width */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 7cqi 7cqi 6cqi 9cqi;
}
.cover-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 3.2cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfe0ff;
}
.cover-map { position: relative; margin: 4cqi -2cqi 0 -4cqi; }
.cover-map img { width: 100%; height: auto; aspect-ratio: 400 / 270; object-fit: cover; object-position: 50% 52%; }
.cover-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10.4cqi;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.cover-band {
  display: inline-block;
  align-self: flex-start;
  background: var(--red);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 4.6cqi;
  padding: 1.6cqi 2.4cqi 1cqi;
  margin: 3cqi 0 2.4cqi;
  line-height: 1;
}
.cover-sub { font-family: var(--body); font-style: italic; font-size: 4.2cqi; line-height: 1.25; color: #e6eeff; }

.cover-img { width: min(100%, 300px); height: auto; border-radius: 2px 6px 6px 2px; box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 24px 50px rgba(0, 10, 40, 0.35); }
@media (min-width: 900px) { .cover-img { width: min(100%, 420px); } }

/* ---------- stat strip ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--rule); }
.stats ul {
  list-style: none;
  margin: 0;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 24px;
}
@media (min-width: 900px) { .stats ul { grid-template-columns: repeat(4, 1fr); padding: 48px 0; } }
.stats li { border-left: 4px solid var(--blue); padding-left: 16px; }
.stats strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  color: var(--blue);
  padding-top: 4px;
}
.stats span { display: block; font-family: var(--sans); font-size: 18px; line-height: 1.35; color: var(--ink-2); margin-top: 6px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head p { margin-top: 16px; color: var(--ink-2); }

.problem .cols { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .problem .cols { grid-template-columns: 5fr 7fr; } }
.problem h2 { max-width: 9em; }
.problem-facts { list-style: none; margin: 32px 0 0; padding: 0; }
.problem-facts li { border-top: 1px solid var(--rule); padding: 18px 0; }
.problem-facts li:last-child { border-bottom: 1px solid var(--rule); }
.problem-facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1; color: var(--red); padding-top: 4px; }
.problem-facts span { display: block; font-family: var(--sans); font-size: 18px; line-height: 1.4; color: var(--ink-2); margin-top: 8px; }
@media (min-width: 900px) { .problem-side { position: sticky; top: 108px; } }
.rule-red { width: 64px; height: 6px; background: var(--red); margin: 0 0 24px; border: 0; }
.problem .body p { max-width: 34em; }
.problem .chapter-shape {
  margin-top: 32px;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--blue);
}
.chapter-shape h3 { font-size: 22px; color: var(--blue); margin-bottom: 14px; }
.chapter-shape ol { margin: 0; padding-left: 1.3em; }
.chapter-shape li { margin-bottom: 6px; }

/* ---------- look inside ---------- */
.inside { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spreads { display: grid; gap: 48px 36px; }
@media (min-width: 900px) { .spreads { grid-template-columns: 1fr 1fr; } }
.spread, .cheat { margin: 0; }
.spread a, .cheat a { display: block; border: 1px solid var(--rule); box-shadow: 0 10px 28px rgba(11, 31, 68, 0.14); transition: transform .15s ease, box-shadow .15s ease; background: #fff; }
.spread a:hover, .cheat a:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11, 31, 68, 0.2); }
.spread img, .cheat img { width: 100%; height: auto; }
.spread figcaption, .cheat figcaption { font-family: var(--sans); font-size: 18px; line-height: 1.45; color: var(--ink-2); margin-top: 16px; }
.spread figcaption b, .cheat figcaption b { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.05; color: var(--ink); margin: 6px 0 6px; }
.sp-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.sp-tag { font-size: 13px; letter-spacing: .06em; color: var(--white); background: var(--red); padding: 3px 8px 2px; border-radius: 3px; }
.cheat { margin-top: 56px; display: grid; gap: 8px 40px; align-items: center; }
@media (min-width: 900px) { .cheat { grid-template-columns: 3fr 2fr; } .cheat figcaption { margin-top: 0; } }

/* ---------- the twelve ---------- */
.era { margin-top: 56px; }
.section-head + .era { margin-top: 0; }
.era-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  border-top: 3px solid var(--blue);
  padding-top: 14px;
  margin-bottom: 8px;
}
.era-head .roman { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--red); }
.era-head h3 { font-size: 24px; color: var(--blue); }
.era-head .years { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--ink-2); }
.projects { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 760px) { .projects { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1100px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.project .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 48px;
  line-height: 0.9;
  color: var(--blue);
  padding-top: 4px;
}
.project h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.02; margin: 0 0 6px; }
.project .where { font-family: var(--sans); font-size: 18px; line-height: 1.4; color: var(--ink-2); margin: 0 0 6px; }
.project .hook { font-style: italic; margin: 0; line-height: 1.4; }

/* ---------- sources ---------- */
.sources { background: var(--blue-ink); color: var(--white); }
.sources h2 { color: var(--white); max-width: 12em; }
.sources .cols { display: grid; gap: 24px 64px; margin-top: 32px; }
@media (min-width: 900px) { .sources .cols { grid-template-columns: 1fr 1fr; } }
.sources p { color: #dde5f5; max-width: 34em; }
.sources ul { margin: 0; padding: 0; list-style: none; }
.sources li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #dde5f5; }
.sources li b { color: var(--white); font-family: var(--sans); }
.sources .rule-red { margin-bottom: 28px; }

/* ---------- pricing ---------- */
.pricing .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.tiers { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 980px) { .tiers { grid-template-columns: 1fr 1.08fr 1fr; gap: 24px; align-items: stretch; } }
.tier {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.rec { border: 3px solid var(--blue); padding: 40px 28px 32px; box-shadow: 0 18px 40px rgba(2, 77, 194, 0.16); }
@media (max-width: 979px) { .tier.rec { order: -1; } }
.rec-label {
  position: absolute;
  top: -17px; left: 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px 5px;
  border-radius: 3px;
}
.tier h3 { font-size: 26px; color: var(--blue); }
.tier .for { font-family: var(--sans); font-size: 18px; color: var(--ink-2); margin: 8px 0 18px; }
.price { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--ink); margin-bottom: 4px; }
.price small { font-size: 22px; vertical-align: 0.9em; margin-right: 2px; }
.cur { font-family: var(--sans); font-size: 17px; color: var(--ink-2); margin-bottom: 20px; }
.tier ul { margin: 0 0 26px; padding: 0; list-style: none; flex: 1; }
.tier li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--paper-2); line-height: 1.45; }
.tier li::before {
  content: "";
  position: absolute;
  left: 4px; top: 19px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}
.tier li.plus { font-weight: 600; }
.buy-note { text-align: center; font-family: var(--sans); font-size: 18px; color: var(--ink-2); margin-top: 36px; }

/* ---------- faq ---------- */
.faq { background: var(--white); border-top: 1px solid var(--rule); }
.faq-list { max-width: 820px; border-top: 2px solid var(--blue); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 52px 22px 0;
  position: relative;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.35;
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-52%);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 34px;
  color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 22px; max-width: 40em; color: var(--ink-2); }

/* ---------- closing + footer ---------- */
.closing { background: var(--blue); color: var(--white); text-align: center; padding: 72px 0; }
.closing h2 { color: var(--white); margin-bottom: 18px; }
.closing p { color: #e6eeff; max-width: 30em; margin: 0 auto 28px; }

.site-footer { background: var(--blue-ink); color: #c9d3e8; padding: 48px 0 56px; font-family: var(--sans); font-size: 18px; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer h4 { font-family: var(--display); text-transform: uppercase; color: var(--white); font-size: 18px; margin: 0 0 12px; }
.site-footer .small { font-size: 16px; color: #9fb0d0; }

/* ---------- offer card ---------- */
.offer {
  position: fixed; z-index: 60; right: 24px; bottom: 24px; width: 380px; max-width: calc(100vw - 32px);
  background: var(--white); color: var(--ink); border-top: 6px solid var(--blue); border-radius: 6px;
  padding: 22px 22px 16px; box-shadow: 0 20px 50px rgba(11, 31, 68, 0.28);
  transform: translateY(24px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.offer[hidden] { display: none; }
.offer.is-open { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .offer { transition: none; } }
.offer-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 30px; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: 4px;
}
.offer-close:hover { background: var(--paper); color: var(--ink); }
.offer-head { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; padding-right: 28px; }
.offer-cover { width: 92px; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 0 6px 16px rgba(0, 10, 40, .3); }
.offer-kick { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 4px; }
.offer h2 { font-size: 26px; line-height: 1; color: var(--blue); margin: 0; }
.offer-price { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--ink); margin: 10px 0 0; }
.offer-price span { display: block; font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.offer-list { list-style: none; margin: 18px 0 16px; padding: 0; border-top: 1px solid var(--paper-2); }
.offer-list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--paper-2); font-family: var(--sans); font-size: 17px; line-height: 1.3; }
.offer-list li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 12px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.offer .btn { min-height: 54px; font-size: 18px; }
.offer-link { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 4px; font-family: var(--sans); font-weight: 600; font-size: 16px; }
@media (max-width: 560px) {
  .offer { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 10px 10px 0 0; padding: 18px 16px 10px; }
  .offer-head { grid-template-columns: 64px 1fr; gap: 14px; }
  .offer-cover { width: 64px; }
  .offer h2 { font-size: 22px; }
  .offer-price { font-size: 24px; margin-top: 6px; }
  .offer-list { margin: 14px 0 12px; }
}

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(40px, 7vw, 64px); color: var(--blue); margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal .updated { font-family: var(--sans); color: var(--ink-2); font-size: 18px; }
.legal .draft {
  border-left: 6px solid var(--red);
  background: var(--white);
  padding: 18px 22px;
  margin: 28px 0;
  font-family: var(--sans);
  font-size: 18px;
}
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
