/* Landing-page styles are scoped to avoid changing activity and profile pages. */
.home-page { --home-ink: #182b24; --home-muted: #53665d; --home-green: #547b0a; }
.home-page .navbar, .home-page .navbar.scrolled { min-height: 80px; padding: 12px 0; }
.home-page .home-hero { min-height: 0; padding: 144px 0 80px; overflow: visible; }
.home-page .home-hero::before, .home-page .home-hero::after { display: none; }
.home-hero-grid { display: grid; grid-template-columns: 1.13fr 1fr; gap: 52px; align-items: center; }
.home-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--home-green); font-size: .7rem; font-weight: 700; letter-spacing: .13em; margin-bottom: 19px; }
.home-live-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--home-green); box-shadow: 0 0 0 4px #e6efd7; }
.home-intro h1 { color: var(--home-ink); font-size: clamp(2rem, 4.2vw, 3.65rem); line-height: 1.12; font-weight: 800; letter-spacing: -.045em; margin: 0 0 24px; }
.home-intro h1 span { display: block; }
.home-intro h1 span + span { color: var(--home-green); }
.home-lead { color: var(--home-muted); font-size: 1.14rem; line-height: 1.75; max-width: 48ch; margin-bottom: 27px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 19px; border: 1px solid transparent; border-radius: 12px; font-size: .95rem; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background-color .18s, box-shadow .18s; }
.home-button-primary { background: #9cda35; color: #152409; }
.home-button-primary:hover { background: #ace348; color: #152409; box-shadow: 0 4px 14px #547b0a20; }
.home-button-secondary { border-color: #cad5cc; background: #ffffffdd; color: var(--home-ink); }
.home-button-secondary:hover { background: #edf3e6; color: var(--home-ink); }
.home-page a:focus-visible, .home-page button:focus-visible, .home-page summary:focus-visible { outline: 3px solid #648f15; outline-offset: 4px; }
.home-supporter-note { display: flex; align-items: baseline; gap: 8px; margin: 17px 0 0; font-size: .86rem; color: var(--home-muted); }
.home-platforms { display: flex; gap: 12px; margin-top: 23px; color: var(--home-muted); font-size: .8rem; }
.home-platforms i { margin-right: 3px; }
.home-demo { padding: 20px; background: #e7eddf; border: 1px solid #d9e3d0; border-radius: 25px; box-shadow: 0 22px 48px #223b2110; scroll-margin-top: 108px; }
.home-demo-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: #526444; font-size: .64rem; letter-spacing: .09em; font-weight: 700; }
.home-demo-tag { padding: 5px 9px; background: #ffffffa8; border-radius: 20px; letter-spacing: 0; font-weight: 500; }
.home-run-card { background: #fff; border: 1px solid #dfe7d8; border-radius: 17px; overflow: hidden; }
.home-run-heading { display: flex; align-items: center; gap: 11px; padding: 18px 16px; }
.home-run-avatar { display: grid; place-items: center; flex: 0 0 41px; height: 41px; border-radius: 12px; background: #edf4e1; color: var(--home-green); font-size: 1.4rem; }
.home-run-heading h2 { margin: 0 0 4px; color: var(--home-ink); font-size: 1rem; font-weight: 700; }
.home-run-heading p { margin: 0; color: var(--home-muted); font-size: .71rem; line-height: 1.5; }
.home-map { position: relative; }
.home-map svg { display: block; width: 100%; height: auto; }
.home-map-label { position: absolute; left: 12px; bottom: 10px; padding: 4px 7px; border-radius: 5px; background: #fffffff0; color: #4f6151; font-size: .59rem; }
.home-run-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 16px 10px; text-align: center; }
.home-run-stats > div + div { border-left: 1px solid #e8ece4; }
.home-run-stats dt { color: var(--home-muted); font-size: .57rem; letter-spacing: .06em; font-weight: 600; }
.home-run-stats dd { color: var(--home-ink); font-size: 1.18rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 5px 0 0; }
.home-run-stats small { font-size: .63rem; font-weight: 500; }
.home-demo-feedback { min-height: 79px; display: flex; align-items: center; gap: 10px; margin: 0 10px 10px; padding: 14px; background: #f4f8ee; border-radius: 10px; }
.home-cheer-emoji { font-size: 1.5rem; flex-shrink: 0; }
.home-demo-feedback strong { display: block; color: var(--home-ink); font-size: .73rem; line-height: 1.5; }
#demo-status { display: block; color: var(--home-muted); font-size: .67rem; line-height: 1.5; margin-top: 3px; }
.home-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 27px; margin-left: auto; padding-left: 4px; }
.home-wave i { display: block; width: 3px; height: 7px; border-radius: 3px; background: #91b651; }
.home-wave i:nth-child(2), .home-wave i:nth-child(3) { height: 17px; }
.home-demo.is-playing .home-wave i { animation: home-sound .65s ease-in-out infinite alternate; }
.home-demo.is-playing .home-wave i:nth-child(2) { animation-delay: -.2s; }
.home-demo.is-playing .home-wave i:nth-child(3) { animation-delay: -.4s; }
.home-demo.is-playing .home-wave i:nth-child(4) { animation-delay: -.3s; }
.home-demo.is-playing .home-map-halo { animation: home-pulse .8s ease-in-out infinite alternate; }
.home-cheer { width: 100%; margin-top: 14px; background: #20382b; color: #fff; }
.home-cheer:hover { background: #314f3a; }
.home-cheer:disabled { opacity: .7; cursor: wait; }
.home-cheer[hidden] { display: none; }
.home-demo-note { margin: 11px 0 0; color: #526444; font-size: .64rem; line-height: 1.6; text-align: center; }
.home-audio-fallback { display: block; width: 100%; margin-top: 14px; }
.home-section { padding: 72px 0; color: var(--home-ink); }
.home-section-heading { margin-bottom: 34px; }
.home-section-heading .home-eyebrow { margin-bottom: 12px; }
.home-section-heading h2 { color: var(--home-ink); font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px; }
.home-section-heading > p:last-child:not(.home-eyebrow) { color: var(--home-muted); font-size: .95rem; line-height: 1.8; }
.home-how { border-top: 1px solid #e2e9dc; border-bottom: 1px solid #e2e9dc; background: #ffffffb8; }
.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; list-style: none; padding: 0; margin: 0; }
.home-steps li { position: relative; }
.home-step-number { display: grid; place-items: center; width: 39px; height: 39px; background: #e9f1db; color: var(--home-green); border-radius: 50%; font-size: .8rem; font-weight: 700; }
.home-steps h3, .home-features h3 { font-size: 1.13rem; font-weight: 700; margin: 18px 0 10px; color: var(--home-ink); }
.home-steps p, .home-features p { font-size: .95rem; line-height: 1.8; color: var(--home-muted); margin: 0; }
.home-role-note { display: flex; align-items: center; gap: 13px; margin: 32px 0 0; padding: 18px 22px; border-radius: 12px; background: #edf3e6; font-size: .88rem; line-height: 1.7; color: var(--home-muted); }
.home-role-note > i { color: var(--home-green); font-size: 1.25rem; }
.home-role-note strong { color: var(--home-ink); }
.home-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-features article { padding: 28px; border: 1px solid #dfe6da; border-radius: 17px; background: #ffffffd9; }
.home-feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ecf3e2; color: var(--home-green); font-size: 1.25rem; }
.home-faq { padding-top: 0; }
.home-faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 65px; }
.home-faq-list details { border-bottom: 1px solid #dce4d5; }
.home-faq-list details:first-child { border-top: 1px solid #dce4d5; }
.home-faq-list summary { position: relative; padding: 21px 38px 21px 0; color: var(--home-ink); font-size: .97rem; font-weight: 600; cursor: pointer; list-style: none; }
.home-faq-list summary::-webkit-details-marker { display: none; }
.home-faq-list summary::after { content: '+'; position: absolute; right: 6px; top: 18px; color: var(--home-green); font-size: 1.2rem; }
.home-faq-list details[open] summary::after { content: '−'; }
.home-faq-list details p { margin: 0; padding: 0 28px 21px 0; color: var(--home-muted); font-size: .92rem; line-height: 1.8; }
.home-download { padding: 0 0 72px; scroll-margin-top: 110px; }
.home-download-panel { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 50px; padding: 45px; border-radius: 23px; background: #20382b; }
.home-download .home-eyebrow { color: #b7d886; margin-bottom: 14px; }
.home-download h2 { color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: 17px; }
.home-download-panel > div > p:last-child { margin: 0; color: #cbd7cf; font-size: .98rem; line-height: 1.8; }
.home-download-actions { display: grid; gap: 12px; }
.home-store-link { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border: 1px solid #6b8272; border-radius: 12px; background: #ffffff08; text-decoration: none; color: #fff; }
.home-store-link:hover { color: #fff; background: #ffffff14; border-color: #b7d886; }
.home-store-link > i:first-child { font-size: 1.65rem; }
.home-store-link > i:last-child { margin-left: auto; color: #b7d886; }
.home-store-link small { display: block; font-size: .69rem; color: #cbd7cf; }
.home-store-link strong { display: block; font-size: 1.05rem; font-weight: 600; }
@keyframes home-sound { to { transform: scaleY(1.6); } }
@keyframes home-pulse { to { opacity: .55; } }
@media (max-width: 1199px) {
    .home-hero-grid { gap: 30px; }
    .home-intro h1 { font-size: 2.8rem; }
    .home-button { font-size: .88rem; padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 991px) {
    .home-page .navbar, .home-page .navbar.scrolled { min-height: 72px; padding: 8px 0; background: #f8faf5; }
    .home-page .home-hero { padding: 112px 0 55px; }
    .home-hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .home-intro { max-width: 650px; }
    .home-intro h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
    .home-demo { width: 100%; max-width: 530px; justify-self: center; }
    .home-section { padding: 54px 0; }
    .home-steps { gap: 24px; }
    .home-features { gap: 15px; }
    .home-features article { padding: 22px; }
    .home-faq { padding-top: 0; }
    .home-faq-grid { grid-template-columns: 1fr 1.5fr; gap: 35px; }
    .home-download-panel { grid-template-columns: 1fr; gap: 25px; padding: 32px; }
    .home-download-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .home-page .home-hero { padding: 108px 0 42px; }
    .home-hero-grid { gap: 27px; }
    .home-intro .home-eyebrow { font-size: .64rem; }
    .home-intro h1 { font-size: clamp(1.9rem, 8.1vw, 2.6rem); }
    .home-lead { font-size: 1rem; line-height: 1.7; }
    .home-actions .home-button { width: 100%; }
    .home-supporter-note { font-size: .78rem; }
    .home-demo { padding: 13px; }
    .home-run-heading { padding: 15px 12px; }
    .home-demo-feedback { padding: 12px 10px; }
    .home-wave { display: none; }
    .home-section { padding: 43px 0; }
    .home-section-heading { margin-bottom: 26px; }
    .home-steps, .home-features, .home-faq-grid { grid-template-columns: 1fr; }
    .home-steps { gap: 26px; }
    .home-steps li { padding-left: 56px; }
    .home-step-number { position: absolute; left: 0; top: 0; }
    .home-steps h3 { margin-top: 0; }
    .home-role-note { align-items: flex-start; padding: 17px; }
    .home-features article { padding: 25px; }
    .home-faq { padding-top: 0; }
    .home-faq-grid { gap: 0; }
    .home-download { padding-bottom: 43px; }
    .home-download-panel { padding: 25px 21px; }
    .home-download h2 { font-size: 1.75rem; }
    .home-download-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
