/* ---------- The check: "What's stopping you?" ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.quiz { min-height: calc(100svh - 110px); display: flex; flex-direction: column; justify-content: center; padding-block: 4vh 12vh; }
.quiz-page[data-state="result"] .quiz { min-height: 0; justify-content: flex-start; padding-block: clamp(40px, 8vh, 96px) clamp(96px, 14vh, 170px); }
.quiz :focus:not(:focus-visible), .quiz [tabindex="-1"]:focus { outline: none; }
.is-entering { animation: enter .7s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

/* Intro */
.quiz__intro h1 { font-size: clamp(2.6rem, 4.4vw, 4.6rem); max-width: 15ch; }
.quiz__lede { margin-top: 1.8rem; max-width: 40ch; font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); color: var(--steel-bright); font-weight: 300; }
.quiz__start { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 2.4rem; }
.quiz__time { color: var(--steel-text); }
.quiz__note { margin-top: 1.6rem; max-width: 48ch; color: var(--steel-text); font-size: .95rem; }

/* Question */
.quiz__progress { position: relative; height: 14px; margin-bottom: clamp(40px, 7vh, 72px);
  background: repeating-linear-gradient(90deg, rgba(185, 190, 196, .5) 0 1px, transparent 1px calc(100% / 17)) bottom / 100% 9px no-repeat;
  border-bottom: 1px solid rgba(185, 190, 196, .35); }
.quiz__progress span { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--steel-bright); transition: width .8s var(--ease); }
.quiz__statement { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.1; max-width: 22ch; min-height: 3.3em; }
.quiz__options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.2rem; }
.opt {
  font: inherit; font-size: 1.05rem; font-weight: 400; color: var(--lume); background: transparent; border: 0; cursor: pointer;
  min-width: 9.5em; padding: .95em 1.9em; border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--steel) 55%, transparent);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.opt:hover { box-shadow: inset 0 0 0 1px var(--lume); }
.opt[aria-pressed="true"] { background: var(--lume); color: var(--enamel); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .7); }
.quiz__options--wide { flex-direction: column; align-items: stretch; max-width: 30rem; }
.quiz__options--wide .opt { text-align: left; }
.quiz__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-top: clamp(40px, 6vh, 64px); padding-top: 1.1rem; border-top: 1px solid rgba(185, 190, 196, .22); }
.quiz__back { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--steel); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .7em; transition: color .3s var(--ease); }
.quiz__back::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.quiz__back:hover { color: var(--lume); }
.quiz__meta { display: flex; flex-wrap: wrap; gap: .4em 1.6em; color: var(--steel-text); }
.quiz__meta .ref { margin: 0; letter-spacing: inherit; font-size: inherit; }

/* Report */
.report h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); max-width: 14ch; }
.report__where { margin-top: 1.4rem; max-width: 44ch; font-size: clamp(1.1rem, .4vw + 1rem, 1.25rem); color: var(--steel-bright); }
.report__where b { font-family: var(--serif); font-weight: 400; font-size: 1.15em; color: var(--lume); }
.report__lede { margin-top: 2.2rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.18; max-width: 26ch; }
.report__text { margin-top: 1.2rem; max-width: 52ch; color: var(--steel-bright); }
.report__text b { font-weight: 500; color: var(--lume); }
.report > .ref { display: block; }
.report__block { margin-top: clamp(56px, 8vh, 88px); padding-top: 2.2rem; border-top: 1px solid rgba(185, 190, 196, .3); }
.report__block h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }

.reserve { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); max-width: 44rem; }
.gauge { text-align: center; }
.gauge svg { width: 100%; max-width: 200px; margin-inline: auto; overflow: visible; }
.gauge .arc { fill: none; stroke: var(--steel); stroke-width: 1.2; opacity: .4; }
.gauge .arc--value { stroke: var(--steel-bright); stroke-width: 3; opacity: .9; }
.gauge .tk { stroke: var(--steel); stroke-width: 1.5; opacity: .7; }
.gauge .hand { fill: var(--salmon); transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--to, -90deg)); transition: transform 1.8s var(--ease); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); }
.gauge__label { display: block; margin-top: .5rem; color: var(--steel-text); }
.gauge.is-weakest .gauge__label { color: var(--lume); }
.gauge__value { display: block; margin-top: .15rem; font-family: var(--serif); font-size: clamp(1.5rem, 2vw, 1.9rem); font-variant-numeric: lining-nums tabular-nums; }

.scores { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid rgba(185, 190, 196, .22); max-width: 44rem; }
.score { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto 3.6rem; align-items: center; gap: 0 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(185, 190, 196, .22); }
.score__num { font-family: var(--serif); font-size: 1.35rem; color: var(--steel); }
.score.is-blocker .score__num { color: var(--salmon); }
.score__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.score__name small { display: block; margin-top: .2rem; font-family: var(--sans); font-size: .9rem; color: var(--steel-text); }
.score__track { display: flex; gap: 4px; }
.score__track i { width: 22px; height: 8px; border-radius: 1px; background: rgba(185, 190, 196, .18); }
.score__track i.on { background: var(--steel-bright); }
.score__val { text-align: right; color: var(--steel-bright); font-variant-numeric: lining-nums tabular-nums; }

.report__eternal .big { margin-top: 1.4rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.18; max-width: 24ch; }
.report__eternal > .ref { display: block; }
.report__prayer { margin-top: 2rem; max-width: 52ch; border-top: 1px solid rgba(185, 190, 196, .22); border-bottom: 1px solid rgba(185, 190, 196, .22); }
.report__prayer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 1.2rem 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.report__prayer summary::-webkit-details-marker { display: none; }
.report__prayer summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--steel); border-bottom: 1.5px solid var(--steel); transform: rotate(45deg) translateY(-4px); transition: transform .5s var(--ease); }
.report__prayer[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.report__prayer summary:hover { color: var(--steel-bright); }
.report__prayer p { padding-bottom: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--steel-bright); }

.mail__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; max-width: 36rem; }
.mail__row input { flex: 1 1 16rem; min-width: 0; font: inherit; color: var(--lume); background: transparent; border: 0; border-radius: 999px; padding: .9em 1.4em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--steel) 55%, transparent); transition: box-shadow .35s var(--ease); }
.mail__row input::placeholder { color: var(--steel-text); }
.mail__row input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lume); }
.mail__consent { display: flex; gap: .7em; align-items: flex-start; margin-top: 1rem; max-width: 36rem; color: var(--steel-text); font-size: .95rem; cursor: pointer; }
.mail__consent input { margin-top: .3em; accent-color: var(--salmon); }
.mail__consent a, .report__text a { color: var(--steel-bright); }
.mail__status { margin-top: 1rem; max-width: 44ch; color: var(--lume); }
.mail__status:empty { display: none; }

.report__close .big { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.18; max-width: 24ch; }
.report__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.report__actions button { font-family: var(--sans); background: transparent; border: 0; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .is-entering { animation: none; }
  .gauge .hand, .quiz__progress span, .opt { transition: none; }
}

@media (max-width: 900px) {
  .quiz-page[data-state="intro"] { --dial: min(54vw, 300px); }
  .quiz { min-height: 0; padding-block: 36px 72px; }
  .quiz-page[data-state="question"] .stage__dial { display: none; }
  .quiz-page:not([data-state="question"]) .quiz__bar { display: none; }
  .quiz-page[data-state="result"] .quiz { padding-top: 48px; }
  .quiz__statement { min-height: 0; }
}
@media (max-width: 560px) {
  .quiz__options:not(.quiz__options--wide) .opt { flex: 1 1 0; min-width: 0; padding-inline: .6em; }
  .quiz__start .btn, .report__actions .btn { width: 100%; justify-content: center; }
  .score { grid-template-columns: 2.2rem minmax(0, 1fr) auto; row-gap: .6rem; }
  .score__track { grid-column: 2; grid-row: 2; }
  .score__val { grid-column: 3; grid-row: 1; }
  .score__track i { width: 16px; }
}

@media print {
  .site-header, .site-footer, .stage__dial, .quiz__bar, .report__actions, .report__mail, .skip { display: none !important; }
  body, .quiz-page { background: #fff; color: var(--ink); }
  .stage .wrap { display: block; }
  .quiz { padding: 0; min-height: 0; }
  .report__where, .report__text, .score__name small, .score__val, .gauge__label, .quiz__note, .ref { color: var(--ink-soft) !important; }
  .report__text b, .gauge.is-weakest .gauge__label { color: var(--ink) !important; }
  .score__track i { background: #d5d9de; }
  .score__track i.on, .gauge .arc--value { background: var(--ink); stroke: var(--ink); }
  .gauge .arc, .gauge .tk { stroke: var(--ink-soft); }
  .report__block { break-inside: avoid; border-color: #c6cbd1; }
}
