/* ==========================================================================
   The Surveying Experts — Level 2 Survey landing page
   Built from the desktop and mobile artboards, merged into one responsive
   page. Base styles are mobile; the 768px breakpoint (the same threshold the
   design export used to split the two pages) switches to the desktop layout.
   Colours, radii, shadows and motion come from css/tokens.css.
   ========================================================================== */

:root {
  /* Page-local values the design system does not define a token for. */
  --quiz-band: #e9f4eb;        /* quiz section ground — a shade cooler than --green-100 */
  --error: #c0392b;
  /* Every piece of secondary body copy routes through this one variable.
     The design system's --grey-500 is the brand value, but it only reaches
     3.3:1 on white — short of the WCAG AA 4.5:1 minimum. Switching this to
     var(--grey-600) lifts it to 5.0:1 and changes nothing else. */
  --body-copy: var(--grey-500);
  --hero-overlay: linear-gradient(90deg, rgba(14, 44, 95, .94) 0%, rgba(14, 44, 95, .86) 45%, rgba(14, 44, 95, .35) 100%);
  /* Footer clearance for the sticky bar; site.js sets it to 0 when the bar is away. */
  --sticky-clearance: 86px;
}

/* --------------------------------------------------------------- base ---- */

*, *::before, *::after { box-sizing: border-box; }

/* Components below set their own `display`, which would otherwise beat the
   user-agent rule for [hidden]. JS toggles visibility with .hidden, so this
   has to win. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy-800);
  background: var(--surface-page);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  text-wrap: pretty;
}

p { margin: 0; }
img { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--text-link-hover); }

::selection { background: var(--green-100); color: var(--navy-800); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Diagonal hatch texture behind the light bands. */
.hatch {
  background-image: repeating-linear-gradient(135deg, rgba(14, 44, 95, .035) 0 1px, transparent 1px 9px);
}

/* The green keyline that opens each section. */
.rule {
  width: 56px;
  height: 5px;
  background: var(--green-500);
  margin-bottom: 14px;
}

.accent { color: var(--green-500); }

/* Copy that differs between the two artboards. The mobile wording is the
   designer's own shorter variant — it keeps the hero CTA above the fold and
   stops the proof labels running to three lines. */
.only-lg { display: none; }

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

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-standard);
}
.skip-link:focus { top: 8px; color: var(--white); }

/* ------------------------------------------------------------- button ---- */
/* Mirrors the design system's Button component (core/Button.jsx). */

.btn {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .01em;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-base);
}
.btn:active { transform: scale(var(--press-scale)); }

.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--lg { font-size: 16px; padding: 16px 34px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--action-primary); color: var(--action-primary-text); }
.btn--primary:hover { background: var(--action-primary-hover); color: var(--action-primary-text); }

.btn--secondary { background: var(--action-secondary); color: var(--white); }
.btn--secondary:hover { background: var(--action-secondary-hover); color: var(--white); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .14);
  border-color: var(--white);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--action-ghost-text);
  padding: 14px 4px;
}
.btn--ghost:hover { color: var(--green-500); }

/* -------------------------------------------------------------- input ---- */
/* Mirrors the design system's Input component (forms/Input.jsx). */

.field { display: block; }

.field__label {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: var(--navy-800);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  height: 46px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--navy-800);
  background: var(--surface-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  outline: none;
  transition: var(--transition-base);
}
.input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(58, 169, 74, .14);
}
.input[aria-invalid='true'] { border-color: var(--rating-3); }

.field__note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--body-copy);
}

/* ------------------------------------------------------------- header ---- */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.header__logo { height: 38px; width: auto; display: block; }
.header__rics { height: 38px; width: auto; display: block; }
.header__actions { display: flex; align-items: center; gap: 20px; }
/* The header call button is desktop-only — on mobile the sticky bar carries it. */
.header__call { display: none; }

/* --------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  background: var(--surface-dark);
  overflow: hidden;
}
/* The photograph is a desktop-only background, so phones never download it. */
.hero__media { display: none; }
.hero__inner {
  position: relative;
  padding-top: 32px;
  padding-bottom: 28px;
}
.hero__copy { max-width: 620px; }

.hero__eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-300);
}
.hero__title {
  margin-bottom: 12px;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--white);
}
.hero__lead {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.hero__points {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .9);
}
.hero__points li { display: flex; gap: 10px; align-items: flex-start; }
.hero__points svg { flex: none; margin-top: 2px; }

/* -------------------------------------------------------------- proof ---- */

.proof { background: var(--surface-subtle); }
.proof__inner {
  padding-top: 22px;
  padding-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.proof__item { text-align: center; }
.proof__figure {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--navy-800);
}
.proof__figure--accent { color: var(--green-500); }
.proof__label {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--body-copy);
}
/* The RICS tile is the fourth column on desktop; mobile keeps three. */
.proof__item--badge { display: none; }
.proof__badge { height: 34px; width: auto; margin: 0 auto; display: block; }

/* ------------------------------------------------------- section heads --- */

.section__head { max-width: 620px; margin-bottom: 20px; }
.section__title {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.section__lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-copy);
  text-wrap: pretty;
}

/* --------------------------------------------------------------- quiz ---- */

.quiz { background: var(--quiz-band); }
.quiz__inner { padding-top: 36px; padding-bottom: 40px; }
.quiz__intro { margin-bottom: 14px; }

.quiz__card {
  position: relative;
  background: var(--surface-card);
  border: 2px solid var(--green-500);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(14, 44, 95, .18);
  padding: 24px 16px 18px;
  margin-top: 14px;
  scroll-margin-top: 16px;
}

.quiz__flag {
  position: absolute;
  top: -14px;
  left: 16px;
  background: var(--green-500);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* Overlay chrome — only ever visible in the mobile full-screen state. */
.quiz__bar { display: none; }
.quiz__bar-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--navy-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz__bar-logo { height: 30px; width: auto; display: block; }
.quiz__bar-count,
.quiz__count {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--body-copy);
}

/* Inline stepper header — desktop only. */
.quiz__head { display: none; }
.quiz__hint { font-size: 13px; color: var(--body-copy); }

.quiz__progress {
  display: none;
  height: 4px;
  background: var(--grey-150);
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0 12px;
}
.quiz__progress-bar {
  height: 100%;
  width: 0;
  background: var(--green-500);
  transition: width var(--dur-base) var(--ease-standard);
}

.quiz__eyebrow {
  display: none;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-500);
}

.quiz__title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 16px;
  line-height: 1.25;
  color: var(--navy-800);
}

.quiz__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quiz__option {
  min-height: 52px;
  padding: 12px 10px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all var(--dur-fast) var(--ease-standard);
}
.quiz__option:hover { border-color: var(--green-500); }
.quiz__option:active { transform: scale(var(--press-scale)); }
.quiz__option[aria-pressed='true'] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

/* Selection ring — part of the mobile full-screen option rows only. */
.quiz__ring { display: none; }

.quiz__fields { display: flex; flex-direction: column; gap: 14px; }
.quiz__smallprint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--body-copy);
}
.quiz__error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--error);
}

.quiz__foot {
  display: none;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.quiz__next-wrap { flex: 1; }
.quiz__nonext {
  /* Shown only inside the mobile full-screen footer; see .quiz-open below. */
  display: none;
  margin: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--body-copy);
}

.quiz__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--body-copy);
}

/* Completion panel. */
.quiz__done {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(14, 44, 95, .10);
  padding: 24px 18px;
  margin-top: 14px;
  text-align: center;
  animation: fadeUp var(--dur-slow) var(--ease-standard);
}
.quiz__tick {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  background: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.quiz__done-title {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -.015em;
}
.quiz__done-lead {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body-copy);
}
.quiz__summary {
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  font-size: 14px;
  color: var(--navy-800);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz__summary div { display: flex; justify-content: space-between; gap: 12px; }
.quiz__summary dt { color: var(--body-copy); }
.quiz__summary dd { margin: 0; font-weight: var(--fw-bold); text-align: right; }
.quiz__summary dd.accent { color: var(--green-500); }
.quiz__done-call { margin-top: 16px; font-size: 14px; color: var(--body-copy); }
.quiz__done-call a { font-weight: var(--fw-bold); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ----------------------------------------------------------- included ---- */

.included { background: var(--surface-subtle); }
.included__inner { padding-top: 40px; padding-bottom: 40px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.card__icon { display: block; margin-bottom: 12px; }
/* Recoloured through a mask so the glyph always matches --green-500. */
.card__icon--mask {
  width: 30px;
  height: 30px;
  background: var(--green-500);
  -webkit-mask: url('../assets/icon-condition-ratings.svg') center / contain no-repeat;
  mask: url('../assets/icon-condition-ratings.svg') center / contain no-repeat;
}
.card__title {
  margin-bottom: 6px;
  font-size: 17px;
  color: var(--navy-800);
}
.card__body { font-size: 15px; line-height: 1.5; color: var(--body-copy); }

/* ------------------------------------------------------------ process ---- */

.process__inner { padding-top: 40px; padding-bottom: 40px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex: none;
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 34px;
  line-height: 1;
  color: var(--green-500);
}
.step__title { margin-bottom: 6px; font-size: 17px; color: var(--navy-800); }
.step__body { font-size: 15px; line-height: 1.5; color: var(--body-copy); }

/* --------------------------------------------------------------- scope ---- */
/* The RICS terms, as native <details> panels: no JavaScript, keyboard
   operable and screen-reader friendly for free, and the content stays
   indexable while collapsed. */

.scope { background: var(--surface-subtle); }
.scope__inner { padding-top: 40px; padding-bottom: 40px; }

.disclosure {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.disclosure:last-child { margin-bottom: 0; }

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 17px;
  line-height: 1.3;
  color: var(--navy-800);
  border-radius: var(--radius-lg);
  transition: color var(--dur-fast) var(--ease-standard);
  /* Suppress the default disclosure triangle in every engine. */
  list-style: none;
}
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary::marker { content: ''; }
.disclosure__summary:hover { color: var(--green-500); }
.disclosure__summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.disclosure__chev {
  flex: none;
  color: var(--green-500);
  transition: transform var(--dur-base) var(--ease-standard);
}
.disclosure[open] .disclosure__chev { transform: rotate(180deg); }

.disclosure__body {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-copy);
}
.disclosure__body p { margin-bottom: 12px; }
.disclosure__body p:last-child { margin-bottom: 0; }

.disclosure__list {
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.disclosure__list:last-child { margin-bottom: 0; }
.disclosure__list li {
  position: relative;
  padding-left: 20px;
}
/* Green bullet, drawn rather than a list-marker so it can use a token. */
.disclosure__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--green-500);
}

/* ---------------------------------------------------------- cta band ----- */

.cta { background: var(--surface-accent); }
.cta__inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta__copy { max-width: 560px; }
.cta__title {
  margin-bottom: 8px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--white);
}
.cta__lead { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

/* ------------------------------------------------------------- footer ---- */

.footer {
  background: var(--surface-dark);
  color: var(--navy-100);
  margin-top: auto;
}
.footer__inner {
  padding-top: 28px;
  padding-bottom: calc(28px + var(--sticky-clearance));
  transition: padding-bottom var(--dur-base) var(--ease-standard);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__marks { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__logo { height: 36px; width: auto; display: block; }
.footer__rics { height: 30px; width: auto; display: block; }
.footer__text { font-size: 13px; line-height: 1.6; max-width: 420px; }
.footer__strap { margin-bottom: 4px; color: var(--white); }
.footer__text a { color: var(--white); }

/* --------------------------------------------------------- sticky cta ---- */

.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  box-shadow: 0 -6px 24px rgba(14, 44, 95, .10);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
  transform: translateY(100%);
  /* Off-screen means out of the tab order too, not just out of sight. */
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-standard), visibility 0s linear var(--dur-base);
}
.sticky[data-shown='true'] {
  transform: none;
  visibility: visible;
  transition-delay: 0s, 0s;
}
.sticky__call {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--navy-800);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky__call:hover { color: var(--navy-800); background: var(--grey-100); }
.sticky__cta { flex: 1; }
/* The bar gives the label about 215px at 375px wide, which is a few pixels short
   of "Get My Quote - From £480". Trim the button's own padding to buy the room —
   it is a full-width block here, so the padding is not doing any visual work. */
.sticky__cta .btn { padding-left: 16px; padding-right: 16px; }

/* ================================================== mobile quiz overlay === */
/* Below the breakpoint the quiz card leaves the flow and fills the screen. */

@media (max-width: 767.98px) {
  body.quiz-open { overflow: hidden; }

  .quiz-open .quiz__card {
    position: fixed;
    inset: 0;
    z-index: 100;
    margin: 0;
    padding: 12px 0 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    animation: slideUp var(--dur-base) var(--ease-standard);
  }

  .quiz-open .quiz__flag { display: none; }

  .quiz-open .quiz__bar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 16px;
  }
  .quiz-open .quiz__bar-back { margin-left: -10px; }
  .quiz-open .quiz__bar-close { margin-right: -10px; }

  .quiz-open .quiz__progress {
    display: block;
    flex: none;
    margin: 8px 16px 12px;
  }

  .quiz-open .quiz__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
  }
  .quiz-open .quiz__eyebrow { display: block; }
  .quiz-open .quiz__title {
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 22px;
  }

  /* Full-screen options are full-width rows with a selection ring. */
  .quiz-open .quiz__options { display: flex; flex-direction: column; gap: 10px; }
  .quiz-open .quiz__option {
    min-height: 58px;
    padding: 14px 18px;
    font-size: 16px;
    text-align: left;
    justify-content: space-between;
  }
  .quiz-open .quiz__ring {
    display: flex;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-circle);
    border: 2px solid var(--grey-300);
    align-items: center;
    justify-content: center;
  }
  .quiz-open .quiz__ring svg { opacity: 0; }
  .quiz-open .quiz__option[aria-pressed='true'] .quiz__ring {
    border-color: var(--green-500);
    background: var(--green-500);
  }
  .quiz-open .quiz__option[aria-pressed='true'] .quiz__ring svg { opacity: 1; }

  .quiz-open .quiz__nonext:not([hidden]) { display: flex; }
  .quiz-open .quiz__back { display: none; }
  .quiz-open .quiz__foot {
    display: flex;
    flex: none;
    margin: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--grey-200);
    background: var(--white);
  }
  .quiz-open .quiz__secure { display: none; }
  .quiz-open .sticky { display: none; }
}

/* ======================================================== desktop ≥768 === */

@media (min-width: 768px) {
  .container { padding: 0 20px; }

  .only-sm { display: none; }
  .only-lg { display: inline; }

  /* ---- header ---- */
  .header__inner { padding-top: 12px; padding-bottom: 12px; }
  .header__logo, .header__rics { height: 44px; }
  .header__call { display: inline-flex; }

  /* ---- hero ---- */
  .hero {
    background-color: var(--surface-dark);
    background-image: var(--hero-overlay), url('../assets/hero-house.webp');
    background-size: cover, cover;
    background-position: center, center 40%;
    background-repeat: no-repeat, no-repeat;
  }
  .hero__inner { padding-top: 44px; padding-bottom: 40px; }
  .hero__eyebrow { font-size: 13px; margin-bottom: 12px; }
  .hero__title { margin-bottom: 16px; }
  .hero__lead { margin-bottom: 24px; font-size: 18px; line-height: 1.55; }
  .hero__actions { gap: 12px; }
  .hero__points { margin-top: 24px; gap: 10px; font-size: 15px; }
  .rule { width: 76px; margin-bottom: 18px; }

  /* ---- proof ---- */
  .proof__inner {
    padding-top: 28px;
    padding-bottom: 28px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px 16px;
  }
  .proof__figure { font-size: 34px; }
  .proof__label { font-size: 13px; line-height: 1.35; }
  .proof__item--badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* ---- section heads ---- */
  .section__head { margin-bottom: 28px; }
  .section__title { margin-bottom: 12px; }
  .section__lead { font-size: 17px; line-height: 1.55; }

  /* ---- quiz: two columns, card inline ---- */
  .quiz__inner {
    padding-top: 48px;
    padding-bottom: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 32px;
    align-items: start;
  }
  .quiz__intro { margin-bottom: 0; }
  .quiz__card { margin-top: 0; padding: 24px 20px 20px; }
  .quiz__flag { left: 20px; }

  .quiz__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .quiz__progress {
    display: block;
    height: 5px;
    border-radius: 3px;
    margin: 0 0 22px;
  }
  .quiz__title { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 16px; }
  .quiz__options { gap: 10px; }
  .quiz__option { min-height: 56px; padding: 14px 12px; font-size: 15px; }
  .quiz__foot { display: flex; }
  .quiz__secure { margin-top: 16px; }

  .quiz__done { padding: 12px 0 8px; box-shadow: none; margin-top: 0; }
  .quiz__tick { width: 60px; height: 60px; margin-bottom: 18px; }
  .quiz__done-title { font-size: 24px; margin-bottom: 10px; }
  .quiz__done-lead { font-size: 16px; line-height: 1.55; margin-bottom: 20px; }
  .quiz__summary { padding: 16px; border-radius: var(--radius-md); }
  .quiz__done-call { margin-top: 18px; }

  /* ---- content sections ---- */
  .included__inner, .process__inner, .scope__inner { padding-top: 56px; padding-bottom: 56px; }
  .disclosure__summary { font-size: 18px; padding: 20px 24px; }
  .disclosure__body { padding: 0 24px 22px; font-size: 16px; }
  .cta__inner { padding-top: 48px; padding-bottom: 48px; }
  .footer__inner { padding-top: 32px; padding-bottom: calc(32px + var(--sticky-clearance)); gap: 20px; }
  .footer__logo { height: 40px; }
  .footer__rics { height: 32px; }

  /* ---- sticky bar: constrained to the container, buttons at natural width ---- */
  /* Auto-width on desktop, so the normal padding matters again. */
  .sticky__cta .btn { padding-left: 34px; padding-right: 34px; }
  .sticky {
    justify-content: flex-end;
    padding: 12px max(20px, calc((100vw - var(--container-max)) / 2 + 20px));
  }
  .sticky__cta { flex: none; }
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ----------------------------------------------------------- no script ---- */
/* The stepped quiz needs JavaScript. Without it the card is replaced by a
   plain form that posts to the same endpoint. */

.noscript-form { display: grid; gap: 14px; }
.noscript-form .field__label { margin-bottom: 6px; }
.noscript-form select.input { height: 46px; }
