/* Shared section styles for the home page AND the course pages (loaded before home.css /
   course.css). Sections, icons, base hero text, prices + fee badges, level-up cards,
   note box, tick list. Colours only via tokens.css. Motion is owned by motion-animator. */
.section { padding: var(--space-7) 0; }
.section--deep,
.section--soft { background: var(--bg-soft); }
.section__title { font-size: var(--fs-2xl); color: var(--heading); }
.section__lead { color: var(--text-muted); max-width: 39.1rem; /* was 62ch; rem so the web-font swap cannot shift layout */ margin-bottom: var(--space-5); }
@media (min-width: 900px) {
  .section { padding: var(--space-8) 0; }
}

/* ---------- Icons (sprite in each page; stroke = currentColor) ---------- */
.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 20px; height: 20px; }
.icon--lg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-7);
  background:
    radial-gradient(60% 50% at 85% 20%, var(--hero-glow), transparent 70%),
    linear-gradient(180deg, var(--hero-bg-top) 0%, var(--hero-bg-bottom) 100%);
  overflow: hidden;
}
.hero__inner { display: grid; gap: var(--space-6); align-items: center; }
.hero__title { font-size: var(--fs-3xl); letter-spacing: -0.015em; color: var(--heading); margin-bottom: var(--space-2); }
/* Thin orange rules beside a star, like the tagline on the brand board */
.hero__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 36.9rem; } /* was 52ch */
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 var(--space-5); }
.hero__ctas .btn { flex: 1 1 auto; white-space: nowrap; }
/* Small phones: always stack the buttons full-width (no flip when the web font arrives). */
@media (max-width: 400px) {
  .hero__ctas .btn { flex-basis: 100%; }
}
.hero__note { font-size: var(--fs-sm); color: var(--text-muted); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); margin: 0 0 var(--space-2); color: var(--price-text); }
.price__amount { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-xl); letter-spacing: -0.01em; }
.price__per { font-size: var(--fs-sm); font-weight: 600; }
/* .price__gst: GST is shown only on the Coaching Act disclosures fee table (brief v1.3 item 7). */
.price__gst { font-size: var(--fs-sm); font-weight: 600; color: var(--price-gst); }
.price__course { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.price__note { font-size: var(--fs-xs); color: var(--text-muted); margin: 0 0 var(--space-2); }
.badge--fee { background: var(--badge-fee-bg); color: var(--badge-fee-text); }
/* NEET "Coming later" (v1.2): no fee, no payment plan. */
.badge--later { background: var(--badge-later-bg); color: var(--badge-later-text); border: 1px solid var(--badge-later-border); line-height: 1.35; }
.badge--big { font-size: var(--fs-md); padding: var(--space-2) var(--space-4); }
/* ---------- Level-up: "4 chances a year" + 3 short cards ---------- */
.chances {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  background: var(--brand-navy);
  color: var(--on-panel);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-lg);
}
.chances__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: var(--brand-navy);
  font-size: var(--fs-sm);
}
.levelup-steps { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-5); }
.levelup-step {
  position: relative;
  display: flex; gap: var(--space-4); align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.levelup-step__title { font-size: var(--fs-lg); margin: 0; }
.levelup-step__num {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--icon-tile-bg);
  color: var(--brand-navy);
}
.levelup-step:last-child .levelup-step__num { background: var(--brand-orange); }
.levelup-step__count {
  position: absolute;
  top: calc(-1 * var(--space-2)); left: var(--space-3);
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--on-panel);
  font-size: var(--fs-xs);
  font-weight: 700;
}
/* Arrow to the next card: points down on phones, right on wide screens */
.levelup-step__arrow {
  position: absolute;
  left: 50%; bottom: calc(-1 * var(--space-5));
  translate: -50% 0;
  rotate: 90deg;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: var(--space-5);
}
@media (min-width: 760px) {
  .levelup-steps { grid-template-columns: repeat(3, 1fr); }
  .levelup-step { flex-direction: column; align-items: flex-start; text-align: left; }
  .levelup-step__arrow { left: auto; right: calc(-1 * var(--space-5)); bottom: auto; top: 50%; translate: 0 -50%; rotate: 0deg; width: var(--space-5); text-align: center; }
}

.note-box {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: baseline;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.tick-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.tick-list li { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-2); }
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---------- Talent Search Test + scholarships (home #scholarship + Class 9/10 course pages) ----------
   Motion hooks: tst, tst-band, tst-band-pct, tst-details, tst-terms, tst-cta (home);
   course-tst, course-tst-band, course-tst-band-pct, course-tst-cta (course pages). */
.tst { display: grid; gap: var(--space-5); margin-bottom: var(--space-5); }
.tst-bands { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-3); }
.tst .tst-bands { margin: 0; }
.tst-band {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); align-items: center;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--brand-navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.tst-band--top { border-left-color: var(--accent-strong); }
.tst-band__icon {
  grid-row: 1 / span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--icon-tile-bg);
  color: var(--brand-navy);
}
.tst-band--top .tst-band__icon { background: var(--card-top-adv); }
.tst-band__pct { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); color: var(--heading); }
.tst-band__pct > span:first-child { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-2xl); line-height: var(--lh-tight); }
.tst-band__on { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); }
.tst-band__score { margin: 0; font-weight: 600; }
.tst-details { margin: 0; padding: var(--space-4); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.tst-details div { padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.tst-details div:last-child { border-bottom: 0; }
.tst-details dt { font-size: var(--fs-sm); color: var(--text-muted); }
.tst-details dd { margin: var(--space-1) 0 0; }
.tst__terms { margin: 0 0 var(--space-4); }
.tst__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-4); }
.tst-band__extra { grid-column: 2; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
/* v1.5: only the next test date is shown (common.js fills .js-tst-next). */
.tst-next { font-weight: 600; }
.tst-form__label { margin: 0 0 var(--space-1); font-weight: 600; }
.tst-form__value {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-md);
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
/* v1.4 registration form (v1.7: emailed via Web3Forms, nothing stored here). Hook: tst-form / course-tst-form. */
.tst-form {
  max-width: 760px;
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.tst-form__title { font-size: var(--fs-xl); margin-bottom: var(--space-1); }
.tst-form__grid { display: grid; gap: 0 var(--space-4); margin-top: var(--space-4); }
.tst-form .form-error { margin: 0 0 var(--space-3); }
.tst-form .tst__consent { margin: 0 0 var(--space-3); }
.tst-form [aria-invalid="true"] { border-color: var(--danger); }
.tst-closes { display: block; margin-top: var(--space-1); font-size: var(--fs-sm); font-weight: 400; color: var(--text-muted); }
/* Shown instead of the form once registration for the last test date has closed (common.js initTstForms). */
.tst-closed {
  max-width: 760px;
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.tst-closed__text { margin: 0 0 var(--space-3); font-weight: 600; }
.tst-closed__email { margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
/* "Ask a question" forms (v1.7): home Contact + NEET register interest. Hook: ask-form. */
.enquiry {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.enquiry__title { font-size: var(--fs-xl); }
@media (min-width: 600px) {
  .tst-bands { grid-template-columns: 1fr 1fr; }
  .tst-form__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .tst { grid-template-columns: 2fr 1fr; align-items: start; }
}

/* ---------- What your fee includes (v1.2: home + Class 9/10 course pages) ----------
   Motion hooks: fee-includes (section), fee-item (each card), fee-health-dots. */
.fee-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.fee-item {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); align-content: start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.fee-item__icon {
  grid-row: span 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--icon-tile-bg);
  color: var(--brand-navy);
}
.fee-item__title { font-size: var(--fs-md); margin: 0 0 var(--space-1); line-height: 1.35; }
.fee-item__body { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.fee-item--promise { border-left: 4px solid var(--promise-border); }
.fee-item .health-dots { grid-column: 2; margin-top: var(--space-2); }
@media (min-width: 600px) { .fee-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .fee-grid { grid-template-columns: repeat(3, 1fr); } }

/* Red / amber / green dots (decoration only; the text label always sits next to them) */
.health-dots { display: inline-flex; gap: var(--space-1); }
.health-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.health-dot--red { background: var(--health-red); }
.health-dot--amber { background: var(--health-amber); }
.health-dot--green { background: var(--health-green); }

/* ---------- FAQ (native <details>: works without JS). Course pages + home level-up (v1.4). ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 760px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: var(--tap-big);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: var(--fs-xl); line-height: 1; color: var(--accent); }
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-md); }
.faq__body { padding: 0 var(--space-4) var(--space-4); color: var(--text-muted); }
.faq__body p { margin: 0; }

/* ---------- How admission works (v1.8 items 5 and 8): 3 steps + the 10-day rule ----------
   Same block on the home page and the Class 9 / 10 / 10 Advanced pages. Static only; motion-animator
   owns any animation (hooks: admission, admission-step, admission-rule, admission-cta). */
.admission { border-block: 1px solid var(--border); }
.adm-steps { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-4); }
.adm-step {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-4); align-items: start;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.adm-step__num {
  grid-row: span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--on-panel);
  font-weight: 700;
}
.adm-step:last-child .adm-step__num { background: var(--brand-orange); color: var(--brand-navy); }
.adm-step__title { font-size: var(--fs-lg); margin: 0 0 var(--space-1); }
.adm-step__body { margin: 0; color: var(--text-muted); }
.adm-rule { margin: 0 0 var(--space-4); color: var(--text); }
.adm-cta { margin: 0; }
@media (min-width: 760px) {
  .adm-steps { grid-template-columns: repeat(3, 1fr); }
}

/* Price cards: "Admission through the Talent Search Test" (v1.8 item 5) */
.program-card__admit,
.price-card__admit { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.program-card__admit { margin: var(--space-2) 0 0; }
.price-card__admit { margin: var(--space-1) 0 var(--space-2); }
