/* Tallgrove — site styles
   Layout concept: an exercise book brought online. Cream paper, pine ink,
   terracotta marking-pen accents, ruled-line hero, chalkboard panels. */
:root {
  --pine: #23402F;
  --pine-deep: #182E21;
  --pine-soft: #2F5440;
  --sage: #9CB59A;
  --sage-soft: #E3EBE1;
  --sage-ink: #4E6E50;
  --clay: #B8572F;
  --clay-deep: #9A4625;
  --clay-soft: #F6E3D8;
  --cream: #FAF6EE;
  --sand: #F2ECDF;
  --paper: #FFFFFF;
  --ink: #2A2A27;
  --muted: #5B5850;
  --line: #E4DCCB;
  --rule: rgba(156, 181, 154, 0.32);
  --focus: #B8572F;

  --font-display: 'Fondamento', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(35, 64, 47, 0.06), 0 8px 24px rgba(35, 64, 47, 0.07);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--cream);
}
img, svg { max-width: 100%; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Type */
h1, h2, h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--pine);
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ink); }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay-deep);
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.tabular { font-variant-numeric: tabular-nums; }
.flourish {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C55 3 120 2 197 6' stroke='%23B8572F' stroke-width='3.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 0.32em; background-position: 0 100%;
  padding-bottom: 0.12em;
}
.ph {
  background: var(--clay-soft); color: var(--clay-deep); border-bottom: 1.5px dashed var(--clay);
  padding: 0 4px; border-radius: 4px; font-weight: 600; white-space: nowrap;
}

/* Layout */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.band-sand { background: var(--sand); }
.band-paper { background: var(--paper); }
.band-pine { background: var(--pine); color: #EAF0E7; }
.band-pine h2, .band-pine h3 { color: var(--cream); }
.band-pine .lead, .band-pine .muted { color: #C9D6C6; }
.band-pine .eyebrow { color: #F0B79C; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Skip + preview bar */
.skip { position: absolute; left: -999px; top: 8px; background: var(--pine); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; color: #fff; }
.preview-bar {
  background: var(--pine-deep); color: #DCE6D8; font-size: 0.82rem; text-align: center;
  padding-block: 7px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); color: #fff; }
.btn-secondary { background: var(--pine); color: #fff; }
.btn-secondary:hover { background: var(--pine-deep); color: #fff; }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine); color: #fff; }
.btn-ghost { color: var(--pine); background: transparent; padding-inline: 14px; }
.btn-ghost:hover { background: var(--sage-soft); color: var(--pine); }
.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: #fff; color: var(--pine-deep); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.08rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250, 246, 238, 0.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pine); flex-shrink: 0; }
.brand svg { width: 38px; height: 38px; }
.brand-word { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--pine); }
.main-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a, .nav-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-list a:hover, .nav-btn:hover { background: var(--sage-soft); color: var(--pine); }
.nav-list a[aria-current="page"] { color: var(--clay-deep); }
.nav-btn svg { width: 16px; height: 16px; transition: transform .18s ease; }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: none;
}
.submenu.is-open { display: block; }
.submenu a { display: flex; width: 100%; padding: 10px 12px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  color: var(--pine); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 12px;
    padding-block: 12px 20px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a, .nav-btn { width: 100%; justify-content: space-between; font-size: 1.05rem; }
  .submenu { position: static; box-shadow: none; border: 0; background: var(--sand); margin: 4px 0 8px; min-width: 0; }
  .nav-actions { flex-direction: column; align-items: stretch; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background-color: var(--cream); }
.hero .container { padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--sage-ink); margin-top: 3px; }
.page-hero {
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* Lesson mock (hero visual) */
.lesson-mock {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 50px rgba(35, 64, 47, 0.16);
  overflow: hidden; min-width: 0;
}
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--sand); border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding: 18px; }
@media (max-width: 520px) { .mock-body { grid-template-columns: minmax(0, 1fr); } }
.mock-tutor { background: var(--sage-soft); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ai-tag { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--pine); color: #fff; padding: 4px 10px; border-radius: 999px; }
.board { background: var(--pine); color: var(--cream); border-radius: 14px; padding: 16px; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; min-height: 132px; }
.board small { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.78rem; color: #BFD0BE; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.speech { background: var(--cream); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 0.92rem; text-align: left; }
.mock-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 18px; }
.hand-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--clay); background: var(--clay-soft); color: var(--clay-deep); font-weight: 700; font-family: var(--font-body); font-size: 0.95rem; cursor: pointer; }
.hand-btn svg { width: 20px; height: 20px; }
.progress { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--sage-ink); border-radius: 999px; }

/* Portraits (arch monograms until tutor artwork is final) */
.arch {
  width: 112px; height: 136px; border-radius: 56px 56px 14px 14px; display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 3rem; color: var(--cream); padding-bottom: 18px;
  position: relative; overflow: hidden;
}
.arch::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: rgba(0, 0, 0, .08); }
.arch span { position: relative; z-index: 1; }
.arch-sm { width: 72px; height: 88px; border-radius: 36px 36px 10px 10px; font-size: 2rem; padding-bottom: 10px; }
.arch-coach { background: var(--pine); }
.arch-guide { background: var(--clay); }
.arch-explorer { background: var(--sage-ink); }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h3 { font-size: 1.4rem; }
.card-flat { background: transparent; border: 0; padding: 0; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--sage-soft); color: var(--pine); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.clay { background: var(--clay-soft); color: var(--clay-deep); }
.band-pine .icon-badge { background: var(--pine-soft); color: var(--cream); }
.band-pine .card { background: var(--pine-soft); border-color: #3B6450; color: #EAF0E7; }
.band-pine .card h3 { color: var(--cream); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; color: var(--sage-ink); }
.band-pine .check-list svg { color: var(--sage); }
.x-list li svg { color: var(--clay); }
.dot-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.dot-list li::marker { color: var(--clay); }

/* Steps (a real sequence) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps > li::before {
  content: counter(step); width: 56px; height: 56px; border-radius: 50%; background: var(--pine); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.7rem;
}
.steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-row > li { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) { .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }

/* Chalkboard panel */
.chalk { background: var(--pine); color: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.chalk .hand { font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--cream); }
.chalk .muted { color: #C4D3C1; }

/* Trust strip */
.trust-strip { border-block: 1px solid var(--line); background: var(--paper); }
.trust-strip ul { list-style: none; margin: 0; padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.trust-strip li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: var(--pine); }
.trust-strip svg { width: 22px; height: 22px; color: var(--sage-ink); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.badge-now { background: var(--sage-soft); color: var(--pine); }
.badge-soon { background: var(--sand); color: var(--muted); border: 1px solid var(--line); }
.badge-clay { background: var(--clay-soft); color: var(--clay-deep); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font-size: 0.85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.yes, td.no { font-weight: 600; }
td.yes { color: var(--pine); }
td.no { color: var(--muted); }
.compare th[scope="col"].us, .compare td.us { background: var(--sage-soft); }
.compare { min-width: 720px; }

/* Price */
.price { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--pine); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.price small { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 1rem; color: var(--muted); }
.price-card { border: 2px solid var(--pine); }
/* "Start from only £99" chalkboard banner */
.price-banner { background: var(--pine); color: var(--cream); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px 36px; align-items: center; box-shadow: inset 0 0 0 6px var(--pine-soft); }
.price-banner .eyebrow { color: #F0B79C; }
.pb-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb-from { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.05; color: var(--cream); text-wrap: balance; }
.pb-from strong { color: #F0B79C; font-weight: 700; }
.pb-sub { margin: 0; color: #C9D6C6; font-size: 1.02rem; }
.pb-side { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.pb-stamp { margin: 0; width: 118px; height: 118px; border-radius: 50%; border: 3px dashed #F0B79C; color: #F0B79C; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 0.86rem; line-height: 1.2; transform: rotate(-8deg); flex-shrink: 0; }
.pb-stamp b { font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1; }
@media (max-width: 760px) { .price-banner { grid-template-columns: 1fr; } .pb-side { justify-content: flex-start; } .pb-stamp { width: 108px; height: 108px; font-size: 0.78rem; } }
/* Pay once / auto-renew choice in the package summary */
.plan-choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid #3B6450; border-radius: 14px; cursor: pointer; }
.plan-opt:has(input:checked) { border-color: var(--cream); background: var(--pine-soft); }
.plan-opt input { width: 20px; height: 20px; accent-color: #F0B79C; margin: 0; }
.plan-opt strong { display: block; color: var(--cream); }
.plan-opt small { display: block; color: #C4D3C1; font-size: 0.85rem; }
.plan-opt .amt { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.plan-save { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #F0B79C; color: var(--pine-deep); font-size: 0.72rem; font-weight: 800; vertical-align: 1px; }

/* FAQ / accordions */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 1.05rem; position: relative; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--clay); border-bottom: 2.5px solid var(--clay); transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.faq-group { display: flex; flex-direction: column; gap: 14px; }
.faq-group + .faq-group { margin-top: 36px; }

/* Chips / in-page nav */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--pine); }
.chip:hover { border-color: var(--pine); color: var(--pine); }

/* Subject / stage blocks */
.stage { scroll-margin-top: calc(var(--header-h) + 24px); }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.subject-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .subject-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .subject-list { grid-template-columns: minmax(0, 1fr); } }
.subject-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.subject-list .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.subject-list strong { font-size: 1.02rem; }
.subject-list .board-name { font-size: 0.85rem; color: var(--muted); }

.learn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .learn-grid { grid-template-columns: minmax(0, 1fr); } }
.learn-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.learn-card h4 { color: var(--pine); font-size: 1.1rem; }
.key-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

/* Report mock */
.report-mock { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.report-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 48px; gap: 12px; align-items: center; font-size: 0.95rem; }
.report-row .progress { height: 10px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.97rem; color: var(--ink); }
.field .hint { font-size: 0.88rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #CFC5B1; background: var(--paper);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(184, 87, 47, .35); border-color: var(--clay); }
.field .error { color: #A1301A; font-size: 0.9rem; font-weight: 600; }
.field [aria-invalid="true"] { border-color: #A1301A; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.checkbox input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pine); flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.notice { background: var(--sage-soft); border: 1px solid #C9D8C6; border-radius: 14px; padding: 14px 16px; font-size: 0.95rem; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; color: var(--pine); flex-shrink: 0; margin-top: 3px; }
.notice.clay { background: var(--clay-soft); border-color: #EBC7B3; }
.form-success { display: flex; flex-direction: column; gap: 10px; }

/* Pricing builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 980px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.builder-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.child-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.child-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.subject-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, 1.15fr) 48px; gap: 10px; align-items: end; padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
@media (max-width: 760px) { .subject-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .subject-row .field:nth-child(2) { grid-column: 1 / -1; order: -1; } }
/* Package type: choose subjects or the Home Schooling Core */
.pkg-type { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pkg-type legend { font-weight: 700; font-size: 0.97rem; padding: 0; margin-bottom: 8px; }
.pkg-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); cursor: pointer; min-width: 0; }
.pkg-opt:has(input:checked) { border-color: var(--pine); background: var(--sage-soft); }
.pkg-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); flex-shrink: 0; }
.pkg-opt strong { display: block; color: var(--ink); }
.pkg-opt small { display: block; color: var(--muted); font-size: 0.86rem; }
.child-card.is-core { border: 2px solid var(--pine); }
.core-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.1fr); align-items: center; }
.core-includes { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 760px) { .pkg-type { grid-template-columns: 1fr; } .core-row { grid-template-columns: 1fr; } .core-row .field:nth-child(2) { order: 0; } }
/* Core upsell inside a child card */
.core-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 16px; background: var(--clay-soft); border: 1px solid #EBC7B3; border-radius: 14px; }
.core-nudge p { margin: 0; flex: 1 1 280px; min-width: 0; }
.core-nudge strong { color: var(--clay-deep); }
/* Home Schooling Core feature card */
.core-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; background: var(--sage-soft); border: 2px solid var(--pine); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.core-card h2 { margin: 6px 0 0; }
.core-card .price { font-size: clamp(2.6rem, 5vw, 3.4rem); }
.core-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (max-width: 760px) { .core-card { grid-template-columns: 1fr; } }
.icon-btn { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { color: #A1301A; border-color: #A1301A; }
.icon-btn svg { width: 20px; height: 20px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #CFC5B1; border-radius: 12px; overflow: hidden; background: var(--paper); }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--sand); color: var(--pine); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sibling-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }
.summary { position: sticky; top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)); background: var(--pine); color: var(--cream); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.summary h3 { color: var(--cream); }
.summary-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #3B6450; padding-bottom: 10px; }
.summary-lines .amt { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-total .price { color: var(--cream); font-size: 2.6rem; }
.summary .muted { color: #C4D3C1; }
.summary .btn-primary { width: 100%; }

/* Signup wizard */
.wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .wizard { grid-template-columns: minmax(0, 1fr); } }
.wizard-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 860px) { .wizard-steps { flex-direction: row; overflow-x: auto; } .wizard-steps li { flex: 0 0 auto; } }
.wizard-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.wizard-steps li span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--sand); font-weight: 700; color: var(--muted); flex-shrink: 0; }
.wizard-steps li[aria-current="step"] { background: var(--paper); color: var(--pine); border: 1px solid var(--line); }
.wizard-steps li[aria-current="step"] span { background: var(--pine); color: #fff; }
.wizard-steps li.done span { background: var(--sage); color: var(--pine); }
.wizard-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); min-width: 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* Legal prose */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 0.93rem; }
@media (max-width: 900px) { .toc { position: static; } }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.25rem; margin-top: 6px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.draft-flag { display: inline-flex; max-width: 100%; gap: 8px; align-items: center; background: var(--clay-soft); color: var(--clay-deep); border: 1px dashed var(--clay); border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--pine); color: var(--cream); border-radius: 26px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.cta-band h2 { color: var(--cream); }
.cta-band p { color: #C9D6C6; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--pine-deep); color: #C9D6C6; font-size: 0.95rem; }
.site-footer a { color: #EAF0E7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.footer-top h2 { font-family: var(--font-body); font-style: normal; font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; color: #F0B79C; margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-word { color: var(--cream); }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 20px; border-top: 1px solid #2E4B3B; }
.footer-trust span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #3B6450; border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; color: #DCE6D8; }
.footer-trust svg { width: 16px; height: 16px; }
.footer-legal { padding-block: 18px 28px; border-top: 1px solid #2E4B3B; font-size: 0.85rem; display: flex; flex-direction: column; gap: 6px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-footer .ph { background: #3A2A20; color: #F3C8B1; border-bottom-color: #F0B79C; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding-top: 0;
}
.cookie-inner { max-width: 1100px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(24, 46, 33, .22); padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.cookie-inner p { max-width: 64ch; font-size: 0.95rem; }
.cookie-inner h2 { font-size: 1.3rem; margin-bottom: 4px; }

/* Utilities */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.hide-sm { }
@media (max-width: 680px) { .hide-sm { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kbd-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Classroom hero ----------
   Default (no JS / reduced motion): a still classroom photo behind the welcome,
   then the desk and blackboard scenes stacked below.
   .is-scroll (added by JS): the stage sticks and scrolling walks the camera
   down the aisle to the blackboard. */
:root { --wood: #6E4A2F; --chalk: #F4F1E8; --board: #1F3A2B; }
.classroom { position: relative; background: var(--pine-deep); color: var(--cream); }
.classroom-stage { position: relative; }
.classroom-media { position: absolute; inset: 0 0 auto 0; height: max(560px, min(88svh, 860px)); overflow: hidden; background: var(--pine-deep); }
.classroom-poster, .classroom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.classroom-canvas { opacity: 0; }
.classroom-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 46, 33, 0.88) 0%, rgba(24, 46, 33, 0.66) 38%, rgba(24, 46, 33, 0.18) 72%, rgba(24, 46, 33, 0.05) 100%),
    linear-gradient(180deg, rgba(24, 46, 33, 0.25) 0%, transparent 30%, transparent 70%, rgba(24, 46, 33, 0.45) 100%);
  transition: opacity .5s ease;
}
.scene { position: relative; }
.scene .container { padding-block: clamp(48px, 7vw, 96px); }
.scene-copy { display: flex; flex-direction: column; gap: 20px; max-width: 600px; min-width: 0; }
.classroom h1, .classroom h2 { color: var(--cream); }
.classroom h1 { max-width: 14ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.classroom .eyebrow { color: #F0B79C; }
.classroom .lead { color: #E3EBE1; }
.classroom .check-list svg { color: var(--sage); }
.scene-note { color: #C9D6C6; }
.scene-door { min-height: max(560px, min(88svh, 860px)); display: flex; align-items: center; }
.scene-door .container { width: 100%; }
.scene-desk { background: var(--pine); }
.scene-desk .lesson-mock { color: var(--ink); }
.scene-board {
  background: linear-gradient(rgba(24, 46, 33, .55), rgba(24, 46, 33, .55)), url("classroom/board.webp") center 25% / cover no-repeat, var(--board);
}

/* Blackboard writing */
.board-copy { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-inline: auto; text-align: center; align-items: center; }
.board-date, .board-lo, .chalk-title, .chalk-list {
  font-family: var(--font-display); font-style: italic; color: var(--chalk);
  text-shadow: 0 0 1px rgba(244, 241, 232, .55), 0 0 10px rgba(244, 241, 232, .12);
}
.board-date { font-size: clamp(1.05rem, 1.6vw, 1.3rem); align-self: flex-end; opacity: .9; }
.board-lo { font-size: clamp(1.15rem, 1.9vw, 1.5rem); text-decoration: underline; text-decoration-color: rgba(240, 183, 156, .8); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.board-lo abbr { text-decoration: none; color: #F0B79C; font-weight: 700; }
.chalk-title { font-weight: 700; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; }
.chalk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.4; }
.chalk-list li::before { content: "✓"; color: var(--sage); margin-right: 10px; font-style: normal; }
.board-copy .cluster { justify-content: center; margin-top: 8px; }

/* Ruler progress + scroll cue (scroll mode only) */
.classroom-ruler, .scroll-cue { display: none; }
.classroom-ruler {
  position: absolute; left: var(--gutter-l); bottom: 20px; width: min(240px, 40vw); height: 22px; border-radius: 3px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(42, 42, 39, .55) 0 1px, transparent 1px 8px) top left / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(42, 42, 39, .7) 0 1px, transparent 1px 40px) top left / 100% 12px no-repeat,
    #E9D3A8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.ruler-fill { position: absolute; inset: auto auto 0 0; height: 5px; width: 0; background: var(--clay); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0;
  align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--cream);
  background: rgba(24, 46, 33, .55); padding: 6px 14px; border-radius: 999px; transition: opacity .3s ease; white-space: nowrap;
}
.scroll-cue svg { width: 16px; height: 16px; }

.classroom.is-scroll .classroom-track { height: 420vh; }
.classroom.is-scroll .classroom-stage {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px)); min-height: 520px; overflow: hidden;
}
.classroom.is-scroll .classroom-media { inset: 0; height: auto; }
.classroom.is-scroll .classroom-canvas.is-ready { opacity: 1; }
.classroom.is-scroll .scene {
  position: absolute; inset: 0; display: flex; align-items: center; background: none;
  opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.classroom.is-scroll .scene .container { width: 100%; padding-block: 24px 64px; }
.classroom.is-scroll .scene.is-active { opacity: 1; transform: none; pointer-events: auto; }
.classroom.is-scroll .scene-board { background: none; }
.classroom.is-scroll .scene-board .board-copy {
  position: absolute; left: var(--bx, 10%); top: var(--by, 8%); width: var(--bw, 80%); height: var(--bh, 50%);
  max-width: none; margin: 0; padding: clamp(12px, 2.4cqw, 28px); justify-content: center; gap: clamp(4px, 1.1cqw, 12px);
  container-type: inline-size;
}
.classroom.is-scroll .board-date { position: absolute; top: 10px; right: 16px; font-size: clamp(.85rem, 2.1cqw, 1.2rem); }
.classroom.is-scroll .board-lo { font-size: clamp(.95rem, 2.6cqw, 1.45rem); }
.classroom.is-scroll .chalk-title { font-size: clamp(1.7rem, 6.4cqw, 3.6rem); }
.classroom.is-scroll .chalk-list { font-size: clamp(.95rem, 2.5cqw, 1.4rem); gap: 0; line-height: 1.35; }
.classroom.is-scroll .board-copy .btn-lg { min-height: 48px; padding: 10px 20px; font-size: 1rem; }
.classroom.is-scroll .classroom-ruler { display: block; }
.classroom.is-scroll .scroll-cue { display: inline-flex; }
.classroom.is-scroll[data-scene="1"] .classroom-shade { opacity: .9; }
.classroom.is-scroll[data-scene="2"] .classroom-shade { opacity: .12; }
.classroom.is-scroll:not([data-scene="0"]) .scroll-cue { opacity: 0; }
@media (max-width: 900px) {
  .classroom.is-scroll .scene-desk .lesson-mock { display: none; }
  .classroom.is-scroll .classroom-track { height: 340vh; }
  .classroom-shade { background: linear-gradient(180deg, rgba(24, 46, 33, 0.55) 0%, rgba(24, 46, 33, 0.78) 45%, rgba(24, 46, 33, 0.88) 100%); }
  .classroom.is-scroll[data-scene="2"] .classroom-shade { opacity: .15; }
}
@media (max-width: 520px) {
  .classroom.is-scroll .board-date { display: none; }
  .classroom.is-scroll .board-copy .btn-lg { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
  .classroom .lead { font-size: 1.05rem; }
  .classroom.is-scroll .scene .container { padding-block: 16px 60px; }
  .chalk-list { font-size: 1.08rem; }
}

/* ---------- Classroom details used across the site ---------- */
/* Pinned index cards (noticeboard) */
.pinboard { padding-top: 10px; }
.pinboard .card {
  position: relative; transform: rotate(var(--tilt, 0deg)); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, transparent 0, transparent 46px, rgba(184, 87, 47, .35) 46px, rgba(184, 87, 47, .35) 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0, transparent 27px, var(--rule) 27px, var(--rule) 28px);
}
.pinboard .card:nth-child(4n+1) { --tilt: -1.3deg; }
.pinboard .card:nth-child(4n+2) { --tilt: 0.9deg; }
.pinboard .card:nth-child(4n+3) { --tilt: -0.6deg; }
.pinboard .card:nth-child(4n+4) { --tilt: 1.2deg; }
.pinboard .card::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #E7A07D 0, var(--clay) 48%, var(--clay-deep) 100%);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .25);
}
.pinboard .card:hover, .pinboard .card:focus-within { transform: rotate(0deg) translateY(-3px); box-shadow: 0 14px 34px rgba(35, 64, 47, .14); }

/* Chalkboards: a little chalk dust on every pine panel, and a wooden frame on small boards */
.band-pine, .cta-band, .chalk {
  background-color: var(--pine);
  background-image:
    radial-gradient(ellipse 60% 45% at 18% 28%, rgba(244, 241, 232, .06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 72%, rgba(244, 241, 232, .05), transparent 70%),
    radial-gradient(ellipse 35% 25% at 62% 12%, rgba(244, 241, 232, .04), transparent 70%);
}
.chalk { position: relative; border: 10px solid var(--wood); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 10px 28px rgba(35, 64, 47, .18); padding-bottom: clamp(34px, 4vw, 46px); }
.chalk::after {
  content: ""; position: absolute; left: 18%; bottom: 8px; width: 38px; height: 7px; border-radius: 3px; background: var(--chalk);
  box-shadow: 52px 0 0 -1px #F0B79C, 104px 1px 0 -1px #C9D9C6; opacity: .9;
}
.chalk .hand { text-shadow: 0 0 1px rgba(244, 241, 232, .5); }

@media (prefers-reduced-motion: reduce) {
  .pinboard .card, .pinboard .card:hover { transform: rotate(var(--tilt, 0deg)); }
}
@media (max-width: 600px) {
  .classroom.is-scroll .scroll-cue { left: auto; right: var(--gutter-r); transform: none; }
  .classroom-ruler { width: 34vw; }
}

.badge { max-width: 100%; }
.key-facts .badge, .badge.wrap { white-space: normal; }

/* ---------- The technology: graph-paper band ---------- */
.band-tech {
  background-color: var(--pine-deep); color: #DCE6D8;
  background-image:
    linear-gradient(rgba(244, 241, 232, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, .055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.band-tech h2, .band-tech h3 { color: var(--cream); }
.band-tech .lead { color: #C9D6C6; }
.band-tech .eyebrow { color: #F0B79C; }
.tech-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(32px, 4vw, 52px); }
.tech-head .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .tech-head { grid-template-columns: minmax(0, 1fr); } }

.console { margin: 0; background: #0E1E15; border: 1px solid #2E4B3B; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); min-width: 0; }
.console-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #2E4B3B; font-size: .8rem; font-weight: 600; color: #C9D6C6; }
.console-bar .live { display: inline-flex; align-items: center; gap: 8px; }
.console-bar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7DD38A; box-shadow: 0 0 0 0 rgba(125, 211, 138, .6); animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(125, 211, 138, .55); } 100% { box-shadow: 0 0 0 9px rgba(125, 211, 138, 0); } }
.console ol { list-style: none; margin: 0; padding: 14px; display: grid; gap: 8px; font-family: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.45; color: #CFE0CC; }
.console li { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.console time { color: #7FA37C; }
.console b { color: #F0B79C; font-weight: 700; }
.console .ok, .console .flag { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 1px 7px; border-radius: 999px; }
.console .ok { color: #9FD7A6; background: rgba(125, 211, 138, .12); }
.console .flag { color: #F3C8B1; background: rgba(184, 87, 47, .25); }
.console figcaption { padding: 0 14px 12px; font-size: .75rem; color: #8FA88C; }
@media (max-width: 520px) { .console li { grid-template-columns: minmax(0, 1fr) auto; } .console time { display: none; } }

.pipeline { list-style: none; margin: 0 0 clamp(28px, 3vw, 40px); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 62px; height: 2px; background: linear-gradient(90deg, var(--sage), var(--clay), var(--sage)); opacity: .55; }
.pipeline::after { content: ""; position: absolute; top: 58px; left: 4%; width: 10px; height: 10px; border-radius: 50%; background: #F0B79C; box-shadow: 0 0 14px #F0B79C; animation: pipe-run 5s linear infinite; }
@keyframes pipe-run { from { left: 4%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { left: 95%; opacity: 0; } }
.pipeline li { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; background: rgba(14, 30, 21, .82); border: 1px solid #2E4B3B; border-radius: 16px; padding: 18px; min-width: 0; }
.pipe-step { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9DB89A; font-weight: 700; }
.pipe-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--pine-soft); color: var(--sage); display: inline-flex; align-items: center; justify-content: center; }
.pipe-icon svg { width: 23px; height: 23px; }
.pipeline li:nth-child(3) .pipe-icon { background: var(--clay); color: #fff; }
.pipeline h3 { font-size: 1.3rem; }
.pipeline p { font-size: .93rem; color: #C9D6C6; }
@media (max-width: 980px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipeline::before, .pipeline::after { display: none; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }

.tech-pillars .card { background: rgba(47, 84, 64, .38); border-color: #3B6450; color: #DCE6D8; }
.tech-pillars .icon-badge { background: var(--pine-soft); color: var(--sage); }
.tech-pillars .icon-badge.clay { background: var(--clay); color: #fff; }
.tech-pillars .check-list { font-size: .96rem; }
.tech-pillars .check-list svg { color: var(--sage); }
.tech-pillars strong { color: var(--cream); }
.tech-links { margin-top: 28px; }
.btn-ghost-light { color: var(--cream); background: transparent; border-color: rgba(244, 241, 232, .45); }
.btn-ghost-light:hover { background: rgba(244, 241, 232, .1); color: #fff; }

/* ---------- Ruled paper: text sits on the lines ----------
   Every line of text in a ruled area is exactly one rule (or two for headings) tall,
   and each element is nudged so its baseline lands on the printed line.
   Nudge = half the line box - 2px - the font's baseline factor (Figtree .35em, Fondamento .31em). */
.ruled {
  --rule: 32px;
  background-color: var(--cream);
  background-image: linear-gradient(180deg, transparent calc(var(--rule) - 1px), rgba(130, 160, 128, .42) calc(var(--rule) - 1px));
  background-size: 100% var(--rule);
}
@media (max-width: 640px) { .ruled { --rule: 28px; } }
.page-hero { position: relative; }
.page-hero .container {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding-block: calc(var(--rule) * 2) calc(var(--rule) * 2);
}
/* red margin line, with the writing starting just to its right */
.page-hero .container::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter-l) - 22px); width: 2px; background: rgba(184, 87, 47, .32); }
@media (max-width: 1260px) {
  .page-hero .container { padding-left: calc(var(--gutter-l) + 26px); }
  .page-hero .container::before { left: calc(var(--gutter-l) + 10px); }
}
.page-hero .container > * { margin: 0; position: relative; }
.page-hero .breadcrumb { line-height: var(--rule); top: calc(var(--rule) / 2 - 2px - .35em); margin-bottom: var(--rule); }
.page-hero .eyebrow { display: block; line-height: var(--rule); top: calc(var(--rule) / 2 - 2px - .35em); }
.page-hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.4rem); line-height: calc(var(--rule) * 2); max-width: 22ch;
  top: calc(var(--rule) - 2px - .31em);
}
.page-hero .lead { line-height: var(--rule); top: calc(var(--rule) / 2 - 2px - .35em); margin-top: var(--rule); }
.page-hero .draft-flag {
  margin-top: var(--rule); height: var(--rule); padding: 0 12px; line-height: calc(var(--rule) - 2px);
  top: 0; align-self: flex-start;
}
.page-hero .draft-flag svg { width: 16px; height: 16px; }
/* Phones: the flag wraps instead of overflowing its one-rule-high box; each wrapped line stays one rule tall */
@media (max-width: 640px) {
  .page-hero .draft-flag {
    height: auto; min-height: var(--rule); max-width: 100%; align-items: flex-start;
    padding: 0 10px; overflow-wrap: anywhere;
  }
  .page-hero .draft-flag svg { flex: none; margin-top: calc((var(--rule) - 2px - 16px) / 2); }
}
.page-hero .chips { margin-top: var(--rule); row-gap: calc(var(--rule) * 2 - 40px); }

/* Pinned index cards: red heading line under the title, blue rules under the text */
.pinboard .card {
  --rule: 26px;
  gap: 0; padding: var(--rule) clamp(18px, 2.2vw, 26px) var(--rule);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, transparent calc(var(--rule) * 5 - 2px), rgba(184, 87, 47, .45) calc(var(--rule) * 5 - 2px), rgba(184, 87, 47, .45) calc(var(--rule) * 5), transparent calc(var(--rule) * 5)),
    linear-gradient(var(--paper), var(--paper)),
    linear-gradient(180deg, transparent calc(var(--rule) - 1px), rgba(130, 160, 128, .38) calc(var(--rule) - 1px));
  background-size: 100% 100%, 100% calc(var(--rule) * 5), 100% var(--rule);
  background-position: 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
}
.pinboard .card > * { position: relative; margin: 0; }
.pinboard .card .icon-badge { width: calc(var(--rule) * 2); height: calc(var(--rule) * 2); margin-bottom: var(--rule); }
.pinboard .card h3 { font-size: 1.35rem; line-height: var(--rule); top: calc(var(--rule) / 2 - 2px - .31em); margin-top: 0; }
.pinboard .card p { line-height: var(--rule); top: calc(var(--rule) / 2 - 2px - .35em); font-size: 1rem; }

/* Tutor portraits */
.arch.has-photo { padding: 0; background: var(--sand); box-shadow: 0 10px 24px rgba(35, 64, 47, .16); }
.arch.has-photo::after { display: none; }
.arch.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 24%; }
.arch-lg { width: 168px; height: 212px; border-radius: 84px 84px 16px 16px; }
@media (max-width: 600px) { .arch-lg { width: 132px; height: 166px; border-radius: 66px 66px 14px 14px; } }
.arch-ai {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1; white-space: nowrap;
  font-family: var(--font-body); font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(24, 46, 33, .82); padding: 3px 8px; border-radius: 999px;
}

/* ---------- App screenshots ---------- */
.device-figure { margin: 0; }
.device-stage { position: relative; padding: 0 6% 11% 18%; }
.device-stage img { display: block; height: auto; }
.ds-pc { width: 100%; filter: drop-shadow(0 22px 40px rgba(35, 64, 47, .18)); }
.ds-tablet { position: absolute; left: 0; bottom: 0; width: 46%; z-index: 2; filter: drop-shadow(0 20px 36px rgba(24, 46, 33, .28)); }
.ds-phone { position: absolute; bottom: 0; width: 15%; z-index: 3; filter: drop-shadow(0 18px 30px rgba(24, 46, 33, .28)); }
.ds-right { right: 0; }
.ds-back { right: 12%; bottom: 4%; width: 14%; z-index: 2; }
.device-figure figcaption { margin-top: 18px; text-align: center; }
@media (max-width: 640px) {
  .device-stage { padding: 0 0 34% 8%; }
  .ds-tablet { width: 58%; }
  .ds-phone { width: 22%; }
  .ds-back { right: 17%; width: 21%; }
}
.device-list { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.device-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.device-list .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.device-list .icon-badge svg { width: 22px; height: 22px; }
.device-list strong { display: block; line-height: 1.3; margin-bottom: 2px; }
.device-list .d { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }
@media (max-width: 860px) { .device-list { grid-template-columns: minmax(0, 1fr); } }
.tablet-figure { margin-top: clamp(36px, 5vw, 60px); }
.tablet-pair { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: end; max-width: 1040px; margin-inline: auto; }
.tablet-pair img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(24, 46, 33, .22)); }
.phone-shot { display: block; width: min(300px, 78%); height: auto; margin-inline: auto; filter: drop-shadow(0 18px 30px rgba(24, 46, 33, .24)); }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 28px); align-items: start; max-width: 560px; margin-inline: auto; }
.phone-pair img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(24, 46, 33, .22)); }
.phone-pair img:last-child { margin-top: 12%; }
.browser-shot { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 36px rgba(35, 64, 47, .16)); }

.screens { margin-top: clamp(48px, 7vw, 88px); }
.screens-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.screens-head h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.screens-nav { display: flex; gap: 8px; }
.screens-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--pine);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, opacity .15s;
}
.screens-nav button:hover { background: var(--sage-soft); }
.screens-nav button:disabled { opacity: .35; cursor: default; background: var(--paper); }
.screens-nav svg { width: 20px; height: 20px; }
.screens-nav [data-dir="-1"] svg { transform: scaleX(-1); }
.screens-track {
  list-style: none; margin: 0; padding: 6px 4px 28px; display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(176px, 21vw, 232px); gap: clamp(18px, 2.6vw, 30px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.screens-track:focus-visible { outline-offset: 0; }
.screens-track li { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.screens-track img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 20px rgba(24, 46, 33, .2)); }
.screens-track .who { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-deep); }
.screens-track strong { display: block; font-size: 1rem; line-height: 1.3; }
.screens-track .cap { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--muted); }

/* Five promises to parents */
.promise-list { list-style: none; margin: 0; padding: 0; counter-reset: promise; display: flex; flex-direction: column; gap: 24px; }
.promise-list li { counter-increment: promise; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: start; }
.promise-list li::before {
  content: counter(promise); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--clay-soft); color: var(--clay-deep);
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.7rem; line-height: 1;
}
.promise-list h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.promise-list p { margin: 0; color: var(--muted); }

/* Phone lock screen with Tallgrove notifications: drawn to a real phone's proportions (about 71.5 x 147 mm) */
.lockscreen-figure { margin: 0; display: flex; justify-content: center; min-width: 0; }
@media (min-width: 901px) { .lockscreen-figure { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.phone {
  position: relative; width: min(100%, 322px); aspect-ratio: 71.5 / 147; padding: 3.3%;
  border-radius: 17% / 8.3%; container-type: inline-size;
  background: linear-gradient(150deg, #4a4d52 0%, #1b1c1f 22%, #121315 60%, #34363b 100%);
  box-shadow: inset 0 0 0 1.5px #6b6e74, inset 0 0 0 4px #0a0a0b, 0 34px 60px rgba(24, 46, 33, .30), 0 10px 20px rgba(24, 46, 33, .18);
}
.phone .pb { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2b2d31, #5d6066); }
.phone .pb-1 { left: -2px; top: 17%; height: 4.4%; }
.phone .pb-2 { left: -2px; top: 24.5%; height: 8.6%; }
.phone .pb-3 { left: -2px; top: 35%; height: 8.6%; }
.phone .pb-4 { right: -2px; top: 27%; height: 13%; background: linear-gradient(270deg, #2b2d31, #5d6066); }
.lockscreen {
  position: relative; isolation: isolate; overflow: hidden; height: 100%; display: flex; flex-direction: column;
  border-radius: 14.6% / 7.1%; color: #fff; background: #10201A;
  font-family: -apple-system, 'SF Pro Display', 'Figtree', system-ui, sans-serif; transition: filter 1.4s ease;
}
.lockscreen::before {
  content: ""; position: absolute; inset: -24px; z-index: -2;
  background: url(classroom/poster.webp) center 30% / cover; filter: blur(14px) saturate(.9) brightness(.62);
}
.lockscreen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .28)); }
.ls-bar { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 13cqw; padding: 3.6cqw 7cqw 0; }
.ls-island { position: absolute; left: 50%; top: 3.3cqw; width: 31%; height: 9.4cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.ls-icons { display: inline-flex; align-items: center; gap: 1.6cqw; }
.ls-icons svg { display: block; height: 3.5cqw; width: auto; fill: #fff; }
.ls-lock { display: block; align-self: center; width: 4.4cqw; height: auto; margin-top: 3cqw; fill: #fff; opacity: .92; }
.ls-date { text-align: center; font-weight: 600; font-size: 16px; font-size: 5.5cqw; margin-top: 1.2cqw; opacity: .95; }
.ls-time { text-align: center; font-weight: 700; font-size: 72px; font-size: 24.5cqw; line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px rgba(0, 0, 0, .2); }
.notif-list { list-style: none; margin: 7cqw 0 0; padding: 0 3.2cqw; display: flex; flex-direction: column; gap: 2.2cqw; flex: 1; min-height: 0; overflow: hidden; }
.notif {
  display: grid; grid-template-columns: 10.5cqw minmax(0, 1fr); gap: 3cqw; padding: 3.2cqw 3.8cqw 3.4cqw; border-radius: 6.6cqw;
  background: rgba(250, 246, 238, .82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: #1d1d1b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.notif-icon { width: 10.5cqw; height: 10.5cqw; border-radius: 2.6cqw; background: var(--cream); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); display: flex; align-items: center; justify-content: center; }
.notif-icon svg { width: 72%; height: 72%; }
.notif-top { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; font-size: 11px; font-size: 3.4cqw; color: #5f5d57; }
.notif-top b { color: #1f1f1d; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 10px; font-size: 3.2cqw; }
.notif-title { margin: .3cqw 0; font-weight: 700; font-size: 13px; font-size: 4.1cqw; line-height: 1.28; }
.notif p { margin: 0; font-size: 12px; font-size: 3.8cqw; line-height: 1.34; }
.ls-actions { display: flex; justify-content: space-between; padding: 0 10.5cqw; margin: 2cqw 0 4.4cqw; }
.ls-actions span { width: 14cqw; height: 14cqw; border-radius: 50%; background: rgba(20, 20, 20, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; }
.ls-actions svg { width: 6cqw; height: 6cqw; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ls-home { display: block; align-self: center; width: 36%; height: 1.5cqw; min-height: 4px; border-radius: 99px; background: #fff; margin-bottom: 2.4cqw; opacity: .92; }
.phone.is-asleep .lockscreen { filter: brightness(.5) saturate(.8); }
.phone.is-buzz { animation: phone-buzz .7s ease-in-out; }
.notif.is-in { animation: notif-in 1s cubic-bezier(.22, .8, .3, 1.04) both; }
.phone.is-clearing .notif { transition: opacity .95s ease, transform .95s ease; opacity: 0; transform: translateY(12px) scale(.97); }
@keyframes notif-in { 0% { opacity: 0; transform: translateY(-22px) scale(.9); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes phone-buzz {
  0%, 100% { transform: none; } 15% { transform: translateX(-1.2px) rotate(-.35deg); } 30% { transform: translateX(1.2px) rotate(.35deg); }
  45% { transform: translateX(-1px) rotate(-.25deg); } 60% { transform: translateX(1px) rotate(.2deg); } 78% { transform: translateX(-.5px); }
}

/* Safeguarding and child protection policy page */
.policy-meta { margin: 0; font-size: .95rem; color: var(--muted); }
.policy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.policy-actions .btn svg { width: 18px; height: 18px; margin-right: 8px; }
.legal .toc { max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.toc-policy { list-style: none; padding-left: 0 !important; }
.policy { max-width: 78ch; gap: 0; }
.policy .pol { display: flex; flex-direction: column; gap: 14px; }
.policy .pol + .pol { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.policy h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.55rem, 2.6vw, 1.95rem); margin: 0; }
.policy h2 .n { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-deep); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.policy h3 { font-family: var(--font-body); font-style: normal; font-size: 1.08rem; font-weight: 700; color: var(--pine); margin: 8px 0 0; line-height: 1.35; }
.policy p, .policy ul { margin: 0; }
.policy ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 7px; }
.policy li::marker { color: var(--clay); }
.policy .table-wrap table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .94rem; line-height: 1.45; }
.policy .table-wrap th { background: var(--sand); color: var(--pine); text-align: left; padding: 11px 14px; font-size: .9rem; }
.policy .table-wrap td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.policy .callout.danger { background: var(--clay-soft); border: 1px solid #EBC7B3; border-radius: 14px; padding: 14px 16px; }
.policy .script { background: var(--sage-soft); border-left: 5px solid var(--sage-ink); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.policy .glossary { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 20px; margin: 0; }
.policy .glossary dt { font-weight: 700; color: var(--pine); }
.policy .glossary dd { margin: 0; }
.policy .pol { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 560px) { .policy .glossary { grid-template-columns: minmax(0, 1fr); gap: 2px; } .policy .glossary dd { margin-bottom: 10px; } }

/* Promo codes */
.promo { border-top: 1px solid #3B6450; padding-top: 12px; }
.promo summary { cursor: pointer; font-weight: 700; font-size: .97rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; }
.promo summary::-webkit-details-marker { display: none; }
.promo summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.promo[open] summary::after { content: "\2212"; }
.promo-row { display: flex; gap: 8px; margin-top: 10px; }
.promo-row input { flex: 1; min-width: 0; min-height: 48px; border-radius: 12px; border: 1.5px solid #CFC5B1; padding: 0 14px; font: inherit; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--ink); }
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: #8A867C; }
.promo-row input:focus { outline: 3px solid rgba(184, 87, 47, .35); border-color: var(--clay); }
.promo-row .btn { min-height: 48px; flex-shrink: 0; }
.promo-msg { margin: 8px 0 0; }
.summary .promo-msg { color: #C4D3C1; }
.summary .promo-msg strong { color: var(--cream); letter-spacing: .04em; }
.summary .promo-msg.is-error { color: #F0B79C; }
.summary .promo-row .btn { background: var(--cream); color: var(--pine); }
.summary .promo-row .btn:hover { background: #fff; color: var(--pine-deep); }
.promo-field .promo-msg.is-error { color: #A1301A; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Things that move (all switched off for reduced motion) ---------- */
[hidden] { display: none !important; }

/* Headings written by hand */
.hw-w { white-space: nowrap; }
.hw-l { display: inline-block; }
.hw-wipe-in { display: block; }
.flourish.has-ink { background-image: none; position: relative; }
.hw-flourish { position: absolute; left: 0; bottom: 0; width: 100%; height: .32em; overflow: visible; pointer-events: none; }
.hw-flourish path { fill: none; stroke: var(--clay); stroke-width: 3.2; stroke-linecap: round; }
@keyframes hw-write {
  from { opacity: .35; clip-path: polygon(-0.8em -0.45em, -0.8em -0.45em, -0.8em calc(100% + 0.45em), -0.8em calc(100% + 0.45em)); }
  60% { opacity: 1; }
  to { opacity: 1; clip-path: polygon(-0.8em -0.45em, calc(100% + 0.9em) -0.45em, calc(100% + 0.55em) calc(100% + 0.45em), -0.8em calc(100% + 0.45em)); }
}
@keyframes hw-dash { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hw-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  [data-hw] .hw-l, .hw-wipe .hw-wipe-in { clip-path: polygon(-0.8em -0.45em, -0.8em -0.45em, -0.8em calc(100% + 0.45em), -0.8em calc(100% + 0.45em)); }
  [data-hw].hw-go .hw-l { animation: hw-write var(--hw-t, 420ms) cubic-bezier(.33, 0, .25, 1) var(--hw-d, 0ms) both; }
  .hw-wipe.hw-go .hw-wipe-in { animation: hw-write 1.25s cubic-bezier(.33, 0, .25, 1) both; }
  [data-hw] .hw-fade { opacity: 0; }
  [data-hw].hw-go .hw-fade { animation: hw-fade .9s ease var(--hw-d, 0ms) both; }
  [data-hw] .hw-flourish path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  [data-hw].hw-go .hw-flourish path { animation: hw-dash 1.5s cubic-bezier(.45, 0, .2, 1) var(--hw-d, 0ms) both; }
  [data-hw].hw-done .hw-l, .hw-wipe.hw-done .hw-wipe-in { animation: none; clip-path: none; }
  [data-hw].hw-done .hw-flourish path { animation: none; stroke-dashoffset: 0; }
}
@media print { [data-hw] .hw-l, .hw-wipe .hw-wipe-in, [data-hw] .hw-fade { clip-path: none !important; animation: none !important; opacity: 1 !important; } [data-hw] .hw-flourish path { stroke-dashoffset: 0 !important; } }

/* App screens carousel */
.screens-track.is-auto { scroll-snap-type: none; }
.screens-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
.screens-track .shot { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; border-radius: 22px; cursor: zoom-in; }
.screens-track .shot img { transition: transform .45s ease; }
.screens-track .shot:hover img, .screens-track .shot:focus-visible img { transform: translateY(-5px); }
.screens.is-stopped .screens-play { background: var(--clay-soft); color: var(--clay-deep); border-color: #EBC7B3; }
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(13, 26, 19, .9); padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}
.lightbox.lb-tall { align-items: flex-start; }
.lb-inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2.4vw, 28px); width: min(100%, 780px); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lb-figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100svh - 200px); filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .45)); }
.lb-figure figcaption { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; color: var(--cream); max-width: 46ch; }
.lb-who { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F0B79C; }
.lb-title { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.2; }
.lb-cap { color: #D5E0D2; font-size: .95rem; }
.lb-count { color: #A9BBA7; font-size: .82rem; font-variant-numeric: tabular-nums; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(250, 246, 238, .35); background: rgba(250, 246, 238, .1);
  color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s;
}
.lb-btn:hover { background: rgba(250, 246, 238, .24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { position: absolute; top: 0; right: 0; z-index: 2; }
@media (max-width: 600px) {
  .lb-inner { grid-template-columns: 1fr 1fr; padding-top: 56px; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: end; }
  .lb-next { grid-row: 2; justify-self: start; }
  .lb-figure img { max-height: calc(100vh - 280px); max-height: calc(100svh - 280px); }
}

/* Website price note */
.price-note {
  display: flex; gap: 10px; align-items: flex-start; max-width: 820px; margin: 0;
  font-size: .93rem; line-height: 1.5; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--clay); border-radius: 12px; padding: 12px 16px;
}
.price-note svg { flex-shrink: 0; margin-top: 3px; color: var(--clay-deep); }
.price-note strong { color: var(--ink); }
.summary .price-note { background: rgba(250, 246, 238, .06); border-color: #3B6450; border-left-color: #F0B79C; color: #C4D3C1; font-size: .86rem; }
.summary .price-note strong { color: var(--cream); }
.summary .price-note svg { color: #F0B79C; }

/* Tallgrove at a glance */
.glance { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.glance > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); min-width: 0; }
.glance > div:nth-child(-n+2) { border-top: 0; }
.glance > div:nth-child(odd) { border-right: 1px solid var(--line); }
.glance dt { font-weight: 700; color: var(--pine); }
.glance dd { margin: 0; color: var(--muted); }
@media (max-width: 820px) {
  .glance { grid-template-columns: minmax(0, 1fr); }
  .glance > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .glance > div:nth-child(2) { border-top: 1px solid var(--line); }
  .glance > div:nth-child(odd) { border-right: 0; }
}
