/* Seattle Car Accidents: case review hero.
   Ported from the standalone build (seattle-car-accidents-case-review/styles.css). Rules and values
   are unchanged; only the scope differs: the design tokens and element resets that the standalone
   page put on :root, html and body live on .hero here, so the sections below the hero keep their
   own styles. */

.hero {
  --navy: #0f1927;
  --navy-hover: #1d2c42;
  --yellow: #ffcf00;
  --yellow-tint: #fff7d1;
  --ink: #0f1927;
  --text: #4c535b;
  --muted: #636a72;
  --line-strong: rgba(15, 25, 39, 0.24);
  --on-dark: rgba(249, 248, 235, 0.78);
  --error: #b42318;
  --success: #157f3d;
  --success-tint: #e3f5e9;
  --display: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --card-shadow: 0 1px 0 rgba(15, 25, 39, 0.05), 0 40px 70px -32px rgba(15, 25, 39, 0.6), 0 14px 28px -16px rgba(15, 25, 39, 0.3);
  --check-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157F3D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFCF00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");

  /* Quiz geometry. Every step shares one stage height (a two-line question plus
     five answer rows), so answering never resizes the card. On short screens the
     card shrinks and the rows shrink with it instead of the page scrolling. */
  --row: 60px;
  --gap: 8px;
  --q-size: clamp(20px, 5.6vw, 24px);
  --q-gap: clamp(8px, 1.8svh, 12px);
  --bar-h: clamp(28px, 5.2svh, 32px);
  --field-h: clamp(44px, 7.4svh, 54px);
  --btn-h: clamp(46px, 7.4svh, 56px);
  --est-h: clamp(42px, 7.6svh, 58px);
  --est-gap: clamp(6px, 1.2svh, 14px);
  --stage-h: calc(var(--q-size) * 2.3 + var(--q-gap) + var(--row) * 5 + var(--gap) * 4);
}

/* box-sizing and text-size-adjust come from base.css. */

:where(.hero) :where(img, svg) {
  display: block;
}

:where(.hero) :where(h1, h2, p) {
  margin: 0;
}

:where(.hero) :where(button, input) {
  margin: 0;
  font: inherit;
  color: inherit;
}

:where(.hero) button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hero: exactly one screen on phones */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 500px;
  padding: 0 12px max(8px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 0;
  opacity: 0.42;
  filter: saturate(0.55);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 39, 0.55) 0%, rgba(15, 25, 39, 0.82) 34%, var(--navy) 62%);
}

.top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  height: clamp(44px, 8svh, 76px);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__logo {
  width: clamp(30px, 5.8svh, 46px);
  height: auto;
  aspect-ratio: 1;
}

.brand__name {
  color: #fff;
  font: 800 17px/1.05 var(--display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.top__note {
  display: none;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.top__note svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.hero__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero__copy {
  flex: none;
  padding: 0 4px clamp(8px, 1.8svh, 22px);
  text-align: center;
}

.hero__title {
  color: #fff;
  font: 800 clamp(19px, min(7vw, 3.6svh), 30px)/1.08 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lede {
  display: none;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.45;
}

.hero__lede strong {
  color: #fff;
  font-weight: 700;
}

.hero__points {
  display: none;
}

/* Quiz card */

.quiz {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(8px, 1.8svh, 18px) 16px 10px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--card-shadow);
}

.quiz__bar {
  flex: none;
  display: flex;
  align-items: center;
  height: var(--bar-h);
}

.quiz__back {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 8px 0 -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: width 0.25s var(--ease), margin 0.25s var(--ease), opacity 0.2s var(--ease), background-color 0.15s var(--ease);
}

.quiz__back svg {
  width: 22px;
  height: 22px;
}

.quiz__back.is-hidden {
  width: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.quiz__progress {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: #eceef0;
  overflow: hidden;
  transition: opacity 0.2s var(--ease);
}

.quiz__fill {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--navy);
  transition: width 0.45s var(--ease);
}

.quiz__hint {
  flex: none;
  min-width: 84px;
  margin-left: 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.quiz.is-exit .quiz__progress,
.quiz.is-exit .quiz__hint {
  opacity: 0;
}

.quiz.is-done .quiz__hint {
  display: none;
}

.quiz__stage {
  position: relative;
  flex: 0 1 auto;
  height: var(--stage-h);
  min-height: 0;
  margin-top: clamp(6px, 1.4svh, 14px);
}

/* Estimate teaser: stays blurred, sharpening a little with each answer */

.estimate {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--est-h);
  margin: var(--est-gap) -6px 0;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--navy);
  overflow: hidden;
  transition: opacity 0.2s var(--ease), visibility 0s;
}

/* A slow light sweep so the locked number reads as something waiting to be opened */
.estimate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.13) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: estimate-sheen 5s var(--ease) 1s infinite;
  pointer-events: none;
}

@keyframes estimate-sheen {
  30%,
  100% {
    transform: translateX(100%);
  }
}

.estimate__copy {
  min-width: 0;
}

.estimate__label {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.estimate__sub {
  overflow: hidden;
  color: var(--on-dark);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s var(--ease);
}

.estimate__sub.is-flash {
  color: var(--yellow);
}

.estimate__value {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.estimate__amount {
  color: var(--yellow);
  font: 800 clamp(14px, 4.3vw, 19px)/1 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
  filter: blur(var(--blur, 11px));
  transition: filter 0.5s var(--ease);
}

.estimate__amount.is-updating {
  animation: estimate-pulse 0.5s var(--ease);
}

@keyframes estimate-pulse {
  40% {
    opacity: 0.55;
    transform: scale(0.94);
  }
}

.estimate__lock {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.estimate__shackle--open,
.quiz.is-revealed .estimate__shackle {
  display: none;
}

.quiz.is-revealed .estimate__shackle--open {
  display: inline;
}

/* The payoff: the number unblurs on the confirmation screen */
.quiz.is-revealed .estimate::after {
  animation: none;
  opacity: 0;
}

.quiz.is-revealed .estimate__amount {
  filter: blur(0);
  transition-duration: 0.9s;
  animation: estimate-reveal 0.9s var(--spring);
}

@keyframes estimate-reveal {
  0% {
    transform: scale(0.92);
  }

  60% {
    transform: scale(1.06);
  }
}

.quiz.is-exit .estimate,
.quiz.is-results .estimate {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0s linear 0.2s;
}

/* Steps: stacked in the stage and swapped with a short slide */

.step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--x, 0px));
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.26s var(--ease) 0.04s, transform 0.34s var(--ease), visibility 0s;
}

.step.is-instant {
  transition: none;
}

.step__head {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(var(--q-size) * 2.3);
  margin-bottom: var(--q-gap);
}

.step__q {
  color: var(--ink);
  font: 800 var(--q-size)/1.15 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.step__q:focus,
.end__title:focus {
  outline: none;
}

.step__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--success);
  font-size: 12.5px;
  font-weight: 700;
}

.step__eyebrow svg {
  width: 14px;
  height: 14px;
}

/* Answers */

.opts {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, var(--row)));
  gap: var(--gap);
  align-content: start;
}

/* Icon answers: full-width rows that share the answer area, capped at two text rows each */
.opts--icons {
  display: flex;
  flex-direction: column;
}

.opts--icons .opt {
  flex: 1 1 0;
  max-height: calc(var(--row) * 2);
  gap: clamp(10px, 3.2vw, 16px);
  padding-left: 10px;
  font-size: clamp(16px, 4.6vw, 18px);
  font-weight: 700;
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0 50px 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(15px, 4.2vw, 16.5px);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.25s var(--spring);
}

.opt::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff center / 12px no-repeat;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.3s var(--spring);
}

.opt:active {
  transform: scale(0.985);
}

.opt:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.opt[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--yellow-tint);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.opt[aria-pressed="true"]::after {
  border-color: var(--navy);
  background-color: var(--navy);
  background-image: var(--check);
  transform: scale(1.08);
}

.opt__icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(36px, 6.5svh, 52px);
  height: clamp(36px, 6.5svh, 52px);
}

.opt__icon::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 6px;
  background: var(--yellow);
  box-shadow: 0 0 0 1.5px var(--navy);
  transform: rotate(45deg);
  transition: background-color 0.2s var(--ease), transform 0.3s var(--spring);
}

.opt__icon svg {
  position: relative;
  width: 46%;
  height: 46%;
  color: var(--navy);
  transition: color 0.2s var(--ease);
}

/* Tall yes/no rows (were you injured?) get bigger icons so the faces read clearly */
.opts--big .opt__icon {
  width: clamp(52px, 10svh, 72px);
  height: clamp(52px, 10svh, 72px);
}

.opts--big .opt__icon svg {
  width: 52%;
  height: 52%;
}

.opt[aria-pressed="true"] .opt__icon::before {
  background: var(--navy);
  transform: rotate(45deg) scale(1.08);
}

.opt[aria-pressed="true"] .opt__icon svg {
  color: var(--yellow);
}

/* Results step: checks their answers, then shows the blurred range */

.step--results {
  /* The estimate strip is hidden on this step, so the step also uses its space */
  bottom: calc(-1 * (var(--est-h) + var(--est-gap)));
}

.checks {
  display: grid;
  gap: clamp(4px, 1.1svh, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: var(--ink);
  font-size: clamp(14.5px, 4vw, 16px);
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.35;
  transition: opacity 0.25s var(--ease);
}

.check.is-checking,
.check.is-done {
  opacity: 1;
}

.check__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: center / 12px no-repeat;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.3s var(--spring);
}

.check.is-checking .check__icon {
  border-top-color: var(--navy);
  animation: check-spin 0.7s linear infinite;
}

.check.is-done .check__icon {
  border-color: var(--success);
  background-color: var(--success-tint);
  background-image: var(--check-green);
  transform: scale(1.06);
}

@keyframes check-spin {
  to {
    transform: rotate(360deg);
  }
}

.results__estimate {
  margin-top: auto;
  padding: clamp(10px, 2svh, 16px) 14px;
  border: 2px dashed var(--yellow);
  border-radius: 14px;
  background: #fffcf0;
  text-align: center;
}

.results__amount {
  color: var(--success);
  font: 800 clamp(24px, 7vw, 32px)/1.1 var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  user-select: none;
  filter: blur(9px);
}

.results__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(6px, 1.2svh, 10px);
  color: #8a6500;
  font-size: 13px;
  font-weight: 700;
}

.results__note svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.results__quote {
  margin: clamp(8px, 1.6svh, 12px) 0 0;
}

.results__quote blockquote {
  margin: 0;
  color: var(--ink);
  font-size: clamp(13.5px, 3.8vw, 15px);
  font-weight: 500;
  line-height: 1.38;
}

.results__quote strong {
  color: var(--success);
  font-weight: 800;
}

.results__quote figcaption {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

/* The range, the quote and the button wait for the checks to finish */
.step--results .results__estimate,
.step--results .results__quote,
.step--results .results__cta {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}

.step--results .results__cta {
  margin-top: clamp(8px, 1.6svh, 12px);
}

.step--results.is-ready .results__estimate,
.step--results.is-ready .results__quote,
.step--results.is-ready .results__cta {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
}

.step--results.is-ready .results__cta {
  transition-delay: 0.15s;
}

/* Contact step */

.contact {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fields {
  display: grid;
  gap: var(--gap);
}

.field {
  position: relative;
}

.field__input {
  display: block;
  width: 100%;
  height: var(--field-h);
  padding: 17px 13px 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field__input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.6);
}

.field__input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #fff inset;
  -webkit-text-fill-color: var(--ink);
}

.field__label {
  position: absolute;
  top: 50%;
  left: 14.5px;
  right: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(14px, 4vw, 15px);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left top;
  transition: top 0.18s var(--ease), transform 0.18s var(--ease), color 0.15s var(--ease);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  top: 6px;
  font-weight: 600;
  transform: scale(0.76);
}

.field__input:-webkit-autofill + .field__label {
  top: 6px;
  font-weight: 600;
  transform: scale(0.76);
}

.field__err {
  display: none;
}

.field.is-invalid .field__input {
  border-color: var(--error);
}

.field.is-invalid .field__input:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16);
}

.field.is-invalid .field__label {
  color: var(--error);
  font-weight: 600;
}

.field.is-invalid .field__err {
  display: inline;
}

.field.is-invalid .field__lbl {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  margin-top: auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.consent strong {
  color: var(--ink);
  font-weight: 700;
}

.btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: var(--btn-h);
  margin-top: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: 700 14px/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(15, 25, 39, 0.7);
  transition: background-color 0.2s var(--ease), transform 0.25s var(--spring), opacity 0.2s var(--ease);
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--yellow);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 12px 26px -12px rgba(255, 207, 0, 0.9);
}

.btn--yellow svg {
  color: var(--navy);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.btn[aria-busy="true"] {
  opacity: 0.8;
  cursor: progress;
}

.btn.is-error {
  background: var(--error);
}

/* Exit and confirmation screens */

.step--end {
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-align: center;
}

.end__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.end__icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background: var(--yellow);
  box-shadow: 0 0 0 2px var(--navy);
  transform: rotate(45deg);
}

.end__icon svg {
  position: relative;
  width: 26px;
  height: 26px;
  color: var(--navy);
}

.end__icon--done::before {
  background: var(--navy);
}

.end__icon--done svg {
  color: var(--yellow);
}

.end__title {
  color: var(--ink);
  font: 800 clamp(22px, 6vw, 28px)/1.12 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.end__text {
  max-width: 30ch;
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

.end__text strong {
  color: var(--ink);
  white-space: nowrap;
}

.end__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 18px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-wrap: balance;
  transition: background-color 0.15s var(--ease);
}

.end__link svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.end__back {
  margin-top: 12px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.end__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.end__fine {
  display: none;
  max-width: 34ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.quiz.is-revealed .end__fine {
  display: block;
}

.quiz__back:focus-visible,
.end__link:focus-visible,
.end__back:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

@media (hover: hover) {
  .opt:hover {
    border-color: var(--navy);
  }

  .quiz__back:hover {
    background: rgba(15, 25, 39, 0.06);
  }

  .btn:hover {
    background: var(--navy-hover);
  }

  .btn--yellow:hover {
    background: #ffd83a;
  }

  .end__link:hover {
    background: var(--yellow-tint);
  }
}

@media (min-width: 420px) {
  .top__note {
    display: flex;
  }
}

@media (max-width: 359px) {
  .estimate__lock {
    display: none;
  }
}

/* Short screens (and shorter laptop windows, where desktop rows are tighter): three checks
   are enough, so the client quote still fits above the button */
@media (max-height: 620px), (min-width: 900px) and (max-height: 800px) {
  .check:nth-child(n + 4) {
    display: none;
  }
}

/* Desktop: copy on the left, quiz on the right */

@media (min-width: 900px) {
  .hero {
    --row: clamp(48px, 6.4svh, 60px);
    --gap: 10px;
    --q-size: 28px;
    --q-gap: 16px;
    --field-h: clamp(44px, 6svh, 54px);
    --btn-h: clamp(46px, 6.2svh, 56px);
  }

  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 clamp(24px, 4vw, 56px) clamp(32px, 6svh, 72px);
  }

  .hero__bg img {
    object-position: 62% 35%;
  }

  .hero__bg::after {
    background:
      linear-gradient(90deg, rgba(15, 25, 39, 0.97) 0%, rgba(15, 25, 39, 0.84) 42%, rgba(15, 25, 39, 0.5) 100%),
      linear-gradient(0deg, var(--navy) 0%, rgba(15, 25, 39, 0) 45%);
  }

  .top {
    height: clamp(84px, 12svh, 112px);
  }

  .brand {
    gap: 14px;
  }

  .brand__logo {
    width: 60px;
  }

  .brand__name {
    font-size: 20px;
  }

  .top__note {
    font-size: 14px;
  }

  .hero__body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 6vw, 96px);
    max-width: 1200px;
  }

  .hero__copy {
    flex: 1 1 0;
    max-width: 580px;
    padding: 0;
    text-align: left;
  }

  .hero__title {
    max-width: 12.5ch;
    font-size: clamp(44px, 1.1rem + 3.6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.032em;
  }

  .hero__lede {
    display: block;
    max-width: 44ch;
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.6;
  }

  .hero__points {
    display: grid;
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    list-style: none;
  }

  .hero__points li {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .hero__points li::before {
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: var(--yellow);
    transform: rotate(45deg);
  }

  .quiz {
    flex: 0 0 auto;
    width: min(500px, 46vw);
    padding: 24px 28px 14px;
    border-radius: 26px;
  }

  .estimate {
    margin-inline: -14px;
    padding: 0 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero *,
  .hero *::before,
  .hero *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }

  .step {
    transform: none !important;
  }
}
