/* ==========================================================================
   Jessica Brunson Teaching — site styles
   1. Base           4. Patterns (stripes, scallops, squiggles)
   2. Typography     5. Components (buttons, cards, stickers, divider…)
   3. Layout         6. Site chrome (header, footer)   7. Page sections
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Paper grain — a faint print texture over everything, after the board's
   risograph / painted-swatch feel. Purely decorative. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
svg { overflow: visible; color: var(--ink); }  /* doodle outlines use currentColor */
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sunshine); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* 2. Typography ---------------------------------------------------------- */

h1, h2, h3, h4, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 560;
  color: var(--anchor);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1, .h1 { font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.025em; }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); font-weight: 620; letter-spacing: -0.01em; }

/* Italic emphasis inside headings: the "WONK" italic gives a hand-set,
   vintage storybook feel. Tomato on light backgrounds only. */
h1 em, h2 em, .h1 em, .h2 em, .display em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--tomato);
}

p { margin: 0 0 var(--space-4); text-wrap: pretty; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 34em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--anchor);
  margin: 0 0 var(--space-3);
}

/* Section label — the "tab" that names each section at a glance */
.label {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .45em 1em .45em .85em;
  margin: 0 0 var(--space-4);
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker-sm);
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.label::before { content: "✱"; color: var(--tomato); font-size: 1.15em; letter-spacing: 0; }

.script {
  font-family: var(--font-script);
  font-size: var(--script-size);
  font-weight: 600;
  line-height: 1;
  color: var(--tomato);
  display: inline-block;
  transform: rotate(-3deg);
  margin: 0 0 var(--space-3);
}

.muted { color: var(--ink-muted); }
.small { font-size: var(--step--1); }

.text-link {
  color: var(--tomato);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--tomato) 40%, transparent);
  transition: text-decoration-color var(--dur) var(--ease);
}
.text-link:hover { text-decoration-color: var(--tomato); }

/* Highlighter swipe for a single word in a headline (board: "scattered" chip) */
.marker {
  background: linear-gradient(transparent 58%, var(--sunshine) 58% 92%, transparent 92%);
  padding: 0 .1em;
  margin: 0 -.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 3. Layout -------------------------------------------------------------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: calc(var(--section-pad) * .6); }

/* On laptops and desktops every section fills one screen (below the sticky
   header), so each scroll lands on exactly one section. Content is centered.
   Capped so very tall monitors don't get huge empty bands. */
@media (min-width: 861px) {
  main > :is(.section, .booking) {
    min-height: min(calc(100svh - var(--header-h)), 900px);
    padding-block: clamp(2.5rem, 7vh, 5.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.section-head { max-width: 44rem; margin-bottom: var(--space-7); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p:last-child { margin-bottom: 0; }
.section-head .lede { margin-inline: inherit; }

/* Color bands — whole sections in one brand color. A crisp ink rule marks
   where one section ends and the next begins. */
[class*="band--"] { border-top: var(--line); }
.band--anchor { background: var(--anchor); color: var(--paper); }
.band--anchor :is(h1, h2, h3, .eyebrow) { color: var(--paper); }
.band--anchor :is(h2 em, .script) { color: var(--sunshine); }
.band--olive { background: var(--olive); }
.band--pink { background: var(--pink); }
.band--olive :is(h1, h2, h3) { color: var(--ink); }
.band--paper { background: var(--paper); }
.band--manila { background: var(--manila); }
.band--sky { background: var(--sky); }
.band--sunshine { background: var(--sunshine); }
.awning--top[class*="band--"] { border-top: 0; }

/* Rounded inset panel (board: yellow services panel) */
.panel {
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  position: relative;
}
.panel--sunshine { background: var(--sunshine); }
.panel--sky { background: var(--sky); }

.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* 4. Patterns ------------------------------------------------------------ */

/* Cabana stripes (board: blue/cream awning, sunshine stripe band) */
.stripes {
  --stripe-a: var(--sky);
  --stripe-b: var(--paper);
  background: repeating-linear-gradient(90deg,
    var(--stripe-a) 0 var(--stripe),
    var(--stripe-b) var(--stripe) calc(var(--stripe) * 2));
}
.stripes--sunshine { --stripe-a: var(--sunshine); }

/* Gingham (board: classroom checks) */
.gingham {
  --g: color-mix(in srgb, var(--sky) 60%, transparent);
  background:
    linear-gradient(90deg, var(--g) 50%, transparent 0) 0 0 / 28px 28px,
    linear-gradient(var(--g) 50%, transparent 0) 0 0 / 28px 28px,
    var(--paper);
}

/* Scalloped frame — round bumps on every edge (board: wavy photo frames).
   The element needs padding equal to --scallop; children fill the whole box. */
.scallop {
  --r: var(--scallop);
  position: relative;
  padding: var(--r);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(var(--r), #000 97%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(var(--r), #000 97%, #0000) 0 0 / calc(2 * var(--r)) calc(2 * var(--r)) round;
}

/* Awning edge — half-circles hanging off the bottom of a band */
.awning { position: relative; }
.awning::after {
  --r: 18px;
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: var(--r);
  background: radial-gradient(circle at 50% 0, var(--awning-color, var(--anchor)) calc(var(--r) - .5px), transparent var(--r)) 0 0 / calc(var(--r) * 2) var(--r) repeat-x;
  z-index: 2;
}
.awning--top::after { top: auto; bottom: 100%; transform: scaleY(-1); }

/* Squiggle dividers */
.squiggle {
  display: block;
  width: 178px;
  height: 22px;
  color: var(--tomato);
}
.squiggle--wave { width: 180px; height: 20px; }
.squiggle--center { margin-inline: auto; }
.squiggle--sky { color: var(--sky); }
.squiggle--anchor { color: var(--anchor-deep); }

/* Doodles — the illustrated school-supply set in assets/img/doodles.svg */
.doodle { width: 64px; height: 64px; }
.doodle--sm { width: 40px; height: 40px; }
.doodle--lg { width: 96px; height: 96px; }
.doodle-inline {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  margin-inline: .05em;
}
.float { animation: float 6s ease-in-out infinite; }
.float--slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) + 4deg)); }
}

/* 5. Components ---------------------------------------------------------- */

/* Buttons — pills with a flat sticker shadow that "lifts" on hover */
.btn {
  --btn-bg: var(--tomato);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .8em 1.6em;
  border: var(--line);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: var(--shadow-sticker-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sticker); }
.btn:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
.btn--primary:hover { --btn-bg: var(--tomato-deep); }
.btn--ghost { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--sunshine); }
.btn--paper { --btn-bg: var(--paper); --btn-fg: var(--anchor); }
.btn--sm { min-height: 40px; padding: .6em 1.15em; font-size: var(--step--2); }
.btn--lg { min-height: 54px; padding: .95em 1.7em; font-size: .95rem; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Card — paper surface, ink outline, sticker lift on hover */
.card {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: var(--space-2); }
.card p { margin-bottom: var(--space-3); }
.card__icon { width: 72px; height: 72px; margin-bottom: var(--space-3); }
.card__foot { margin-top: auto; padding-top: var(--space-3); }

/* Tag pills */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .85em;
  border-radius: var(--radius-pill);
  background: var(--manila);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
}
.tag--sky { background: var(--sky); }
.tag--sunshine { background: var(--sunshine); }
.tag--olive { background: var(--olive); }

/* Rotating sticker badge (board: "members only" circle sticker) */
.sticker-badge {
  width: clamp(104px, 9vw + 40px, 140px);
  aspect-ratio: 1;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.sticker-badge__disc { fill: var(--anchor); stroke: var(--ink); stroke-width: 1.5; }
.sticker-badge__disc--sunshine { fill: var(--sunshine); }
.sticker-badge__disc--sunshine ~ .sticker-badge__ring .sticker-badge__text { fill: var(--ink); }
.sticker-badge__disc--olive { fill: var(--olive); }
/* Small circle behind the center doodle so its ink outline reads on any disc */
.sticker-badge__center { fill: var(--sunshine); stroke: var(--ink); stroke-width: 1.5; }
.sticker-badge__center--paper { fill: var(--paper); }
.sticker-badge__text {
  fill: var(--paper);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.sticker-badge__ring {
  transform-origin: 60px 60px;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Oval sticker (board: "LDM" brandmark sticker) */
.oval-sticker {
  display: inline-grid;
  place-items: center;
  width: 2.6em;
  height: 3.2em;
  border-radius: 50%;
  background: var(--anchor);
  color: var(--paper);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 3px var(--anchor), inset 0 0 0 4.5px var(--paper), var(--shadow-sticker-sm);
  border: var(--line);
  transform: rotate(-8deg);
}

/* Divider line — a plain navy band that closes the hero */
.divider {
  display: block;
  height: var(--divider-h);
  margin: 0;
  border: 0;
  background: var(--anchor);
}

/* Colored checklist rows (board: "by the end of this course you will…") */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: .85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-weight: 600;
  line-height: 1.45;
}
.checklist li::before {
  content: "";
  width: 1.3rem;
  height: 1.3rem;
  margin-top: .1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13c2 1.5 3.5 3.5 5 6 3-7 6.5-11 11-14' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13c2 1.5 3.5 3.5 5 6 3-7 6.5-11 11-14' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checklist .is-sky { background: var(--sky); }
.checklist .is-sunshine { background: var(--sunshine); }
.checklist .is-olive { background: var(--olive); }
.checklist .is-anchor { background: var(--anchor); color: var(--paper); }

/* Dashed callout (board: "before you scroll any further" box) */
.callout {
  border: var(--line-dashed);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem);
  text-align: center;
  background: var(--paper);
  position: relative;
}
.callout .eyebrow {
  background: var(--sky);
  color: var(--ink);
  padding: .35em .9em;
  border-radius: var(--radius-sm);
}

/* Quote card */
.quote {
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: .6;
  height: 2rem;
  color: var(--tomato);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
}
.quote figcaption { margin-top: auto; font-size: var(--step--1); font-weight: 700; }
.quote figcaption span { display: block; font-weight: 500; color: var(--ink-muted); }

/* FAQ accordion — native <details>, no JS needed */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  border: var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: background-color var(--dur) var(--ease);
}
.faq details[open] { background: var(--sunshine); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: 1rem 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  background: var(--paper);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.15rem; }
.faq details > div p:last-child { margin: 0; }

/* Numbered step sticker */
.step-num {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  border: var(--line);
  box-shadow: var(--shadow-sticker-sm);
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-size: 2rem;
  font-weight: 600;
  color: var(--anchor);
  margin-bottom: var(--space-4);
}

/* Photo frame — scalloped, with a placeholder state until real photos arrive */
.photo {
  aspect-ratio: 4 / 5;
  background: var(--sunshine);
}
.photo > img,
.photo > .photo__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo__placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
  color: var(--anchor);
  font-family: var(--font-script);
  font-size: var(--script-size);
  line-height: 1.05;
}

/* Placeholder copy — run the site with ?placeholders to highlight every
   line that still needs Jessica's real details. */
.show-placeholders [data-placeholder] {
  outline: 2px dashed var(--tomato);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--sunshine) 60%, transparent);
}

/* 6. Site chrome --------------------------------------------------------- */

.announce {
  background: var(--sunshine);
  border-bottom: var(--line);
  font-size: var(--step--1);
  font-weight: 600;
  text-align: center;
  padding: .55rem var(--gutter);
}
.announce a { font-weight: 800; color: var(--anchor); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  margin-right: auto;
  font-size: 1rem;
}
.logo .oval-sticker { font-size: 1rem; }
.logo__word { display: grid; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 620;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--anchor);
}
.logo__script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--tomato);
  transform: rotate(-2deg) translate(.6rem, .1rem);
  transform-origin: left;
}
.logo--light .logo__name { color: var(--paper); }
.logo--light .logo__script { color: var(--sunshine); }

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a:not(.btn) {
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  padding: .35rem 0;
  background: linear-gradient(var(--tomato), var(--tomato)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--dur) var(--ease);
}
.nav a:not(.btn):is(:hover, [aria-current="page"]) { background-size: 100% 2px; }

.nav-toggle {
  display: none;
  border: var(--line);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: .5rem 1rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--paper);
    border-bottom: var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); font-size: var(--step-0); }
  .nav .btn { margin-top: var(--space-4); }
}
@media (min-width: 901px) { .nav .btn { display: none; } }

.site-footer {
  background: var(--anchor-deep);
  color: var(--paper);
  padding-top: var(--space-9);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--space-7) var(--space-6);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sunshine);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-col a { text-decoration: none; opacity: .9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-big-links { display: grid; gap: var(--space-2); }
.footer-big-links a {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-size: var(--step-2);
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 40%, transparent);
  padding-bottom: var(--space-2);
  display: flex;
  justify-content: space-between;
  transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.footer-big-links a:hover { color: var(--sunshine); padding-left: .4rem; }
.footer-wordmark {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 700;
  font-size: min(var(--step-5), 16.5vw);
  line-height: .82;
  letter-spacing: -0.04em;
  color: var(--sunshine);
  text-align: center;
  white-space: nowrap;
  margin: var(--space-8) 0 -0.12em;
  user-select: none;
}
.footer-legal {
  position: relative;
  background: var(--sky);
  color: var(--ink);
  border-top: var(--line);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-legal .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: .8rem;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* 7. Page sections ------------------------------------------------------- */

/* Hero — sized to fit one laptop screen with the navy divider line just below */
.hero {
  min-height: min(calc(100svh - var(--header-h) - var(--divider-h)), calc(900px - var(--divider-h)));
  display: grid;
  align-items: center;
  padding-block: clamp(1.25rem, 3.5vh, 3rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__copy .script { margin-bottom: var(--space-2); }
.hero__copy h1 { margin-bottom: var(--space-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0 var(--space-5); }
.hero__actions .btn--primary { --btn-bg: var(--anchor); }
.hero__actions .btn--primary:hover { --btn-bg: var(--anchor-deep); }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  font-weight: 700;
}
.hero__proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__proof li::before {
  content: "";
  width: .7rem; height: .7rem;
  border-radius: 50%;
  background: var(--sky);
}
/* One classroom color per bullet: sky, sunshine, olive */
.hero__proof li:nth-child(2)::before { background: var(--sunshine); }
.hero__proof li:nth-child(3)::before { background: var(--olive); }
/* The art is sized by the screen height so the whole hero is visible */
.hero__art {
  position: relative;
  height: clamp(320px, calc(100svh - var(--header-h) - var(--divider-h) - 4.5rem), 600px);
}
.hero__stripes {
  position: absolute;
  inset: 0 0 8% 8%;
  border-radius: var(--radius-xl);
  border: var(--line);
}
.hero__photo {
  position: absolute;
  right: 6%;
  top: 7%;
  height: 86%;
  aspect-ratio: 4 / 5;
  margin: 0;
  background: transparent;
}
.hero__photo > img {
  background: #fff;
  object-fit: contain;
  object-position: center;
  clip-path: url(#hero-photo-clip);
}
.hero__photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__photo-outline { fill: none; stroke: var(--ink); stroke-width: 1.5px; }
.hero__badge { position: absolute; left: 0; bottom: 2%; z-index: 3; }
.hero__doodle { position: absolute; z-index: 3; }
.hero__doodle--apple { top: -4%; left: 6%; --tilt: -10deg; }
.hero__doodle--pencil { top: 34%; right: -3%; --tilt: 6deg; }
.hero__doodle--sparkle { top: 18%; left: 2%; }

/* Short laptop screens: tighten the hero a little more */
@media (min-width: 861px) and (max-height: 760px) {
  :root { --step-4: clamp(2.2rem, 1.2rem + 2.6vw, 3.3rem); }
  .hero__actions { margin: var(--space-5) 0 var(--space-4); }
  .hero .lede { font-size: 1.1rem; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding-block: var(--space-6) var(--space-8); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { height: auto; aspect-ratio: 1 / 1.02; max-width: 480px; width: 100%; margin-inline: auto; }
}

/* Why Jessica — three reasons, one line each */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.reason {
  display: flex;
  flex-direction: column;
  border: var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 0.9rem + 1.3vw, 2.25rem);
  box-shadow: var(--shadow-sticker);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.reason:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lift); }
.reason__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.reason__head svg { flex: none; width: clamp(48px, 2.2rem + 1.4vw, 62px); height: clamp(48px, 2.2rem + 1.4vw, 62px); }
.reason__head h3 { margin: 0; font-size: var(--step-2); }
.reason__lead { margin: 0 0 var(--space-4); font-size: var(--step-0); font-weight: 700; line-height: 1.45; }
.reason__list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: var(--space-4) 0 0;
  border-top: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent);
  display: grid;
  gap: var(--space-2);
  font-size: var(--step--1);
  line-height: 1.45;
}
.reason__list li { display: grid; grid-template-columns: 1.05rem 1fr; gap: .55rem; align-items: start; }
.reason__list li::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13c2 1.5 3.5 3.5 5 6 3-7 6.5-11 11-14' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13c2 1.5 3.5 3.5 5 6 3-7 6.5-11 11-14' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.reason__link {
  margin-top: auto;
  align-self: flex-start;
  color: inherit;
  font-size: var(--step--1);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.reason__link span { display: inline-block; transition: transform var(--dur) var(--ease); }
.reason__link:hover span { transform: translateX(3px); }
@media (max-width: 860px) {
  .reasons { grid-template-columns: 1fr; gap: var(--space-4); }
  .reason { padding: var(--space-5); }
}
.reason--sky { background: var(--sky); }
.reason--sunshine { background: var(--sunshine); }
.reason--anchor { background: var(--anchor); }
.reason--tomato { background: var(--tomato); }
:is(.reason--anchor, .reason--tomato) { color: var(--paper); }
:is(.reason--anchor, .reason--tomato) h3 { color: var(--paper); }
:is(.reason--anchor, .reason--tomato) svg { color: var(--paper); }  /* light outline reads on the darker tiles */
.reason--olive { background: var(--olive); }

/* Services — compact cards on the Sunshine band */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }
.service { padding: var(--space-5); gap: var(--space-1); }
.service .card__icon { width: 56px; height: 56px; margin-bottom: var(--space-2); }
.service h3 { font-size: 1.3rem; margin-bottom: var(--space-1); }
.service p { font-size: var(--step--1); line-height: 1.5; margin-bottom: var(--space-4); }
.service .tags { margin: auto 0 0; }
.section-foot { text-align: center; margin: var(--space-7) 0 0; font-weight: 600; }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 1rem + 5vw, 5.5rem);
  align-items: center;
}
.about__media { position: relative; max-width: 440px; }
.about__media .photo { margin: 0; background: var(--sky); }
.about__caption {
  position: absolute;
  right: -6%;
  bottom: 7%;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius-pill);
  padding: .35rem 1.1rem .45rem;
  box-shadow: var(--shadow-sticker-sm);
  transform: rotate(-4deg);
  margin: 0;
  z-index: 2;
}
.about__doodle { position: absolute; top: -26px; left: -18px; z-index: 2; --tilt: -12deg; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
  padding: var(--space-5) 0;
  border-block: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--tomato);
}
.stat__label { font-size: var(--step--1); font-weight: 700; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__doodle { left: -4px; }
  .about__caption { right: 0; }
}

/* How it works — on the anchor band */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.step { position: relative; }
.step h3 { margin-bottom: var(--space-2); }
.step p { margin: 0; opacity: .9; }
.step:nth-child(1) .step-num { background: var(--sky); }
.step:nth-child(2) .step-num { background: var(--sunshine); }
.step:nth-child(3) .step-num { background: var(--olive); }
.step-num { color: var(--ink); }
.step__connector {
  position: absolute;
  top: 1.2rem;
  left: 6rem;
  width: calc(100% - 6rem);
  height: 22px;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
}
.step:last-child .step__connector { display: none; }
@media (max-width: 860px) { .step__connector { display: none; } }

/* Testimonials */
.quotes .quote { box-shadow: var(--shadow-sticker-sm); }

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.faq-layout__head { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout__head { position: static; } }

/* Keep the approved FAQ layout, with a smaller footprint. */
#faq.section { padding-block: clamp(28px, 3vw, 40px); }
#faq .faq-layout { max-width: 1040px; gap: clamp(22px, 3vw, 40px); }
#faq .faq-layout__head .label { margin-bottom: 12px; font-size: 11px; }
#faq .faq-layout__head h2 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 12px; }
#faq .faq-layout__head p.muted { font-size: 15px; margin: 0 0 16px; }
#faq .faq-layout__head .btn { background: var(--anchor); color: var(--paper); }
#faq .faq-layout__head .btn:hover { background: var(--anchor-deep); }
#faq .faq { gap: 8px; }
#faq .faq details { border-radius: 14px; }
#faq .faq summary { padding: 12px 16px; font-size: 15px; }
#faq .faq summary::after { width: 24px; height: 24px; font-size: 18px; }
#faq .faq details > div { padding: 0 16px 14px; font-size: 14px; line-height: 1.55; }

/* Booking */
.booking { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.booking__card {
  position: relative;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  padding: clamp(2rem, 1rem + 4vw, 3.5rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}
.booking__badge { position: absolute; top: -56px; left: -30px; }
@media (max-width: 640px) { .booking__badge { left: 50%; top: -70px; transform: translateX(-50%); } .booking__card { margin-top: 40px; } }
.booking__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-muted);
}
.example-plan-link { color: var(--tomato); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.example-plan-link:hover { color: var(--tomato-deep); }
.popup-booking-action { margin-top: var(--space-5); }
.popup-booking {
  position: fixed;
  inset: 0;
  width: min(860px, calc(100% - 24px));
  height: min(800px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.popup-booking[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.popup-booking::backdrop { background: rgb(38 43 64 / 62%); }
.popup-booking__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--anchor);
}
.popup-booking__header p { margin: 0; }
.popup-booking__close { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.25rem; }
.popup-booking__body { min-height: 0; }
.popup-booking__body .calendly-inline-widget { width: 100%; height: 100%; }

.contact-dialog {
  width: min(31rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 4vw, 2rem);
  color: var(--ink);
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.contact-dialog::backdrop { background: rgb(38 43 64 / 62%); }
.contact-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.contact-dialog__header h2 {
  margin: 0;
  font-size: var(--step-3);
}
.contact-dialog__heading-end { white-space: nowrap; }
.contact-dialog__illustration {
  display: inline-block;
  width: clamp(2.25rem, 7vw, 3rem);
  height: auto;
  vertical-align: middle;
  color: var(--ink);
}
.contact-dialog__close { width: 48px; padding: 0; font-size: 1.4rem; }
.contact-form { display: grid; gap: var(--space-2); }
.contact-form label { font-weight: 700; }
.contact-form :is(input:not([type="hidden"]), textarea) {
  width: 100%;
  padding: .55rem .75rem;
  margin-bottom: var(--space-2);
  border: 1px solid var(--anchor);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: var(--space-2); }

/* Short laptop screens (about 768px tall and under): tighter vertical rhythm
   so each section still fits on one screen. Kept last so it wins. */
@media (min-width: 861px) and (max-height: 760px) {
  main > :is(.section, .booking) { padding-block: 2rem; }
  .section-head { margin-bottom: var(--space-5); }
  .reason { padding: 1.35rem 1.5rem; }
  .reason__head { margin-bottom: var(--space-3); }
  .reason__lead { margin-bottom: var(--space-3); }
  .reason__list { padding-top: var(--space-3); margin-bottom: var(--space-4); gap: .35rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
