/* The landing page keeps its full-day view inside an A14.2-style energy card. */
.hero[data-brand="catus"] {
  --hero-accent: var(--c-purple-accent);
  --hero-tint: var(--c-purple-200);
}
.hero .day-card[data-energy-state="high"] { --hero-accent: var(--c-green-accent); --hero-tint: var(--c-green-200); }
.hero .day-card[data-energy-state="low"] { --hero-accent: var(--c-yellow-accent); --hero-tint: var(--c-yellow-200); }
.hero .day-card[data-energy-state="rest"] { --hero-accent: var(--c-pink-accent); --hero-tint: var(--c-pink-200); }

html[data-concept="stoic"][data-surface="aura"] .hero .day-card {
  --chart-color: var(--hero-accent);
  position: relative;
  isolation: isolate;
  padding-block: 20px 22px;
  border-radius: var(--zoomie-glass-radius);
  background: var(--c-surface);
  box-shadow: var(--zoomie-glass-shadow);
  scroll-margin-top: 88px;
}
html[data-concept="stoic"] .hero .chart #hero-cat {
  width: 80px;
  transform: translate(-50%, -98%);
}
html[data-concept="stoic"] .hero .chart:not([data-explored]) .cat-drag-gesture {
  opacity: 1;
  top: 45%;
  left: 60%;
  color: var(--c-muted);
}
@media (max-width: 760px) {
  html[data-concept="stoic"] .hero .chart #hero-cat { width: 64px; }
}
html[data-concept="stoic"][data-surface="aura"] .hero .day-card .readout {
  display: block;
  padding-block: 0;
}
html[data-concept="stoic"][data-surface="aura"] .hero .readout > div:first-child {
  min-height: 28px;
}
html[data-concept="stoic"][data-surface="aura"] .hero .aura-status-heading { justify-content: center; }
html[data-concept="stoic"][data-surface="aura"] .hero .readout-state {
  color: var(--c-ink);
  font: 600 22px/28px var(--sans);
  letter-spacing: normal;
  text-align: center;
}
html[data-surface="aura"] .hero .readout::after { display: none; }
/* Use the original responsive side insets for the plot. The two rows of
   time buttons take part of the space previously above the chart. */
html[data-concept="stoic"][data-surface="aura"] .hero .chart { margin-top: 8px; }
#chart-svg .a142-hero-curve { fill: none; stroke-linejoin: round; }
#chart-svg .hero-track {
  stroke: color-mix(in srgb, var(--hero-tint) 55%, var(--c-neutral-200));
  stroke-width: 7.5px;
  filter: drop-shadow(0 -1px .5px var(--c-surface));
}
#chart-svg .hero-phase { stroke: var(--hero-accent); stroke-width: 5.5px; }
#chart-svg .a142-hero-curve .is-past { stroke-linecap: round; }
#chart-svg .a142-hero-curve .is-future { stroke-linecap: butt; stroke-dasharray: 5 5; }
html[data-concept="stoic"] .hero #chart-svg .hero-now-dot {
  r: 5px;
  stroke: var(--c-surface);
  stroke-width: 2px;
  fill: var(--hero-accent);
  transition: none;
}
html[data-concept="stoic"] #chart-svg text.aura-axis-now {
  fill: var(--c-ink);
  font-size: 12px;
  font-weight: 600;
}
html[data-concept="stoic"] .hero #chart-svg .time-tick { fill: var(--c-muted); font-size: 12px; }
.hero .chart:focus-visible, .hero-window-group button:focus-visible {
  outline: 2px solid var(--c-text-action);
  outline-offset: 2px;
}

.hero .hero-windows { display: none; }
html[data-surface="aura"] .hero .legend { display: none; }
html[data-concept="stoic"][data-surface="aura"] .hero .chart-caption { justify-content: flex-start; padding-top: 8px; }
@media (max-width: 760px) {
  html[data-concept="stoic"][data-surface="aura"] .hero .day-card { padding-block: 24px 0; }
  html[data-concept="stoic"][data-surface="aura"] .hero .readout > div:first-child { min-height: 56px; }
  /* Reserve the original caption line as the inset under the time buttons. */
  html[data-concept="stoic"][data-surface="aura"] .hero .chart-caption { padding-bottom: 1lh; }
}
html[data-surface="aura"] .hero .hero-windows {
  display: grid;
  gap: 4px;
  font: 400 12px/16px var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
}
.hero-window-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-window-group[data-kind="high"] {
  --window-accent: var(--c-green-accent);
  --window-surface: var(--c-green-100);
}
.hero-window-group[data-kind="low"] {
  --window-accent: var(--c-yellow-accent);
  --window-surface: var(--c-yellow-100);
}
.hero-window-group strong { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.hero-window-group strong::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--window-accent);
}
.hero-window-group button {
  min-height: 44px;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  font: inherit;
  color: var(--c-ink);
  background: var(--window-surface);
  cursor: pointer;
}
.hero-window-group button.is-active { background: var(--window-accent); color: var(--c-surface); font-weight: 600; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  #chart-svg .hero-track { stroke: var(--c-control-edge); filter: none; }
}

/* Portrait landing hero · 72px navigation + 8px clearance, then
   12px title-to-copy and 16px between content groups (Zoomie spacing). */
@media (max-width: 580px) and (orientation: portrait) {
  html[data-concept="stoic"][data-surface="aura"] .hero { padding-top: 80px; }
  html[data-concept="stoic"][data-surface="aura"] .hero h1 { margin-top: 0; }
  html[data-concept="stoic"][data-surface="aura"] .hero .hero-copy .hero-lead {
    margin-top: 12px;
    padding-inline: 0;
  }
  html[data-concept="stoic"][data-surface="aura"] .hero .hero-foot { padding-top: 16px; }
  html[data-concept="stoic"][data-surface="aura"] .hero .day-card {
    --aura-card-travel: 12px;
    margin-top: 0;
    padding-top: 16px;
  }
}
