/* Homepage. The stage with Iana carries the page; everything below it stays quiet. */
.hero { padding-top: 8px; }
.stage {
  --floor: 76px;
  position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(540px, 74svh, 700px); padding-bottom: calc(var(--floor) + 14px);
  border-radius: 28px; color: var(--chalk);
  background:
    radial-gradient(ellipse 60% 40% at 72% 30%, #ffffff0d, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, #ffffff09, transparent 70%),
    var(--board);
  box-shadow: inset 0 0 60px #10231d, var(--shadow);
}
.stage canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; width: min(48%, 560px); padding: 48px 0 32px clamp(28px, 5vw, 64px); }
.stage h1 {
  margin-top: 0; font: 700 clamp(3.1rem, 6.4vw, 5.5rem)/.92 var(--hand); letter-spacing: -.01em;
  animation: chalk-in 1100ms cubic-bezier(.3, .6, .2, 1) both;
}
.stage .lede { margin-top: 20px; max-width: 34ch; color: var(--chalk-soft); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gold { background: var(--gold); color: #1f2b28; }
.gold:hover { background: #f8dc9f; }
.ghost { border-color: #f5f0dc59; color: var(--chalk); }
.ghost:hover { background: #ffffff14; }
.stage :focus-visible { outline-color: var(--chalk); }
.action-note { margin-top: 12px; color: var(--chalk-soft); font-size: .875rem; }
.hero-tray {
  position: absolute; left: 0; right: 0; bottom: var(--floor); height: 14px; display: flex; align-items: start; justify-content: flex-end; gap: 8px;
  padding-right: 9%; background: linear-gradient(#c2a577, #9c7f56); box-shadow: 0 -1px 0 #d6bc91 inset, 0 3px 6px #0b1a1566;
}
.hero-tray i { width: 30px; height: 5px; margin-top: -4px; border-radius: 2px; background: #f3ecd9; box-shadow: 0 1px 2px #42331c99; }
.hero-tray i + i { width: 18px; background: var(--rose); transform: rotate(-6deg); }
.hero-floor { position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor); background: linear-gradient(#b89468, #cdac7e 60%, #c19d70); }
.hero-pause {
  position: absolute; right: 14px; top: 14px; z-index: 3; min-height: 36px; padding: 4px 12px; border: 0; border-radius: 999px;
  background: #1f2b28b3; color: var(--chalk); font-size: .8125rem;
}
.hero-pause:hover { background: #1f2b28; }

section { scroll-margin-top: 84px; }
.block { padding-top: clamp(56px, 9vw, 112px); }
.block h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.block .intro { margin-top: 12px; max-width: 52ch; color: var(--muted); font-size: 1.0625rem; }
.demo { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.demo-copy p { margin-block: 14px 20px; color: var(--muted); max-width: 36ch; font-size: 1.0625rem; }
.frame { padding: 8px; border-radius: 18px; background: linear-gradient(var(--wood), var(--wood-deep)); box-shadow: var(--shadow); }
.board { padding: clamp(16px, 2.6vw, 32px); border-radius: 12px; background: var(--board); color: var(--chalk); box-shadow: inset 0 0 26px #132921; }
.board-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid #ffffff36; font-size: .875rem; color: var(--chalk-soft); }
.board-meta strong { color: var(--chalk); font: 700 1.5rem/1 var(--hand); }
/* The tax board: who pays a tax? A slider sets the tax, two buttons say how easily buyers can switch, and
   the chart splits the tax into the part buyers pay (gold) and the part sellers carry (rose). */
.board-content { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(14px, 3vw, 28px); padding-block: 16px 8px; }
.tax-side { display: grid; gap: 14px; min-width: 0; }
.tax-prompt { font-size: .9375rem; color: var(--chalk-soft); }
.tax-slider { display: grid; gap: 6px; font-size: .875rem; color: var(--chalk-soft); }
.tax-slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.tax-value { color: var(--gold); font: 700 1.6rem/1 var(--hand); }
.tax-slider input { width: 100%; min-height: 28px; padding: 0; border: 0; background: transparent; accent-color: var(--gold); cursor: pointer; }
.tax-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: var(--chalk-soft); }
.tax-switch button {
  min-height: 36px; padding: 4px 13px; border: 1px solid #cadbc288; border-radius: 999px; background: transparent; color: var(--chalk);
  font: inherit; font-size: .875rem; cursor: pointer; transition: background-color 160ms ease, color 160ms ease;
}
.tax-switch button:hover { background: #35564a; }
.tax-switch button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: #26312a; }
.tax-line { min-height: 4.8em; font-size: .875rem; color: var(--chalk-soft); }
.tax-chart { display: block; width: 100%; height: auto; min-width: 0; overflow: visible; fill: none; }
.tx-axes { stroke: var(--chalk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tx-text { fill: var(--chalk); stroke: none; font: 700 15px var(--hand); }
.tx-gold { fill: var(--gold); }
.tx-rose { fill: var(--rose); }
.tx-demand, .tx-supply, .tx-shifted { stroke-width: 2.6; stroke-linecap: round; }
.tx-demand { stroke: var(--chalk); }
.tx-supply { stroke: var(--gold); }
.tx-shifted { stroke: var(--rose); stroke-dasharray: 5 4; opacity: 0; transition: opacity 300ms ease; }
.tx-buyers, .tx-key-buyers { fill: var(--gold); fill-opacity: .9; }
.tx-sellers, .tx-key-sellers { fill: var(--rose); fill-opacity: .9; }
.tx-base { fill: var(--gold); }
.tx-point { fill: var(--rose); opacity: 0; transition: opacity 300ms ease; }
.board-footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #ffffff36; font-size: .9375rem; color: var(--chalk-soft); }
.tax-count { min-height: 1.5em; }
.board :focus-visible { outline-color: var(--chalk); outline-offset: 2px; }
.board-next { color: var(--gold); }
.board-next:hover { color: var(--chalk); }

.beta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px;
  margin-top: clamp(56px, 9vw, 112px); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--rule); border-radius: 28px; background: var(--surface);
}
.beta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.beta p { margin-top: 8px; max-width: 54ch; color: var(--muted); }
.beta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@keyframes chalk-in { from { clip-path: inset(0 100% 0 0); opacity: .4; } to { clip-path: inset(-10% -10% -10% 0); opacity: 1; } }
@keyframes glow { 50% { box-shadow: 0 0 0 5px #efcb8633; } }

@media (max-width: 860px) {
  .stage { display: grid; grid-template-rows: auto minmax(300px, 1fr); align-items: start; min-height: 0; }
  .hero-copy { width: 100%; padding: 60px 24px 0; }
  .stage h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .demo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .board-content { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .stage { --floor: 64px; border-radius: 22px; }
  .hero-copy { padding-inline: 20px; }
  .hero-pause { top: 12px; right: 12px; }
  .board-content { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .stage h1 { animation: none; }
}

/* What students say, in their own words. The answer sits next to it. */
.said { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.said li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px clamp(24px, 5vw, 72px); align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.said h3 { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--hand); letter-spacing: 0; }
.said p { max-width: 46ch; color: var(--muted); }
@media (max-width: 700px) { .said li { grid-template-columns: 1fr; } }
