/* States board components, using the existing public site's brand tokens. */
.landing-page [hidden] { display: none !important; }
.landing-page button, .landing-page input { font: inherit; }
.landing-page button { cursor: pointer; }
.landing-page button:focus-visible, .landing-page input:focus-visible { outline: 3px solid var(--fin-orange); outline-offset: 4px; }
.quiz-option:disabled { cursor: default; opacity: .6; }
.landing-page .state-secondary { background: transparent; border-color: #ffffff61; }
.lesson-demo { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 280px); align-items: center; justify-content: center; gap: 2.5rem; margin-block: 3rem; }
.quiz-card, .day-streak-card { padding: 1.75rem; border: 1px solid #ffffff26; background: #0d1f38; border-radius: 24px; box-shadow: 0 24px 48px -8px #05051f73; }
.quiz-card { transition: border-color 200ms, transform 200ms; }
.quiz-card:hover, .quiz-card:focus-within { border-color: var(--fin-teal); }
@media (hover: hover) { .quiz-card:hover { transform: translateY(-4px); } }
.quiz-progress { height: 6px; background: #ffffff1a; border-radius: 3px; margin-bottom: 1.25rem; }
.quiz-progress-fill { display: block; width: var(--quiz-progress); height: 100%; background: var(--fin-teal); border-radius: inherit; transform-origin: left center; }
.quiz-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: .625rem; margin-block: 1.25rem; }
.quiz-option { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 56px; padding: .875rem 1rem; background: transparent; color: white; text-align: left; border: 1px solid #ffffff33; border-radius: 12px; line-height: 1.3; }
.quiz-option:not([aria-disabled="true"]):hover { border-color: var(--fin-teal); }
.quiz-option, .quiz-option > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.quiz-option { flex-wrap: wrap; }
.quiz-option > span:first-child { flex: 1 1 10ch; }
.quiz-option.is-correct { border-color: var(--fin-teal); background: #1d9e7529; }
.quiz-option.is-incorrect { border-color: var(--fin-orange); }
.quiz-option.is-muted { color: var(--fin-muted); }
.quiz-indicator { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; margin-left: auto; border: 1.5px solid #ffffff61; border-radius: 50%; }
.is-correct .quiz-indicator { background: var(--fin-teal); border-color: var(--fin-teal); }
.quiz-feedback { font-size: 1rem; line-height: 1.45; }
.quiz-card .button { margin-top: 1rem; }
.quiz-arth { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.quiz-arth > img { width: 260px; height: 325px; object-fit: contain; }
/* Reuse the original square rig in its Figma portrait crop, matching Flutter's
   _ThinkingArth slot. The asset itself is unchanged. */
.quiz-thinking-slot { --thinking-height: 325px; position: relative; overflow: hidden; flex-shrink: 0; width: calc(var(--thinking-height) * 280 / 556); height: var(--thinking-height); }
.quiz-thinking-slot .quiz-thinking-art { position: absolute; max-width: none; width: 200%; height: 100.72%; left: -55.36%; top: -.36%; object-fit: contain; }
.state-speech { position: relative; width: fit-content; max-width: 296px; padding: .875rem 1.125rem; border-radius: 16px; background: white; color: #0b0c42; line-height: 1.3; font-weight: 500; box-shadow: 0 8px 24px #00001a40; }
.landing-page p.state-speech { color: #0b0c42; }
.state-speech .state-tail { position: absolute; left: 22px; bottom: -9px; }
.demo-disclaimer { grid-column: 1 / -1; text-align: center; }
.score-demo { min-width: 0; width: 100%; max-width: 690px; }
.score-instrument { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 264px); align-items: center; gap: 1.5rem; }
.demo-ring { aspect-ratio: 1; position: relative; width: 100%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tier-color) 24%, transparent), transparent 70%); }
.score-circle { display: block; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.score-circle circle { fill: none; stroke-width: 5; }
.score-track { stroke: #ffffff1f; }
.score-arc { stroke: var(--tier-color); stroke-linecap: round; }
.demo-readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.demo-readout strong { color: var(--tier-ink); font-size: clamp(2.5rem, 6vw, 6rem); line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.demo-readout span { font-size: 1.125rem; font-weight: 600; }
.score-guide { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.score-guide > img { width: 264px; height: 330px; object-fit: contain; }
.score-preview-label { display: block; margin-top: 1.25rem; font-weight: 500; }
.score-endpoints, .score-tier-labels { display: flex; justify-content: space-between; gap: .75rem; font-size: .875rem; color: var(--fin-muted); }
.score-endpoints { margin-top: .75rem; }
.score-demo input[type=range] { appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; accent-color: var(--tier-color); cursor: pointer; }
.score-demo input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, #f59e0b 0% 35%, transparent 35% 36%, #378add 36% 76%, transparent 76% 77%, #10b981 77%); }
.score-demo input::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; border: 3px solid white; background: var(--tier-color); box-shadow: 0 0 16px var(--tier-color); }
.score-demo input::-moz-range-track { height: 8px; background: linear-gradient(to right, #f59e0b 0% 35%, #378add 35% 77%, #10b981 77%); border-radius: 4px; }
.score-demo input::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid white; border-radius: 50%; background: var(--tier-color); }
.score-tier-labels .is-active { color: white; font-weight: 600; }
.score-meaning { font-size: 1.25rem; line-height: 1.4; margin-top: 1.5rem !important; }
.streak-demo { max-width: 340px; margin: 1.5rem auto 0; }
.streak-heading { display: flex; align-items: center; gap: 1rem; }
.streak-heading strong { display: block; font-size: 3rem; line-height: 1; font-weight: 600; }
.streak-heading span { display: block; }
.streak-flame { display: flex !important; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #f5942d26; }
.day-streak-card p { margin-top: 1.5rem; color: var(--fin-muted); font-size: .875rem; }
.streak-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 1rem; }
.streak-days span { min-width: 0; text-align: center; font-size: .875rem; color: var(--fin-muted); }
.streak-days i { display: block; width: min(100%, 30px); height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--fin-teal); margin: 0 auto .25rem; }
@media (max-width: 1100px) { .score-instrument { grid-template-columns: minmax(0, 1fr); } .demo-ring { width: min(100%, 300px); margin-inline: auto; } .score-guide > img { width: 180px; height: 225px; } }
@media (max-width: 600px) {
  .lesson-demo { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .quiz-card, .day-streak-card { padding: min(1.25rem, 20px); }
  .quiz-option { padding: 14px 16px; gap: 12px; }
  .quiz-arth > img { width: 180px; height: 225px; }
  .quiz-thinking-slot { --thinking-height: 225px; }
  .score-tier-labels { flex-wrap: wrap; }
  .streak-days i { width: min(100%, 24px); }
}
@media (prefers-reduced-motion: reduce) { .quiz-card { transition: none; transform: none !important; } }
/* Section-level composition from the reviewed mobile/tablet/desktop frames. */
.lesson-demo { grid-template-columns: minmax(0, 400fr) minmax(0, 242fr); gap: 24px; margin: 0; align-items: center; }
.quiz-card, .day-streak-card { padding: 28px; }
.quiz-card h3 { font-size: 1.5rem; line-height: 1.25; }
.quiz-card .eyebrow { margin-bottom: 14px !important; }
.quiz-arth { min-width: 0; }
.quiz-thinking-slot { --thinking-height: 320px; }
.quiz-arth > img { width: 240px; height: 300px; }
.demo-disclaimer { font-size: .75rem; margin-top: 0 !important; }
.score-demo { display: grid; max-width: none; grid-template-columns: minmax(0, 360fr) minmax(0, 264fr) minmax(0, 486fr); gap: 24px 32px; grid-template-areas: 'ring guide meaning' 'controls controls meaning' 'explain explain explain'; align-items: center; }
.demo-ring { grid-area: ring; width: min(100%, 360px); margin-inline: auto; container-type: inline-size; }
/* The illustrative dial has a bounded canvas. Keep its full number on one line
   as text grows; the slider's accessible name/value remains full-size text. */
.demo-readout strong { font-size: min(6rem, 26cqi); white-space: nowrap; overflow-wrap: normal; }
.score-controls { grid-area: controls; min-width: 0; width: min(100%, 560px); margin-inline: auto; }
.score-guide { grid-area: guide; min-width: 0; align-items: flex-start; }
.score-guide > img { width: 264px; height: auto; }
.score-interpretation { grid-area: meaning; min-width: 0; }
.score-meaning { margin-top: 0 !important; }
.score-explanation { grid-area: explain; }
.score-preview-label { margin-top: 0; font-size: .875rem; }
.score-tier-labels { flex-wrap: wrap; }
.streak-demo { width: 100%; max-width: 340px; margin: 0; }
.day-streak-card { min-height: 247px; }
.streak-heading strong { font-size: 3.5rem; }
@media (min-width: 768px) and (max-width: 1023px) {
  .lesson-demo { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; }
  .quiz-arth > img { width: 240px; height: 300px; }
  .score-demo { grid-template-columns: minmax(0, 360fr) minmax(0, 264fr); grid-template-areas: 'ring guide' 'controls controls' 'meaning meaning' 'explain explain'; gap: 32px 24px; }
  .score-guide > img { width: 200px; }
  .score-interpretation { max-width: 688px; }
}
@media (max-width: 767px) {
  .lesson-demo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .quiz-card, .day-streak-card { padding: 28px; }
  .quiz-arth > img { width: 144px; height: 180px; }
  .quiz-thinking-slot { --thinking-height: 180px; }
  .quiz-option { min-height: 56px; padding: 12px 16px; }
  .score-demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'ring' 'controls' 'guide' 'meaning' 'explain'; gap: 28px; }
  .demo-ring { width: min(100%, 270px); }
  .demo-readout strong { font-size: min(4rem, 26cqi); }
  .score-guide { width: min(100%, 296px); }
  .score-guide > img { width: 112px; height: 140px; }
  .score-guide .state-speech { width: 100%; }
  .score-meaning { font-size: 1.25rem; }
  .streak-demo { max-width: none; }
  .streak-days i { width: min(100%, 28px); }
}
@media (max-width: 359px) {
  .quiz-card, .day-streak-card { padding: 20px; }
}
