/* Cueword site v3 — design language of Atishay's landing page (start.cueword.com/test-page, 2026-10-12):
   deep green text, cream + pale bands, orange buttons, Fraunces serif headings over DM Sans, larger type. */

@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dmsans-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --primary: #1A8C7D;      /* teal */
  --primary-dark: #0D6A5E;
  --primary-wash: #E7F2F0;
  --deep: #0D3D36;         /* dark teal: footer, dark bands */
  --accent: #F4A261;       /* orange: brand accent */
  --accent-btn: #F4A261;   /* orange button fill */
  --accent-hover: #E8934D;
  --accent-ink: #E08A3C;   /* orange text in headings and labels */
  --on-accent: #0D3D36;    /* deep green text on orange buttons */
  --accent-wash: #FEF0E4;
  --cream: #FFF6EC;        /* every other section */

  --paper: #F7FAFA;
  --card: #ffffff;
  --line: #E5EBE9;
  --ink: #0D3D36;          /* deep green body text */
  --ink-2: #5A6B68;
  --muted: #8AADA8;

  --shadow-md: 0 6px 18px rgba(13, 61, 54, 0.08);
  --shadow-lg: 0 14px 34px rgba(13, 61, 54, 0.12);
  --shadow-xl: 0 25px 50px -12px rgba(13, 61, 54, 0.30);  /* photos */

  --font: "DM Sans", -apple-system, system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --r-card: 16px;
  --r-sm: 12px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
/* Headings break into even lines, so no word is left alone on the last line */
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0; }

/* Big headings in the serif; card titles stay in DM Sans */
.display, .h-xl, .h-md { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
.display { font-size: clamp(32px, 5.2vw, 62px); line-height: 1.05; }
.h-xl { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
.h-md { font-size: 26px; line-height: 1.2; }
.h-sm { font-size: 18px; line-height: 1.35; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.micro {
  font-family: var(--font); font-size: 12px; line-height: 1.4; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-ink);
}
.accent-text { color: var(--accent-ink); }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
section { padding: 96px 0; }
@media (max-width: 767px) { section { padding: 56px 0; } }
/* Sections alternate pale / cream down every page (build.py marks every other one data-alt) */
[data-alt] { background: var(--cream); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .micro { margin-bottom: 12px; display: block; }
.sec-head .lede { margin-top: 12px; }
/* Full-width sections: heading may run the full width; the intro is one centred sentence per line */
.sec-head.center { max-width: none; }
.sec-head.center .lede { max-width: 900px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.sec-head.center .lede + .lede { margin-top: 4px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* Four or more cards: 2 across on tablets, 4 on desktop, never 3 + 1 */
@media (min-width: 560px) and (max-width: 991px) { .g4:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .g4:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); } }
/* Grade cards: a lone card on the last row sits in the middle */
.gcards.g3, .gcards.g4 { display: flex; flex-wrap: wrap; justify-content: center; }
.gcards.g3 > *, .gcards.g4 > * { flex: 0 0 100%; }
@media (min-width: 560px) { .gcards.g4 > * { flex-basis: calc((100% - 16px) / 2); } }
@media (min-width: 600px) { .gcards.g3 > * { flex-basis: calc((100% - 16px) / 2); } }
@media (min-width: 940px) { .gcards.g3 > * { flex-basis: calc((100% - 32px) / 3); } }
@media (min-width: 1080px) { .gcards.g4 > * { flex-basis: calc((100% - 48px) / 4); } } /* grade cards need ~233px each */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }

/* Buttons — pill; orange main, teal outline secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font: 600 15px/1.2 var(--font); text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s;
  user-select: none; white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--accent-btn); color: var(--on-accent); box-shadow: 0 4px 12px rgba(239, 139, 62, 0.28); }
.btn-gold:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-wash); }
.btn-deep { background: var(--deep); color: #fff; } /* card buttons: stand out without competing with orange Get Started */
.btn-deep:hover { background: var(--primary-dark); }
.btn-lg { padding: 14px 28px; font-size: 15.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .btn-row .btn { flex: 1 1 100%; } }
.text-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Card / chip */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 22px; }
.card-warm { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; line-height: 16px; font-weight: 600; background: var(--card); border: 1px solid var(--line); color: var(--deep);
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--primary); }
.chip.good { background: var(--primary-wash); border-color: transparent; color: var(--primary-dark); }

.ic { width: 24px; height: 24px; flex: none; }
.ic-box {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 11px;
  background: var(--primary-wash); color: var(--primary);
}
.ic-box .ic { width: 22px; height: 22px; }

/* TBD placeholders — a fact the founder must supply */
.tbd {
  background: repeating-linear-gradient(-45deg, #f1f5f4 0 6px, #e6eeec 6px 12px);
  color: var(--ink-2); font-style: italic; padding: 0 4px; border-radius: 4px; outline: 1px dashed var(--muted);
}

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 250, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font); color: var(--deep); }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 3px 8px rgba(13, 61, 54, 0.18); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav .dd > button {
  font: 500 15px/1 var(--font); color: var(--ink-2); text-decoration: none; padding: 9px 13px; border-radius: 999px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.nav > a:hover, .nav .dd > button:hover { background: var(--primary-wash); color: var(--deep); }
.nav > a[aria-current] { color: var(--primary); background: var(--primary-wash); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; display: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 12px; text-decoration: none; font-size: 15px; border-radius: 8px; }
.dd-menu a:hover { background: var(--primary-wash); }
.dd-menu .micro { padding: 8px 12px 4px; font-size: 11px; }
.dd-menu:has(.dd-sub) { min-width: 220px; }
/* Grouped English Classes menu: each group opens a side panel (grades or skills) */
.dd-sub { position: relative; }
.dd-sub > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px;
  border: 0; border-radius: 8px; background: none; font: 500 15px/1.4 var(--font); color: inherit; text-align: left; cursor: pointer;
}
.dd-sub > button .ic { width: 18px; height: 18px; color: var(--primary); }
.dd-sub:hover > button, .dd-sub:focus-within > button { background: var(--primary-wash); }
.dd-fly {
  position: absolute; left: calc(100% + 12px); top: -8px; min-width: 210px; padding: 8px; display: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
}
.dd-fly::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 14px; } /* lets the pointer cross the gap */
.dd-sub:hover > .dd-fly, .dd-sub:focus-within > .dd-fly { display: block; }
.dd-menu:hover .dd-sub:not(:hover) > .dd-fly { display: none; } /* only the group under the pointer stays open */
.dd-fly a.lead { font-weight: 700; }
.hdr .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: var(--primary-wash); color: var(--primary); border: 0; border-radius: 8px; padding: 6px; cursor: pointer; }
.mnav { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .hdr .wrap { gap: 10px; }
  .hdr .wrap > .btn { margin-left: auto; padding: 9px 16px; font-size: 14px; }
  .menu-btn { display: inline-grid; place-items: center; margin-left: 0; }
  .mnav.open { display: block; max-height: calc(100vh - 68px); overflow-y: auto; border-top: 1px solid var(--line); background: var(--card); padding-bottom: 20px; }
  /* Phone menu folds open in place, as on Cuemath: top items, then cream groups underneath */
  .mnav summary { -webkit-tap-highlight-color: transparent; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary .ic { width: 20px; height: 20px; color: var(--primary); transition: transform .2s; }
  .mnav details[open] > summary .ic { transform: rotate(180deg); }
  .m-top > summary, .mnav .m-link { display: flex; padding: 16px; border-bottom: 1px solid var(--line); font: 600 17px/1.3 var(--font); text-decoration: none; }
  .m-top > div { padding: 4px 0; background: var(--cream); border-bottom: 1px solid var(--line); }
  .m-top > div > a { display: block; padding: 11px 16px 11px 28px; font-size: 15.5px; text-decoration: none; }
  .m-sub > summary { padding: 11px 16px 11px 28px; font-size: 15.5px; font-weight: 600; }
  .m-sub > div > a { display: block; padding: 10px 16px 10px 44px; font-size: 15px; text-decoration: none; }
  .m-sub > div > a.lead { font-weight: 700; }
  .mnav .btn { margin: 20px 16px 0; width: calc(100% - 32px); display: flex; }
}

/* Hero */
.hero { padding: 56px 0 64px; background: var(--cream); }
.hero .chip { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; max-width: 34em; }
.hero-art { position: relative; }
.hero-art .photo { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 28px; box-shadow: var(--shadow-xl); }
.badge-card { position: absolute; max-width: 230px; padding: 14px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.45; }
.badge-card b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 14px; color: var(--deep); }
.badge-card b .ic { width: 16px; height: 16px; color: var(--accent-ink); }
/* Both labels hang off the photo's bottom edge (the desk in every photo), never over a face */
.badge-a { bottom: -34px; left: -24px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.badge-b { bottom: -34px; right: -20px; background: var(--deep); color: #fff; font-weight: 600; }
@media (max-width: 1099px) { .badge-card { max-width: 196px; padding: 12px 14px; font-size: 12.5px; } }
.badge-b span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 899px) { .badge-card { display: none; } }
.page-hero { padding: 64px 0 40px; background: var(--cream); }
.page-hero h1 { margin: 16px 0 16px; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.stat { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.stat b { display: block; font: 700 26px/1.15 var(--font); letter-spacing: -0.02em; color: var(--deep); }
.stat span { font-size: 14px; color: var(--ink-2); }


/* Feature list */
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat h3 { font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.feat p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.feats { display: grid; gap: 22px; }

/* Media */
.media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-xl); }
.media.tall { aspect-ratio: 1 / 1; object-fit: contain; background: var(--primary-wash); padding: 32px; box-shadow: none; }

/* Testimonials (scroll row) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 82%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.rail > * { scroll-snap-align: start; }
.quote h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.quote p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.who { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--primary-wash); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 10px; }
.stars svg { width: 16px; height: 16px; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 60px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 22px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 700 14px/1 var(--font);
}
.step h3 { font-size: 18px; line-height: 1.35; margin-bottom: 6px; }
.step p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Plans */
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.plan.featured { border: 1.5px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { font: 700 40px/1.05 var(--font); letter-spacing: -0.02em; color: var(--deep); }
.price small { font: 400 16px/1 var(--font); color: var(--ink-2); letter-spacing: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.ticks .ic { width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }
.plan .btn { margin-top: auto; }

/* Grade tabs on pricing */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink-2); }
.tabs > label:hover { border-color: var(--primary); }
.tabs > input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.panels { flex-basis: 100%; margin-top: 20px; }
.panel { display: none; }
.panel.one { max-width: 640px; margin: 0 auto; }
.plan-note { text-align: center; margin-bottom: 16px; }
#g0:checked + label, #g1:checked + label, #g2:checked + label { background: var(--primary); border-color: var(--primary); color: #fff; }
#g0:checked ~ .panels .p0, #g1:checked ~ .panels .p1, #g2:checked ~ .panels .p2 { display: block; }

/* Sample report */
.report { padding: 26px; box-shadow: var(--shadow-lg); }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.score { width: 84px; height: 84px; border-radius: 999px; background: var(--primary-wash); display: grid; place-content: center; text-align: center; flex: none; }
.score b { font: 700 30px/1 var(--font); color: var(--primary); }
.score span { font-size: 11px; color: var(--ink-2); }
.bars { display: grid; gap: 10px; margin-bottom: 20px; }
.bar { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: 10px; font-size: 14px; }
.bar b { text-align: right; font-weight: 700; color: var(--deep); }
.track { height: 8px; border-radius: 999px; background: var(--primary-wash); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.insights { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }

/* Dialogue */
.dialogue { display: grid; gap: 14px; }
.bubble { max-width: 85%; padding: 16px 18px; border-radius: 18px; }
.bubble p { font-size: 17px; line-height: 1.45; margin-bottom: 6px; color: var(--ink); }
.bubble.coach { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.child { justify-self: end; background: var(--accent-wash); border-bottom-right-radius: 4px; }

/* Grade picker */
.gcard { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.gcard .grades { display: flex; flex-wrap: wrap; gap: 8px; }
.gcard .grades a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--deep); }
.gcard .grades a:hover { border-color: var(--primary); background: var(--primary-wash); }
.gcard .btn { align-self: flex-start; margin-top: 6px; }

/* Story list */
.storylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.story { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.story b { font-size: 15px; color: var(--deep); }
.story span { font-size: 12.5px; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px;
  font: 600 17px/1.4 var(--font);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--primary); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); max-width: 70ch; }

/* CTA band — dark teal, as on the live site */
.cta { background: var(--deep); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta .cta-body { max-width: 720px; margin: 0 auto; text-align: center; }
.cta h2 { color: #fff; }
.cta .micro { color: var(--accent); }
.cta .lede, .cta .small { color: rgba(255, 255, 255, 0.82); }
.cta .tbd { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); outline-color: rgba(255, 255, 255, 0.35); }
.letter { border-left: 3px solid var(--accent); padding-left: 18px; display: grid; gap: 10px; margin: 18px 0 24px; }

/* Guarantee strip */
.guarantee { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: var(--r-sm); background: var(--primary-wash); }
.guarantee .ic { color: var(--primary); width: 28px; height: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.facts span { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.facts .ic { width: 18px; height: 18px; color: var(--primary); }

/* Footer — dark teal */
.ftr { background: var(--deep); color: #fff; padding: 56px 0 28px; font-size: 14px; }
.ftr .brand { color: #fff; }
.ftr .small { color: rgba(255, 255, 255, 0.82); }
.ftr .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.ftr h4 { font: 700 12px/1.4 var(--font); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; color: rgba(255, 255, 255, 0.82); }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr .base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: rgba(255, 255, 255, 0.6); }
.ftr address { font-style: normal; color: rgba(255, 255, 255, 0.82); line-height: 1.5; }

.reveal { animation: rise-in .5s ease-out both; }
@keyframes rise-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } html { scroll-behavior: auto; } }

/* Booking page — words, then the booking card, then the photo on phones; on wide screens the
   card sits on the right beside the words and photo. */
.book { display: grid; gap: 28px; grid-template-areas: "copy" "card" "photo"; }
.book-copy { grid-area: copy; }
.book-copy .lede { margin-bottom: 0; }
.book-card { grid-area: card; display: grid; gap: 18px; padding: 28px; box-shadow: var(--shadow-lg); scroll-margin-top: 88px; }
.book-card .h-md { margin-bottom: 4px; }
.book-card .btn { width: 100%; }
.book-card .btn[aria-disabled="true"] { opacity: 0.55; }
.book-photo { grid-area: photo; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-xl); }
@media (min-width: 900px) {
  .book { grid-template-columns: 1.1fr 1fr; column-gap: 56px; grid-template-areas: "copy card" "photo card"; align-items: start; }
}
.consent { display: flex; gap: 10px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); cursor: pointer; }
.consent a { color: var(--deep); }
.book-hint { margin-top: -8px; font-size: 13.5px; color: #B42318; text-align: center; }
.book-trust { text-align: center; }

/* Scheduler pop-up (Calendly) */
.sched { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 61, 54, 0.55); }
.sched.open { display: flex; }
.sched-box { position: relative; width: 100%; max-width: 780px; height: 88vh; max-height: 780px; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-lg); }
.sched-top { display: flex; align-items: center; gap: 14px; padding: 16px 64px 16px 22px; background: var(--deep); color: #fff; }
.sched-top img { width: 40px; height: 40px; border-radius: 10px; }
.sched-top b { display: block; font-size: 18px; }
.sched-top span { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.sched-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--card); color: var(--deep); font-size: 22px; line-height: 1; cursor: pointer; }
#sched-embed { flex: 1; min-height: 0; }

/* Policy pages (refund policy) */
.legal { max-width: 820px; margin: 0 auto; padding: 32px 36px; }
.legal h2 { margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 600px) { .legal { padding: 24px 20px; } }

/* Coach profiles (Our Coaches) */
.coach { display: flex; gap: 18px; align-items: flex-start; }
.coach img { width: 96px; height: 96px; flex: none; border-radius: 999px; object-fit: cover; border: 3px solid var(--primary-wash); }
.coach h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.creds span { padding: 4px 10px; border-radius: 999px; background: var(--primary-wash); color: var(--primary-dark); font-size: 12.5px; font-weight: 600; }
.coach p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 600px) {
  .coach { flex-direction: column; align-items: center; }
  .coach img { width: 80px; height: 80px; }
  .coach > div { width: 100%; }
  .coach h3 { text-align: center; }
  .coach .creds { justify-content: center; }
}

/* Grade pages: term-by-term section (r_terms) */
.terms { align-items: stretch; }
.term { display: flex; flex-direction: column; }
.term .term-showcase { margin-top: auto; } /* all three cards end level, Showcase line at the foot */
.term .term-more { margin-bottom: 18px; }
.term .micro { display: block; margin: 18px 0 8px; text-wrap: balance; }
.term-levels, .term-skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.term-levels { counter-reset: lvl; }
.term-levels li { counter-increment: lvl; position: relative; padding-left: 30px; }
.term-levels li::before { content: counter(lvl); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.term-levels b, .term-skills b { display: block; font-size: 15px; line-height: 1.35; }
.term-levels span, .term-skills span { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.term-showcase { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-wash); font-size: 14.5px; line-height: 1.5; }
.term-outro { margin-top: 32px; }
.term-more { margin-top: 18px; }
.term-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--primary); }
.term-more summary::-webkit-details-marker { display: none; }
.term-more summary .ic { width: 16px; height: 16px; transition: transform .2s; }
.term-more[open] summary .ic { transform: rotate(180deg); }
.term-more .term-skills { margin-top: 12px; }


/* Number strip under the hero (Atishay's trust bar) */
.strip { background: var(--deep); color: #fff; padding: 40px 0; }
.strip-row { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 900px) { .strip-row { grid-template-columns: repeat(4, 1fr); } }
.strip b { display: block; font: 700 clamp(24px, 2.6vw, 34px)/1.15 var(--font); letter-spacing: -0.02em; color: var(--accent); }
.strip span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }

/* Dark band mid-page ("dark": true in the page file) */
[data-dark] { background: var(--deep); color: #fff; }
[data-dark] h2, [data-dark] h3 { color: #fff; }
[data-dark] .lede, [data-dark] p, [data-dark] .small { color: rgba(255, 255, 255, 0.76); }
[data-dark] .micro, [data-dark] .text-link { color: var(--accent); }
[data-dark] .ic-box { background: rgba(255, 255, 255, 0.08); color: var(--accent); }
[data-dark] .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
[data-dark] .media { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }

/* Contact Us form (r_contact) */
.contact { align-items: start; }
.contact-side { margin-top: 24px; }
.contact-side h3 { font-size: 18px; margin-bottom: 4px; }
.contact-side p { color: var(--ink-2); }
.contact-card { display: grid; gap: 16px; padding: 28px; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }
.contact-card .btn { width: 100%; }
.contact-card .btn:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; }
.form-status.ok { background: var(--primary-wash); color: var(--deep); }
.form-status.err { background: var(--accent-wash); color: var(--ink); }

/* Coach carousel (Our Coaches): full-width moving row; a card opens the full profile in a pop-up */
.coach-rail { overflow-x: auto; scrollbar-width: none; padding: 8px 0 24px; }
.coach-rail::-webkit-scrollbar { display: none; }
.coach-track { display: flex; gap: 16px; width: max-content; padding: 0 16px; }
.coach-card {
  flex: none; width: 250px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 26px 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-md); font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, transform .15s;
}
.coach-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.coach-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.coach-card img { width: 112px; height: 112px; margin-bottom: 6px; border-radius: 999px; object-fit: cover; border: 3px solid var(--primary-wash); }
.coach-card b { font-size: 18px; line-height: 1.3; color: var(--deep); }
.coach-card .small { min-height: 42px; }
.coach-card .text-link { margin-top: auto; font-size: 14px; }
.coach-nav { display: flex; justify-content: center; gap: 10px; }
.coach-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--primary); background: var(--card); color: var(--primary); cursor: pointer; }
.coach-arrow:hover { background: var(--primary-wash); }
.coach-arrow[data-dir="-1"] .ic { transform: rotate(90deg); }
.coach-arrow[data-dir="1"] .ic { transform: rotate(-90deg); }
.cmodal { width: 100%; max-width: min(640px, calc(100% - 32px)); padding: 0; border: 0; background: transparent; }
.cmodal::backdrop { background: rgba(13, 61, 54, 0.55); }
.cmodal-box { position: relative; padding: 32px 28px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-lg); }
.cmodal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--primary-wash); color: var(--deep); font-size: 22px; line-height: 1; cursor: pointer; }
.cmodal .coach h3 { padding-right: 36px; }
@media (max-width: 600px) { .cmodal .coach h3 { padding: 0 36px; } }
body:has(dialog[open]) { overflow: hidden; }

/* Grade-page heading: second, smaller line ("sub" in the page file) */
.h1-sub { display: block; margin-top: .35em; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.25; color: var(--primary-dark); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Home "Five Skills": one tile per skill (5 across on desktop, 3 + 2 on tablets, stacked on phones) */
.skill-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 48px; }
.skill-tile {
  flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; color: inherit; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r-card); box-shadow: var(--shadow-md);
}
@media (min-width: 600px) { .skill-tile { flex: 0 0 calc((100% - 28px) / 3); } }
@media (min-width: 1080px) { .skill-tile { flex: 0 0 calc((100% - 56px) / 5); } }
.skill-tile .ic-box { background: var(--accent-wash); color: var(--accent-ink); }
.skill-tile h3 { font: 600 20px/1.2 var(--serif); }
.skill-tile p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
a.skill-tile:hover { border-color: var(--primary); border-top-color: var(--accent); }
.live-sub { display: block; margin-bottom: 16px; }
@media (max-width: 599px) { /* phones: icon beside the text, so five tiles don't run five screens long */
  .skill-tile { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px 16px; }
  .skill-tile .ic-box { grid-row: span 2; }
}
/* Home "How every class works": four cards 2 by 2 beside one photo */
.live-how { align-items: center; }
.live-cards { grid-template-columns: 1fr; }
@media (min-width: 560px) { .live-cards { grid-template-columns: 1fr 1fr; } }
.live-cards .feat { flex-direction: column; gap: 10px; }
/* "No annual lock-in": a line under the Home hero buttons, a strip under the Pricing plans */
.assure { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--deep); }
.assure .ic { width: 18px; height: 18px; color: var(--primary); }
.guarantee { max-width: 860px; margin: 24px auto 0; }
.guarantee b { color: var(--deep); }
.guarantee span { color: var(--ink-2); }
.assure span { text-wrap: balance; }
@media (max-width: 600px) { .assure { justify-content: center; text-align: center; } }
/* Card buttons ("more" links) sit at the foot of the card, lined up across the row */
.grid > .card:has(.card-more) { display: flex; flex-direction: column; }
.card-more { margin-top: auto; padding-top: 18px; text-align: center; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
