/* Homepage */
.hero { position: relative; padding: 0; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: center; overflow: hidden; background: #FBF1DA; }
.hero-scene { position: absolute; inset: 0; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; }
.hero-scene::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,243,224,.97) 0%, rgba(251,243,224,.9) 30%, rgba(251,243,224,.35) 50%, rgba(251,243,224,0) 62%); }
.hero-copy { position: relative; z-index: 1; padding: clamp(48px, 7vw, 90px) 0 clamp(90px, 10vw, 130px); }
.hero-copy > * { max-width: 560px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 700; color: var(--forest-deep); letter-spacing: -.01em; }
.hero h1 .hl { color: var(--amber-deep); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .35em; }
.hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: #4A473B; max-width: 36ch; }
.hero-tagline { font-family: var(--font-display); font-size: 1.05rem; color: var(--forest-soft); font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--forest); font-weight: 800; font-size: .98rem; padding: 0; margin: 0; list-style: none; }
.hero-meta li { display: flex; align-items: center; gap: 6px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 1; }
@media (max-width: 860px) {
  .hero { display: block; min-height: 0; }
  .hero-scene { position: relative; aspect-ratio: 16 / 10; }
  .hero-scene::after { background: linear-gradient(180deg, rgba(251,243,224,0) 70%, #FBF5E6 100%); }
  .hero-copy { padding: 18px 0 70px; }
}

/* Wavy divider */
.wave { display: block; width: 100%; height: 60px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 30px 22px 26px; text-align: center; position: relative; }
.step .art { width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFF3D1, #F4E1B0); display: grid; place-items: center; border: 3px dashed rgba(201,130,27,.45); position: relative; }
.step .art .icon { width: 56px; height: 56px; color: var(--forest); }
.step .art .duo { display: flex; align-items: flex-end; }
.step .art .duo img { width: 58px; height: 64px; object-fit: contain; }
.step .num { position: absolute; top: -6px; right: -6px; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: #fff; font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; }

/* Meet the guides */
.guides { background: linear-gradient(180deg, transparent, rgba(127,163,107,.14) 30%, rgba(127,163,107,.14) 70%, transparent); }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.guide-card { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; align-items: center; padding: 28px; overflow: hidden; position: relative; }
.guide-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -30px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, #FBE7B6 0%, rgba(251,231,182,0) 70%); }
.guide-card.ru::before { background: radial-gradient(circle, #DDE9D2 0%, rgba(221,233,210,0) 70%); }
.guide-portrait { position: relative; width: 220px; height: 220px; cursor: pointer; border: 0; padding: 0; background: none; border-radius: 50%; }
.guide-portrait img { width: 100%; height: 100%; }
.guide-card h3 { font-size: 2rem; margin-bottom: 2px; }
.guide-role { font-family: var(--font-display); color: var(--amber-deep); font-weight: 500; margin-bottom: 10px; }
.guide-card ul { padding-left: 1.1em; margin: 0 0 12px; color: var(--muted); }
.guide-card li { margin-bottom: 4px; }
.speech { position: relative; background: var(--cream); border: 2px solid rgba(201,130,27,.3); border-radius: 18px; padding: 12px 16px; font-weight: 700; color: var(--forest); font-size: 1rem; }
.speech::before { content: ""; position: absolute; left: -10px; top: 18px; width: 16px; height: 16px; background: var(--cream); border-left: 2px solid rgba(201,130,27,.3); border-bottom: 2px solid rgba(201,130,27,.3); transform: rotate(45deg); }
.poses { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.poses button { border: 2px solid rgba(36,80,58,.18); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-weight: 700; color: var(--forest); cursor: pointer; font-family: var(--font-body); font-size: .88rem; }
.poses button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.do-bounce { animation: bounce .8s ease !important; }
.do-wiggle { animation: wiggle .7s ease !important; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; position: relative; }
.feature .ico { width: 64px; height: 64px; border-radius: 18px; background: #FBE7B6; display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico .icon { width: 36px; height: 36px; color: var(--forest); }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--muted); margin: 0; }
.feature.soon { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%); color: #E9F0E2; grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.feature.soon h3 { color: #fff; }
.feature.soon p { color: #D4E0CB; }
.feature.soon .ico { background: rgba(255,255,255,.12); }
.soon-pill { display: inline-block; background: var(--gold); color: var(--forest-deep); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.idea-demo { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); border-radius: 16px; padding: 14px 16px; max-width: 300px; font-size: .95rem; }
.idea-demo .typed { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 8px 12px; margin: 6px 0 10px; font-weight: 700; }
.idea-demo .typed::after { content: "|"; color: var(--amber); animation: twinkle 1s steps(2) infinite; }

/* Audience */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.aud-card { padding: clamp(26px, 3vw, 40px); }
.aud-card h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); display: flex; align-items: center; gap: 12px; }
.aud-card h2 .icon { width: 42px; height: 42px; color: var(--forest); }
.domain-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.domain-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--cream); border-radius: 14px; padding: 12px 14px; }
.domain-tag { font-family: var(--font-display); font-weight: 600; background: var(--forest); color: #fff; border-radius: 10px; padding: 3px 10px; font-size: .9rem; min-width: 104px; text-align: center; }
.domain-tag.gold { background: var(--gold); color: var(--forest-deep); }
.check-list { list-style: none; padding: 0; margin: 14px 0 22px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.check-list .icon { margin-top: 3px; width: 22px; height: 22px; }
.small-note { font-size: .92rem; color: var(--muted); }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; border-top: 4px dashed rgba(201,130,27,.45); }
.stage { padding: 76px 24px 26px; position: relative; text-align: left; }
.stage .dot { position: absolute; top: 12px; left: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 4px solid var(--gold); display: grid; place-items: center; }
.stage .dot .icon { width: 24px; height: 24px; color: var(--forest); }
.stage.now .dot { background: var(--forest); border-color: var(--forest); }
.stage.now .dot .icon { color: #fff; }
.stage .when { font-family: var(--font-display); font-weight: 600; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }
.stage h3 { font-size: 1.4rem; margin-top: 4px; }
.stage ul { padding-left: 1.1em; margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { padding: 0 0 40px; }
.cta-inner { background: linear-gradient(120deg, #FBE7B6, #F6D58A); border-radius: 34px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-inner img { width: 150px; height: 150px; }
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--forest-deep); }
.cta-inner p { margin: 0; color: #5a4520; font-size: 1.1rem; }

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .guide-card::before { left: 50%; top: 140px; transform: translate(-50%, -50%); }
  .speech::before { display: none; }
  .poses { justify-content: center; }
  .guide-card ul { text-align: left; }
}
@media (max-width: 860px) {
  .guide-grid, .audience, .roadmap { grid-template-columns: 1fr; }
  .roadmap::before { display: none; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .feature.soon { grid-column: auto; grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .brand img { height: 42px; }
}

/* Adventure picker */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.adv-card:hover, .adv-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-art { display: block; aspect-ratio: 16 / 10; background: linear-gradient(180deg, #FBF5E6, #F4E8CC 55%, #C9D9B8); overflow: hidden; }
.adv-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.adv-card:hover .adv-art img { transform: scale(1.04); }
.adv-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.adv-topic { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); }
.adv-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--forest); }
.adv-blurb { color: var(--muted); font-size: .98rem; flex: 1; }
.adv-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--font-display); font-weight: 600; color: var(--forest); }
.adv-go .icon { width: 18px; height: 18px; transition: transform .25s; }
.adv-card:hover .adv-go .icon { transform: translateX(4px); }
@media (max-width: 1100px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .adv-grid { grid-template-columns: 1fr; } }

/* Accessibility statement page */
.statement { padding: 56px 0 72px; }
.statement:focus { outline: none; }
.statement .narrow { max-width: 760px; }
.statement h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.statement h2 { font-size: 1.6rem; margin-top: 1.6em; }
.statement .lead { font-size: 1.2rem; color: var(--muted); }
.statement ul { padding-left: 1.3em; }
.statement li { margin-bottom: .6em; line-height: 1.6; }
.statement kbd { font: 700 .9em var(--font-body); background: #fff; border: 1px solid #B9B29C; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }

/* Coming soon: early examples of Underhill Maths and Little Explorers */
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.cs-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.cs-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #F4E8CC; border-bottom: 1px solid rgba(201, 130, 27, .2); }
.cs-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cs-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.cs-body p { color: var(--muted); margin: 0 0 6px; flex: 1; }
.cs-tag { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #5E3B07; background: #FFF4D6; border: 2px dashed #8F5A0E; border-radius: 999px; padding: 2px 12px; }
.cs-title { font-size: 1.5rem; margin: 0; }
@media (max-width: 760px) { .cs-grid { grid-template-columns: 1fr; } }
.ua-dark .cs-tag { background: #F3D27A; color: #000; border-color: #000; }
.ua-dark .cs-card { background: var(--paper); }
.ua-dark .cs-body p { color: var(--ink); }
