/* The homepage journey continues the illustrated world of the hero. */
.home-page main {
  background-image:
    radial-gradient(circle at 28px 64px, rgba(210, 225, 255, 0.28) 0.7px, transparent 1.3px),
    radial-gradient(circle at 140px 190px, rgba(255, 222, 151, 0.2) 0.8px, transparent 1.4px);
  background-size: 370px 430px, 510px 570px;
}

.world-section {
  position: relative;
  width: min(calc(100% - 80px), 1180px);
  margin: 0 auto;
  scroll-margin-top: 128px;
}

.world-title { margin: 14px 0 24px; font-size: clamp(2.2rem, 3.8vw, 3.4rem); line-height: 1.13; letter-spacing: -0.045em; text-wrap: balance; }
.world-title span { color: #ffe1a0; }
.world-lede { max-width: 62ch; margin: 0 auto; color: #b9cbea; font-size: 1.05rem; line-height: 1.85; }
.home-page #features.world-intro { padding: 94px 0 54px; text-align: center; }
.world-intro::before { content: '\2726'; display: block; margin-bottom: 24px; color: #ffde97; font-size: 24px; text-shadow: 0 0 26px rgba(255, 215, 120, 0.65); }
.world-intro .world-title { font-size: clamp(2.6rem, 4.5vw, 4rem); }

.adventure-path { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.adventure-path::before { content: ''; position: absolute; top: 55px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgba(250, 211, 137, 0.4) 15%, rgba(250, 211, 137, 0.4) 85%, transparent); }
.adventure-path a { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 0 12px 22px; border-radius: 24px; }
.path-orb { position: relative; display: grid; place-items: center; width: 110px; height: 110px; margin-bottom: 22px; border: 1px solid rgba(255, 218, 137, 0.38); border-radius: 50%; background: radial-gradient(circle at 50% 36%, #244769, #0b1c37 72%); box-shadow: 0 0 0 8px #08162f, 0 0 36px rgba(224, 193, 127, 0.09); transition: transform 220ms ease, box-shadow 220ms ease; }
.path-orb img { width: 76px; height: 78px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(255, 218, 137, 0.22)); }
.earned-star { color: #ffdc78; font-size: 68px; line-height: 1; text-shadow: 0 4px 0 #b78020, 0 0 24px rgba(255, 218, 137, 0.35); }
.path-step { color: #ffe6b7; font-size: 0.98rem; font-weight: 650; }
.adventure-path strong { margin-top: 6px; color: #aebfdd; font-size: 0.82rem; font-weight: 400; }
.path-arrow { margin-top: 18px; color: #efd293; }
.adventure-path a:hover .path-orb { transform: translateY(-5px); box-shadow: 0 0 0 8px #08162f, 0 0 40px rgba(224, 193, 127, 0.22); }

.story-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 96px); padding: 52px 0; }
.story-copy { min-width: 0; }
.chapter-label { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: #e9d19f; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.chapter-label > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 218, 137, 0.35); border-radius: 50%; font-size: 0.66rem; letter-spacing: 0.06em; }
.story-copy > p:not(.chapter-label) { max-width: 47ch; color: #bdcde7; font-size: 1rem; line-height: 1.9; }
.story-points { display: grid; gap: 10px; list-style: none; padding: 0; margin: 24px 0; }
.story-points li { position: relative; padding-left: 24px; color: #d2dff4; font-size: 0.86rem; }
.story-points li::before { content: '\2726'; position: absolute; left: 0; color: #ffda89; font-size: 12px; }
.star-explanation { margin: 24px 0 12px; padding: 16px 20px; border-left: 2px solid #dcb76b; background: rgba(25, 48, 83, 0.55); border-radius: 0 14px 14px 0; scroll-margin-top: 150px; }
.star-explanation h3 { margin: 0 0 6px; color: #ffe1a0; font-size: 0.9rem; }
.star-explanation p { margin: 0; color: #c6d3ed; font-size: 0.87rem; line-height: 1.75; }
.story-copy > .stars-note { color: #ffe1a0; font-size: 0.87rem; }
.story-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; padding: 4px 0; color: #ffe1a0; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.story-link span { font-size: 1.2rem; transition: transform 180ms ease; }
.story-link:hover span { transform: translate(3px, -3px); }
.story-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.story-reverse .story-copy { grid-column: 2; grid-row: 1; }
.story-reverse .story-visual { grid-column: 1; grid-row: 1; }

.story-visual { position: relative; isolation: isolate; height: 548px; min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255, 218, 137, 0.26); border-radius: 180px 180px 32px 32px; box-shadow: 0 24px 65px rgba(0, 7, 28, 0.35), 0 0 70px rgba(56, 86, 165, 0.12); }
.missions-scene { background: linear-gradient(0deg, rgba(5, 15, 47, 0.55), rgba(10, 19, 65, 0.23)), url('../assets/kids/hero-enchanted-world-mobile.jpg') center 47% / cover; }
.rewards-scene { background: radial-gradient(ellipse at 50% 44%, rgba(27, 59, 71, 0.4), rgba(3, 24, 33, 0.85)), url('../assets/kids/hero-enchanted-world.jpg') 82% 50% / auto 100%; }
.scene-orbit { position: absolute; width: 360px; height: 360px; max-width: 100%; left: 50%; top: 90px; transform: translateX(-50%) rotate(-20deg); border: 1px solid rgba(255, 218, 137, 0.32); border-radius: 50%; box-shadow: 0 0 0 24px rgba(181, 190, 255, 0.025), 0 0 0 25px rgba(181, 190, 255, 0.11); }
.story-phone { position: absolute; top: 36px; left: 50%; width: 220px; aspect-ratio: 1 / 2; transform: translateX(-50%) rotate(3deg); overflow: hidden; border-radius: 35px; background: #080e25; box-shadow: 0 22px 45px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 222, 151, 0.6); }
.story-phone img { position: absolute; left: -191.575%; top: -46.337%; width: 562.637%; max-width: none; height: auto; }
.avatar-phone { left: 43%; transform: translateX(-50%) rotate(-4deg); }
.avatar-phone img { left: -296.9%; }
.rewards-buddy { position: absolute; width: 202px; height: auto; right: 4px; bottom: 52px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5)); }
.scene-star { position: absolute; color: #ffdf95; text-shadow: 0 0 20px #ffd065; line-height: 1; }
.star-one { top: 145px; right: 26px; font-size: 32px; }
.star-two { top: 300px; left: 26px; font-size: 21px; }
.scene-caption { position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 24px); padding: 11px 18px; border: 1px solid rgba(255, 218, 137, 0.3); border-radius: 40px; background: rgba(6, 24, 53, 0.93); color: #f9e8c3; font-size: 0.75rem; text-align: center; }
.scene-caption > span { padding-right: 7px; color: #ffda89; }
.savings-scene { border-radius: 32px 160px 32px 32px; }
.savings-scene > img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }

.family-garden { margin-top: 68px; padding: 56px; border: 1px solid rgba(170, 210, 210, 0.21); border-radius: 32px; background: radial-gradient(ellipse at 100% 0, rgba(32, 101, 101, 0.2), transparent 75%), linear-gradient(115deg, #0d2541, #0c2139); }
.family-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 60px; align-items: center; }
.family-heading .eyebrow { grid-column: 1 / -1; }
.family-heading .world-title { font-size: clamp(2rem, 3vw, 2.8rem); }
.family-heading > p:last-child { color: #bdcee5; font-size: 0.98rem; line-height: 1.85; }
.family-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding-top: 25px; margin-top: 16px; border-top: 1px solid rgba(166, 205, 217, 0.18); }
.promise-symbol { display: block; margin-bottom: 14px; color: #ffe1a0; font-size: 24px; text-shadow: 0 0 22px rgba(243, 214, 153, 0.3); }
.family-promises h3 { margin: 0 0 12px; font-size: 0.97rem; line-height: 1.4; color: #f5e9d1; }
.family-promises p { margin: 0; color: #b7cbe2; font-size: 0.87rem; line-height: 1.85; }

.world-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; padding: 115px 0 90px; }
.faq-intro { align-self: start; position: sticky; top: 145px; }
.faq-intro > p:not(.eyebrow) { max-width: 30ch; color: #b7cae7; font-size: 0.97rem; line-height: 1.8; }
.faq-intro .story-link { margin-top: 14px; }
.faq-group-label { color: #b2c6e7; margin: 0 0 12px; font-size: 0.7rem; letter-spacing: 0.12em; font-weight: 600; text-transform: uppercase; }
.faq-list { margin-top: 0; }
.faq-list + .faq-group-label { margin-top: 38px; }
.faq-item { margin-bottom: 10px; padding: 0; border: 1px solid rgba(160, 187, 234, 0.18); border-radius: 16px; background: rgba(19, 39, 73, 0.52); scroll-margin-top: 145px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; min-height: 68px; list-style: none; cursor: pointer; border-radius: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; color: #e1e9f9; font-size: 0.93rem; line-height: 1.5; font-weight: 550; }
.faq-toggle { position: relative; flex: 0 0 16px; height: 16px; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; background: #f4d69a; border-radius: 1px; }
.faq-toggle::before { top: 7px; left: 1px; width: 14px; height: 2px; }
.faq-toggle::after { top: 1px; left: 7px; width: 2px; height: 14px; }
.faq-item[open] .faq-toggle::after { display: none; }
.faq-item[open] { border-color: rgba(255, 218, 137, 0.35); background: #102347; }
.faq-item[open] summary h3 { color: #ffe4b1; }
.faq-item summary:hover h3 { color: #ffe4b1; }
.faq-answer { padding: 0 22px 24px; }
.faq-answer p { font-size: 0.89rem; line-height: 1.85; }
.faq-answer a { color: #ffe1a0; text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .story-section { gap: 38px; }
  .story-visual { height: 490px; border-top-left-radius: 140px; border-top-right-radius: 140px; }
  .story-phone { width: 200px; top: 28px; border-radius: 32px; }
  .rewards-buddy { width: 168px; right: -6px; }
  .star-one { right: 18px; }
  .star-two { left: 14px; }
  .family-garden { padding: 40px; }
  .family-heading { gap: 0 38px; }
  .world-faq { gap: 50px; }
}

@media (max-width: 800px) {
  .world-section { width: calc(100% - 40px); }
  .home-page #features.world-intro { padding: 64px 0 24px; }
  .world-title { font-size: clamp(2.1rem, 5vw, 3rem); }
  .adventure-path { gap: 12px; margin-top: 44px; }
  .path-step { font-size: 0.83rem; }
  .adventure-path strong { max-width: 18ch; font-size: 0.76rem; }
  .story-section { gap: 32px; padding: 36px 0; }
  .story-visual { height: 440px; border-top-left-radius: 100px; border-top-right-radius: 100px; }
  .story-phone { width: 172px; border-radius: 28px; }
  .rewards-buddy { width: 136px; }
  .chapter-label { font-size: 0.6rem; gap: 8px; }
  .story-copy > p:not(.chapter-label) { font-size: 0.9rem; }
  .story-points li { font-size: 0.8rem; }
  .scene-caption { font-size: 0.65rem; padding: 9px 12px; }
  .scene-orbit { width: 240px; height: 280px; }
  .family-garden { margin-top: 40px; padding: 34px; }
  .family-heading { grid-template-columns: 1fr; gap: 0; }
  .family-heading .world-title { margin-bottom: 6px; }
  .family-promises { gap: 22px; }
  .world-faq { grid-template-columns: 1fr; gap: 30px; padding: 76px 0 54px; }
  .faq-intro { position: static; }
  .faq-intro > p:not(.eyebrow) { max-width: 48ch; }
}

@media (max-width: 600px) {
  .world-section { scroll-margin-top: 145px; }
  .world-lede { font-size: 0.92rem; }
  .desktop-break { display: none; }
  .adventure-path { grid-template-columns: 1fr; gap: 6px; text-align: left; margin: 34px auto 0; max-width: 380px; }
  .adventure-path::before { top: 30px; bottom: 50px; left: 38px; right: auto; height: auto; width: 1px; background: rgba(250, 211, 137, 0.25); }
  .adventure-path a { display: grid; grid-template-columns: 78px 1fr 12px; gap: 0 16px; padding: 14px 0; }
  .path-orb { grid-column: 1; grid-row: 1 / 3; width: 76px; height: 76px; margin: 0; box-shadow: 0 0 0 5px #08162f; }
  .path-orb img { width: 53px; height: 57px; }
  .earned-star { font-size: 48px; }
  .path-step { align-self: end; font-size: 0.88rem; }
  .adventure-path strong { align-self: start; max-width: none; font-size: 0.75rem; }
  .path-arrow { grid-column: 3; grid-row: 1 / 3; margin: 0; }
  .story-section { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .story-copy, .story-reverse .story-copy { grid-column: 1; grid-row: 1; }
  .story-visual, .story-reverse .story-visual { grid-column: 1; grid-row: 2; height: 455px; border-radius: 130px 130px 24px 24px; }
  .story-copy .world-title { font-size: 2.2rem; }
  .story-copy > p:not(.chapter-label) { font-size: 0.96rem; }
  .chapter-label { font-size: 0.64rem; }
  .story-points li { font-size: 0.84rem; }
  .story-phone { width: 190px; top: 22px; border-radius: 30px; }
  .scene-caption { font-size: 0.7rem; bottom: 16px; }
  .rewards-buddy { width: 164px; right: 0; bottom: 45px; }
  .savings-scene { height: 400px; border-radius: 24px 100px 24px 24px; }
  .family-garden { padding: 30px 24px; margin-top: 36px; border-radius: 24px; }
  .family-promises { grid-template-columns: 1fr; gap: 28px; }
  .family-promises article { position: relative; padding-left: 40px; }
  .promise-symbol { position: absolute; top: -7px; left: 0; }
  .family-heading > p:last-child { font-size: 0.9rem; }
  .family-promises h3 { font-size: 0.93rem; }
  .faq-item summary { padding: 18px; gap: 15px; }
  .faq-item summary h3 { font-size: 0.88rem; }
  .faq-answer { padding: 0 18px 20px; }
}

@media (max-width: 360px) {
  .story-copy .world-title { font-size: 1.98rem; }
  .rewards-buddy { width: 145px; }
  .path-step { font-size: 0.82rem; }
  .adventure-path strong { font-size: 0.7rem; }
  .adventure-path a { gap: 0 12px; }
}
