.demo-page main { max-width:1120px; margin:0 auto; padding:30px 24px 60px; }
.demo-page h1 { max-width:830px; margin:15px 0; color:#183c40; font-size:clamp(1.9rem,4vw,2.9rem); line-height:1.15; }
.demo-page h2 { font-size:1.25rem; line-height:1.35; }
.demo-page p, .demo-page small { line-height:1.65; }
.demo-intro > p:not(.demo-badge) { max-width:880px; color:#466168; }
.demo-badge { display:inline-block; margin:0; padding:7px 14px; color:#12616a; background:#dff3f3; border:1px solid #b9e0e0; border-radius:999px; font-size:.78rem; font-weight:700; }
.demo-controls { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin:22px 0 12px; }
.demo-controls label { display:grid; gap:6px; font-weight:700; font-size:.85rem; }
.demo-page select, .demo-page input { min-height:44px; max-width:100%; border:1px solid #bfd3d5; border-radius:8px; padding:9px 11px; background:#fff; color:#24464b; font:inherit; }
.demo-page button { min-height:44px; }
.demo-page :focus-visible { outline:3px solid #07818c; outline-offset:3px; }
.demo-page button:disabled { cursor:default; opacity:.55; }
#demo-status { min-height:1.65em; font-size:.85rem; }
.demo-context { padding:16px 0 2px; }
.demo-context h2 { margin:0 0 6px; }
.demo-context p { margin:0 0 14px; color:#526c73; }
.demo-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:20px 0; }
.demo-metrics article { padding:18px; border:1px solid #d3e5e7; border-radius:16px; background:#fff; }
.demo-metrics h3 { margin:0; color:#355d64; font-size:.88rem; }
.demo-metrics p { margin:8px 0; }
.demo-metrics output { color:#077e89; font-size:2.1rem; font-weight:750; }
.demo-metrics span { margin-left:4px; color:#718589; font-size:.8rem; }
.demo-metrics small { display:block; font-size:.75rem; color:#536d73; }
.demo-journey { min-width:0; padding:22px; border:1px solid #d3e5e7; border-radius:18px; background:#fff; }
.demo-result { display:flex; justify-content:space-between; gap:18px; align-items:center; }
.demo-result h2 { margin:0 0 8px; }
.demo-result p { margin:8px 0; }
.demo-result small { color:#536d73; font-size:.78rem; }
.demo-score { display:grid; text-align:right; min-width:130px; }
.demo-score output { font-size:2.4rem; color:#a76408; font-weight:750; line-height:1.2; }
.demo-score span { font-size:.75rem; color:#64777d; }
#demo-state { color:#446369; font-size:.85rem; }
.demo-bottom { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:22px; }
.demo-input-card, .demo-bottom > .fatigue-actions { margin:0; padding:22px; border:1px solid #d3e5e7; border-radius:18px; background:#fff; }
#demo-inputs { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
#demo-inputs label { display:grid; gap:6px; font-size:.78rem; color:#355d64; }
#demo-inputs input { width:100%; box-sizing:border-box; }
#demo-inputs button { grid-column:1 / -1; justify-self:start; }
.demo-input-card > p, .demo-footnote { color:#536d73; font-size:.8rem; }
.demo-footnote { margin-top:25px; }
.demo-page [hidden] { display:none; }
@media(max-width:760px) { .demo-metrics { grid-template-columns:1fr 1fr; } .demo-bottom { grid-template-columns:1fr; } .demo-controls { align-items:stretch; } .demo-controls label { flex-basis:100%; } }
@media(max-width:440px) { .demo-page main { padding:20px 14px 40px; } .demo-journey { padding:16px 10px; } .demo-result { align-items:start; flex-direction:column; } .demo-score { text-align:left; } .demo-metrics article { padding:14px; } .demo-controls button { flex-basis:100%; } #demo-inputs { grid-template-columns:1fr; } }

/* Editorial desktop treatment for generated-data demo. Keep Coach logic and IDs untouched. */
body.demo-page {
  background:radial-gradient(circle at 92% 4%,rgba(155,203,175,.26),transparent 32rem),linear-gradient(180deg,#f7faf6 0%,#edf5ef 100%);
}
body.demo-page .home-header,body.demo-page main { width:min(1320px,calc(100% - clamp(32px,5vw,80px))); }
body.demo-page .home-header nav a { display:inline-flex; align-items:center; min-height:44px; font-size:.9rem; }
body.demo-page main {
  max-width:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px 22px; padding:28px 0 76px;
}
body.demo-page h2,body.demo-page h3,body.demo-page h4,body.demo-page h5 { letter-spacing:-.035em; }
body.demo-page p,body.demo-page small { line-height:1.55; }
body.demo-page select,body.demo-page input {
  max-width:100%; min-height:48px; padding:10px 13px; border:1px solid #ccdcd2;
  border-radius:12px; background:#fff; color:#183b31; font:inherit; font-size:.93rem;
  transition:border-color 180ms ease,box-shadow 180ms ease;
}
body.demo-page select:hover,body.demo-page input:hover { border-color:#8cb7a3; }
body.demo-page select:focus-visible,body.demo-page input:focus-visible,
body.demo-page button:focus-visible,body.demo-page summary:focus-visible { outline:3px solid #68b89d; outline-offset:3px; }
body.demo-page button { min-height:48px; }
body.demo-page button:disabled { cursor:default; opacity:.55; }

.demo-intro {
  position:relative; isolation:isolate; grid-column:1/-1; display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(320px,.72fr);
  grid-template-areas:"badge controls" "title controls" "description controls" "status controls";
  align-items:start; gap:11px clamp(28px,4vw,70px); overflow:hidden;
  padding:clamp(30px,3.7vw,54px); border-radius:32px;
  background:radial-gradient(circle at 95% 108%,rgba(92,167,138,.33),transparent 38%),linear-gradient(125deg,#173d32 0%,#246958 100%);
  box-shadow:0 28px 48px rgba(25,69,51,.12); color:#f7fff9;
}
.demo-intro::before,.demo-intro::after {
  content:""; position:absolute; z-index:-1; width:460px; aspect-ratio:1;
  border:1px solid rgba(212,247,226,.11); border-radius:50%; pointer-events:none;
}
.demo-intro::before { top:-300px; left:26%; }
.demo-intro::after { right:-240px; bottom:-330px; width:600px; }
.demo-badge {
  grid-area:badge; justify-self:start; margin:0; padding:8px 14px;
  border:1px solid rgba(221,251,234,.24); border-radius:999px;
  background:rgba(226,255,238,.1); color:#cbf1df;
  font-size:.72rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase;
}
body.demo-page .demo-intro h1 {
  grid-area:title; max-width:760px; margin:8px 0 0; color:#fff;
  font-size:clamp(3.1rem,5.1vw,5.35rem); font-weight:790;
  letter-spacing:-.073em; line-height:.99;
}
.demo-intro h1 span,.demo-intro h1 em { display:block; }
.demo-intro h1 span { color:#fff; }
.demo-intro h1 em { color:#bde9d3; font-family:Georgia,"Times New Roman",serif; font-weight:400; letter-spacing:-.064em; }
body.demo-page .demo-intro > p:not(.demo-badge):not(#demo-status) {
  grid-area:description; max-width:58ch; margin:4px 0 0;
  color:#d9ece2; font-size:1.02rem;
}
.demo-controls {
  grid-area:controls; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:center; gap:12px; margin:0; padding:24px;
  border:1px solid rgba(255,255,255,.58); border-radius:24px;
  background:#f7faf5; box-shadow:0 12px 34px rgba(3,36,25,.13); color:#193c32;
}
.demo-controls label { grid-column:1/-1; display:grid; gap:8px; font-size:.82rem; font-weight:800; letter-spacing:.015em; }
.demo-controls select,.demo-controls button { width:100%; }
.demo-controls #demo-play { grid-column:1/-1; }
.demo-controls button { white-space:normal; }
body.demo-page #demo-status { grid-area:status; align-self:end; max-width:62ch; min-height:1.5em; margin:5px 0 0; color:#d0eadd; font-size:.86rem; }

.demo-context,.demo-page .fatigue-early-check {
  min-width:0; min-height:130px; margin:0; padding:22px 25px;
  border:1px solid #dce9df; border-radius:22px; background:rgba(255,255,255,.9);
}
.demo-context { grid-column:1; align-self:start; }
.demo-page .fatigue-early-check { grid-column:2; background:#f6f2e8; border-color:#e8dec9; }
.demo-context::before,.demo-page .fatigue-early-check::before {
  display:block; margin-bottom:9px; color:#337765; font-size:.69rem;
  font-weight:850; letter-spacing:.16em; text-transform:uppercase;
}
.demo-context::before { content:"01 / Current scenario"; }
.demo-page .fatigue-early-check::before { content:"02 / Early signal"; color:#8d662d; }
body.demo-page .demo-context h2 { margin:0 0 4px; font-size:1.48rem; line-height:1.1; }
.demo-context p { margin:0; color:#577067; font-size:.93rem; }
body.demo-page #fatigue-early-status { margin:0; color:#684f2f; font-size:.92rem; line-height:1.5; }
.demo-page .fatigue-early-warning { display:grid; gap:14px; margin-top:14px; padding:16px; border-radius:16px; background:#fffaf0; }
.demo-page .fatigue-early-warning[hidden] { display:none; }
.demo-page .fatigue-early-warning h2 { font-size:1.18rem; }
.demo-page .fatigue-early-controls { margin-top:0; }

.demo-metrics { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0; }
.demo-metrics article {
  position:relative; min-width:0; min-height:176px; overflow:hidden; padding:24px;
  border:1px solid #dbe9dd; border-radius:21px; background:#fff;
  transition:transform 200ms ease,box-shadow 200ms ease;
}
.demo-metrics article:first-child { background:#e9f4e9; }
.demo-metrics article:nth-child(2) { background:#f5f0e5; border-color:#e9dfcb; }
.demo-metrics article::before { content:""; position:absolute; top:0; left:24px; width:56px; height:4px; border-radius:0 0 6px 6px; background:#499d79; }
.demo-metrics article:nth-child(2)::before { background:#b38342; }
.demo-metrics h3 { margin:0; color:#4a685c; font-size:.84rem; font-weight:760; }
.demo-metrics p { margin:12px 0 7px; line-height:1; }
.demo-metrics output { color:#173c32; font-size:clamp(2.6rem,3.8vw,4rem); font-weight:760; letter-spacing:-.07em; }
.demo-metrics span { margin-left:6px; color:#71877b; font-size:.83rem; }
.demo-metrics small { display:block; color:#5d756a; font-size:.79rem; }

.demo-journey {
  grid-column:1/-1; display:grid; grid-template-columns:minmax(310px,.85fr) minmax(0,1.15fr);
  align-items:stretch; gap:20px; min-width:0; padding:clamp(22px,2.5vw,34px);
  border:1px solid #dce8de; border-radius:29px; background:#fff;
  box-shadow:0 18px 38px rgba(30,70,47,.06);
}
.demo-result { grid-column:1/-1; display:flex; align-items:stretch; justify-content:space-between; gap:22px; min-width:0; }
.demo-result > div { align-self:center; }
body.demo-page .demo-result h2 { max-width:19ch; margin:0 0 7px; font-size:clamp(2rem,3.1vw,3.1rem); line-height:1.07; }
.demo-result p:not(.demo-score) { margin:7px 0; color:#49695a; font-size:.98rem; }
.demo-result small { color:#6a8072; font-size:.82rem; }
.demo-score {
  display:grid; place-content:center; min-width:190px; margin:0; padding:16px 22px;
  border-radius:21px; background:#f6efe2; color:#7a572a; text-align:center;
}
.demo-score output { color:#9b651d; font-size:3.6rem; font-weight:760; letter-spacing:-.075em; line-height:1; }
.demo-score span { font-size:.8rem; font-weight:660; }
body.demo-page #demo-state { grid-column:1/-1; margin:0; padding:13px 0 17px; border-bottom:1px solid #dfebe1; color:#486b5b; font-size:.9rem; }
body.demo-page #four-hour-outlook {
  grid-column:1; grid-row:3; align-self:stretch; gap:11px; min-width:0; padding:24px;
  border:1px solid #e9dfcc; border-radius:20px; background:#f7f2e8;
}
body.demo-page #four-hour-outlook h4 { max-width:24ch; color:#285d4b; font-size:1.48rem; line-height:1.15; }
body.demo-page #four-hour-outlook > p,body.demo-page #four-hour-outlook label,body.demo-page #four-hour-outlook small { font-size:.88rem; }
body.demo-page #four-hour-outlook > div { align-items:flex-start; gap:10px; padding:13px 0; border-top:1px solid #e5d9c3; }
body.demo-page #four-hour-outlook > div span { max-width:18ch; color:#597267; font-size:.68rem; }
body.demo-page #four-hour-outlook > div strong { color:#254e3e; font-size:1.4rem; white-space:nowrap; }
body.demo-page .fatigue-graph {
  grid-column:2; grid-row:3; min-width:0; margin:0; padding:23px;
  border:1px solid #dfe9de; border-radius:20px; background:#f9fbf8;
}
body.demo-page .fatigue-graph-heading { align-items:flex-start; }
body.demo-page .fatigue-graph-heading h3 { max-width:24ch; margin:0; font-size:1.4rem; line-height:1.14; }
body.demo-page .fatigue-graph-heading label { font-size:.81rem; font-weight:720; }
body.demo-page #fatigue-graph-status,body.demo-page .fatigue-graph figcaption,body.demo-page .fatigue-graph-legend { font-size:.83rem; }
body.demo-page .fatigue-graph figcaption { margin-top:16px; color:#667c6e; }
body.demo-page .fatigue-graph-table-details summary { min-height:44px; display:inline-flex; align-items:center; font-size:.84rem; }

.demo-bottom { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:stretch; gap:20px; margin:0; }
.demo-input-card,body.demo-page .demo-bottom > .fatigue-actions {
  min-width:0; margin:0; padding:29px; border:1px solid #dce9df;
  border-radius:25px; background:#fff;
}
body.demo-page .demo-bottom > .fatigue-actions { grid-column:auto; background:#eaf4ed; }
body.demo-page .demo-input-card h2,body.demo-page .demo-bottom > .fatigue-actions h2 { margin:0 0 7px; color:#173b30; font-size:1.85rem; line-height:1.12; }
.demo-input-card > p,body.demo-page .demo-bottom > .fatigue-actions > p { color:#5a7667; font-size:.9rem; }
#demo-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:20px 0 16px; }
#demo-inputs label { display:grid; align-content:start; gap:7px; color:#355e4f; font-size:.85rem; font-weight:710; }
#demo-inputs input { width:100%; }
#demo-inputs button { grid-column:1/-1; justify-self:start; }
body.demo-page .fatigue-actions ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0; }
body.demo-page .fatigue-actions li { padding:17px; border:1px solid #d4e5d9; border-radius:16px; background:#fff; }
body.demo-page .fatigue-actions h5 { font-size:1.02rem; }
body.demo-page .fatigue-actions li p { color:#506b5d; font-size:.82rem; line-height:1.52; }
body.demo-page .fatigue-actions .coach-wellbeing-note { color:#6c8274; font-size:.8rem; }
.demo-footnote { grid-column:1/-1; max-width:100ch; margin:5px 0 0; padding:17px 0 0; border-top:1px solid #d7e5d9; color:#6e8375; font-size:.81rem; }

@media (hover:hover) {
  .demo-metrics article:hover { transform:translateY(-3px); box-shadow:0 18px 28px rgba(25,74,48,.09); }
  body.demo-page .demo-controls button:not(:disabled):hover,body.demo-page #demo-inputs button:not(:disabled):hover { transform:translateY(-2px); }
}
@media (max-width:1050px) {
  .demo-intro { grid-template-columns:minmax(0,1fr) minmax(280px,.8fr); }
  body.demo-page .demo-intro h1 { font-size:clamp(2.75rem,5vw,4.2rem); }
  .demo-journey { grid-template-columns:1fr; }
  body.demo-page #four-hour-outlook,body.demo-page .fatigue-graph { grid-column:1; grid-row:auto; }
  body.demo-page .fatigue-actions ul { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  body.demo-page main { grid-template-columns:1fr; gap:14px; padding-top:18px; }
  .demo-intro { grid-template-columns:1fr; grid-template-areas:"badge" "title" "description" "controls" "status"; gap:12px; padding:32px 27px; }
  body.demo-page .demo-intro h1 { font-size:clamp(2.85rem,8vw,4.4rem); }
  .demo-controls { margin-top:7px; }
  .demo-context,.demo-page .fatigue-early-check { grid-column:1; min-height:0; }
  .demo-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .demo-journey,.demo-bottom,.demo-metrics,.demo-footnote { grid-column:1; }
  .demo-bottom { grid-template-columns:1fr; }
  body.demo-page .demo-bottom > .fatigue-actions { grid-column:1; }
  body.demo-page .fatigue-actions ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:500px) {
  body.demo-page main,body.demo-page .home-header { width:calc(100% - 28px); }
  .demo-intro { padding:28px 21px; border-radius:23px; }
  .demo-badge { font-size:.65rem; letter-spacing:.07em; }
  body.demo-page .demo-intro h1 { font-size:clamp(2.55rem,11vw,3.7rem); }
  .demo-controls { padding:16px; border-radius:17px; }
  .demo-controls #demo-play,.demo-controls button { grid-column:1/-1; }
  .demo-context,.demo-page .fatigue-early-check { padding:19px; border-radius:18px; }
  .demo-metrics { gap:9px; }
  .demo-metrics article { min-height:154px; padding:17px; border-radius:17px; }
  .demo-metrics article::before { left:17px; }
  .demo-metrics output { font-size:clamp(2.25rem,10vw,3rem); }
  .demo-metrics small { font-size:.73rem; }
  .demo-journey { gap:16px; padding:18px; border-radius:20px; }
  .demo-result { flex-direction:column; }
  .demo-score { min-width:0; justify-self:start; padding:12px 20px; }
  body.demo-page #four-hour-outlook,body.demo-page .fatigue-graph { padding:18px; }
  body.demo-page .fatigue-graph-heading { flex-direction:column; align-items:start; }
  .demo-input-card,body.demo-page .demo-bottom > .fatigue-actions { padding:20px; border-radius:20px; }
  body.demo-page .fatigue-actions ul { grid-template-columns:1fr; }
  #demo-inputs { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .demo-metrics article,body.demo-page select,body.demo-page input { transition:none; }
  .demo-metrics article:hover,body.demo-page .demo-controls button:not(:disabled):hover,body.demo-page #demo-inputs button:not(:disabled):hover { transform:none; }
}

/* Scan-first labels and progressive disclosure keep the live values prominent. */
body.demo-page .demo-result h2::before,
body.demo-page .demo-input-card h2::before,
body.demo-page .demo-bottom > .fatigue-actions h2::before {
  display:block; margin:0 0 12px; color:#39816b;
  font-size:.7rem; font-weight:850; letter-spacing:.17em; line-height:1.2;
  text-transform:uppercase;
}
body.demo-page .demo-result h2::before { content:"03 / Forecast"; }
body.demo-page .demo-input-card h2::before { content:"04 / Adjust"; }
body.demo-page .demo-bottom > .fatigue-actions h2::before { content:"05 / Act"; }
body.demo-page .fatigue-graph figcaption {
  margin:15px 0 0; padding:12px 14px;
  border-left:3px dashed #b58b4f; border-radius:0 10px 10px 0;
  background:#f7f1e6; color:#5e654e;
}
.demo-reading-note { margin-top:8px; border-top:1px solid #dfe9de; }
.demo-reading-note summary {
  display:inline-flex; align-items:center; min-height:44px; padding:7px 1px;
  color:#226553; cursor:pointer; font-size:.85rem; font-weight:780;
}
.demo-reading-note p { max-width:70ch; margin:0 0 9px; color:#60766a; font-size:.83rem; }
body.demo-page #four-hour-outlook > .demo-model-caution {
  margin-top:4px; padding:11px 13px; border-left:3px solid #a17d45;
  border-radius:0 10px 10px 0; background:rgba(255,255,255,.66);
  color:#665a43; font-size:.82rem;
}
.demo-model-method { border-top:1px solid #e5d9c3; }
.demo-model-method summary { display:inline-flex; align-items:center; min-height:44px; color:#226553; cursor:pointer; font-size:.85rem; font-weight:780; }
.demo-model-method small { display:block; padding:0 3px 12px; color:#65796d; font-size:.82rem; }
.demo-reading-note summary::after,.demo-model-method summary::after {
  content:"+"; display:inline-grid; place-items:center; width:21px; height:21px;
  margin-left:9px; border-radius:50%; background:#e4f0e8; color:#226553; font-size:.95rem;
}
.demo-reading-note[open] summary::after,.demo-model-method[open] summary::after { content:"−"; }
body.demo-page .fatigue-actions ul { counter-reset:demo-action; }
body.demo-page .fatigue-actions li { position:relative; }
body.demo-page .fatigue-actions li::before {
  counter-increment:demo-action; content:counter(demo-action,decimal-leading-zero);
  display:block; width:max-content; margin:0 0 11px; padding:4px 7px;
  border-radius:7px; background:#e8f2e9; color:#316d58;
  font-size:.68rem; font-weight:850; letter-spacing:.06em;
}
body.demo-page .demo-footnote::before {
  content:"Generated data only"; display:block; margin-bottom:5px;
  color:#3c7863; font-size:.68rem; font-weight:850;
  letter-spacing:.16em; text-transform:uppercase;
}
