.first-grade-home-page {
  --fgh-ink: #172946;
  --fgh-muted: #617087;
  --fgh-line: #dce5ef;
  --fgh-violet: #6655db;
  --fgh-mint: #28a28e;
  --fgh-blue: #327bc7;
  --fgh-coral: #e46d63;
}

.first-grade-home-page main { overflow: clip; }

.first-grade-home-page .fgh-section-heading,
.first-grade-home-page .fgh-faq-heading {
  max-width: 57rem;
  margin-inline: auto;
  text-align: center;
}
.first-grade-home-page .fgh-section-heading h2,
.first-grade-home-page .fgh-faq-heading h2 { margin: 0; color: var(--fgh-ink); }
.first-grade-home-page .fgh-section-heading p { max-width: 47rem; margin: .75rem auto 0; color: var(--fgh-muted); }
.first-grade-home-page .zv-actions { justify-content: center; }

.fgh-hero {
  padding-bottom: clamp(3.5rem,7vw,6.5rem);
  background:
    radial-gradient(circle at 10% 18%,rgba(102,85,219,.11),transparent 24rem),
    radial-gradient(circle at 88% 78%,rgba(40,162,142,.11),transparent 21rem),
    #fbfcff;
}
.fgh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(1.5rem,3vw,3rem);
  align-items: center;
}
.fgh-hero-grid > * { min-width: 0; }
.fgh-hero-copy { text-align: center; }
.fgh-hero-copy h1 { max-width: 13ch; margin-inline: auto; }
.fgh-hero-copy .direct-answer { max-width: 46rem; margin-inline: auto; }

.fgh-signals {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .75rem;
  max-width: 34rem;
  margin: 1.5rem auto;
}
.fgh-signals span {
  display: flex;
  min-width: 0;
  min-height: 4.4rem;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  padding: .8rem;
  border: 1px solid var(--fgh-line);
  border-radius: 1.2rem;
  background: rgba(255,255,255,.9);
  color: var(--fgh-ink);
  box-shadow: 0 .55rem 1.35rem rgba(28,47,76,.06);
}
.fgh-signals img { width: 2rem; height: 2rem; object-fit: contain; }

.fgh-image-slot {
  display: grid;
  width: min(100%,52rem);
  min-width: 0;
  margin: 0 auto;
  justify-self: center;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 18% 20%,rgba(50,123,199,.2),transparent 11rem),
    radial-gradient(circle at 82% 80%,rgba(102,85,219,.18),transparent 13rem),
    linear-gradient(145deg,#f9fcff,#f1f0ff);
}
.fgh-image-slot > div {
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: clamp(1.4rem,4vw,3rem);
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
}
.fgh-image-slot-art {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 1.45rem;
  background: rgba(255,255,255,.8);
  box-shadow: 0 .8rem 1.7rem rgba(31,48,79,.09);
}
.fgh-image-slot-art img { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.fgh-image-slot figcaption { display: grid; gap: .45rem; max-width: 39rem; color: var(--fgh-muted); }
.fgh-image-slot figcaption strong { color: var(--fgh-ink); font-size: clamp(1.25rem,2vw,1.65rem); }
.fgh-image-slot picture,
.fgh-image-slot picture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
  outline: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.fgh-session { padding-block: clamp(3.5rem,7vw,6rem); background: #fff; }
.fgh-session-panel {
  padding: clamp(1.2rem,3vw,2.5rem);
  border: 1px solid var(--fgh-line);
  border-radius: 2.2rem;
  background: linear-gradient(145deg,#fff,#f8f7ff);
  box-shadow: 0 1rem 2.8rem rgba(30,49,79,.08);
}

.fgh-session-grid,
.fgh-week-grid,
.fgh-independence-grid,
.fgh-observe-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
.fgh-session-grid,
.fgh-independence-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.fgh-week-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.fgh-observe-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }

.fgh-session-card,
.fgh-week-card,
.fgh-independence-card,
.fgh-observe-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 1.35rem;
  border: 1px solid var(--fgh-line);
  border-top: .25rem solid var(--fgh-violet);
  border-radius: 1.55rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 .65rem 1.5rem rgba(28,47,77,.06);
}
.fgh-session-card:nth-child(2),
.fgh-independence-card:nth-child(2),
.fgh-observe-card:nth-child(2) { border-top-color: var(--fgh-mint); }
.fgh-session-card:nth-child(3),
.fgh-independence-card:nth-child(3),
.fgh-observe-card:nth-child(3) { border-top-color: var(--fgh-blue); }
.fgh-session-card:nth-child(4),
.fgh-independence-card:nth-child(4) { border-top-color: var(--fgh-coral); }

.first-grade-home-page .zv-skill-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  place-items: center;
  align-self: center;
  border-radius: 1.2rem;
  background: #f2f4ff;
}
.first-grade-home-page .zv-skill-icon img { width: 2.45rem; height: 2.45rem; object-fit: contain; }
.first-grade-home-page .zv-skill-card h3 { margin: 1rem 0 .55rem; color: var(--fgh-ink); }
.first-grade-home-page .zv-skill-card p { margin: 0; color: var(--fgh-muted); }

.fgh-session-note,
.fgh-routine-note,
.fgh-observe-note {
  max-width: 62rem;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 1.2rem;
  background: #eef8f6;
  color: var(--fgh-muted);
  text-align: center;
}

.fgh-week { padding-block: clamp(3.5rem,7vw,6rem); background: #f7fbfd; }
.fgh-week-card { grid-column: span 2; }
.fgh-week-card:nth-child(2) { border-top-color: var(--fgh-mint); }
.fgh-week-card:nth-child(3) { border-top-color: var(--fgh-blue); }
.fgh-week-card:nth-child(4) { grid-column: 2 / span 2; border-top-color: var(--fgh-coral); }
.fgh-week-card:nth-child(5) { grid-column: 4 / span 2; border-top-color: var(--fgh-violet); }

.fgh-divider {
  display: grid;
  grid-template-columns: minmax(1rem,1fr) auto auto auto minmax(1rem,1fr);
  gap: .75rem;
  width: min(68rem,calc(100% - 2rem));
  margin: clamp(2rem,5vw,4rem) auto;
  align-items: center;
}
.fgh-divider::before,
.fgh-divider::after {
  content: "";
  height: .18rem;
  border-radius: 999px;
  background: linear-gradient(90deg,transparent,#28a28e,#327bc7,#6655db,#e46d63);
}
.fgh-divider::before { grid-column: 1; }
.fgh-divider::after { grid-column: 5; transform: scaleX(-1); }
.fgh-divider span {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid #dfe5ef;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 .8rem 1.5rem rgba(27,46,74,.1);
}
.fgh-divider span:nth-of-type(1) { grid-column: 2; }
.fgh-divider span:nth-of-type(2) { grid-column: 3; transform: translateY(-.35rem); }
.fgh-divider span:nth-of-type(3) { grid-column: 4; }
.fgh-divider img { width: 2.3rem; height: 2.3rem; object-fit: contain; }

.fgh-routine { padding-block: clamp(3.5rem,7vw,6rem); background: #f6f5ff; }
.fgh-routine-steps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.fgh-routine-steps li {
  padding: 1.5rem;
  border: 1px solid var(--fgh-line);
  border-radius: 1.65rem;
  background: #fff;
  box-shadow: 0 .75rem 1.7rem rgba(28,47,77,.06);
}
.fgh-routine-steps .zv-skill-step-number {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: #e9edff;
  color: var(--fgh-violet);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}
.fgh-routine-steps h3 { margin: 0 0 .55rem; color: var(--fgh-ink); }
.fgh-routine-steps p { margin: 0; color: var(--fgh-muted); }

.fgh-bridge-media { padding-block: clamp(4rem,8vw,7rem); background: #f7fbfd; }
.fgh-bridge-image-slot { width: min(68rem,100%); }

.fgh-independence { padding-block: clamp(3.5rem,7vw,6rem); background: #fff; }
.fgh-observe { padding-block: clamp(3.5rem,7vw,6rem); background: #f7fbfd; }
.fgh-boundary {
  max-width: 62rem;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--fgh-line);
  border-radius: 1.4rem;
  background: #eef6ff;
  color: var(--fgh-muted);
  text-align: center;
}
.fgh-boundary strong { color: var(--fgh-ink); font-size: 1.15rem; }
.fgh-boundary p { margin: .5rem 0 0; }

.fgh-faq { padding-block: clamp(3.5rem,7vw,6rem); background: #f8f8ff; }
.fgh-faq .faq-grid {
  display: grid;
  grid-template-columns: minmax(15rem,.72fr) minmax(0,1.6fr);
  gap: clamp(1.5rem,4vw,4rem);
  align-items: start;
}
.fgh-faq-heading { position: sticky; top: 8rem; }
.fgh-faq-heading::before { content: none !important; }
.fgh-faq-heading .section-kicker { margin-top: .7rem; }
.fgh-faq .faq-list { display: grid; gap: .75rem; }
.fgh-faq .faq-list details {
  overflow: hidden;
  border: 1px solid #dce3ed;
  border-inline-start: .3rem solid var(--fgh-violet);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 .5rem 1.2rem rgba(28,47,76,.05);
}
.fgh-faq .faq-list details:nth-child(3n + 2) { border-inline-start-color: var(--fgh-mint); }
.fgh-faq .faq-list details:nth-child(3n) { border-inline-start-color: var(--fgh-coral); }
.fgh-faq .faq-list summary { min-height: 4.3rem; padding: 1rem 1.2rem; color: var(--fgh-ink); font-weight: 800; cursor: pointer; }
.fgh-faq .faq-list details p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--fgh-muted); }
.fgh-final-cta { text-align: center; }
.fgh-final-cta p { max-width: 50rem; margin-inline: auto; }

@media (max-width: 68rem) {
  .fgh-hero-grid { grid-template-columns: minmax(0,1fr); }
  .fgh-hero-copy { order: 1; }
  .fgh-hero-image-slot { order: 2; width: min(100%,46rem); justify-self: center; }
  .fgh-session-grid,
  .fgh-independence-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fgh-week-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fgh-week-card,
  .fgh-week-card:nth-child(4),
  .fgh-week-card:nth-child(5) { grid-column: auto; }
  .fgh-week-card:last-child { grid-column: 1 / -1; width: min(100%,34rem); justify-self: center; }
}

@media (max-width: 52rem) {
  .fgh-hero-image-slot { width: min(100%,30rem); margin-inline: auto; }
  .fgh-image-slot { aspect-ratio: 9 / 16; max-height: 44rem; }
  .fgh-routine-steps,
  .fgh-observe-grid { grid-template-columns: 1fr; }
  .fgh-faq .faq-grid { grid-template-columns: 1fr; }
  .fgh-faq-heading { position: static; }
}

@media (max-width: 36rem) {
  .fgh-signals,
  .fgh-session-grid,
  .fgh-week-grid,
  .fgh-independence-grid { grid-template-columns: 1fr; }
  .fgh-signals { max-width: 21rem; }
  .fgh-week-card:last-child { grid-column: auto; width: 100%; }
  .fgh-divider { gap: .45rem; }
  .fgh-divider span { width: 3.35rem; height: 3.35rem; border-radius: 1rem; }
  .fgh-divider img { width: 2rem; height: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .first-grade-home-page *,
  .first-grade-home-page *::before,
  .first-grade-home-page *::after { scroll-behavior: auto !important; }
}
.fgh-image-slot.fgh-image-ready {
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.fgh-image-slot.fgh-image-ready::before,
.fgh-image-slot.fgh-image-ready::after { display: none; }
.fgh-image-ready :where(picture, img) {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  object-fit: contain;
}
