/* Product screens. Tokens: src/styles/tokens.css */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
}
body { min-height: 100vh; }
.tabular {
  font-variant-numeric: var(--font-variant-numeric);
  font-feature-settings: "tnum" 1;
}
.app { max-width: 28rem; margin: 0 auto; padding: 16px 16px 32px; }
.screen-nav {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 12px; margin-bottom: 8px;
}
.screen-nav button, .ghost {
  font: inherit;
  font-size: var(--type-meta-size);
  font-weight: var(--type-meta-weight);
  line-height: var(--type-meta-line);
  border: 1px solid var(--separator);
  background: var(--bg-section);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.screen-nav button[aria-current="true"] {
  background: var(--brand-navy-100);
  color: var(--text);
  border-color: transparent;
}
h1 {
  font-size: var(--type-screen-title-size);
  font-weight: var(--type-screen-title-weight);
  line-height: var(--type-screen-title-line);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.brand-title {
  font-size: var(--type-brand-title-size);
  font-weight: var(--type-brand-title-weight);
  line-height: var(--type-brand-title-line);
  letter-spacing: -0.02em;
  color: var(--brand-navy-800);
}
.lede, .caption { color: var(--text-hint); margin: 0 0 16px; }
.caption { font-size: var(--type-meta-size); line-height: var(--type-meta-line); }
.card {
  background: var(--bg-section);
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px; margin: 0 0 12px;
}
.pose { display: block; width: 120px; height: 120px; object-fit: contain; margin: 0 0 12px; }
.pose-small { width: 72px; height: 72px; }
.pose.is-missing { display: none; }
.cta {
  display: block; width: 100%; min-height: 48px; margin-top: 12px;
  border: 0; border-radius: var(--radius-control);
  background: var(--button); color: var(--button-text);
  box-shadow: var(--shadow-cta); font: inherit; font-weight: 600; cursor: pointer;
}
.cta:hover { filter: brightness(1.06); }
.cta-stars { background: var(--button-stars); color: var(--button-stars-text); }
.quiet-link {
  display: inline-block; margin-top: 16px; padding: 0; border: 0;
  background: none; box-shadow: none; color: var(--text-hint);
  font: inherit; font-weight: 500; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.choice {
  display: block; width: 100%; text-align: left; min-height: 48px;
  margin: 0 0 8px; border-radius: var(--radius-card);
  border: 1px solid var(--separator); background: var(--bg-section);
  color: var(--text); font: inherit; font-weight: 600; padding: 12px 16px; cursor: pointer;
}
.choice[aria-pressed="true"] { background: var(--brand-navy-100); border-color: var(--brand-navy-800); }
.sku-list .choice { margin: 0; }
.chip {
  display: inline-flex; align-items: center; border-radius: var(--radius-pill);
  background: var(--chip); color: var(--text); font-size: var(--type-meta-size);
  font-weight: 600; line-height: var(--type-meta-line); padding: 4px 10px;
}
.chip-taste { background: var(--brand-purple-100); color: var(--brand-purple-600); }
.chip-full { background: var(--brand-navy-100); color: var(--brand-navy-800); }
.chip-gold { background: var(--brand-gold-100); color: var(--brand-gold-600); }
:root[data-theme="dark"] .chip-taste,
:root[data-theme="dark"] .chip-full,
:root[data-theme="dark"] .chip-gold,
:root[data-theme="dark"] .brand-title { color: var(--text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-taste,
  :root:not([data-theme="light"]) .chip-full,
  :root:not([data-theme="light"]) .chip-gold,
  :root:not([data-theme="light"]) .brand-title { color: var(--text); }
}
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { border-top: 1px solid var(--separator); padding: 12px 0; cursor: pointer; border-radius: var(--radius-card); }
.history-list li:first-child { border-top: 0; padding-top: 0; }
.history-list li.is-selected { background: var(--brand-navy-100); margin: 0 -8px; padding: 12px 8px; }
.module-chips { margin-top: 8px; }
.module-chips .chip { background: var(--chip); color: var(--text); }
.band { font-size: var(--type-section-title-size); font-weight: 700; }
.band-hero {
  font-size: var(--type-band-teaser-size); font-weight: var(--type-band-teaser-weight);
  line-height: var(--type-band-teaser-line); margin: 0; color: var(--text);
}
.legend {
  display: flex; gap: 16px; align-items: center; margin: 0 0 12px;
  color: var(--text-hint); font-size: var(--type-meta-size);
}
.legend-item { display: inline-flex; gap: 6px; align-items: center; }
.legend svg { width: 16px; height: 16px; display: block; }
.chart-block { margin: 0 0 12px; }
.chart-block h2 { font-size: var(--type-meta-size); font-weight: 600; margin: 0 0 4px; }
.chart-block svg { width: 100%; height: auto; display: block; }
.chart-block text {
  fill: var(--text-hint); font-size: 11px; font-family: var(--font-stack);
  font-variant-numeric: var(--font-variant-numeric);
}
.timer {
  font-size: var(--type-timer-size); font-weight: var(--type-timer-weight);
  line-height: var(--type-timer-line); color: var(--timer);
}
.passage {
  font-size: var(--type-reading-passage-size); font-weight: var(--type-reading-passage-weight);
  line-height: var(--type-reading-passage-line); margin: 12px 0;
}
.stem { margin: 0; }
.exam-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sku-list { margin: 8px 0 0; padding-left: 18px; color: var(--text); }
.theme-toggle { margin-left: auto; }
