/* ─────────────────────────────────────────────────────────────────────
   Ava's Academy — site styles. No build step, no framework, no fonts
   fetched from anyone: this file + index.html are the whole site.

   BRAND: every colour lives in the :root tokens below. They are a
   PLACEHOLDER palette (deep field green · chalk · optic-yellow ball ·
   stitch red) until Ava picks her own — change them HERE only.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --ink: #0f2a20;          /* deep field green — text + dark bands */
  --ink-soft: #33493f;
  --chalk: #f7f4ec;        /* page ground */
  --paper: #ffffff;        /* cards */
  --line: #e2ddcf;
  --ball: #e6f24b;         /* optic yellow — the softball */
  --ball-deep: #c9d62a;
  --seam: #d23c28;         /* stitch red — the one accent */
  --muted: #5d6b64;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(15 42 32 / 6%), 0 8px 24px rgb(15 42 32 / 8%);
  --wrap: 1080px;
  --gutter: 20px;

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--chalk); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

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

/* ── PLACEHOLDER marker ──────────────────────────────────────────────
   Anything Ava has not confirmed is wrapped in .ph so it is impossible
   to mistake for real copy. scripts/check.sh counts them; the site is
   not ready to index while any remain. */
.ph {
  background: repeating-linear-gradient(-45deg, #fff6b8 0 8px, #fff1a0 8px 16px);
  outline: 1.5px dashed #b39500;
  outline-offset: 1px;
  border-radius: 4px;
  padding: 0 .25em;
  color: #4a3d00;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ball); color: var(--ink); border-color: var(--ball); }
.btn-primary:hover { background: var(--ball-deep); border-color: var(--ball-deep); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-dark { background: var(--ink); color: var(--chalk); }
.btn-dark:hover { background: var(--ink-soft); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } .btn:hover { transform: none; } }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(247 244 236 / 88%);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem/1 var(--font-display); }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--seam); text-underline-offset: 5px; }
.brand span, .btn { white-space: nowrap; }
.site-header .btn { margin-left: auto; min-height: 42px; padding: 0 14px; font-size: .9rem; }
@media (max-width: 359px) { .brand span { display: none; } }
@media (min-width: 860px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--seam); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--ball) 62% 92%, transparent 92%); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-art { position: relative; justify-self: center; width: min(58vw, 400px); aspect-ratio: 1; }
.hero-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--line); }
.hero-art .ball { position: absolute; inset: 12%; animation: spin 14s linear infinite; filter: drop-shadow(0 18px 30px rgb(15 42 32 / 18%)); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .ball { animation: none; } }
@media (min-width: 860px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
}

/* ── Sections ────────────────────────────────────────────────────── */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow { color: var(--seam); font-size: .8rem; }
.band { background: var(--ink); color: var(--chalk); }
.band .section-head p, .band .muted { color: #b9c7c0; }
.band .eyebrow { color: var(--ball); }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--chalk); border: 1px solid var(--line); margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card .muted { color: var(--muted); }

/* Pricing cards */
.price-card { display: flex; flex-direction: column; gap: 6px; }
.price-card .price { font: 800 1.8rem/1.1 var(--font-display); margin: 6px 0; }
.price-card ul { margin: 8px 0 18px; padding-left: 1.1em; color: var(--ink-soft); }
.price-card .btn { margin-top: auto; }
.price-card.featured { border: 2px solid var(--ink); position: relative; }
.price-card .tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--seam); color: #fff; font-size: .75rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

/* About */
.about { display: grid; gap: 28px; align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #1c3d30, var(--ink)); color: #b9c7c0;
  display: grid; place-items: center; text-align: center; padding: 20px;
  border: 1px solid var(--line);
}
.portrait svg { width: 40%; margin: 0 auto 12px; opacity: .55; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .55em; border-radius: 50%; background: var(--seam); }
.portrait.has-photo { padding: 0; margin: 0; background: var(--ink); }
.portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.price .per { font: 600 1rem/1 var(--font-body); color: var(--muted); }
@media (max-width: 859px) { .portrait { max-width: 460px; } }
@media (min-width: 860px) { .about { grid-template-columns: .8fr 1.2fr; gap: 48px; } }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 60px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ball); color: var(--ink); font: 800 1.1rem/1 var(--font-display);
}
.steps h3 { margin-top: 8px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.note {
  margin-top: 28px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 14%);
  display: flex; gap: 12px; align-items: flex-start; font-size: .95rem;
}
.note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--ball); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-weight: 700; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 700 1.4rem/1 var(--font-display); color: var(--seam);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 16px; color: var(--ink-soft); }

/* Final CTA */
.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; max-width: 46ch; }
.cta-band .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer a { color: var(--ink-soft); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
