/* ============================================================
   Pick One · Quiz results page (iteration 254)
   ------------------------------------------------------------
   The approved 9-section results design (frames in
   pick-one-design-review/quiz-results/, plan in
   projects/pick-one/design/quiz-results/plan.md).
   01 score hero · 02 breakdown · 03 problem story · 04 why ·
   05 the fix + question cards · 06 testimonial + CTA ·
   07 belief · 08 what makes Pick One different · 09 reviews.
   Bands alternate cream / white; 06 is a full-bleed photo.
   Type follows standards/spacing-and-type.md: H1 44/32,
   section headlines 40/30, body 18/16, 56/40px section padding.
   ============================================================ */

/* The quiz container centres a narrow column; the results page is a
   full-width stack of bands instead. */
body.quiz-page .quiz.quiz--result {
  display: block;
  padding: 0;
  min-height: 0;
}

.qr {
  --qr-amber-deep: var(--ochre-hover, #f0aa2c);
  width: 100%;
  color: var(--body, #302f2e);
}

.qr-wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.qr-sec {
  padding-block: 3.5rem;
  background: #ffffff;
}
.qr-hero,
.qr-story,
.qr-fix,
.qr-diff { background: var(--cream, #fef8ec); }

.qr p,
.qr li,
.qr blockquote {
  text-align: start;
  text-align-last: auto;
  hyphens: manual;
}
.qr ul,
.qr ol { list-style: none; margin: 0; padding: 0; }
.qr figure,
.qr blockquote { margin: 0; }

/* Section headline (H3 size in the standard, <h2> in the markup) */
.qr .qr-h {
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink, #1a1a1a);
  margin: 0;
}

.qr-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-body, "Figtree", sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-ink, #b8402d);
}
.qr-label--amber { color: var(--ochre-ink, #7a4c00); }

body.quiz-page .qr .qr-cta {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  border-radius: var(--r-pill, 62.5rem);
}

/* ---------- 01 · Score hero ---------------------------------- */
.qr-hero { padding-block: 4.5rem 3.5rem; }
.qr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: center;
}
.qr-hero__num {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  line-height: 0.8;
}
.qr-hero__num strong {
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 800;
  font-size: 11.25rem;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: var(--ink, #1a1a1a);
}
.qr-hero__max {
  font-family: var(--font-body, "Figtree", sans-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--muted, #6e6b67);
  line-height: 1;
  padding-bottom: 0.1rem;
}
.qr .qr-hero__tier {
  margin-top: 1.5rem;
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink, #1a1a1a);
}
.qr-hero__lead {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--ink, #1a1a1a);
  text-wrap: pretty;
}

/* Score bar: disconnected (sand) → amber → coral. Marker slides in. */
.qr-bar { margin-top: 4.5rem; }
.qr-bar__track {
  position: relative;
  height: 1.25rem;
  border-radius: var(--r-pill, 62.5rem);
  border: 1px solid rgba(26, 26, 26, 0.12);
  background:
    linear-gradient(90deg, #ebe4d6 0%, var(--amber, #fcbd4c) 48%, var(--coral, #f06858) 100%)
    padding-box;
  box-shadow: inset 0 0 0 3px #ffffff;
}
.qr-bar__marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin: -1.125rem 0 0 -1.125rem;
  border-radius: 50%;
  background: var(--coral, #f06858);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.22);
  transition: left 1.1s var(--ease, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.qr-bar__marker.is-in { left: var(--pos, 0%); }
.qr-bar__you {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-sm, 0.75rem);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.12);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  white-space: nowrap;
}
.qr-bar__marker.is-start .qr-bar__you { left: -0.2rem; transform: none; }
.qr-bar__marker.is-end .qr-bar__you { left: auto; right: -0.2rem; transform: none; }
.qr-bar__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--ink, #1a1a1a);
}
@media (prefers-reduced-motion: reduce) {
  .qr-bar__marker { transition: none; }
}

/* ---------- 02 · Breakdown ----------------------------------- */
.qr .qr-break__list { margin-top: 2.5rem; }
.qr-break__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 4rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}
.qr-break__row:first-child { border-top: 0; padding-top: 0; }
.qr-break__row:last-child { padding-bottom: 0; }
.qr-break__name {
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--ink, #1a1a1a);
}
.qr-dots { display: flex; gap: 1.1rem; }
.qr-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cream, #fef8ec);
  box-shadow: inset 0 0 0 1.5px rgba(26, 26, 26, 0.18);
}
.qr-dot.is-on { background: var(--amber, #fcbd4c); box-shadow: none; }
.qr-break__label {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink, #1a1a1a);
}

/* ---------- 03 · The problem --------------------------------- */
.qr-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem 4rem;
  align-items: center;
}
.qr-story__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md, 1.25rem);
}
/* Studio photos on a white/pale ground sit straight on the cream band. */
.qr-story__media.is-cutout img {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent);
  mask-composite: intersect;
}
.qr-story__body { margin-top: 2rem; }
.qr-story__body p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--body, #302f2e);
}
.qr-story__body p + p { margin-top: 1.5rem; }
.qr-story__line {
  margin: 2.5rem 0 0;
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink, #1a1a1a);
}
.qr-story__line span {
  background: var(--amber, #fcbd4c);
  padding: 0.08em 0.35em;
  border-radius: 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 04 · Why it happens ------------------------------ */
.qr-why { text-align: center; padding-block: 4.5rem; }
.qr-why__rule {
  display: block;
  width: 8rem;
  height: 0.5rem;
  margin: 0 auto 2.5rem;
  border-radius: 0.125rem;
  background: var(--amber, #fcbd4c);
}
.qr-why .qr-h { text-align: center; }
.qr .qr-why__text {
  margin: 1.5rem auto 0;
  max-width: 58rem;
  text-align: center;
  font-size: 1.625rem;
  line-height: 1.5;
  color: var(--ink, #1a1a1a);
  text-wrap: balance;
}

/* ---------- 05 · The fix + question cards -------------------- */
.qr-fix__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: start;
}
.qr-fix__body { margin-top: 1.5rem; }
.qr-fix__body p {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--body, #302f2e);
}
.qr-fix__body p + p { margin-top: 1.25rem; }
.qr .qr-fix__strong {
  margin-top: 1.5rem;
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink, #1a1a1a);
}
/* The phone is cut by the card row, as in the frame. */
.qr-fix__phone {
  justify-self: center;
  width: 19rem;
  height: 27rem;
  overflow: hidden;
  margin-bottom: -7rem;
}
.qr-fix__phone img { width: 100%; }
.qr-fix > .qr-wrap > .qr-label { position: relative; margin-top: 3rem; }

.qr-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.qr-card {
  display: flex;
  flex-direction: column;
  min-height: 14.5rem;
  border-radius: var(--r-sm, 0.75rem);
  overflow: hidden;
  background: #fffdf7;
  box-shadow:
    0 1px 2px rgba(26, 26, 26, 0.06),
    6px 6px 0 -1px var(--qr-band),
    0 16px 32px -14px rgba(26, 26, 26, 0.25);
}
.qr-card--amber { --qr-band: var(--amber, #fcbd4c); }
.qr-card--coral { --qr-band: var(--coral, #f06858); }
.qr-card:last-child { --qr-band: var(--qr-amber-deep); }
.qr .qr-card__q {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1.75rem;
  text-align: center;
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink, #1a1a1a);
  text-wrap: balance;
}
.qr-card__band {
  display: grid;
  place-items: center;
  height: 3.5rem;
  background: var(--qr-band);
}
.qr-card__band img { height: 2.1rem; width: auto; }

/* ---------- 06 · Testimonial + CTA --------------------------- */
.qr-testi {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--cream, #fef8ec);
}
/* The photo is never cropped sideways, so the card always lands on the
   empty sofa and window (right third), never on a person (house rule). */
.qr-testi__photo { display: block; }
.qr-testi__photo img { width: 100%; height: auto; }
.qr-testi__wrap {
  position: absolute;
  top: 50%;
  left: 65%;
  right: 6%;
  max-width: 30rem;
  padding: 0;
  transform: translateY(-50%);
}
.qr-testi__card {
  width: 100%;
  box-sizing: border-box;
  padding: 2.25rem 2.25rem 1.75rem;
  border-radius: var(--r-md, 1.25rem);
  background: rgba(255, 253, 247, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-float);
}
.qr-testi__mark,
.qr-review__mark { width: 2.6rem; height: auto; fill: var(--amber, #fcbd4c); }
.qr-testi__quote { margin-top: 1.25rem; }
.qr .qr-testi__quote p {
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.75vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink, #1a1a1a);
}
.qr-testi__who {
  margin-top: 0.85rem;
  font-size: 1.125rem;
  color: var(--body, #302f2e);
}
.qr-testi__cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
  text-align: center;
}
.qr .qr-testi__offer {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 1rem;
  color: var(--body, #302f2e);
}
.qr-retake {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-height: 2.75rem;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--muted, #6e6b67);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.qr-retake:hover { color: var(--ink, #1a1a1a); }

/* ---------- 07 · Belief statement ---------------------------- */
.qr-belief { text-align: center; padding-block: 4.5rem; }
.qr .qr-belief__h {
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
  font-size: 2.75rem;
  line-height: 1.12;
}
.qr .qr-belief__sub {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 2rem;
  line-height: 1.3;
  color: var(--ink, #1a1a1a);
}
.qr-belief .qr-cta { margin-top: 2.5rem; }

/* ---------- 08 · What makes Pick One different --------------- */
.qr-diff__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.qr .qr-diff__text {
  margin-top: 1.75rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--body, #302f2e);
}
.qr .qr-diff__strong {
  margin-top: 2rem;
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink, #1a1a1a);
}
.qr-diff__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.qr-diff__card {
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: var(--r-md, 1.25rem);
  background: #ffffff;
  border: 1px solid rgba(252, 189, 76, 0.45);
  box-shadow: var(--shadow-card);
}
.qr-diff__card svg {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--qr-amber-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qr .qr-diff__card h3 {
  margin-top: 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #1a1a1a);
}
.qr .qr-diff__card p {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--body, #302f2e);
}
.qr-diff .qr-label { margin-top: 3rem; }
.qr-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.qr-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: center;
  align-content: start;
}
/* Connector line from each dot to the next step */
.qr-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: calc(100% - 3.5rem);
  width: 4.25rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(252, 189, 76, 0.5), var(--amber, #fcbd4c));
}
.qr-step__dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #f6dcb0;
}
.qr-step:nth-child(2) .qr-step__dot { width: 1.5rem; height: 1.5rem; background: #f5cf8e; }
.qr-step:nth-child(3) .qr-step__dot { width: 1.75rem; height: 1.75rem; background: var(--qr-amber-deep); }
.qr-step:nth-child(4) .qr-step__dot { width: 2rem; height: 2rem; background: var(--coral, #f06858); }
.qr .qr-step h3 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink, #1a1a1a);
}
.qr .qr-step p {
  grid-column: 2;
  margin-top: 0.3rem;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--body, #302f2e);
}

/* ---------- 09 · What couples are saying --------------------- */
.qr-reviews { text-align: center; }
.qr-reviews .qr-h { text-align: center; font-size: 2.75rem; }
.qr .qr-reviews__list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  text-align: start;
}
.qr-review {
  padding: 2.25rem 2.5rem;
  border-radius: var(--r-lg, 1.75rem);
  background: var(--cream, #fef8ec);
}
.qr .qr-review blockquote p {
  margin-top: 1.25rem;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--ink, #1a1a1a);
}
.qr .qr-review__who {
  margin-top: 1rem;
  font-family: var(--font-display, "Gabarito", sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink, #1a1a1a);
}
.qr-reviews .qr-cta { margin-top: 2.5rem; }

/* ---------- Tablet ------------------------------------------- */
@media (max-width: 63.99rem) {
  .qr-hero__grid,
  .qr-story__grid,
  .qr-fix__grid,
  .qr-diff__grid { grid-template-columns: minmax(0, 1fr); }
  .qr-fix__phone { display: none; }
  .qr-fix > .qr-wrap > .qr-label { margin-top: 2.5rem; }
  .qr-break__row { gap: 1rem 2rem; }
  .qr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .qr-step::after { display: none; }
}
/* Narrower than the 1200px container: photo on top, card below it (no overlap on people). */
@media (max-width: 74.99rem) {
  .qr-testi__wrap { position: relative; top: auto; left: auto; right: auto; max-width: none; transform: none; margin-top: 0; padding-top: 2rem; padding-inline: clamp(1.25rem, 4vw, 2.5rem); padding-bottom: 2.5rem; }
  .qr-testi__card { max-width: 34rem; margin-inline: auto; background: #fffdf7; }
}
/* ---------- Phone -------------------------------------------- */
@media (max-width: 47.99rem) {
  .qr-sec { padding-block: 2.5rem; }
  .qr-hero { padding-block: 2.5rem; }
  .qr-why,
  .qr-belief { padding-block: 3rem; }
  .qr .qr-h { font-size: 1.875rem; }
  .qr-br { display: none; }
  .qr-label { font-size: 0.8125rem; }

  .qr-hero__grid { gap: 1.25rem; }
  .qr-hero__num strong { font-size: 7rem; }
  .qr-hero__max { font-size: 1.25rem; }
  .qr .qr-hero__tier { margin-top: 1rem; font-size: 2rem; }
  .qr-hero__lead { font-size: 1.25rem; }
  .qr-bar { margin-top: 3.5rem; }
  .qr-bar__track { height: 1rem; }
  .qr-bar__marker { width: 1.875rem; height: 1.875rem; margin: -0.9375rem 0 0 -0.9375rem; }
  .qr-bar__you { font-size: 0.9375rem; }
  .qr-bar__ends { font-size: 0.9375rem; }

  .qr .qr-break__list { margin-top: 2rem; }
  .qr-break__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name dots" "label label";
    gap: 0.5rem 1rem;
    padding-block: 1.1rem;
  }
  .qr-break__name { grid-area: name; font-size: 1.25rem; }
  .qr-dots { grid-area: dots; gap: 0.4rem; }
  .qr-dot { width: 1.375rem; height: 1.375rem; }
  .qr-break__label { grid-area: label; font-size: 1.0625rem; color: var(--body, #302f2e); }

  .qr-story__grid { gap: 1.75rem; }
  .qr-story__body { margin-top: 1.5rem; }
  .qr-story__body p { font-size: 1rem; }
  .qr-story__body p + p { margin-top: 1.25rem; }
  .qr-story__line { margin-top: 2rem; font-size: 1.375rem; }

  .qr-why__rule { width: 5rem; height: 0.375rem; margin-bottom: 1.75rem; }
  .qr .qr-why__text { font-size: 1.1875rem; }

  .qr-fix__body p { font-size: 1.0625rem; }
  .qr .qr-fix__strong { font-size: 1.375rem; }
  .qr-fix > .qr-wrap > .qr-label { margin-top: 2rem; }
  .qr-cards { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .qr-card { min-height: 0; }
  .qr .qr-card__q { padding: 1.75rem 1.25rem; font-size: 1.3125rem; }
  .qr-card__band { height: 3rem; }
  .qr-card__band img { height: 1.75rem; }

  .qr-testi__wrap { padding-top: 1.5rem; padding-bottom: 2.5rem; }
  .qr-testi__card { padding: 1.75rem 1.5rem 1.25rem; }
  .qr .qr-testi__quote p { font-size: 1.375rem; }

  .qr .qr-belief__h { font-size: 2rem; }
  .qr .qr-belief__sub { font-size: 1.375rem; }
  .qr .qr-cta { padding-inline: 1.25rem; }

  .qr .qr-diff__text { font-size: 1.0625rem; margin-top: 1.25rem; }
  .qr .qr-diff__strong { font-size: 1.5rem; margin-top: 1.5rem; }
  .qr-diff__cards { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .qr-diff__card { padding: 1.25rem 1.25rem 1.5rem; }
  .qr-diff__card svg { width: 2.5rem; height: 2.5rem; }
  .qr-diff .qr-label { margin-top: 2.5rem; }
  .qr-steps { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .qr .qr-step h3 { font-size: 1.375rem; }

  .qr-reviews .qr-h { font-size: 2rem; }
  .qr .qr-reviews__list { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 2rem; }
  .qr-review { padding: 1.75rem 1.5rem; }
  .qr .qr-review blockquote p { font-size: 1.125rem; }
  .qr .qr-review__who { font-size: 1.0625rem; }
}
