:root {
  --cream: #ffffff;
  --forest: #171717;
  --lime: #ede8fa;
  --sky: #e9f2fa;
  --coral: #fae7e2;
  --mint: #e7f2ec;
  --muted: #4c4c4c;
  --rust: #494949;
  --line: #dedede;
  --display: system-ui, sans-serif;
}
body { overflow-wrap: break-word; }
header { background: white; }
nav { min-height: 64px; }
.nav-link { font-weight: 600; white-space: nowrap; text-decoration-thickness: 1px; }
.brand { font-weight: 650; letter-spacing: -.04em; }
.hero { min-height: clamp(560px, 49vw, 780px); }
.hero-copy { width: 51%; }
h1, h2 { font-weight: 650; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5.25vw, 6rem); }
h1 em { display: block; color: var(--lime); font-style: normal; }
.cta {
  border: 2px solid var(--forest);
  border-radius: 10px;
  font: 650 .94rem/1.35 system-ui, sans-serif;
  cursor: pointer;
}
.cta:disabled { cursor: default; opacity: .68; }
.cta:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.hero .cta:focus-visible { outline-color: white; }
.practice { background: #f7f7f7; padding-block: clamp(48px, 7vw, 94px); }
.practice-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(22px, 6vw, 85px); align-items: center; }
.practice h2 { font-size: clamp(3rem, 7vw, 6rem); }
.practice p { max-width: 40ch; }
.market-card {
  min-width: 0;
  padding: clamp(14px, 3vw, 32px);
  background: white;
  border: 2px solid var(--forest);
  border-radius: 18px;
}
.prices { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 0 0 18px; }
.prices div { padding: 10px 8px; background: #f5f5f5; border-radius: 8px; }
.prices div:last-child { background: var(--sky); }
.prices dt { font-size: .77rem; font-weight: 750; line-height: 1.2; }
.prices dd { margin: 3px 0 0; font-size: clamp(1.4rem, 4vw, 2.35rem); font-weight: 650; font-variant-numeric: tabular-nums; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { margin-bottom: 8px; font-weight: 800; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trade-actions { display: grid; gap: 8px; }
.trade-actions .cta { justify-content: center; width: 100%; max-width: none; text-align: center; }
.trade-actions .reset { justify-self: center; min-height: 44px; }
.choices label { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--forest); border-radius: 8px; min-height: 44px; padding: 6px 4px; cursor: pointer; text-align: center; font-size: .875rem; line-height: 1.2; }
.choices label:has(input:checked) { background: var(--mint); box-shadow: inset 0 0 0 1px var(--forest); }
.choices input { accent-color: var(--forest); flex: none; margin: 0; }
.reset { background: transparent; color: inherit; border: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.market-result:empty { margin: 0; }
.market-result { margin-top: 18px; font-size: .94rem; }
.market-result p { margin: 0 0 6px; }
.replay { background: white; color: var(--forest); }
.replay .eyebrow { color: var(--rust); }
.steps { display: grid; gap: 10px; }
.steps li { border: 0; padding: 15px; border-radius: 10px; background: var(--mint); color: var(--forest); }
.steps li:nth-child(2) { background: var(--lime); }
.steps li:nth-child(3) { background: var(--coral); }
.steps strong, .steps li::before { color: var(--forest); }
@media(max-width: 767px) {
  .hero { min-height: 0; }
  .hero-copy { width: 100%; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice h2 { margin-bottom: 12px; }
}
@media(max-width: 767px) and (orientation: portrait) {
  nav { min-height: 58px; gap: 12px; }
  .brand { font-size: clamp(1.1rem, 5.6vw, 1.45rem); }
  .nav-link { font-size: .8rem; }
  .hero { background: white; color: var(--forest); }
  .hero .eyebrow, .hero .lede { color: var(--muted); }
  .hero h1 { max-width: 19ch; font-size: clamp(2.3rem, 9vw, 4rem); }
  .hero h1 em { color: inherit; text-decoration: underline .13em var(--lime); text-underline-offset: .1em; }
  .hero .cta:focus-visible { outline-color: var(--forest); }
}
@media(max-width: 767px) and (orientation: landscape) {
  .hero-copy { width: 55%; }
}

.replay { padding-bottom: clamp(28px, 4vw, 52px); }
.market-tape {
  background: #f8f8f9;
  border-block: 1px solid var(--line);
}
.tape-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding-block: 7px 3px;
  color: var(--muted);
  font-size: .75rem;
}
.tape-caption strong { color: var(--forest); font-weight: 650; }
.tape-caption a { text-underline-offset: 2px; }
.pilot { padding-top: clamp(32px, 5vw, 64px); }

.lab-time { margin-bottom: 4px; font-weight: 650; }
.lab-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lab-history { margin-block: 18px 8px; }
.lab-history ol { padding-inline-start: 24px; font-size: .875rem; }
.lab-pilot { display: inline-block; margin-top: 8px; font-size: .875rem; }
.trade-actions .cta[hidden] { display: none; }
.choices label:has(:disabled) { opacity: .55; cursor: default; }
