/**
 * ABA Visualized — marketing site stylesheet
 *
 * Hand-rolled CSS (no framework). The design language comes from the
 * BIP Visualized style library (see STYLE.md / css/tokens.css): brand
 * teal, coral, navy, warm beige surfaces, Inter, and the shared radius,
 * shadow, and motion scales. Tokens are declared here directly so the
 * page is fully self-contained.
 */

/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
  /* Brand */
  --teal-50:  #f0fafa;
  --teal-100: #dff5f4;
  --teal-200: #b1e3e2;
  --teal-300: #86d1d0;
  --teal-400: #43b0ae;
  --teal-500: #108c89;
  --teal-600: #0d8078;
  --teal-700: #006360;
  --teal-900: #03402f;

  --coral-50:  #FCDDD4;
  --coral-400: #F0542A;
  --coral-500: #CC3F19;
  --coral-700: #922D11;

  --navy-50:  #f0f3f5;
  --navy-100: #EBEEF2;
  --navy-200: #D0D5DC;
  --navy-300: #9ba5b3;
  --navy-500: #282b3c;
  --navy-700: #171a2e;
  --navy-900: #080b1c;

  --brand-black: #161616;
  --brand-black-hover: #2d2d2d;
  --text-primary: #343434;
  --text-muted: #8A857D;
  --beige: #F8F5EF;
  --beige-hover: #F1EDE5;
  --green-soft: #DBEEED;          /* bip-green-50 — secondary button hover */

  /* Info (bip-blue) */
  --info-50: #e6f4fb;
  --info-200: #b3ddf2;
  --info-700: #006a9e;

  /* Neutrals (Tailwind-default grays, per style library) */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  /* Structural borders (warm) */
  --structural: #CCCAC5;
  --structural-hover: #ADADAD;

  /* Shadows */
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover-card: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-lift-card: 0 12px 28px -10px rgba(0, 0, 0, 0.18);

  /* Motion */
  --duration-instant: 80ms;
  --duration-fast: 120ms;
  --duration-default: 150ms;
  --duration-medium: 180ms;
  --duration-slow: 220ms;
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Roboto', 'Helvetica Neue', sans-serif;

  /* Layout */
  --container: 1160px;
  --header-h: 68px;
}

/* ============================================================
   2. BASE
   ============================================================ */

/* Display face — Self Modern (H1s only; Inter carries everything else) */
@font-face {
  font-family: 'Self Modern';
  src: url('../assets/fonts/SelfModern-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Self Modern';
  src: url('../assets/fonts/SelfModern-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--teal-700); }

h1, h2, h3, h4 {
  color: var(--brand-black);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

h1, h2 {
  font-family: 'Self Modern', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: balance;
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Focus — :focus-visible only, per style library */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--brand-black);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus { left: 0; }

/* ============================================================
   3. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-default) ease,
              border-color var(--duration-default) ease,
              color var(--duration-default) ease,
              transform var(--duration-instant) ease;
}

.btn:active { transform: scale(0.98); }

.btn .icon { flex-shrink: 0; }

.btn-lg { font-size: 15px; font-weight: 700; padding: 16px 22px; }
.btn-sm { font-size: 12px; padding: 9px 12px; }

.btn-primary { background: var(--teal-500); color: #fff; }
.btn-primary:hover { background: var(--teal-600); }

.btn-secondary {
  background: #fff;
  color: var(--teal-500);
  border: 1px solid var(--teal-500);
}
.btn-secondary:hover { background: var(--green-soft); }

.btn-tertiary {
  background: #fff;
  color: var(--brand-black);
  border: 1px solid var(--structural);
}
.btn-tertiary:hover { border-color: var(--brand-black); }

/* On dark (navy) surfaces */
.btn-on-dark { background: #fff; color: var(--navy-500); }
.btn-on-dark:hover { background: var(--beige); }

/* Non-interactive CTA placeholder */
.btn--soon { pointer-events: none; cursor: default; opacity: 0.8; }

/* ============================================================
   4. HEADER / NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.site-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img { height: 30px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--duration-default) ease,
              color var(--duration-default) ease;
}

.site-nav a:hover {
  background: var(--beige-hover);
  color: var(--brand-black);
}

.nav-item { position: relative; }

.nav-item > a .icon { margin-left: 2px; vertical-align: 1px; opacity: 0.65; }

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 236px;
  background: #fff;
  border: 1px solid var(--gray-400);
  border-radius: 12px;
  box-shadow: var(--shadow-lift-card);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

/* invisible bridge so the pointer can cross the gap */
.nav-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu { display: flex; }

.site-nav .nav-menu a { display: block; padding: 9px 12px; font-size: 14px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--structural);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-black);
  cursor: pointer;
  transition: border-color var(--duration-default) ease;
}

.nav-toggle:hover { border-color: var(--brand-black); }
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    padding: 12px 16px 16px;
  }

  .site-nav a { padding: 12px 14px; font-size: 15px; }

  .nav-item { display: contents; }

  .nav-menu {
    position: static;
    transform: none;
    display: flex;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 18px;
  }

  .nav-menu::before { display: none; }

  .site-nav .nav-menu a { padding: 10px 14px; font-size: 14px; color: var(--text-muted); }

  .site-header.nav-open .site-nav { display: flex; }
  .site-header.nav-open .nav-toggle .icon-menu { display: none; }
  .site-header.nav-open .nav-toggle .icon-close { display: block; }
}

/* ============================================================
   5. SECTIONS
   ============================================================ */

.section { padding: 80px 0; }
.section-beige { background: var(--beige); }

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-primary);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-foot {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
}

/* ============================================================
   6. HERO
   ============================================================ */

.hero {
  background: var(--beige);
  padding: 72px 0 80px;
}

.hero--center .hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero--center .hero-copy { margin-left: auto; margin-right: auto; }

/* Grid children may contain wide media — never let min-content size win */
.feature-grid > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--teal-500); font-style: italic; }

.hero-copy {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
}

/* ============================================================
   7. CAROUSELS
   ============================================================ */

.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--structural);
  background: #fff;
  color: var(--brand-black);
  cursor: pointer;
  transition: border-color var(--duration-default) ease;
}

.carousel-btn:hover { border-color: var(--brand-black); }

.carousel-btn:disabled {
  color: var(--gray-400);
  border-color: var(--gray-200);
  cursor: not-allowed;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 20px;
  margin: 0 -4px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .carousel-controls { display: none; }
}

/* ============================================================
   8. CARDS
   ============================================================ */

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--gray-400);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-hover-card);
  transition: transform var(--duration-default) ease,
              box-shadow var(--duration-default) ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift-card);
}

@media (prefers-reduced-motion: reduce) {
  a.card:hover, .buy-option:hover { transform: none; }
}

/* Book cards */
.book-card { width: 300px; }

.book-card-media {
  background: var(--beige);
  border-bottom: 1px solid var(--gray-200);
}

.book-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 436;
  object-fit: cover;
}

/* Boxed variant: 3D renders get breathing room and a taller frame */
.book-card-media--boxed { background: #FBFBFB; }

/* "In production" translations card */
.book-card--production { background: #FBFBFB; }

.book-card--production h3 { font-size: 20px; }

.production-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.production-list li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding: 13px 0; }

.production-list li + li { border-top: 1px solid var(--gray-300); }

.production-list .production-title { color: var(--brand-black); }

.production-list span { color: var(--text-muted); }

.production-cta { font-size: 14px; line-height: 1.55; }

.production-cta a { color: var(--teal-600); font-weight: 600; }


.book-card-media--boxed img {
  aspect-ratio: 600 / 436;
  object-fit: contain;
  padding: 22px 18px;
}

.book-card-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.book-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 18px 18px 20px;
}

.book-card h3 { font-size: 16px; line-height: 1.35; }

.book-card-desc { font-size: 13.5px; line-height: 1.5; flex: 1; }

.book-card-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.book-card-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-card-cta { display: flex; gap: 10px; }
.book-card-cta .btn { flex: 1; }

.buy-toggle .icon { transition: transform var(--duration-default) ease; }
.buy-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.buy-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--gray-400);
  border-radius: 12px;
  box-shadow: var(--shadow-lift-card);
  background: var(--beige);
  padding: 8px;
}

.buy-menu[hidden] { display: none; }

.buy-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-black);
  text-decoration: none;
  transition: border-color var(--duration-default) ease;
}

.buy-menu-item:hover { border-color: var(--brand-black); }

.buy-menu-item .buy-menu-kind {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--beige);
  border: 1px solid var(--structural);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  width: fit-content;
}

.pill-teal {
  background: var(--teal-50);
  border-color: var(--teal-200);
  color: var(--teal-700);
}

.pill-coral {
  background: var(--coral-50);
  border-color: #f5c4b5;
  color: var(--coral-700);
}

/* Training cards */
.training-card {
  width: 280px;
  text-decoration: none;
}

.training-card-media {
  background: var(--beige);
  border-bottom: 1px solid var(--gray-200);
}

.training-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.training-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1;
}

.training-card h3 { font-size: 15.5px; line-height: 1.4; flex: 1; }

.training-card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.training-card .card-link:hover { color: var(--teal-700); text-decoration: underline; }

/* Resource cards */
.resource-card {
  width: 230px;
  padding: 20px;
  gap: 12px;
  text-decoration: none;
}

.resource-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--beige);
  border: 1px solid var(--structural);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
}

.resource-card h3 { font-size: 15px; line-height: 1.4; flex: 1; }

.resource-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Feature cards (40h RBT / curriculum) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1.5px solid var(--gray-400);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-hover-card);
  transition: transform var(--duration-default) ease,
              box-shadow var(--duration-default) ease;
}

.feature-card h3 { font-size: 20px; }

.feature-card p { font-size: 14.5px; line-height: 1.6; flex: 1; }

.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  flex: 1;
}

.feature-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-card ul .icon {
  color: var(--teal-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

/* Rich feature cards: stat strip on top, chip lists inside */
.feature-card--rich { padding: 0; overflow: hidden; }

.feature-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--beige);
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 28px 14px;
}

.feature-stats > div { display: flex; flex-direction: column; }

/* RBT strip: give the reviewer stat room for a clean two-line label */
.feature-stats--rbt { grid-template-columns: 1fr 1fr 1.6fr; }
.feature-stats--rbt .feature-stat-label { white-space: nowrap; }

.feature-stat-num {
  font-family: 'Self Modern', Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--brand-black);
}

.feature-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px 28px;
  flex: 1;
}

.feature-card-body p { flex: 0; }

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  flex: 1;
  align-content: flex-start;
}

.mini-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--structural);
  border-radius: 999px;
  padding: 4px 10px;
  height: fit-content;
}

.feature-note { font-size: 13px; color: var(--text-muted); }

@media (max-width: 800px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { padding: 24px; }
}

/* ============================================================
   9. FILTER CHIPS
   ============================================================ */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  border: 1px solid var(--structural);
  background: #fff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--duration-default) ease,
              border-color var(--duration-default) ease,
              color var(--duration-default) ease;
}

.chip:hover { border-color: var(--brand-black); color: var(--brand-black); }

.chip[aria-pressed="true"] {
  background: var(--brand-black);
  border-color: var(--brand-black);
  color: #fff;
}

/* ============================================================
   10. NOTE BAR (books buying / bulk orders)
   ============================================================ */

.note-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--beige);
  border: 1px solid var(--gray-400);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-hover-card);
}

.note-bar .icon { color: var(--teal-600); flex-shrink: 0; }

.note-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-black);
  text-decoration: none;
  white-space: nowrap;
}

.note-bar-link:hover { text-decoration: underline; }

/* Two-up note bars (bulk orders + peer review) */
.note-bar-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.note-bar-row .note-bar {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.note-bar-row .note-bar p { flex: 1 1 auto; }

@media (max-width: 860px) {
  .note-bar-row { grid-template-columns: 1fr; }
}

.note-bar p { font-size: 14px; flex: 1; }

.note-bar strong { color: var(--brand-black); }

/* Navy variant (peer-review bar) — matches the BIP Visualized band */
.note-bar--navy {
  background: var(--navy-500);
  border-color: var(--navy-700);
}

.note-bar--navy p { color: var(--navy-200); }

.note-bar--navy strong { color: #fff; }

.note-bar--navy p a { color: #fff; }

.note-bar--navy .icon { color: var(--teal-300); }

@media (max-width: 700px) {
  .note-bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   11. PLATFORM BANNER (BIP Visualized)
   ============================================================ */

.section-navy { background: var(--navy-500); }
.section-navy .eyebrow { color: var(--teal-300); }

.platform-intro { max-width: 760px; }

.platform-intro h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.platform-intro p {
  color: var(--navy-200);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 26px;
}

.platform-included-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 46px 0 22px;
}

.platform-included-head h3 { color: #fff; font-size: 21px; letter-spacing: -0.01em; }

.account-card .card-link { font-size: 13.5px; }

.platform-banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.platform-banner-features .pill {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--navy-100);
  font-size: 12px;
  padding: 5px 12px;
}

.platform-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.platform-banner-actions .feature-note { color: var(--navy-300); }

/* ============================================================
   12. BOOK DETAIL PAGES
   ============================================================ */

.book-hero { background: var(--beige); padding: 56px 0 64px; }

.book-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.book-hero-grid > * { min-width: 0; }

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-600); text-decoration: underline; }

.book-hero h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.book-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.book-hero .pill { margin-bottom: 14px; }

.book-rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--text-primary);
}

.book-rating-line a { color: var(--text-muted); }

.stars {
  color: var(--teal-500);
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1;
}

.stars .off { color: var(--gray-300); }

.book-about { font-size: 15px; line-height: 1.65; }

.book-about p { margin-bottom: 14px; }

.book-about h3 {
  font-size: 16px;
  margin: 22px 0 10px;
}

.book-about ul { margin: 0 0 14px; padding-left: 22px; }
.book-about li { margin-bottom: 6px; }

.book-about .more { display: none; }
.book-about.expanded .more { display: block; }

.link-toggle {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-600);
  cursor: pointer;
  text-decoration: underline;
}

.book-meta-line {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Gallery — full-bleed images, click for full screen */
.book-gallery { position: sticky; top: calc(var(--header-h) + 24px); }

.book-gallery-main {
  display: block;
  width: 100%;
  border: 1px solid var(--gray-400);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

.book-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 436;
  object-fit: cover;
}

.book-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.book-gallery-thumbs::-webkit-scrollbar { display: none; }

.thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 1.5px solid var(--structural);
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--duration-default) ease;
}

.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.thumb:hover { border-color: var(--structural-hover); }

.thumb[aria-pressed="true"] { border-color: var(--brand-black); }

/* Fullscreen lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(8, 11, 28, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  touch-action: none;
  transition: transform var(--duration-medium) var(--easing-entrance);
  will-change: transform;
}

.lightbox-img.zoomed { cursor: grab; }
.lightbox-img.zoomed.dragging { cursor: grabbing; transition: none; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--duration-default) ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Buy options / reviews panels */
.book-section { padding: 56px 0 0; }
.book-section:last-of-type { padding-bottom: 72px; }

.panel {
  background: #fff;
  border: 1.5px solid var(--gray-400);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-hover-card);
}

.section-beige .panel { border-color: var(--gray-400); }

.panel > h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.panel-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.buy-region {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 24px 0 12px;
}

.buy-region:first-of-type { margin-top: 0; }

.buy-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.buy-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--gray-400);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--brand-black);
  box-shadow: var(--shadow-hover-card);
  transition: transform var(--duration-default) ease,
              box-shadow var(--duration-default) ease;
}

.buy-option:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift-card); }

.buy-option-name { font-size: 14.5px; font-weight: 600; }

.buy-option-kind { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.buy-option .icon { color: var(--teal-600); flex-shrink: 0; }

.buy-option--featured { border-color: var(--teal-500); background: var(--teal-50); }
.buy-option--featured:hover { border-color: var(--teal-600); }

/* Reviews — featured quotes in a swipeable row */
.panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.reviews-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13.5px;
}

.reviews-summary-line a { color: var(--text-muted); }

.review-track { padding-bottom: 8px; }

.review-card {
  width: 340px;
  padding: 24px;
  gap: 12px;
  background: var(--beige);
  border-color: var(--gray-400);
}

.review-card-stars { line-height: 1; }

.review-card-title {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}

.review-card-body {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.review-author { font-size: 13.5px; font-weight: 600; color: var(--brand-black); }

.verified-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Half-star: left half teal, right half grey */
.stars .half {
  background: linear-gradient(90deg, var(--teal-500) 50%, var(--gray-300) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Spec list pulled out of the description */
.book-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px 20px;
  margin: 22px 0 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--structural);
  border-radius: 12px;
}

.book-spec dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.book-spec dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--brand-black);
}

@media (max-width: 860px) {
  .book-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .book-gallery { position: static; order: -1; }
  .book-gallery-main img { height: 280px; }
  .panel { padding: 22px; }
}

/* ============================================================
   13. FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--gray-200);
  background: #fff;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; }

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 36ch;
  margin-bottom: 18px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--structural);
  color: var(--brand-black);
  transition: border-color var(--duration-default) ease;
}

.footer-social a:hover { border-color: var(--brand-black); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-col a:hover { color: var(--teal-600); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   13. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Rich feature card media header */
.feature-card-media { border-bottom: 1px solid var(--gray-200); background: var(--beige); }
.feature-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 1247 / 693; object-fit: cover; }

/* 40-hour RBT: alternating split rows */
.feature-rows { display: flex; flex-direction: column; gap: 28px; }

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--gray-400);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-hover-card);
}

.feature-row > * { min-width: 0; }

.feature-row-body { display: flex; flex-direction: column; gap: 14px; }
.feature-row-body h3 { font-size: 22px; }
.feature-row-body p { font-size: 14.5px; line-height: 1.6; }

.feature-row-media { display: flex; flex-direction: column; gap: 14px; }

.feature-row-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
}

.feature-row .feature-stats {
  border: 1px solid var(--gray-400);
  border-bottom: 1px solid var(--gray-400);
  border-radius: 12px;
}

@media (max-width: 860px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; }
  .feature-row .feature-row-media { order: -1; }
}

/* Alternating row backgrounds */
.feature-row--tint { background: var(--beige); border-color: var(--gray-400); }
.feature-row--tint .feature-stats { background: #fff; border-color: var(--gray-400); }
.feature-row--tint .mini-chip { border-color: var(--gray-300); }

/* Companion row accent background */
.feature-row--tint2 { background: #FDF0EA; border-color: #D9A78F; }
.feature-row--tint2 .feature-stats { background: #fff; border-color: var(--gray-400); }
.feature-row--tint2 .mini-chip { border-color: #E4C4B4; }
