/* ============================================================
   "SHOULD YOU BUILD YOUR OWN WEBSITE?" QUIZ (is-it-worth-paying-for-a-website.html)
   One or two questions, then a big answer. The photo sits on the left
   and the question card overlaps its edge, with a "Take the quiz" Dymo
   tape on the photo (the one thing on the site that leans).
   Motion is transform and opacity only (script at the foot of the page),
   and none of it runs for people who prefer reduced motion.
   ============================================================ */
.qz-wrap { position: relative; display: grid; margin-top: clamp(2rem, 5vw, 3.25rem); }
/* The card glides in from the right as the section arrives; clip it so it
   never widens the page on the way in. */
#answer { overflow-x: clip; }

/* ---------- The photo, with the answers taped to it */
.qz-photo {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl, 1.75rem);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
  box-shadow: 0 30px 50px -36px rgba(40, 24, 8, .45);
}
.qz-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.qz-tapes {
  position: absolute; left: 1.1rem; top: 1.1rem; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
  margin: 0; padding: 0; list-style: none;
  pointer-events: none;
}
.qz-tapes .tape__strip { font-size: clamp(.85rem, 2.8vw, 1.1rem); transform: rotate(-3deg); }

/* ---------- The card */
.qz-card {
  position: relative; z-index: 3;
  margin: -3rem .6rem 0;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: 1.75rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20, 17, 13, .05), 0 40px 70px -40px rgba(40, 24, 8, .55);
}
.qz-top { display: flex; align-items: center; gap: 1rem; }
.qz-step { flex: none; font-family: var(--mono); font-size: max(12px, .72rem); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.qz-bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.qz-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(.34); transition: transform .7s var(--glide); }

.qz-stage { position: relative; margin-top: 1.4rem; }
.qz-pane[hidden] { display: none; }
.qz-pane:focus { outline: none; }
.qz-q {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.022em;
  color: var(--ink); text-wrap: balance;
}
.qz-q:focus { outline: none; }
.qz-hint { margin: .7rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- The two answers */
.qz-opts { display: grid; gap: .8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.qz-opt {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; column-gap: 1rem;
  width: 100%; padding: 1.15rem 1.2rem 1.25rem;
  border: 0; border-radius: 1.25rem;
  background: var(--linen);
  box-shadow: inset 0 0 0 1px rgba(20, 17, 13, .07);
  font: inherit; text-align: left; color: var(--ink);
  cursor: pointer;
  transition: transform .45s var(--glide), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.qz-opt__k { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 2.1rem; line-height: .9; color: var(--accent); }
.qz-opt__t { display: block; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; letter-spacing: -.012em; color: var(--ink); }
.qz-opt__d { display: block; margin-top: .35rem; font-size: .975rem; line-height: 1.55; color: var(--ink-2); }
.qz-opt__ico { align-self: center; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px rgba(20, 17, 13, .08); transition: transform .45s var(--glide), background-color .3s var(--ease); }
.qz-opt__ico svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease); }
.qz-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.qz-opt.is-picked { background: var(--paper); box-shadow: inset 0 0 0 2px var(--accent); }
.qz-opt.is-picked .qz-opt__ico { background: var(--accent); }
.qz-opt.is-picked .qz-opt__ico svg { stroke: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .qz-opt:hover { transform: translateY(-3px); background: var(--paper); box-shadow: inset 0 0 0 1px rgba(20, 17, 13, .1), 0 22px 34px -24px rgba(40, 24, 8, .5); }
  .qz-opt:hover .qz-opt__ico { transform: translateX(3px); background: var(--accent); }
  .qz-opt:hover .qz-opt__ico svg { stroke: var(--paper); }
}

/* ---------- The suggestion */
.qz-label { margin: 0 0 .7rem; font-family: var(--mono); font-size: max(12px, .72rem); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.qz-res p { margin: .9rem 0 0; max-width: 34em; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.qz-res p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.qz-res .gd-tags { margin-top: 1.1rem; }
.qz-res .gd-tags li { background: var(--linen); }
.qz-acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.qz-foot { display: flex; justify-content: space-between; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(20, 17, 13, .08); }
.qz-foot[hidden] { display: none; }
.qz-link {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: 0 .2rem;
  border: 0; background: none; font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink);
  cursor: pointer;
}
.qz-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--glide); }
.qz-link:hover svg { transform: translateX(-3px); }
.qz-link--again:hover svg { transform: rotate(-60deg); }
.qz-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.qz-link[hidden] { display: none; }

/* ---------- Wide: photo left, the card overlapping its right edge */
@media (min-width: 820px) and (min-device-width: 600px) and (min-device-height: 600px) {
  .qz-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .qz-photo { aspect-ratio: 4 / 5; }
  .qz-tapes { left: 1.6rem; top: 1.6rem; }
  .qz-card { margin: 0 0 0 -4.5rem; padding: 2.4rem 2.6rem 2rem; }
  .qz-opts { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .qz-opt { grid-template-columns: 1fr; row-gap: .9rem; padding: 1.4rem 1.4rem 1.5rem; min-height: 13rem; align-content: start; }
  .qz-opt__ico { position: absolute; right: 1.2rem; top: 1.2rem; }
  .qz-opt__t { font-size: 1.5rem; padding-right: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-opt, .qz-opt__ico, .qz-bar i, .qz-link svg { transition: none; }
}

/* ---------- The answer: a terracotta panel with the answer in big type,
   then short reasons with ticks.
   Contrast: white on --accent-ink, large and small text, AA. */
.qz-verdict {
  padding: 1.5rem 1.4rem 1.6rem;
  border-radius: 1.25rem;
  background: var(--accent-ink);
  color: var(--paper);
  box-shadow: 0 26px 40px -28px rgba(120, 45, 10, .7);
}
.qz-res .qz-verdict__k { margin: 0; font-family: var(--mono); font-size: max(12px, .72rem); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.qz-res .qz-verdict__a { margin-top: .5rem; font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; color: var(--paper); }
.qz-res .qz-verdict__why { margin: .7rem 0 0; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.qz-ticks { display: grid; gap: .75rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.qz-ticks li { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); }
.qz-tick { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: -.05rem; border-radius: 50%; background: #f3e1d6; }
.qz-tick svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qz-res .qz-note { margin-top: 1.3rem; font-size: 1rem; color: var(--ink-2); }
.qz-res .qz-more { margin-top: 1.3rem; }
.qz-res .qz-more a { font-weight: 500; }
@media (min-width: 820px) and (min-device-width: 600px) and (min-device-height: 600px) {
  .qz-verdict { padding: 1.9rem 2rem 2rem; }
  .qz-ticks { row-gap: .85rem; }
}
.qz-res .qz-caveat { margin-top: 1.1rem; font-size: .975rem; color: var(--ink-2); }

/* ---------- The side-by-side check ("Not sure, maybe website only").
   Two narrow columns of ticks and dashes. "Looks further" sits on a soft
   terracotta tint so the full column reads at a glance. Dashes mean "not
   usually included", spelled out for screen readers. */
.qz-vs { width: 100%; margin-top: 1.4rem; border-collapse: separate; border-spacing: 0; }
.qz-vs th, .qz-vs td { padding: .62rem .4rem; text-align: center; vertical-align: middle; border-top: 1px solid rgba(20, 17, 13, .07); }
.qz-vs thead th, .qz-vs thead td { border-top: 0; padding-top: .8rem; font-size: .875rem; font-weight: 600; line-height: 1.25; color: var(--ink-2); vertical-align: bottom; }
.qz-vs thead th:not(:first-child) { width: 4.6rem; }
.qz-vs tbody th { padding-left: 0; text-align: left; font-weight: 400; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.qz-vs .is-far { background: #fbeee6; border-top-color: rgba(167, 71, 27, .12); }
.qz-vs thead .is-far { color: var(--accent-ink); border-radius: .9rem .9rem 0 0; }
.qz-vs tbody tr:last-child .is-far { border-radius: 0 0 .9rem .9rem; }
.qz-vs td .qz-tick { margin: 0 auto; }
.qz-vs .is-far .qz-tick { background: var(--accent-ink); }
.qz-vs .is-far .qz-tick svg { stroke: var(--paper); }
.qz-dash { display: block; width: 14px; height: 2px; margin: 0 auto; border-radius: 2px; background: rgba(20, 17, 13, .28); }
.qz-res .qz-caveat a { color: var(--ink); }
@media (min-width: 820px) and (min-device-width: 600px) and (min-device-height: 600px) {
  .qz-vs thead th:not(:first-child) { width: 8rem; }
}

/* The next step under an answer: one clear link with an arrow. */
.qz-res .qz-next { margin-top: 1.4rem; }
.qz-next a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .28em;
}
.qz-next svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--glide); }
.qz-next a:hover svg { transform: translateX(4px); }
