/* Free viva station. Builds on /style.css tokens so it follows the site in light and dark mode. */
.free-page main { padding-bottom: 24px; }
/* Darker label colours for small text so it meets WCAG AA contrast in light mode. */
.free-page { --fv-ok: #11693c; --fv-warn: #8a4f00; --fv-danger: #a51c2e; --fv-accent: #06606e; }
@media (prefers-color-scheme: dark) { .free-page { --fv-ok: var(--ok); --fv-warn: var(--warn); --fv-danger: var(--danger); --fv-accent: var(--accent); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero */
.fv-hero { max-width: var(--page); margin: 0 auto; padding: 64px 24px 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fv-hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 18px; text-wrap: balance; }
.fv-hero h1 .gradient { display: inline; }
.fv-dash { color: var(--muted); font-weight: 400; }
.fv-subtitle { font-size: clamp(18px, 1.9vw, 22px); font-weight: 600; color: var(--text); letter-spacing: -.01em; margin: 0 0 12px; }
.fv-hero .lede { margin: 0 0 24px; }
.fv-meta { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.fv-meta li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--text-2); }
.fv-meta strong { color: var(--text); }
.fv-start { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fv-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); cursor: pointer; margin: 0; }
.fv-switch span { display: grid; line-height: 1.25; }
.fv-switch small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

.fv-plate { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px; box-shadow: var(--shadow-lg); }
.fv-plate svg { display: block; width: 100%; height: auto; border-radius: 22px; }
.fv-plate figcaption { font-size: 13px; color: var(--muted); padding: 12px 8px 4px; }
.fv-plate figcaption strong { color: var(--text); font-weight: 600; }

/* Scenario */
.fv-scenario-wrap { max-width: var(--page); margin: 0 auto; padding: 8px 24px 24px; }
.fv-scenario { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.fv-scenario h2 { font-size: clamp(22px, 2.6vw, 30px); max-width: 30ch; text-wrap: balance; }
.fv-scenario > p:not(.eyebrow) { color: var(--text-2); max-width: 68ch; margin: 0 0 20px; }
.fv-findings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fv-findings li { background: var(--surface-2); border-radius: var(--r); padding: 14px 16px; font-weight: 600; line-height: 1.35; display: grid; gap: 6px; }
.fv-findings span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Topics (shown before starting) */
.fv-topics { max-width: var(--page); margin: 0 auto; padding: 48px 24px 32px; }
.fv-topics h2 { font-size: clamp(24px, 3vw, 36px); max-width: 26ch; text-wrap: balance; margin-bottom: 24px; }
.fv-topic-list { counter-reset: t; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fv-topic-list li { counter-increment: t; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 18px 64px; position: relative; display: grid; gap: 4px; }
.fv-topic-list li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.fv-topic-list span { color: var(--muted); font-size: 14.5px; }
.fv-noscript { margin-top: 20px; color: var(--warn); }

/* Viva */
.fv-viva { max-width: 880px; margin: 0 auto; padding: 32px 24px 24px; scroll-margin-top: 72px; }
.fv-bar { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 12px 0 14px; margin-bottom: 18px; box-shadow: 0 10px 16px -12px rgba(15, 30, 60, .18); }
.fv-bar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.fv-count { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fv-timer { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-3); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.fv-timer.late { background: var(--warn-soft); color: var(--fv-warn); }
.fv-progress { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.fv-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); border-radius: inherit; transition: width .5s var(--ease); }
.fv-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.fv-steps li { height: 4px; border-radius: 999px; background: var(--surface-3); transition: background .3s; }
.fv-steps li.now { background: var(--line-strong); }
.fv-steps li.done { background: var(--accent); }

.fv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.fv-card.enter { animation: fv-in .45s var(--ease) both; }
@keyframes fv-in { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fv-topic { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fv-accent); }
.fv-num { font-variant-numeric: tabular-nums; display: inline-grid; place-items: center; min-width: 34px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--fv-accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.fv-examiner { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fv-card h3 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 24px; outline: none; text-wrap: balance; }
.fv-label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.fv-card textarea { margin-bottom: 16px; }
.fv-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fv-actions.end { justify-content: flex-end; margin-top: 22px; }
.fv-actions[hidden], .fv-actions .button[hidden], #nextBtn[hidden] { display: none; }

.fv-answer { display: grid; gap: 18px; animation: fv-in .45s var(--ease) both; }
.fv-slot:not(:empty) { margin-top: 8px; display: grid; gap: 18px; }
.fv-answer h4, .fv-yours h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.fv-yours { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 16px 18px; }
.fv-yours p { margin: 0; white-space: pre-wrap; color: var(--text-2); }
.fv-essentials { background: var(--ok-soft); border-radius: var(--r); padding: 18px 20px; }
.fv-essentials h4 { color: var(--fv-ok); }
.fv-essentials ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fv-essentials li { position: relative; padding-left: 28px; font-weight: 600; line-height: 1.45; }
.fv-essentials li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%); }
.fv-essentials li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 4px; height: 8px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fv-model { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.fv-model-part + .fv-model-part { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fv-model h5 { font-size: 16px; margin: 0 0 8px; letter-spacing: -.01em; }
.fv-model ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.fv-model li { line-height: 1.55; }
.fv-model li.indiv { list-style: none; margin-left: -20px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--osce-soft); color: var(--osce); padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.fv-photo { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: center; background: var(--surface-2); border-radius: var(--r); padding: 12px; }
.fv-photo img { border-radius: 12px; width: 100%; height: auto; }
.fv-photo figcaption { font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.fv-photo figcaption strong { color: var(--text); }
.fv-photo a { color: var(--muted); }
.fv-pearl { border-radius: var(--r); padding: 16px 20px; border-left: 4px solid; }
.fv-pearl p { margin: 0; line-height: 1.55; }
.fv-pearl .fv-pearl-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.fv-pearl.trap { background: var(--warn-soft); border-color: var(--warn); }
.fv-pearl.trap .fv-pearl-label { color: var(--fv-warn); }
.fv-pearl.pearl { background: var(--accent-soft); border-color: var(--accent); }
.fv-pearl.pearl .fv-pearl-label { color: var(--fv-accent); }
.fv-follow { background: var(--surface-2); border-radius: var(--r); padding: 4px 4px; }
.fv-follow summary { list-style: none; cursor: pointer; padding: 14px 16px 14px 44px; position: relative; display: grid; gap: 4px; border-radius: 12px; }
.fv-follow summary::-webkit-details-marker { display: none; }
.fv-follow summary::before { content: "›"; position: absolute; left: 18px; top: 13px; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s var(--ease); }
.fv-follow[open] summary::before { transform: rotate(90deg); }
.fv-follow summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fv-follow-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fv-follow-q { font-weight: 600; font-size: 16.5px; }
.fv-follow p { margin: 0; padding: 0 16px 16px 44px; color: var(--text-2); line-height: 1.6; }
.fv-rate { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; }
.fv-rate-label { font-weight: 600; color: var(--text-2); margin-right: 6px; font-size: 14.5px; }
.fv-chip { background: var(--surface-3); color: var(--text); min-height: 38px; padding: 6px 16px; font-size: 14px; font-weight: 600; border-radius: 999px; }
.fv-chip:hover { background: var(--line-strong); }
.fv-chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

/* Summary and conversion */
.fv-end { display: grid; gap: 28px; }
.fv-summary h3 { margin-bottom: 8px; }
.fv-summary .muted { color: var(--muted); margin: 0 0 20px; }
.fv-summary-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.fv-summary-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.fv-summary-topic { flex: 1; min-width: 0; font-weight: 600; }
.fv-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.fv-badge.good { background: var(--ok-soft); color: var(--fv-ok); }
.fv-badge.part { background: var(--warn-soft); color: var(--fv-warn); }
.fv-badge.miss { background: var(--danger-soft); color: var(--fv-danger); }
.fv-badge.none { background: var(--surface-3); color: var(--muted); }
.fv-revisit { color: var(--text-2); margin: 0 0 18px; }
.fv-refs { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.fv-refs summary { cursor: pointer; font-weight: 600; color: var(--text-2); }
.fv-refs ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }

.fv-convert { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); background: linear-gradient(150deg, #0b1630 0%, #0f2c4d 55%, #0a4f60 100%); color: #e9eef6; box-shadow: var(--shadow-lg); }
.fv-convert::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .28), transparent 70%); pointer-events: none; }
.fv-convert .eyebrow { color: #7fe3f2; }
.fv-convert h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; text-wrap: balance; color: #fff; }
.fv-convert .lede { color: #b9c7da; max-width: 62ch; margin: 0 0 28px; }
.fv-course { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; }
.fv-course li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 18px; display: grid; gap: 4px; }
.fv-course strong { font-size: 30px; letter-spacing: -.03em; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fv-course-what { font-weight: 600; color: #e9eef6; }
.fv-course-why { font-size: 13.5px; color: #a9b8cc; line-height: 1.45; }
.fv-also { color: #b9c7da; margin: 0 0 26px; }
.fv-convert-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; position: relative; z-index: 1; }
.fv-convert .fv-cta-btn { background: #fff; color: #0b1630; }
.fv-convert .fv-cta-btn:hover { background: #dff7fb; }
.fv-convert .fine { color: #9fb0c6; margin: 0; }


@media (max-width: 960px) {
  .fv-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .fv-findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-course { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fv-hero, .fv-scenario-wrap, .fv-topics, .fv-viva { padding-left: 16px; padding-right: 16px; }
  .fv-topic-list, .fv-findings, .fv-course { grid-template-columns: minmax(0, 1fr); }
  .fv-photo { grid-template-columns: minmax(0, 1fr); }
  .fv-start .button { width: 100%; }
  .fv-actions .button { width: 100%; }
  .fv-bar { top: 56px; }
  .fv-follow summary { padding-left: 40px; }
  .fv-follow p { padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fv-card.enter, .fv-answer { animation: none; }
  .fv-progress span, .fv-steps li { transition: none; }
}
