/* Maths Without Guesswork — design system
   Layout concept: a workbook page with a margin. Content reads in a calm column;
   handwritten margin notes (the one decorative voice) point at what matters.
   Single light theme by choice: it mirrors the printed workbook. */

:root {
  color-scheme: light;
  /* colour — taken from the logo and the Real Numbers cover */
  --ink: #133040;          /* cover navy: headings, nav, dark bands */
  --ink-2: #2b4656;        /* body text */
  --muted: #5d7280;        /* secondary text */
  --teal: #0e7470;         /* concepts, learning benefits, links */
  --teal-soft: #e4f2f0;
  --orange: #e27a17;       /* clues, primary actions */
  --orange-soft: #fdf0e1;
  --coral: #b9483d;        /* mistakes, errors */
  --coral-soft: #fbeceb;
  --paper: #fffbf2;        /* workbook page cream (used for selected bands) */
  --white: #ffffff;
  --mist: #f1f4f5;         /* practice panels */
  --line: #d9e1e4;
  --line-strong: #b8c6cc;
  --focus: #e27a17;

  /* type */
  --font-display: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  /* scale (≈1.25 on phones, opens up on wide screens) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.375rem);
  --t-xl: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
  --t-2xl: clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --t-3xl: clamp(2.3rem, 1.6rem + 3.4vw, 3.9rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-page: 0 1px 2px rgba(19, 48, 64, 0.08), 0 12px 32px -12px rgba(19, 48, 64, 0.28);
  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.18; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 780px; }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--paper { background: var(--paper); }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: #dce7ec; }
.band--ink h2, .band--ink h3 { color: #fff; }
.band--ink a { color: #ffd2a6; }
.lede { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: var(--t-lg); }

/* handwritten margin note — the brand’s one decorative voice */
.note {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--orange);
  font-size: 1.55rem;
  line-height: 1.05;
  transform: rotate(-3deg);
  display: inline-block;
}
.note--teal { color: var(--teal); }

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.35em;
  font: 700 var(--t-md)/1.2 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #f08a2a; color: var(--ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--orange); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--mist); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn .spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.textlink { font-weight: 700; color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* ── announcement + header ──────────────────────────── */
.announce { background: var(--ink); color: #e9f1f4; font-size: var(--t-sm); }
.announce .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-block: 6px; }
.announce p { margin: 0; flex: 1; min-width: 0; }
.announce a { color: #ffc98f; font-weight: 700; }
.announce button { background: none; border: 0; color: #e9f1f4; font-size: 1.4rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; border-radius: 50%; flex: none; }
.announce button:hover { background: rgba(255,255,255,.1); }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--t-xs); color: var(--muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.header-cta { min-height: 42px; padding: 0.5em 1.1em; font-size: var(--t-sm); }
.menu-btn { display: none; background: none; border: 2px solid var(--line); border-radius: var(--r-sm); width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .header-cta { display: none; }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 18px var(--gutter-l); box-shadow: 0 16px 24px -16px rgba(19,48,64,.25); }
  .nav[hidden] { display: none; }
  .nav a { padding: 14px 12px; font-size: var(--t-md); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); }
  .nav .btn { margin-top: 8px; }
}
@media (min-width: 901px) { .nav[hidden] { display: flex !important; } .nav .nav-cta { display: none; } }

/* ── hero ───────────────────────────────────────────── */
.hero { background: var(--paper); padding-block: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 56px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: var(--t-3xl); margin-bottom: 0.4em; }
.hero h1 .line2 { display: block; color: var(--teal); }
.hero .lede { margin-bottom: 1.4em; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--t-sm); }
.hero-points li { display: flex; gap: 6px; align-items: center; }
.hero-points svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.hero-visual { position: relative; padding: 52px 0 76px; justify-self: center; width: min(100%, 470px); }
.hero-visual .page-back { position: absolute; width: 64%; right: 0; top: 30px; transform: rotate(4deg); border-radius: 6px; box-shadow: var(--shadow-page); }
.hero-visual .page-front { position: relative; width: 70%; border-radius: 6px; box-shadow: var(--shadow-page); transform: rotate(-2deg); }
.hero-visual .note { position: absolute; }
.hero-visual .n1 { right: 0; bottom: 6px; max-width: 11em; text-align: right; }
.hero-visual .n2 { left: 2%; top: 4px; color: var(--teal); }
.hero-visual svg.arrow { position: absolute; width: 60px; height: 50px; color: var(--orange); }
.hero-visual .a1 { right: 8%; bottom: 52px; transform: scaleX(-1) rotate(-10deg); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 340px); }
  .hero-visual .n1 { font-size: 1.3rem; }
}

/* ── problem statements ─────────────────────────────── */
.thoughts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; }
.thought { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 4px; padding: 20px 20px 18px; font-family: var(--font-display); font-size: var(--t-lg); color: var(--ink); line-height: 1.35; }
.thought::before { content: "“"; position: absolute; top: -18px; left: 14px; font-size: 3rem; color: var(--orange); line-height: 1; }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 18px 22px; border-radius: 0 var(--r-md) var(--r-md) 0; max-width: 820px; }
.callout p { margin: 0; color: var(--ink); }
.callout svg { width: 28px; height: 28px; color: var(--teal); margin-top: 2px; }

/* ── the method walk-through ───────────────────────── */
.method { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.question-card { position: sticky; top: 96px; background: #fff; border-radius: var(--r-md); border: 1.5px solid var(--ink); padding: 24px; box-shadow: 6px 6px 0 var(--ink); }
.question-card .q { font-family: var(--font-display); font-size: var(--t-xl); color: var(--ink); line-height: 1.3; margin: 6px 0 14px; }
.question-card .src { font-size: var(--t-xs); color: var(--muted); margin: 0; }
.question-card .answer { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.question-card .answer strong { color: var(--teal); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.step { position: relative; padding: 0 0 26px 64px; }
.step:last-child { padding-bottom: 0; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 1.05rem/44px var(--font-body); text-align: center; }
.step::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { margin: 0 0 4px; font-family: var(--font-body); font-size: var(--t-md); letter-spacing: 0.08em; color: var(--ink); }
.step h3 span { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.step p { margin: 0; }
.step .work { margin-top: 8px; font-family: var(--font-display); color: var(--ink); background: var(--paper); border-radius: var(--r-sm); padding: 8px 12px; display: inline-block; }
.step--clue::before { background: var(--orange); color: var(--ink); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .question-card { position: static; } }

/* ── workbook labels (real labels from the ebooks) ─── */
.label { display: inline-flex; align-items: center; gap: 6px; font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.06em; padding: 7px 10px; border-radius: 6px; color: #fff; background: var(--ink); white-space: nowrap; }
.label--teal { background: var(--teal); }
.label--orange { background: var(--orange); color: var(--ink); }
.label--coral { background: var(--coral); }
.label--light { background: var(--mist); color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--ink-2); }
@media (min-width: 640px) { .feature { padding-right: 32px; } }

/* ── product cards ──────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card .cover-link { display: block; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-page); transition: transform .2s; background: var(--ink); aspect-ratio: 595 / 842; }
.card .cover-link:hover { transform: translateY(-3px); }
.card .cover-link img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card-meta { font-size: var(--t-xs); color: var(--muted); margin: 0; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.card .benefit { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.card .price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font: 700 1.3rem/1 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price s { font-weight: 400; color: var(--muted); font-size: 0.78em; text-decoration-thickness: 1.5px; }
.price .off { font: 700 0.62em/1 var(--font-body); color: #0b4d4a; background: var(--teal-soft); padding: 5px 8px; border-radius: 99px; align-self: center; }
.price--lg { font-size: 1.6rem; }
.price--xl { font-size: 2rem; }
.card--bundle .cover-link { background: var(--paper); }
.card .btn { min-height: 44px; padding: 0.5em 1.1em; font-size: var(--t-sm); }
.badge { display: inline-block; font: 700 var(--t-xs)/1 var(--font-body); padding: 6px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.badge--soon { background: var(--mist); color: var(--muted); }

/* placeholder cover for chapters that aren't out yet */
.ph-cover { aspect-ratio: 595 / 842; background: var(--ink); color: #fff; border-radius: 6px; padding: 14% 12% 10%; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: var(--shadow-page); }
.ph-cover::before { content: ""; position: absolute; left: 0; right: 0; top: 5%; height: 1.4%; background: var(--orange); }
.ph-cover .ph-brand { font: 700 0.6rem/1.3 var(--font-body); letter-spacing: 0.22em; color: var(--orange); }
.ph-cover .ph-title { font: 700 clamp(1.15rem, 0.9rem + 1vw, 1.55rem)/1.12 var(--font-display); margin-top: 18%; }
.ph-cover .ph-rule { width: 34%; height: 3px; background: var(--orange); margin: 10px 0 12px; }
.ph-cover .ph-sub { font: 400 0.72rem/1.4 var(--font-body); color: #bfd3db; }
.ph-cover .ph-ch { margin-top: auto; font: 600 0.7rem/1 var(--font-body); color: #bfd3db; }
.card--soon .ph-cover { opacity: .88; }

/* featured product spread */
.spread { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.spread .cover-stack { position: relative; max-width: 360px; justify-self: center; width: 100%; }
.spread .cover-stack img { border-radius: 6px; box-shadow: var(--shadow-page); }
.spread .cover-stack .note { position: absolute; right: -12px; bottom: -30px; }
.spread ul.ticks { margin: 16px 0 22px; }
@media (max-width: 760px) { .spread { grid-template-columns: 1fr; } .spread .cover-stack { max-width: 260px; } }
ul.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 30px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230e7470' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ── inside-the-book strip + viewer ─────────────────── */
.pages { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin: 0 calc(-1 * var(--gutter-r)) 0 0; -webkit-overflow-scrolling: touch; }
.pages figure { flex: 0 0 auto; width: clamp(190px, 26vw, 240px); margin: 0; scroll-snap-align: start; }
.pages button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; box-shadow: var(--shadow-page); overflow: hidden; position: relative; }
.pages button img { aspect-ratio: 910 / 1287; object-fit: cover; width: 100%; }
.pages button::after { content: "Sample"; position: absolute; top: 8px; right: 8px; background: rgba(19,48,64,.85); color: #fff; font: 700 0.7rem/1 var(--font-body); padding: 5px 8px; border-radius: 99px; }
.pages figcaption { margin-top: 12px; font-size: var(--t-sm); }
.pages figcaption strong { display: block; color: var(--ink); }
.pages figcaption span { color: var(--muted); }
.viewer { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; background: rgba(10, 26, 36, .94); color: #fff; }
.viewer::backdrop { background: rgba(10, 26, 36, .7); }
.viewer-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); gap: 10px; }
.viewer-top { display: flex; align-items: center; gap: 12px; }
.viewer-top p { margin: 0; flex: 1; min-width: 0; font-size: var(--t-sm); color: #cfe0e7; }
.viewer-top strong { color: #fff; }
.viewer .vbtn { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; flex: none; }
.viewer .vbtn:hover { background: rgba(255,255,255,.22); }
.viewer-stage { min-height: 0; display: grid; place-items: center; overflow: auto; }
.viewer-stage img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 4px; background: #fff; user-select: none; -webkit-user-drag: none; }
.viewer-bottom { display: flex; justify-content: center; gap: 16px; align-items: center; font-size: var(--t-sm); }

/* ── audience, steps, trust ─────────────────────────── */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.who h3 { font-size: 1.15rem; margin-bottom: 6px; }
.who p { margin: 0; }
.who .icon { width: 40px; height: 40px; color: var(--teal); margin-bottom: 10px; }
.buy-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: b; }
.buy-steps li { position: relative; padding-top: 58px; }
.buy-steps li::before { counter-increment: b; content: counter(b); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #ffc98f; color: #fff; font: 700 1.1rem/40px var(--font-body); text-align: center; }
.buy-steps h3 { font-family: var(--font-body); font-size: var(--t-md); margin-bottom: 4px; }
.buy-steps p { margin: 0; color: #c4d6de; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.18); }
.trust div { padding: 20px 20px 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.trust dt { font-weight: 700; color: #fff; }
.trust dd { margin: 4px 0 0; color: #c4d6de; font-size: var(--t-sm); }

/* ── FAQ accordions (native details/summary) ────────── */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 700; color: var(--ink); font-size: var(--t-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; }
.faq .answer p { margin: 0; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: var(--t-xl); }

/* ── final CTA ──────────────────────────────────────── */
.final { text-align: left; }
.final .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.final h2 { margin: 0; max-width: 18em; }

/* ── footer ─────────────────────────────────────────── */
.site-footer { background: #0f2633; color: #b9ccd5; font-size: var(--t-sm); padding-block: 56px 32px; }
.site-footer a { color: #e3eef2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid li { overflow-wrap: anywhere; }
.footer-grid h2 { font: 700 var(--t-sm)/1.3 var(--font-body); color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: #fff; }
.footer-brand p { color: #b9ccd5; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-base p { margin: 0; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ── page heads, breadcrumbs, prose ────────────────── */
.page-head { background: var(--paper); padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--t-2xl); margin-bottom: 0.3em; }
.page-head p { font-size: var(--t-lg); color: var(--ink-2); margin: 0; }
.crumbs { font-size: var(--t-sm); margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; font-family: var(--font-body); font-size: var(--t-md); }
.prose li { margin-bottom: 0.4em; }
.fillme { background: #fff3c4; padding: 0 4px; border-radius: 4px; font-weight: 700; color: #6b4b00; }
.draft-note { border: 2px dashed var(--orange); background: var(--orange-soft); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 28px; font-size: var(--t-sm); color: var(--ink); }
.draft-note p { margin: 0; }

/* ── catalogue ──────────────────────────────────────── */
.toolbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .legend { font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
input[type="text"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(226,122,23,.35); border-color: var(--orange); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); }
.field .err { color: var(--coral); font-size: var(--t-sm); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--teal); flex: none; }
.results-line { font-size: var(--t-sm); color: var(--muted); margin-bottom: 18px; }
.empty { text-align: center; padding: 48px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); }
.empty h2 { font-size: var(--t-xl); }
.cat-group + .cat-group { margin-top: 56px; }
.cat-group > h2 { font-size: var(--t-xl); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cat-group > h2 small { font: 400 var(--t-sm)/1 var(--font-body); color: var(--muted); }
@media (max-width: 760px) { .toolbar { grid-template-columns: 1fr 1fr; } .toolbar .field:first-child { grid-column: 1 / -1; } }

/* ── product page ───────────────────────────────────── */
.p-hero { background: var(--paper); padding-block: clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.p-hero .grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.p-cover { position: relative; max-width: 380px; width: 100%; justify-self: center; }
.p-cover img { border-radius: 6px; box-shadow: var(--shadow-page); }
.p-info .subtitle { font-family: var(--font-display); font-size: var(--t-lg); color: var(--teal); margin-bottom: 14px; }
.p-info h1 { font-size: var(--t-2xl); margin-bottom: 8px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.meta-chips li { font-size: var(--t-xs); font-weight: 700; padding: 6px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.buy-box { margin-top: 22px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-md); padding: 20px; display: grid; gap: 14px; max-width: 460px; }
.buy-box .price { font-size: 2rem; }
.buy-box .fine { font-size: var(--t-xs); color: var(--muted); margin: 0; }
.buy-box .fine a { color: var(--muted); }
.p-section { padding-block: clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.p-section:last-of-type { border-bottom: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 820px) { .p-hero .grid, .two-col { grid-template-columns: 1fr; } .p-cover { max-width: 260px; } }
.inside { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.inside li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.inside strong { display: block; color: var(--ink); }
.inside span { color: var(--ink-2); font-size: var(--t-sm); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.specs dt, .specs dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { font-weight: 700; color: var(--ink); padding-right: 24px; }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } .specs dt { border-bottom: 0; padding-bottom: 0; } }
.delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.delivery li { background: var(--mist); border-radius: var(--r-md); padding: 18px; }
.delivery strong { display: block; color: var(--ink); margin-bottom: 4px; }
.sticky-buy { display: none; }
@media (max-width: 820px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(19,48,64,.3); padding: 10px var(--gutter-r) max(10px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); align-items: center; gap: 14px; }
  .sticky-buy .price { font-size: 1.25rem; }
  .sticky-buy .btn { flex: 1; }
  .has-sticky-buy .site-footer { padding-bottom: 110px; }
}

/* ── checkout + order + forms ───────────────────────── */
.co-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: clamp(18px, 3vw, 28px); }
.co-summary .item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.co-summary .item img { border-radius: 4px; box-shadow: var(--shadow-page); }
.co-summary .item h2 { font-size: 1.1rem; margin: 0 0 2px; }
.co-summary p { overflow-wrap: anywhere; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 16px 0 0; font-variant-numeric: tabular-nums; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-weight: 700; color: var(--ink); font-size: 1.2rem; padding-top: 10px; border-top: 1.5px solid var(--ink); }
.form { display: grid; gap: 18px; }
.alert { border-radius: var(--r-md); padding: 14px 18px; font-size: var(--t-sm); display: grid; gap: 4px; }
.alert p { margin: 0; }
.alert strong { color: inherit; }
.alert--error { background: var(--coral-soft); color: #7b2b23; border: 1px solid #efc2bd; }
.alert--ok { background: var(--teal-soft); color: #0b4d4a; border: 1px solid #b7dcd8; }
.alert--info { background: var(--orange-soft); color: #6b3d06; border: 1px solid #f3d3ad; }
.status-card { text-align: left; }
.status-card .big-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.status-card .big-icon svg { width: 34px; height: 34px; }
.status-card .ok { background: var(--teal-soft); color: var(--teal); }
.status-card .wait { background: var(--orange-soft); color: var(--orange); }
.status-card .bad { background: var(--coral-soft); color: var(--coral); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0 22px; font-size: var(--t-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 700; word-break: break-all; }
.secure-line { display: flex; gap: 8px; align-items: center; font-size: var(--t-xs); color: var(--muted); }
.secure-line svg { width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── cookie notice ──────────────────────────────────── */
.consent { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; background: var(--ink); color: #e3eef2; border-radius: var(--r-md); padding: 16px 18px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); font-size: var(--t-sm); }
.consent p { margin: 0 0 12px; }
.consent a { color: #ffc98f; }
.consent .btn { min-height: 42px; padding: 0.45em 1em; font-size: var(--t-sm); }
.consent .btn--secondary { color: #fff; border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .announce, .site-footer, .sticky-buy, .consent { display: none !important; } }

/* prices and buttons on dark bands */
.band--ink .price { color: #fff; }
.band--ink .price s { color: #a9c0ca; }
.band--ink .btn--primary, .band--ink .btn--light { color: var(--ink); }
.band--ink .btn--light:hover { color: var(--ink); }

/* keep the cookie notice above the mobile "Buy now" bar */
@media (max-width: 820px) { .has-sticky-buy .consent { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ── free-sample lead-capture gate ──────────────────── */
button.textlink { background: none; border: 0; padding: 0; cursor: pointer; font: 700 var(--t-md)/1.2 var(--font-body); }
.gate { border: 0; padding: 0; width: min(460px, calc(100vw - 32px)); border-radius: var(--r-lg); box-shadow: 0 24px 60px -12px rgba(19,48,64,.5); background: var(--white); color: var(--ink-2); }
.gate::backdrop { background: rgba(10,26,36,.6); }
.gate-inner { padding: clamp(22px, 5vw, 32px); position: relative; }
.gate-inner h2 { font-size: var(--t-xl); margin: 0 0 8px; padding-right: 32px; }
.gate-sub { color: var(--muted); font-size: var(--t-sm); margin: 0 0 20px; }
.gate-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.gate-close svg { width: 20px; height: 20px; }
.gate-close:hover { background: var(--line); }
.gate-or { text-align: center; margin: 2px 0; position: relative; }
.gate-or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.gate-or span { position: relative; background: var(--white); padding: 0 12px; font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.gate-fine { text-align: center; font-size: var(--t-xs); margin: 12px 0 0; }
.gate .check { margin-top: 4px; }

/* ── bundle sample pages, grouped by chapter ────────── */
.bundle-sample { padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--line); }
.bundle-sample:first-of-type { border-top: 0; padding-top: 0; }
.bundle-sample-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bundle-sample-head h3 { margin: 0; font-size: var(--t-lg); }
.bundle-sample-head h3 .muted { font-weight: 400; font-size: var(--t-sm); }
.bundle-sample-head .btn { min-height: 42px; padding: 0.5em 1.1em; font-size: var(--t-sm); }
.bundle-sample .pages { padding-top: 4px; }

/* ── Launch price tag ───────────────────────────────────────────────────────── */
.price .off--launch { color: var(--orange); background: var(--orange-soft); }

/* ── Slim, non-blocking cookie notice ───────────────────────────────────────── */
.consent { padding: 11px 14px; max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.consent p { margin: 0; flex: 1 1 280px; font-size: var(--t-xs); line-height: 1.4; }
.consent .btn-row { margin: 0; gap: 8px; flex-wrap: nowrap; }
.consent .btn { min-height: 38px; padding: 0.4em 0.95em; }

/* ── Minimal landing header ─────────────────────────────────────────────────── */
.site-header--minimal .wrap { display: flex; justify-content: center; padding-block: 10px; }
.site-header--minimal .brand { margin-right: 0; }

/* ── Optional "send it to me" capture ───────────────────────────────────────── */
.sample-send { margin-top: 18px; max-width: 580px; }
.sample-send summary { cursor: pointer; font-weight: 700; color: var(--teal); padding: 6px 0; }
.sample-capture { margin-top: 12px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; gap: 14px; }
.sample-capture h3 { margin: 0; font-size: var(--t-lg); }
.sc-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.sc-alert:empty { display: none; }
@media (max-width: 560px) { .sc-row { grid-template-columns: 1fr; } }

/* ── Honest social proof (reviews shown only if real ones exist) ─────────────── */
.trust-block { text-align: center; }
.launch-note { display: inline-flex; gap: 12px; align-items: center; text-align: left; background: var(--teal-soft); border-radius: var(--r-md); padding: 16px 20px; color: var(--ink-2); max-width: 660px; margin: 0 auto; }
.launch-note svg { width: 26px; height: 26px; color: var(--teal); flex: none; }
.reviews { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0 0 22px; text-align: left; }
.review { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin: 0; }
.review blockquote { margin: 0 0 10px; font-size: var(--t-lg); color: var(--ink); line-height: 1.4; }
.review figcaption { font-weight: 700; color: var(--ink); font-size: var(--t-sm); }

/* ── Free-sample landing page ───────────────────────────────────────────────── */
.btn--xl { font-size: var(--t-lg); padding: 0.95em 1.7em; }
.fs-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 6vw, 60px); text-align: center; }
.fs-hero .wrap { max-width: 760px; }
.fs-kicker { display: inline-block; font: 700 var(--t-xs)/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 7px 12px; border-radius: 99px; margin-bottom: 16px; }
.fs-hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.fs-hero .lede { margin-inline: auto; }
.fs-cta { margin: 22px 0 10px; }
.fs-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: var(--t-sm); margin: 0; }
.fs-note svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.fs-alt { margin: 10px 0 0; font-size: var(--t-sm); }
.fs-alt a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px 4px; }
.fs-chapters { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.fs-chapters a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; }
.fs-chapters a:hover { border-color: var(--ink); background: var(--paper); }
.fs-chapters svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.fs-buy { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 720px; margin: 0 auto; }
.fs-buy-card { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 20px; display: grid; gap: 12px; align-content: start; }
.fs-buy-card h3 { margin: 0; }
.fs-buy-card .card-meta { margin: 0; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fs-buy-card--featured { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.band--ink .fs-buy-card .price { color: var(--ink); }
.band--ink .fs-buy-card .price s { color: var(--muted); }

/* ══ Three product families: Concept Ebooks (teal), Board Boosters (orange), Bundles (navy) ══ */
.kind { display: inline-flex; align-items: center; align-self: flex-start; font: 700 0.6875rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; white-space: nowrap; }
.kind--concept { background: var(--teal); color: #fff; }
.kind--booster { background: var(--orange); color: var(--ink); }
.kind--bundle { background: var(--ink); color: #fff; }
.band--ink .kind--bundle { background: #fff; color: var(--ink); }
.card--concept .cover-link { border-top: 6px solid var(--teal); }
.card--booster .cover-link { border-top: 6px solid var(--orange); }
.card--bundle .cover-link { border-top: 6px solid var(--ink); }
.p-hero { border-top: 6px solid var(--teal); }
.p-hero--booster { border-top-color: var(--orange); }
.p-hero--bundle { border-top-color: var(--ink); }
.p-info .lede { margin-bottom: 0; }

/* main menu: the three families and the free sample */
.nav-main { position: relative; }
.nav-main::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--line-strong); }
.nav-main--concept::before { background: var(--teal); }
.nav-main--booster::before { background: var(--orange); }
.nav-main--bundle::before { background: var(--ink); }
.nav-main--sample::before { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.nav .nav-more { color: var(--muted); font-weight: 600; }
@media (min-width: 901px) { .nav .nav-menu-only { display: none; } }
.section-tabs { display: none; }
@media (max-width: 900px) {
  .section-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-bottom: 1px solid var(--line); }
  .tab { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 6px 4px; font: 700 var(--t-xs)/1.15 var(--font-body); color: var(--ink); text-decoration: none; border-top: 4px solid var(--line-strong); }
  .tab + .tab { border-left: 1px solid var(--line); }
  .tab--concept { border-top-color: var(--teal); }
  .tab--booster { border-top-color: var(--orange); }
  .tab--bundle { border-top-color: var(--ink); }
  .tab[aria-current="page"] { background: var(--paper); }
}

/* homepage: three ways in, directly under the headline */
.hero .wrap { grid-template-areas: "h1 visual" "lede visual" "paths paths" "points points"; gap: 16px clamp(28px, 5vw, 64px); align-items: start; }
.hero h1 { grid-area: h1; align-self: end; margin-bottom: 0; }
.hero .lede { grid-area: lede; margin-bottom: 0; }
.hero .paths-wrap { grid-area: paths; }
.hero .hero-visual { grid-area: visual; align-self: center; }
.hero .hero-points { grid-area: points; margin-top: 4px; }
.hero-points a { color: inherit; }
@media (max-width: 820px) { .hero .wrap { grid-template-areas: "h1" "paths" "lede" "visual" "points"; } }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.path { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-top: 7px solid var(--line-strong); border-radius: var(--r-md); padding: 18px 18px 16px; text-decoration: none; color: var(--ink-2); transition: transform .15s, border-color .15s; }
.path:hover { transform: translateY(-2px); border-color: var(--ink); }
.path strong { font: 700 var(--t-lg)/1.2 var(--font-display); color: var(--ink); }
.path-text { font-size: var(--t-sm); }
.path-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); }
.path-go { font-size: 1.3rem; line-height: 1; }
.path--concept { border-top-color: var(--teal); }
.path--booster { border-top-color: var(--orange); }
.path--bundle { border-top-color: var(--ink); }
@media (max-width: 720px) { .paths { grid-template-columns: 1fr; gap: 10px; } .path { padding: 14px 16px 12px; gap: 6px; } }
.exam-banner { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 14px 0 0; padding: 10px 14px; background: var(--orange-soft); border: 1px solid #f3d3ad; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.exam-banner svg { width: 18px; height: 18px; flex: none; color: var(--orange); }
.exam-banner a { color: var(--ink); }

/* a one-line "what this kind of book is for" note at the top of each list */
.family-note { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px; border-left: 5px solid var(--teal); background: var(--teal-soft); border-radius: 0 var(--r-md) var(--r-md) 0; margin-bottom: 24px; max-width: 860px; }
.family-note p { margin: 0; flex: 1 1 260px; color: var(--ink); }
.family-note--booster { border-left-color: var(--orange); background: var(--orange-soft); }

/* cross-links between a chapter's two books, and to the packs */
.offer { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 20px; background: #fff; border: 1.5px solid var(--line); border-left: 7px solid var(--teal); border-radius: var(--r-md); max-width: 860px; }
.offer--booster { border-left-color: var(--orange); }
.offer--bundle { border-left-color: var(--ink); }
.offer--wide { grid-template-columns: minmax(0, 1fr); }
.offer-cover img { border-radius: 4px; box-shadow: var(--shadow-page); }
.offer h2, .offer h3 { margin: 10px 0 6px; }
.offer h2 { font-size: var(--t-xl); }
.offer p { margin: 0 0 8px; }
.offer-buy { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 12px; }
.offer .btn { min-height: 44px; padding: 0.5em 1.1em; font-size: var(--t-sm); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.saving { display: inline-block; margin: 0; padding: 8px 12px; background: var(--teal-soft); color: var(--ink); border-radius: var(--r-sm); font-size: var(--t-sm); }
.saving--none { background: var(--mist); color: var(--muted); }
.combo { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: grid; gap: 10px; justify-items: start; scroll-margin-top: 90px; }
.combo p { margin: 0; }
@media (max-width: 560px) { .offer { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; } .offer--wide { grid-template-columns: minmax(0, 1fr); } }

/* Booster / Final Pack product page */
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-pair .btn { min-width: 0; padding-inline: 0.6em; text-align: center; }
.counts { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); }
.counts th, .counts td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.counts tbody th { color: var(--ink); font-weight: 700; }
.counts th:last-child, .counts td:last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.counts thead th { font: 700 var(--t-xs)/1.2 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.counts tfoot th, .counts tfoot td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.inside--stack { grid-template-columns: 1fr; }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.track { background: #fff; border: 1.5px solid var(--line); border-top: 6px solid var(--line-strong); border-radius: var(--r-md); padding: 18px; }
.track--secure { border-top-color: var(--teal); }
.track--stretch { border-top-color: var(--orange); }
.track h3 { margin: 0; font-size: 1.15rem; }
.track-for { margin: 2px 0 8px; font-weight: 700; color: var(--muted); font-size: var(--t-sm); }
.track p:last-child { margin: 0; }

/* Bundles page */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; align-items: stretch; margin-bottom: 20px; }
.pack { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-top: 7px solid var(--ink); border-radius: var(--r-md); padding: 20px; scroll-margin-top: 90px; }
.pack h2 { font-size: var(--t-xl); margin: 4px 0 0; }
.pack-sub { margin: 0; }
.pack ul.ticks { margin: 4px 0; font-size: var(--t-sm); }
.pack-files { margin: 0; font-size: var(--t-xs); color: var(--muted); }
.pack-price { margin: auto 0 0; padding-top: 8px; }
.pack .saving { display: block; }
.pack .textlink { align-self: center; font-size: var(--t-sm); }
.pack--featured { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody th { text-align: left; color: var(--ink); }
.compare thead th { font-family: var(--font-display); color: var(--ink); vertical-align: bottom; border-bottom: 1.5px solid var(--ink); }
.compare thead th:first-child { text-align: left; }
.compare .yes svg { width: 20px; height: 20px; color: var(--teal); vertical-align: middle; }
.compare .no { color: var(--line-strong); }
.combo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 860px; }
.combo-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; }
.combo-ch { font-size: var(--t-xs); font-weight: 700; color: var(--muted); white-space: nowrap; }
.combo-name { font-weight: 700; color: var(--ink); }
.combo-list .btn { min-height: 42px; padding: 0.45em 1em; font-size: var(--t-sm); }
@media (max-width: 560px) { .combo-list li { grid-template-columns: minmax(0, 1fr) auto; } .combo-ch { grid-column: 1 / -1; margin-bottom: -6px; } .combo-name { grid-column: 1 / -1; } }

/* free-sample page: board-exam samples */
.fs-chapters--board a { border-left: 6px solid var(--orange); }
/* on phones, keep the board product's name, price and buttons near the top */
@media (max-width: 820px) { .p-hero--booster .p-cover, .p-hero--bundle .p-cover { max-width: 150px; justify-self: start; } .p-hero--booster .grid, .p-hero--bundle .grid { gap: 18px; } }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
/* Boosters list on phones: compact rows (small cover on the left) so all 14 are quick to scan */
@media (max-width: 560px) {
  .products--rows { grid-template-columns: 1fr; gap: 14px; }
  .products--rows .card { flex-direction: row; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px; background: #fff; }
  .products--rows .card .cover-link { flex: 0 0 92px; }
  .products--rows .card-body { padding-top: 0; gap: 4px; }
  .products--rows .card h3 { font-size: 1.05rem; }
  .products--rows .card .price-row { padding-top: 4px; }
  .products--rows .card .btn { min-height: 40px; padding: 0.4em 0.9em; }
}

/* "Liked the sample? Start with one chapter" (free-sample page) */
.bridge { margin: 22px auto 0; max-width: 620px; text-align: left; background: #fff; border: 2px solid var(--orange); border-radius: var(--r-md); padding: 18px; box-shadow: 0 0 0 4px var(--orange-soft); scroll-margin-top: 80px; }
.bridge-h { font-size: clamp(1.2rem, 4.6vw, 1.5rem); margin: 0; line-height: 1.25; }
.bridge-sub { margin: 6px 0 0; color: var(--muted); font-size: var(--t-sm); }
.bridge-form { margin-top: 14px; display: grid; gap: 8px; }
.bridge-form label { font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.bridge-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.bridge-row select { width: 100%; min-height: 50px; padding: 0 12px; font: 600 var(--t-base)/1.2 var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); }
.bridge-row .btn { white-space: nowrap; }
.bridge-more { font-size: var(--t-sm); color: var(--teal); font-weight: 600; justify-self: start; }
.bridge-alt { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: var(--t-sm); }
.bridge-alt a { font-weight: 700; color: var(--ink); }
.bridge .secure-line { margin: 10px 0 0; }
.bridge--compact { margin-top: 0; box-shadow: none; }
@media (max-width: 560px) { .bridge { padding: 16px 14px; } .bridge-row { grid-template-columns: 1fr; } .bridge-row .btn { width: 100%; } }
@media (max-width: 560px) { .fs-page .fs-hero { padding-block: 18px 30px; } .fs-page .fs-kicker { display: none; } .fs-page .fs-cta { margin: 14px 0 8px; } }
.fs-page .fs-emailit { margin: 0 auto; }
.fs-page .fs-emailit summary { padding: 4px 0; }
/* "Not ready for all 14? Start with one chapter" on the home and bundle pages */
.bridge--inline { margin: 14px 0 0; max-width: 760px; box-shadow: none; }
.bridge--top { margin: 0 0 26px; max-width: 760px; }
.bridge--flat { margin: 6px 0 0; padding: 14px 0 0; border: 0; border-top: 1px dashed var(--line-strong); border-radius: 0; box-shadow: none; background: transparent; max-width: none; }
.bridge--flat .bridge-h { font-size: 1.1rem; }
.bridge--flat .bridge-row { grid-template-columns: 1fr; }
.bridge--flat .bridge-row .btn { width: 100%; }

/* ₹999 bundle page: one preview page per chapter (tap to flip through that chapter) */
.ch-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.ch-tile { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ch-tile button { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ch-tile img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: var(--shadow-page); }
.ch-tile-badge { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 6px; border-radius: 6px; background: rgba(19, 48, 64, 0.88); color: #fff; font: 700 0.6875rem/1.2 var(--font-body); text-align: center; }
.ch-tile h3 { margin: 4px 0 0; font-size: 0.98rem; line-height: 1.25; }
.ch-tile-links { margin: auto 0 0; display: flex; gap: 14px; font-size: var(--t-sm); font-weight: 700; }
.ch-tile-links a { color: var(--teal); }
@media (max-width: 560px) { .ch-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .ch-tile { padding: 8px; } }

/* long lists: the first few items, then "Show all" */
.more-list { margin-top: 4px; }
.more-list > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--teal); }
.more-list[open] > summary { margin-bottom: 4px; }
.ch-tile-links { flex-wrap: wrap; gap: 4px 12px; }
.ch-tile-links a { white-space: nowrap; }
@media (max-width: 560px) { .ch-tile-links { font-size: 0.8125rem; } }
/* footer "Cookie settings": looks like the other footer links */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.consent .btn-row .btn { min-width: 108px; }

/* board-exam season (see EXAM_DAY in src/lib.js): the season version shows until the exam, then the usual one */
html:not(.exam-over) [data-exam="after"], html.exam-over [data-exam="during"] { display: none !important; }
html.exam-over .paths--exam .path--concept { order: -1; }
.board-offer .bo-cta { margin-top: 14px; }
.board-offer .bo-cta .btn { width: 100%; justify-content: center; text-align: center; }
.board-offer > .bridge-more { display: inline-block; margin-top: 8px; }
.bo-step { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.bo-step h3 { font-size: 1.08rem; margin: 0 0 4px; }
.bo-step p { margin: 0 0 10px; font-size: var(--t-sm); color: var(--muted); }
.bo-concept { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: var(--t-sm); }
.bo-concept a { color: var(--teal); font-weight: 700; }
.board-offer .bridge-form { grid-template-columns: minmax(0, 1fr); }
.board-offer .bridge-row select { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .board-offer .bridge-row { grid-template-columns: minmax(0, 1fr); } .board-offer .bridge-row .btn { white-space: normal; } }
