/* Stormy Lagoon home page (v4.1.0). Loaded only by index.php, after styles.css. */

.home-page .hero{min-height:600px}
.home-page .hero-actions .btn{min-width:170px}

/* Section headings: one left-aligned style for every home section */
.home-head{margin-bottom:28px;max-width:760px}
.home-head h2,.home-band h2,.home-cta-box h2{font-family:'Baloo 2',Nunito,sans-serif;font-size:clamp(36px,4.4vw,58px);line-height:.98;letter-spacing:-.035em;margin:0 0 8px}
.home-head p{margin:0;color:#aecaeb;font-size:18px;line-height:1.5}
.home-head-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;max-width:none}
.home-page .weekly-heading{margin-bottom:28px}
.home-page .weekly-heading h2{font-size:clamp(36px,4.4vw,58px)}

/* Feature cards: no icon tiles, a text link where a page exists */
.home-features .feature-card{min-height:0;display:flex;flex-direction:column;gap:10px}
.home-features .feature-card h3{margin:0;color:#fff}
.home-features .feature-card p{flex:1}
.feature-more{align-self:flex-start;color:#6fe3ff;text-decoration:none;font-weight:900}
.feature-more:after{content:" →"}
.feature-more:hover,.feature-more:focus-visible{color:#fff;text-decoration:underline}

/* Getting started steps */
.start-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;counter-reset:step}
.start-steps li{counter-increment:step;position:relative;padding:24px 22px 22px;border-radius:20px;background:rgba(16,29,49,.72);border:1px solid var(--line)}
.start-steps li:before{content:counter(step);display:grid;place-items:center;width:36px;height:36px;margin-bottom:14px;border-radius:11px;background:linear-gradient(135deg,#0a7fc4,#d81f66);color:#fff;font-family:'Baloo 2',Nunito,sans-serif;font-size:20px;line-height:1}
.start-steps b{display:block;font-family:'Baloo 2',Nunito,sans-serif;font-size:24px;line-height:1.05;color:#fff}
.start-steps p{margin:8px 0 0;color:#b8cde6;line-height:1.55;font-weight:700}
.home-page code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em;font-weight:700;color:#8eeaff;background:rgba(18,215,255,.09);border:1px solid rgba(18,215,255,.18);border-radius:7px;padding:1px 6px;white-space:nowrap}
.start-link{margin-top:14px;padding:0;border:0;background:none;color:#6fe3ff;font:inherit;font-weight:900;cursor:pointer;text-align:left}
.start-link:after{content:" →"}
.start-link:hover,.start-link:focus-visible{color:#fff;text-decoration:underline}

/* Weekly challenge: current week and past weeks on the left, live chart on the right */
.home-page .weekly-dashboard{grid-template-areas:"current chart" "history chart";align-items:start}
.home-page .weekly-current-card{grid-area:current;grid-row:auto}
.home-page .weekly-chart-card{grid-area:chart}
.home-page .weekly-history-card{grid-area:history}
.weekly-goal-beaten{color:#7dffb6}

/* Hiscores band and closing call to action */
.home-band,.home-cta-box{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:34px 38px;border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(120deg,rgba(10,35,58,.85),rgba(16,29,49,.9) 55%,rgba(45,8,32,.6))}
.home-band p,.home-cta-box p{margin:0;color:#c4d9f3;font-size:18px;line-height:1.55}
.home-band-actions{display:flex;gap:10px;flex-wrap:wrap;flex:0 0 auto}
.home-cta-box{flex-direction:column;text-align:center;padding:52px 32px}
.home-cta-box .hero-actions{margin-top:6px}

@media(max-width:860px){
  .home-page .weekly-dashboard{grid-template-areas:"current" "chart" "history"}
}
@media(max-width:980px){
  .start-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-band{flex-direction:column;align-items:flex-start}
}
@media(max-width:760px){
  .home-page .hero{min-height:0}
  .home-page .hero-actions{grid-template-columns:1fr 1fr}
  .home-page .hero-actions .btn,.home-page .hero-actions .btn:last-child{grid-column:auto;width:100%;min-width:0;justify-self:stretch}
  .home-band,.home-cta-box{padding:26px 22px}
  .home-head-row{align-items:flex-start;flex-direction:column;gap:6px}
}
@media(max-width:560px){
  .start-steps{grid-template-columns:1fr}
  .home-page .hero-actions{grid-template-columns:1fr}
}

/* Readability: small weekly labels up to 12px, no one-word last lines */
.home-page .weekly-targets span,.home-page .weekly-panel-title span,.home-page .weekly-history-row span{font-size:12px}
.home-page p{text-wrap:pretty}
