/* Beat the Stress: home page (index.html). Uses the colors and grid styles from style.css. */
body.home { padding-bottom: 0; }
.home-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(20, 18, 42, .86); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(55, 50, 94, .6); }
.home-nav nav { display: none; gap: 22px; margin-left: auto; }
.home-nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.home-nav nav a:hover { color: var(--text); }
.pill { margin-left: auto; text-decoration: none; color: var(--night); font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px; background: var(--text); }
@media (min-width: 760px) { .home-nav nav { display: flex; } .pill { margin-left: 0; } }

body.home main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 13px 22px; font-weight: 700; }
.btn.primary { color: var(--night); border-color: var(--text); background: var(--text); }
.btn.primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--calm) 45%, transparent); }
.big-link { padding: 15px 26px; font-size: 17px; }

/* hero */
.h-hero { display: grid; gap: 28px; padding: 36px 0 30px; align-items: center; }
.h-hero h1 { font-size: clamp(44px, 10vw, 84px); font-stretch: 78%; line-height: .96; }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.h-visual { margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.h-visual svg { width: 100%; display: block; filter: drop-shadow(0 30px 70px rgba(79, 216, 192, .25)); }
.h-visual figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (min-width: 900px) { .h-hero { grid-template-columns: 1.1fr .9fr; padding: 70px 0 60px; } }

.h-path { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 3 3; stroke-dashoffset: 0; animation: march 1.6s linear infinite; }
.h-you { fill: var(--pre); stroke: #1b1838; stroke-width: 2; }
.h-song { fill: #fff; stroke: #1b1838; stroke-width: 2; opacity: .25; animation: songOn 6s ease-in-out infinite; }
.h-song.s2 { animation-delay: 1.2s; } .h-song.s3 { animation-delay: 2.4s; }
.h-goal { fill: none; stroke: #fff; stroke-width: 2; animation: goalPulse 6s ease-in-out infinite; animation-delay: 2.4s; transform-origin: 152px 149px; }
@keyframes march { to { stroke-dashoffset: -12; } }
@keyframes songOn { 0%, 10% { opacity: .25; } 20%, 70% { opacity: 1; } 85%, 100% { opacity: .25; } }
@keyframes goalPulse { 0%, 15% { transform: scale(1); } 25% { transform: scale(1.35); } 35%, 100% { transform: scale(1); } }

/* sections */
.h-section { padding: 56px 0; border-top: 1px solid rgba(55, 50, 94, .55); }
.h-section h2, .h-final h2 { font-size: clamp(28px, 5vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 12px; max-width: 22ch; }
.h-section .lead { max-width: 62ch; }
.h-cards { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 820px) { .h-cards { grid-template-columns: repeat(3, 1fr); } }
.h-card { background: var(--surface); border-radius: var(--radius-m); padding: 22px; }
.h-card h3, .h-steps h3, .h-grid h3 { font-size: 18px; margin: 10px 0 6px; }
.h-card p, .h-steps p, .h-grid p { color: var(--muted); margin: 0; }

.h-steps { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 720px) { .h-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .h-steps { grid-template-columns: repeat(4, 1fr); } }
.h-steps li { background: var(--surface); border-radius: var(--radius-m); padding: 20px; position: relative; counter-increment: s; }
.h-steps li::before { content: counter(s); position: absolute; top: 12px; right: 18px; color: rgba(255,255,255,.14); font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 54px; line-height: 1; }
.h-steps svg { width: 60px; height: 60px; }
.hs-box { fill: #1d1938; stroke: var(--line); stroke-width: 2; }
.hs-box.on { fill: #2c2752; stroke: var(--calm); }
.hs-line { stroke: #fff; stroke-opacity: .2; stroke-width: 1.5; }
.hs-dot { fill: #fff; }
.hs-ring { fill: none; stroke: #2e2a55; stroke-width: 4; }
.hs-arc { fill: none; stroke: var(--calm); stroke-width: 4; stroke-linecap: round; }
.hs-arrow { stroke: var(--text); stroke-opacity: .7; stroke-width: 2; }
.hs-pre { fill: var(--pre); } .hs-post { fill: var(--post); }

.h-grid { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 720px) { .h-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .h-grid { grid-template-columns: repeat(4, 1fr); } }
.h-grid > div { border-top: 3px solid var(--c, var(--violet)); padding-top: 12px; }
.h-grid > div:nth-child(1) { --c: var(--hyped); } .h-grid > div:nth-child(2) { --c: var(--low); } .h-grid > div:nth-child(3) { --c: var(--calm); } .h-grid > div:nth-child(4) { --c: var(--tense); }

.h-split { display: grid; gap: 22px; }
@media (min-width: 860px) { .h-split { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.h-split p { color: var(--muted); max-width: 56ch; }
.h-safety { background: color-mix(in srgb, var(--tense) 14%, var(--surface)); border-radius: var(--radius-m); padding: 22px; }
.h-safety h3 { margin: 0 0 8px; font-size: 18px; }

.h-final { text-align: center; padding: 64px 0 72px; border-top: 1px solid rgba(55, 50, 94, .55); }
.h-final h2 { margin-left: auto; margin-right: auto; }
.h-final .lead { margin: 0 auto 22px; }
.h-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(55, 50, 94, .55); }
