.morning-demo { scroll-margin-top: 100px; width: 100%; max-width: none; justify-self: stretch; }
.hero { align-items: start; grid-template-columns: minmax(0, 1fr); min-height: auto; gap: 48px; }
.hero .hero-copy { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-headline, .hero-explainer { min-width: 0; }
.hero-headline h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.hero-explainer .hero-lede { margin-top: 0; }
.hero-explainer .waitlist-row { grid-template-columns: minmax(0, 1fr) auto; }
.hero-explainer .waitlist-row input { grid-column: 1 / -1; min-height: 44px; }
.hero-explainer .waitlist-row select { border-left: 0; }
.hero-explainer .waitlist-row .button { white-space: nowrap; }
.morning-demo::before { right: 0; }
.morning-demo .decision-card { overflow: clip; }
.morning-demo [hidden] { display: none !important; }
.morning-demo h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -.03em; }
.morning-demo h3 { margin: 0 0 8px; font-size: 1.13rem; line-height: 1.35; }
.morning-demo p { font-size: .88rem; line-height: 1.55; }
.morning-demo .demo-intro { color: var(--muted); margin: 12px 0 20px; }
.morning-demo fieldset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; margin: 0; padding: 0; }
.morning-demo label { display: grid; gap: 6px; font-size: .8rem; font-weight: 650; color: var(--muted); min-width: 0; }
.morning-demo input, .morning-demo select { width: 100%; min-width: 0; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #16272c; color: var(--text); padding: 10px; font: inherit; font-size: .9rem; }
.morning-demo input:focus-visible, .morning-demo select:focus-visible, .morning-demo button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.morning-demo button.demo-wide { grid-column: 1 / -1; justify-self: start; }
.morning-demo .button { white-space: normal; text-align: center; background: var(--sun-bright); padding-block: 12px; line-height: 1.4; }
.morning-demo button:disabled { opacity: .55; cursor: wait; }
#morning-demo-error { color: var(--danger); }
.demo-clock { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.demo-clock small { display: block; max-width: 150px; font-size: .6rem; color: var(--muted); letter-spacing: .08em; }
.morning-demo progress { display: block; width: 100%; height: 4px; margin: 10px 0 0; accent-color: var(--aqua); }
#morning-demo-playback { scroll-margin-top: 86px; }
.demo-playback-header, .demo-playback-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.demo-playback-header { position: sticky; top: 76px; z-index: 3; padding: 12px; margin-inline: -12px; background: #142329; border-bottom: 1px solid var(--line); border-radius: 12px; }
.morning-demo .demo-location { color: var(--aqua); font-size: .7rem; letter-spacing: .12em; margin: 0; }
#morning-demo-summary { color: var(--muted); margin: 4px 0 0; }
.demo-arrival-target { text-align: right; flex-shrink: 0; }
.demo-arrival-target > span, .demo-arrival-target > small { display: block; font-size: .75rem; color: var(--muted); }
.demo-arrival-target strong { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--sun-bright); font-variant-numeric: tabular-nums; line-height: 1.2; }
.demo-arrival-target small { margin-top: 4px; }
.demo-simulation-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.demo-decision-panel { min-width: 0; }
.demo-playback-controls { margin-top: 12px; }
.demo-chapters { display: flex; gap: 8px; justify-content: space-between; padding: 0; margin: 16px 0; list-style: none; color: var(--muted); font-size: .7rem; }
.demo-chapters li { padding-bottom: 6px; border-bottom: 2px solid transparent; }
.demo-chapters [aria-current="step"] { color: var(--aqua); border-color: var(--aqua); }
.demo-commute { border: 1px solid var(--line); border-radius: 16px; background: #112127; padding: 16px; margin: 0; min-width: 0; }
.demo-commute-heading, .demo-route-labels, .demo-alarm-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8rem; }
.demo-commute-heading > span { color: var(--aqua); font-size: .72rem; text-align: right; }
.demo-route-labels { margin-top: 12px; color: var(--muted); font-size: .75rem; }
.demo-commute svg { width: 100%; height: 270px; display: block; background: #172a30; }
.demo-map { margin-top: 10px; border-radius: 10px; }
.demo-map-water { fill: #183e4b; }
.demo-map-park { fill: #254439; }
.demo-map-blocks { fill: #21383e; }
.demo-map-streets { fill: none; stroke: #42545a; stroke-width: 9; }
.demo-map-labels { fill: #98adae; font: 8px sans-serif; letter-spacing: 1px; }
.demo-selected-route, .demo-affected-route { fill: none; stroke: var(--aqua); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.demo-affected-route { stroke: #ff986b; stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--forecast-reveal, 0)); opacity: 0; }
.has-incident .demo-affected-route { opacity: 1; }
.demo-alternate-route { fill: none; stroke: #b7c1ce; stroke-width: 4; stroke-dasharray: 7 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.has-incident .demo-alternate-route { opacity: var(--forecast-reveal, 1); }
.uses-detour .demo-selected-route { stroke: #617578; stroke-width: 4; }
.uses-detour .demo-alternate-route { stroke: var(--aqua); stroke-width: 6; stroke-dasharray: none; }
.demo-map-legend .demo-alternate-key i { height: 0; background: none; border-top: 2px dashed #b7c1ce; }
.uses-detour .demo-map-legend .demo-alternate-key i { border-top: 2px solid #617578; }
.demo-map-origin > circle:first-child { fill: #163b40; stroke: var(--aqua); stroke-width: 2; }
.demo-map-origin > circle:last-child { fill: var(--aqua); }
.demo-map-pin > circle:first-child { fill: var(--aqua); stroke: #112127; stroke-width: 3; }
.demo-map-pin > circle:last-child { fill: #112127; }
.demo-map-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .7rem; color: var(--muted); }
.demo-map-legend i { display: inline-block; width: 14px; height: 4px; vertical-align: middle; margin-right: 4px; background: var(--aqua); }
.demo-map-legend .demo-incident-key i { background: #ff986b; }
.demo-roadblock { opacity: 0; }
.demo-roadblock > path:first-of-type { fill: var(--sun); stroke: #112127; stroke-width: 2; stroke-linejoin: round; }
.demo-roadblock text { fill: var(--ink); font-size: 19px; font-weight: 800; }
.demo-incident-halo { fill: var(--sun); opacity: .12; }
.has-incident .demo-roadblock { opacity: var(--forecast-reveal, 1); }
.has-incident .demo-commute-heading > span { color: var(--sun); }
.demo-commute figcaption { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin-top: 14px; font-size: .75rem; color: var(--muted); }
.demo-commute figcaption > span { grid-column: 1; }
.demo-commute figcaption > small { grid-column: 1 / -1; }
.demo-travel-change { display: flex; align-items: baseline; gap: 10px; margin: 3px 0; font-variant-numeric: tabular-nums; }
.demo-travel-change strong { font-size: 1.55rem; color: var(--text); }
.has-incident .demo-travel-change strong { opacity: calc(.55 + .45 * var(--forecast-reveal, 1)); }
.demo-travel-change > span { margin-left: auto; border-radius: 8px; background: #3b2f21; color: var(--sun-bright); padding: 3px 8px; font-weight: 700; }
.demo-commute figcaption small { font-size: .67rem; }
.demo-alarm-change { border: 1px solid rgba(157,217,207,.25); border-radius: 16px; padding: 16px; background: rgba(157,217,207,.07); }
.demo-alarm-heading { color: var(--aqua); font-size: .75rem; }
.demo-alarm-heading > span:last-child { text-align: right; }
.demo-alarm-times { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.demo-alarm-times s { color: var(--muted); font-size: 1rem; }
.demo-alarm-times strong { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -.04em; }
.demo-alarm-change.is-adjusted strong { color: var(--aqua); }
.demo-adjustment-track { height: 4px; margin-top: 14px; border-radius: 4px; background: #31474a; overflow: hidden; }
.demo-adjustment-track span { display: block; height: 100%; background: var(--aqua); transform-origin: right; transform: scaleX(var(--alarm-progress, 0)); }
.demo-alarm-change p { margin: 8px 0 0; color: var(--muted); font-size: .78rem; }
.demo-status { padding: 14px; margin: 12px 0 0; min-height: 116px; border-left: 3px solid var(--aqua); background: rgba(157,217,207,var(--check-glow, .07)); border-radius: 0 12px 12px 0; }
.demo-status p { margin: 0; color: var(--muted); }
.morning-demo .demo-at-home { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--aqua); font-weight: 650; }
.demo-at-home span { font-size: 1.6rem; }
.demo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.morning-demo .scenario-button { min-height: 44px; }
.demo-edit { display: block; padding: 10px 0; margin: 0; min-height: 44px; border: 0; background: transparent; color: var(--aqua); text-decoration: underline; text-underline-offset: 4px; font-size: .85rem; }
.demo-comparison { width: 100%; border-collapse: collapse; font-size: .8rem; line-height: 1.4; margin: 16px 0; font-variant-numeric: tabular-nums; }
.demo-comparison th, .demo-comparison td { text-align: left; padding: 12px 5px; border-bottom: 1px solid var(--line); }
.demo-comparison thead { color: var(--muted); }
.demo-comparison td:last-child { color: var(--aqua); font-weight: 700; }
#morning-demo-results > .scenario-button { margin-top: 10px; }
#morning-demo-results { margin-top: 14px; }
.demo-result-details, .demo-disclaimer { font-size: .78rem; color: var(--muted); margin: 12px 0; }
.demo-result-details summary, .demo-disclaimer summary { cursor: pointer; padding: 8px 0; }
.demo-disclaimer p { max-width: 800px; }
.morning-demo.is-complete .demo-status { display: none; }
@media (max-width: 700px) {
  .hero .hero-copy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-explainer .waitlist-row { grid-template-columns: minmax(0, 1fr); }
  .morning-demo fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .morning-demo .demo-wide { grid-column: 1 / -1; }
  .demo-simulation-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-playback-controls { flex-wrap: wrap; gap: 10px; }
  .demo-decision-panel { display: contents; }
  .demo-alarm-change { order: -1; }
  .morning-demo .demo-at-home { display: none; }
  .demo-status, #morning-demo-results { order: 1; }
  .demo-playback-header { gap: 12px; }
  .demo-arrival-target small { max-width: 120px; }
  .demo-commute { padding: 12px; }
  .demo-commute svg { height: auto; }
  .demo-commute figcaption { grid-template-columns: 1fr; }
  .demo-status { min-height: 0; }
  .demo-commute figcaption small { display: none; }
  .morning-demo .decision-card { padding: 18px; }
}
@media (max-width: 380px) { .morning-demo fieldset { grid-template-columns: minmax(0, 1fr); } }
