/* ============================================================
   MODERN HUMAN — quiz.css
   The GLP-1 quiz page (glp1quiz.html, modernhuman.ph/glp1quiz). Loaded after styles.css and
   lp.css: it borrows the slim lp header and footer, the .btn
   family, the sticky bar, and the .proof-card pair for the
   testimonial slider. Everything else is prefixed qz-.

   THE QUIET PASS (Alec, 2026-09-04, on the desktop view: "the
   design of it is just too loud, make it more premium"). The
   rule this file now follows: ink and paper, one accent. Every
   button on the page is charcoal, the purple survives in exactly
   two places (the thin progress bar and the line of the result
   curve), no headline word is coloured, labels are small and
   barely tracked, borders are hairlines, and the page earns its
   feel from size and spacing rather than from colour. The brand
   purple still owns the rest of the site; this page is an ad
   landing and reads as an editorial page on purpose.

   TWO LAYOUTS. Phone first (a single column, full-width taps),
   then from 900px a real desktop page: the intro is two columns
   with the explainer illustration on the right, and the quiz
   itself sits in a 640px column with room around it, larger type
   and inline buttons, instead of a phone column in the middle of
   a wide screen.
   ============================================================ */

.qz-body { background: var(--bg); }

/* Quiet the borrowed pieces. */
.qz-body .eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-40);
}
.qz-body .eyebrow::after { display: none; }
.qz-body .btn-primary {
  background: var(--charcoal);
  color: var(--warm-white);
}
.qz-body .btn-primary:hover { background: #2E2E2B; }
.qz-body .btn-outline { border-color: var(--line-dark); }
.qz-body .btn-outline:hover { border-color: var(--charcoal); }
.qz-body .lp-nav-note { color: var(--ink-40); font-size: 13px; }

/* ---------- Intro ---------- */
.qz-intro { padding: 24px 0 48px; }
.qz-intro-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.qz-intro-copy { max-width: 560px; }
/* On a phone the illustration leads, a wide crop above the headline; on
   desktop it moves to the right-hand column. Same image both times. */
.qz-intro-figure {
  order: -1;
  margin: 0 0 26px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--render-bg);
}
.qz-intro-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
/* weight-loss-quiz.html (2026-09-06) stands the Weight Loss card's own cut-out
   member here instead of an illustration: the file is alpha-trimmed at the
   crown, so the picture is cropped at the top edge like the homepage card and
   sits on a soft ink field rather than the render background. */
.qz-intro-figure.is-cut {
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(124, 86, 204, 0.16), transparent 70%),
    linear-gradient(180deg, #F3F1EC 0%, #E7E3DC 100%);
}
.qz-intro-figure.is-cut img {
  aspect-ratio: 4 / 3;
  object-position: 50% 0;
}
.qz-intro h1 {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(30px, 8.6vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.qz-intro h1 em { font-style: normal; }
.qz-intro-sub {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 34ch;
}
.qz-intro .btn {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 17px 30px;
  font-size: 16px;
}
.qz-intro-points {
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 14px;
  list-style: none;
}
.qz-intro-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-60);
}
.qz-intro-points svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  stroke: var(--charcoal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qz-intro-fine {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-40);
}
.qz-intro-fine a { border-bottom: 1px solid var(--line-dark); }

/* ---------- The quiz frame ---------- */
.qz {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px var(--gutter) 64px;
  min-height: 72vh;
}
.qz[hidden] { display: none; }
.qz-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qz-back {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--charcoal);
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease;
}
.qz-back:hover { border-color: var(--charcoal); }
.qz-back[hidden] { display: none; }
.qz-bar {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.qz-bar span {
  display: block;
  height: 100%;
  background: var(--olive);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.qz-count {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--ink-40);
  min-width: 0;
}
/* ---------- Motion ----------
   Screens travel. Forward: the old one eases left and fades, the new one
   arrives from the right with a touch of blur clearing; back is the mirror.
   Answer cards stagger in behind the question. Everything is opacity,
   transform and filter only, so it stays smooth on a mid-range phone. */
.qz-screen { margin-top: 32px; }
.qz-screen.is-entering { animation: qz-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qz-screen.is-entering-back { animation: qz-enter-back 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qz-screen.is-leaving { animation: qz-leave 0.18s ease-in both; }
.qz-screen.is-leaving-back { animation: qz-leave-back 0.18s ease-in both; }
@keyframes qz-enter {
  from { opacity: 0; transform: translateX(28px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes qz-enter-back {
  from { opacity: 0; transform: translateX(-28px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes qz-leave {
  to { opacity: 0; transform: translateX(-18px); filter: blur(4px); }
}
@keyframes qz-leave-back {
  to { opacity: 0; transform: translateX(18px); filter: blur(4px); }
}
.qz-screen.is-entering .qz-option,
.qz-screen.is-entering-back .qz-option,
.qz-screen.is-entering .qz-chip,
.qz-screen.is-entering-back .qz-chip,
.qz-screen.is-entering .qz-edu-list li,
.qz-screen.is-entering .qz-card {
  animation: qz-item 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(120ms + var(--i, 0) * 55ms);
}
.qz-screen.is-entering .qz-edu-list li:nth-child(1) { --i: 0; }
.qz-screen.is-entering .qz-edu-list li:nth-child(2) { --i: 1; }
.qz-screen.is-entering .qz-edu-list li:nth-child(3) { --i: 2; }
.qz-screen.is-entering .qz-card:nth-child(1) { --i: 0; }
.qz-screen.is-entering .qz-card:nth-child(2) { --i: 1; }
.qz-screen.is-entering .qz-card:nth-child(3) { --i: 2; }
.qz-screen.is-entering .qz-card:nth-child(4) { --i: 3; }
@keyframes qz-item {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.qz-option.is-picked { animation: qz-pick 0.32s ease-out both; }
@keyframes qz-pick {
  0% { transform: scale(1); }
  40% { transform: scale(0.985); }
  100% { transform: scale(1); }
}
/* The intro builds itself on load and leaves upward when Start is pressed. */
.qz-intro-copy > * { animation: qz-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.qz-intro-copy > :nth-child(1) { animation-delay: 60ms; }
.qz-intro-copy > :nth-child(2) { animation-delay: 140ms; }
.qz-intro-copy > :nth-child(3) { animation-delay: 260ms; }
.qz-intro-copy > :nth-child(4) { animation-delay: 360ms; }
.qz-intro-copy > :nth-child(5) { animation-delay: 480ms; }
.qz-intro-copy > :nth-child(6) { animation-delay: 600ms; }
@keyframes qz-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.qz-intro-figure {
  animation: qz-figure 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 200ms both;
}
.qz-intro-figure img { animation: qz-float 7s ease-in-out 1.3s infinite; }
@keyframes qz-figure {
  from { opacity: 0; transform: translateY(24px) scale(1.03); }
  to { opacity: 1; transform: none; }
}
@keyframes qz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.qz-intro.is-leaving { animation: qz-intro-out 0.24s ease-in both; }
@keyframes qz-intro-out {
  to { opacity: 0; transform: translateY(-16px); filter: blur(4px); }
}
.qz-intro .btn .arrow, .qz-continue .arrow, .qz-cta .btn .arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.qz-intro .btn:hover .arrow, .qz-continue:hover .arrow, .qz-cta .btn:hover .arrow { transform: translateX(4px); }
.qz-bar span { transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
@media (prefers-reduced-motion: reduce) {
  .qz-screen, .qz-screen *, .qz-intro-copy > *, .qz-intro-figure, .qz-intro-figure img, .qz-intro.is-leaving {
    animation: none !important;
  }
}

.qz-q {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(24px, 6.6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.qz-help {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-60);
}
.qz-label {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
}
.qz-fine {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-40);
}
.qz-error {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--danger);
}
.qz-error[hidden] { display: none; }

/* ---------- Options ---------- */
.qz-options {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}
.qz-option {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.qz-option:hover { border-color: var(--charcoal); }
.qz-option:active { transform: scale(0.99); }
.qz-option.is-on {
  border-color: var(--charcoal);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--charcoal);
}
.qz-radio, .qz-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink-40);
  background: var(--surface);
  position: relative;
}
.qz-radio { border-radius: 50%; }
.qz-check { border-radius: 6px; }
.qz-option.is-on .qz-radio,
.qz-option.is-on .qz-check {
  border-color: var(--charcoal);
  background: var(--charcoal);
}
.qz-option.is-on .qz-radio::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--warm-white);
}
.qz-option.is-on .qz-check::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid var(--warm-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.qz-continue {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 17px 30px;
  font-size: 16px;
}
.qz-continue:disabled {
  background: var(--surface-2);
  color: var(--ink-40);
  cursor: default;
}
.qz-alt {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  padding: 18px 34px;
  font-size: 16px;
}

/* ---------- Chips ---------- */
.qz-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qz-chip {
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--surface);
  padding: 12px 18px;
  font-size: 15px;
  color: var(--charcoal);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.qz-chip:hover { border-color: var(--charcoal); }
.qz-chip.is-on {
  border-color: var(--charcoal);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--charcoal);
}

/* ---------- Fields ---------- */
.qz-fields {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}
.qz-num, .qz-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
}
.qz-text { margin-top: 18px; }
.qz-text-first { margin-top: 30px; }
.qz-text em { font-style: normal; font-weight: 400; color: var(--ink-40); }
.qz-num-wrap {
  position: relative;
  display: block;
}
.qz-num input,
.qz-text input,
.qz-text select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  -webkit-appearance: none;
  appearance: none;
  min-height: 60px;
}
.qz-num input { padding-right: 56px; }
.qz-num input:focus, .qz-text input:focus, .qz-text select:focus {
  outline: none;
  border-color: var(--charcoal);
  box-shadow: inset 0 0 0 1px var(--charcoal);
}
.qz-num-wrap em {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 15px;
  color: var(--ink-40);
}
.qz-text select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231C1C1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}
.qz-text input[type="date"] {
  text-align: left;
  -webkit-text-fill-color: var(--charcoal);
}

/* ---------- Contact ---------- */
.qz-contact { margin-top: 6px; }
.qz-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.qz-ack {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-60);
}
.qz-ack input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--charcoal);
}
.qz-ack a { border-bottom: 1px solid var(--line-dark); color: var(--charcoal); }

/* ---------- Educational insert ---------- */
.qz-edu-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: var(--render-bg);
  margin-bottom: 26px;
}
.qz-edu .qz-q { margin-top: 12px; }
.qz-edu-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.qz-edu-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.qz-edu-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.qz-edu-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--ink-60);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.qz-edu-list strong {
  display: block;
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}
.qz-edu-list p {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-60);
}

/* ---------- Testimonial slider ---------- */
.qz-proof .qz-q { margin-top: 12px; }
.qz-rail {
  margin: 26px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.qz-rail::-webkit-scrollbar { display: none; }
.qz-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  box-shadow: none;
  border-color: var(--line-soft);
}
.qz-card .proof-shot + .proof-shot figcaption { background: var(--charcoal); }
.qz-card-body { padding: 18px 20px 20px; }
.qz-card-line {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
.qz-card-name {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-40);
}
.qz-dots {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.qz-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-dark);
  transition: background 0.2s ease, transform 0.2s ease;
}
.qz-dots span.is-on {
  background: var(--charcoal);
  transform: scale(1.3);
}

/* ---------- Reading beat ---------- */
.qz-reading {
  padding: 36px 0 10px;
  text-align: center;
}
.qz-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}
.qz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qz-ring-bg { fill: none; stroke: var(--line); stroke-width: 4; }
.qz-ring-fg {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 276;
  stroke-dashoffset: 276;
}
.qz-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.qz-ring span::after { content: '%'; font-size: 14px; margin-left: 2px; color: var(--ink-40); }
.qz-ticks {
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
  max-width: 320px;
  text-align: left;
  display: grid;
  gap: 12px;
}
.qz-ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-40);
  transition: color 0.3s ease;
}
.qz-ticks li::before {
  content: '';
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.qz-ticks li.is-done { color: var(--charcoal); }
.qz-ticks li.is-done::before {
  border-color: var(--charcoal);
  background: var(--charcoal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F7F3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Result ---------- */
.qz-result .qz-q { margin-top: 12px; }
/* Phone: headline, picture, button, then the rest, so the picture and the
   button share the first screen. The picture is trimmed to make that true. */
.qz-result .qz-r-picture { margin-top: 20px; padding: 18px 18px 14px; }
.qz-result .qz-r-picture .qz-picture-num { font-size: clamp(36px, 10.5vw, 46px); margin-top: 8px; }
.qz-result .qz-r-picture .qz-picture-by { font-size: 16px; margin-top: 4px; }
.qz-result .qz-r-picture .qz-curve { height: 118px; margin-top: 4px; }
.qz-result .qz-r-picture .qz-fine { margin-top: 8px; font-size: 12px; }
.qz-result .qz-r-picture .qz-foot { margin-top: 6px; font-size: 11px; }
.qz-result .qz-r-cta { margin-top: 14px; }
.qz-result .qz-r-sub { margin-top: 22px; }
.qz-cta { margin-top: 26px; }
.qz-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 17px 30px;
  font-size: 16px;
}
.qz-cta-sub {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-40);
}
.qz-echo {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--charcoal);
  background: var(--surface-2);
  border-radius: 0 14px 14px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-60);
}
.qz-echo q { font-style: italic; color: var(--charcoal); }

.qz-picture {
  margin-top: 30px;
  padding: 24px 20px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--surface);
}
.qz-picture-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.qz-picture-num {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(44px, 13vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.qz-picture-num small {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--ink-60);
  letter-spacing: 0;
}
.qz-picture-by {
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink-60);
}
.qz-curve {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
}
.qz-curve .qz-ref {
  stroke: var(--line-dark);
  stroke-width: 1.5;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}
.qz-curve .qz-area { opacity: 0; }
.qz-curve .qz-line {
  fill: none;
  stroke: var(--olive);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.qz-curve .qz-dot-start { fill: var(--ink-40); }
.qz-curve .qz-dot-end {
  fill: var(--olive);
  stroke: var(--surface);
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.qz-curve .qz-dot-end.is-in { opacity: 1; }
.qz-curve .qz-pill {
  opacity: 0;
  transform-box: fill-box;
  transition: opacity 0.4s ease 0.1s;
}
.qz-curve .qz-pill.is-in { opacity: 1; }
.qz-curve .qz-pill line { stroke: var(--line-dark); stroke-width: 1.5; }
.qz-curve .qz-pill rect {
  fill: var(--charcoal);
  stroke: none;
}
.qz-curve .qz-pill text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  fill: var(--warm-white);
}
.qz-curve .qz-goal line {
  stroke: var(--ink-40);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: 0.7;
}
.qz-curve .qz-goal text {
  font-family: var(--font-body);
  font-size: 10.5px;
  fill: var(--ink-60);
}
.qz-curve .qz-tick {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-40);
}
.qz-foot {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-40);
}

.qz-consider {
  margin-top: 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}
.qz-consider .qz-label { margin-top: 0; }
.qz-consider p + p { margin-top: 8px; }
.qz-consider p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-60);
}
.qz-consider strong { color: var(--charcoal); font-weight: 500; }
.qz-consider a { color: var(--charcoal); border-bottom: 1px solid var(--line-dark); }

/* ---------- Footer + sticky ---------- */
.qz-foot-slim {
  padding: 28px 0 26px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-40);
}
.qz-foot-slim .lp-foot-links { margin-top: 0; }
.qz-foot-slim .lp-foot-links a { color: var(--ink-60); border-bottom-color: var(--line); }
.qz-foot-slim .lp-foot-legal {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
  color: var(--ink-40);
}

body.qz-body { padding-bottom: 0; }
@media (max-width: 860px) {
  body.qz-body.has-sticky { padding-bottom: var(--lp-sticky-h); }
}
.qz-sticky .btn { padding: 15px 22px; font-size: 15px; }

/* ---------- Desktop ---------- */
@media (min-width: 700px) {
  .qz-intro .btn, .qz-continue, .qz-cta .btn { padding: 20px 34px; font-size: 17px; }
  .qz-intro .btn { width: auto; }
  .qz-continue, .qz-alt { width: auto; min-width: 240px; }
  .qz-cta .btn { width: auto; min-width: 300px; }
  .qz-q { font-size: clamp(30px, 4vw, 34px); }
  .qz-option { padding: 19px 20px; font-size: 17px; border-radius: 18px; }
  .qz-intro h1 { font-size: clamp(40px, 6vw, 52px); }
  .qz-intro-sub { font-size: 17.5px; }
  .qz-cta-sub { text-align: left; }
  .qz-card { flex-basis: 62%; }
}
@media (min-width: 900px) {
  .qz-intro { padding: 96px 0 88px; }
  .qz-intro-inner {
    max-width: var(--container);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 72px;
    align-items: center;
  }
  .qz-intro-copy { max-width: 520px; }
  .qz-intro-figure {
    order: 0;
    margin: 0;
    border-radius: 28px;
  }
  .qz-intro-figure img { aspect-ratio: 4 / 3; }
  .qz-intro h1 { font-size: clamp(52px, 4.6vw, 64px); }
  .qz-intro-sub { font-size: 18px; }
  .qz {
    max-width: 640px;
    padding-top: 56px;
    padding-bottom: 96px;
    min-height: 64vh;
  }
  .qz-screen { margin-top: 48px; }
  .qz-q { font-size: 38px; }
  .qz-help { font-size: 16.5px; }
  .qz-option { padding: 21px 22px; font-size: 17.5px; }
  .qz-edu-img { margin-bottom: 30px; }
  .qz-picture { padding: 30px 28px 24px; }

  /* The result as two columns: the words and the button on the left, the
     three-month picture on the right, both in the first frame. Same DOM
     as the phone; only the grid areas move. */
  .qz-result:has(.qz-r-picture) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
    grid-template-areas:
      "eyebrow picture"
      "head picture"
      "cta picture"
      "sub picture"
      "note picture"
      "echo picture"
      "consider picture"
      "fill picture";
    grid-template-rows: auto auto auto auto auto auto auto 1fr;
    align-items: start;
  }
  .qz-result:has(.qz-r-picture) .qz-r-eyebrow { grid-area: eyebrow; }
  .qz-result:has(.qz-r-picture) .qz-r-head { grid-area: head; }
  .qz-result:has(.qz-r-picture) .qz-r-picture {
    grid-area: picture;
    margin-top: 0;
    padding: 28px 26px 22px;
  }
  .qz-result:has(.qz-r-picture) .qz-r-picture .qz-picture-num { font-size: 60px; }
  .qz-result:has(.qz-r-picture) .qz-r-picture .qz-picture-by { font-size: 19px; }
  .qz-result:has(.qz-r-picture) .qz-r-picture .qz-curve { height: auto; margin-top: 12px; }
  .qz-result:has(.qz-r-picture) .qz-r-picture .qz-foot { font-size: 12px; }
  .qz-result:has(.qz-r-picture) .qz-r-picture .qz-fine { font-size: 13px; }
  .qz-result:has(.qz-r-picture) .qz-r-cta { grid-area: cta; margin-top: 26px; }
  .qz-result:has(.qz-r-picture) .qz-r-sub { grid-area: sub; margin-top: 18px; }
  .qz-result:has(.qz-r-picture) .qz-r-note { grid-area: note; }
  .qz-result:has(.qz-r-picture) .qz-r-echo { grid-area: echo; }
  .qz-result:has(.qz-r-picture) .qz-r-consider { grid-area: consider; }
  .qz.has-result { max-width: 1040px; }
}
