/* No Brainer Water Co. - quiz + checkout stub page styles.
   Agent D. Owns: quiz.html, quiz.js, page-quiz.css (checkout.html reuses
   these classes rather than a separate stylesheet - simple stub page).

   LIGHT PAGE (Mason, 9 Aug): the check and its result read like the printed
   water report - paper white, ink navy, hairline rules, big type. Older
   customers must find it effortless. No dark dashboard, no coloured
   left-border cards, no SaaS tells. Status colour lives in small chips
   and the graph fills only. */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quiz-sec { min-height: 78vh; display: flex; align-items: center; }
.quiz-sec .container--narrow { width: 100%; }

/* progress indicator */
.quiz__progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.quiz__progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgb(var(--ink) / 0.12);
  transition: background 0.25s ease;
}
.quiz__progress-seg.is-done { background: rgb(var(--ink)); }

.quiz__screen { display: none; }
.quiz__screen.is-active { display: block; animation: quizFadeIn 0.35s ease; }
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.quiz__screen h2 { outline: none; }

.quiz__back {
  background: none; border: 0; cursor: pointer;
  color: inherit; opacity: 0.6;
  font: inherit; font-size: var(--text-sm);
  padding: 0 0 1.2rem; margin: 0;
}
.quiz__back:hover { opacity: 0.9; }
.quiz__back::before { content: "\2190  "; }

/* big-tap option buttons */
.quiz__options {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}
.quiz__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  min-height: 4.25rem;
  text-align: left;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-card);
  border: 1.5px solid rgb(var(--ink) / 0.22);
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.quiz__option:hover { border-color: rgb(var(--ink) / 0.6); transform: translateY(-1px); }
.quiz__option:focus-visible { outline: 2px solid rgb(var(--ink)); outline-offset: 2px; }
.quiz__option.is-selected { border-color: rgb(var(--ink)); background: rgb(var(--ink) / 0.04); }
.quiz__option-label { font-weight: var(--w-medium); font-size: 1.1rem; }
.quiz__option-cap { font-size: 1rem; opacity: 0.7; }

/* text + email fields */
.quiz__field { margin-top: 1.6rem; }
.quiz__field label {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.quiz__optional { opacity: 0.55; font-weight: var(--w-regular); }
.quiz__input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1.5px solid rgb(var(--ink) / 0.3);
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
}
.quiz__input:focus { outline: 2px solid rgb(var(--ink)); outline-offset: 1px; border-color: transparent; }
.quiz__input::placeholder { color: rgb(var(--ink) / 0.4); }

.quiz__error {
  color: rgb(178 30 30);
  font-size: 1rem;
  margin: 0.6rem 0 0;
}

/* suburb autocomplete dropdown */
.quiz__field--suggest { position: relative; }
.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1.5px solid rgb(var(--ink) / 0.25);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 30px rgb(2 28 70 / 0.12);
}
.suggest__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  width: 100%; padding: 0.85rem 1.2rem;
  background: none; border: 0; border-top: 1px solid rgb(var(--ink) / 0.08);
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.suggest__row:first-child { border-top: 0; }
.suggest__row:hover, .suggest__row.is-active { background: rgb(var(--ink) / 0.05); }
.suggest__name { font-weight: var(--w-medium); }
.suggest__ta { opacity: 0.6; font-size: 0.95rem; white-space: nowrap; }

.quiz__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* result screen */
.quiz__result-card { margin-top: 1.6rem; }
.quiz__result-card h3 { margin-bottom: 0.3rem; }
.quiz__result-price {
  font-size: 1.5rem;
  font-weight: var(--w-medium);
  margin: 0 0 0.6rem;
}
.quiz__plan-note {
  margin-top: 1.4rem;
  opacity: 0.85;
  max-width: 42em;
}
.quiz__report-line {
  margin-top: 1.6rem;
  font-weight: var(--w-medium);
}

.quiz__banner {
  background: rgb(242 170 76 / 0.14);
  border: 1px solid rgb(242 170 76 / 0.6);
  border-radius: var(--radius-card);
  padding: 1rem 1.3rem;
  font-size: 1rem;
  margin: 0 0 1.6rem;
}

/* checkout stub page reuses the classes above; a few extras */
.checkout-note {
  opacity: 0.85;
  max-width: 42em;
}
.checkout-sku {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 1rem;
}

@media (max-width: 999px) {
  .quiz-sec { min-height: auto; padding-block: 3.5rem 5rem; }
}
.quiz__close-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
.quiz__close-grid .tile { border: 1px solid rgb(var(--ink) / 0.18); border-radius: var(--radius-card); background: #fff; }
.quiz__close-grid .tile--recommended { border-color: rgb(var(--accent)); border-width: 2.5px; background: rgb(var(--accent) / 0.12); }
.quiz__close-grid .tile__badge { display: inline-block; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: var(--text-xs); font-weight: var(--w-medium); margin-bottom: 0.9rem; }
.plan-card .tile__badge { display: inline-block; background: rgb(var(--accent)); color: rgb(var(--accent-ink)); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: var(--text-xs); font-weight: var(--w-medium); margin-bottom: 0.7rem; }
.plan-card.tile--recommended { border-color: rgb(var(--accent)); border-width: 2.5px; background: rgb(var(--accent) / 0.12); }
.quiz__close-grid .tile__price { font-size: 1.9rem; font-weight: var(--w-medium); margin: 0.3rem 0 0.6rem; }
.tile__was { text-decoration: line-through; opacity: 0.5; font-weight: var(--w-regular); font-size: 0.85em; margin-right: 0.5rem; }
.quiz__close-grid .btn { margin-top: 1rem; }
.quiz__cancel { font-size: 1rem; opacity: 0.7; margin-top: 0.8rem; }
.quiz__call-line { opacity: 0.85; margin-top: 0.6rem; font-size: 1.05rem; }

/* v3: result offer sections */
.report-block { background: #fff; border: 1px solid rgb(var(--ink) / 0.18); border-radius: var(--radius-card); padding: 2rem 2.2rem; margin: 1.6rem 0 2.4rem; }
.offer-section { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid rgb(var(--ink) / 0.14); }
.offer-heading { font-size: 1.5rem; font-weight: var(--w-medium); margin: 0.3rem 0 0.6rem; }
/* every offer card is one full-width block: name left and price right
   on the same line, copy underneath at full measure, button last.
   Never columns-inside-columns - that is where the squish came from. */
.plan-cards { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.plan-card {
  border: 1px solid rgb(var(--ink) / 0.2); border-radius: var(--radius-card);
  padding: 1.6rem 1.9rem; background: #fff; display: block;
}
.plan-card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.plan-card--system { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.plan-card__thumb { width: 6.5rem; height: 6.5rem; object-fit: cover; border-radius: 12px; border: 1px solid rgb(var(--ink) / 0.1); }
.plan-card__body { min-width: 0; }
.plan-card__actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.plan-card__spec { color: inherit; opacity: 0.75; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
.plan-card__spec:hover { opacity: 1; }
@media (max-width: 560px) {
  .plan-card--system { grid-template-columns: 1fr; }
  .plan-card__thumb { width: 100%; height: 9rem; }
}
.plan-card h4 { font-weight: var(--w-medium); font-size: 1.2rem; margin: 0; }
.plan-card .tile__price { font-size: 1.35rem; font-weight: var(--w-medium); margin: 0; white-space: nowrap; }
.plan-card p { opacity: 0.85; margin: 0 0 1.1rem; max-width: 40em; }
.plan-card .btn { margin: 0; }
.report-block__rec { font-weight: var(--w-medium); font-size: var(--text-lg); margin: 1.8rem 0 0.9rem; }
.report-block__fine { font-size: 1rem; opacity: 0.7; margin-top: 0.9rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.stat { border: 1px solid rgb(var(--ink) / 0.2); border-radius: var(--radius-card); padding: 1.1rem 0.6rem; text-align: center; display: flex; flex-direction: column; gap: 0.15rem; }
.stat--main { border-color: rgb(var(--accent)); border-width: 2px; background: rgb(var(--accent) / 0.12); }
.stat__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.stat__num { font-size: 2.6rem; font-weight: var(--w-medium); line-height: 1.1; }
.stat__unit { font-size: 1rem; opacity: 0.7; }

/* the on-screen water report - flat editorial rows, hairline rules */
.water-head { font-weight: var(--w-medium); font-size: 1.35rem; margin: 0 0 0.4rem; }
.level-row { border-top: 1px solid rgb(var(--ink) / 0.14); padding: 1.3rem 0 1.5rem; }
.level-row__head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.level-row__label { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.level-row__value { font-size: 1.9rem; font-weight: var(--w-medium); margin-left: auto; }
.level-row__chip { border-radius: 999px; padding: 0.3rem 0.8rem; font-size: var(--text-sm); font-weight: var(--w-medium); white-space: nowrap; }
.level-row--bad .level-row__chip { background: rgb(235 87 87 / 0.14); color: rgb(158 28 28); }
.level-row--mid .level-row__chip { background: rgb(242 170 76 / 0.2); color: rgb(133 80 8); }
.level-row--ok .level-row__chip { background: rgb(64 192 128 / 0.16); color: rgb(19 106 61); }
.level-row__note { margin: 0.7rem 0 0; font-size: 1.05rem; opacity: 0.85; max-width: 46em; }
.water-foot { font-size: 1rem; opacity: 0.75; margin-top: 1.2rem; }

/* the one chart - Mason's approved form (9 Aug, "exactly like this"):
   a rounded bar filled to their level, coloured by the verdict, with
   one labelled tick where taste starts. Nothing else on it. */
.chart { position: relative; height: 16px; margin: 1rem 0 2.1rem; border-radius: 999px; background: rgb(var(--ink) / 0.08); }
.chart__fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: rgb(var(--ink) / 0.75); }
.level-row--bad .chart__fill { background: rgb(184 81 79 / 0.95); }
.level-row--mid .chart__fill { background: rgb(242 170 76 / 0.95); }
.chart__tick { position: absolute; top: -4px; bottom: -4px; width: 2.5px; background: rgb(var(--ink)); transform: translateX(-50%); }
.chart__tick-label { position: absolute; top: calc(100% + 6px); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
.chart__tick-label--end { transform: translateX(-100%); padding-right: 4px; }
.chart__tick-label--mid { transform: translateX(-50%); }
.chart--scale { background: rgb(var(--ink) / 0.06); }
.chart__zone { position: absolute; top: 0; bottom: 0; border-radius: 999px;
  background: rgb(87 190 130 / 0.3); }
.chart__marker { position: absolute; top: 50%; width: 30px; height: 30px;
  border-radius: 50%; background: rgb(var(--ink));
  border: 3.5px solid #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 0.3);
  transform: translate(-50%, -50%); z-index: 2; }

/* orphaned-system upload (step 7 + the result-screen second chance) */
.orphan-upload { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.orphan-upload__btn { cursor: pointer; }
.orphan-upload__ok { font-size: 1rem; font-weight: var(--w-medium); color: rgb(19 106 61); }
.orphan-vision { font-size: 1.1rem; font-weight: var(--w-medium); margin: 0.4rem 0 0; }
.quiz__skip {
  background: none; border: 0; cursor: pointer;
  color: inherit; opacity: 0.65;
  font: inherit; font-size: 1rem;
  text-decoration: underline; text-underline-offset: 3px;
  padding: 0.6rem 0.4rem;
}
.quiz__skip:hover { opacity: 0.9; }

/* Determinand breakdown - the report's dozen-row table, on screen */
.det-head { font-weight: var(--w-medium); font-size: 1.35rem; margin: 2.2rem 0 0.2rem; }
.det-sub { font-size: 1rem; opacity: 0.75; margin: 0 0 1rem; }
.det-row { padding: 0.7rem 0; border-top: 1px solid rgb(var(--ink) / 0.12); }
.det-row:last-of-type { border-bottom: 1px solid rgb(var(--ink) / 0.12); margin-bottom: 1.1rem; }
.det-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.det-row__name { font-size: 1.05rem; font-weight: var(--w-medium); }
.det-row__reading { font-size: 1rem; opacity: 0.8; white-space: nowrap; }
.det-row__track { position: relative; height: 8px; margin-top: 0.5rem; border-radius: 999px; background: rgb(var(--ink) / 0.08); }
.det-row__fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: rgb(var(--ink) / 0.55); }
.det-row--bad .det-row__fill { background: rgb(235 87 87 / 0.85); }
.det-row--mid .det-row__fill { background: rgb(242 170 76 / 0.85); }

/* orphan-ad landing intro */
.quiz__intro { margin-bottom: 2rem; }
.quiz__intro .display { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 0.6rem; }

/* weekly cost framing under the annual price */
.tile__weekly { display: block; font-size: 0.82rem; font-weight: 500; opacity: 0.65; margin-top: 0.15rem; }

/* checkout: the known-identity line, big pay button, quiet method list */
.co-known { margin: 0 0 0.6rem; font-size: var(--text-sm); background: #fff; border: 1px solid rgb(var(--ink) / 0.1); border-radius: 10px; padding: 0.8rem 1rem; }
.co-known a { color: inherit; }
.co-guarantee { font-weight: 600; font-size: var(--text-sm); margin: 1rem 0 0.2rem; }
.co-paybtn { width: 100%; max-width: 420px; font-size: 1.05rem; padding: 1rem 2rem; }
.co-paymethods { font-size: var(--text-xs); opacity: 0.65; margin: 0.5rem 0 0; }

.hero-alt { font-size: var(--text-sm); opacity: 0.8; margin: 0.8rem 0 0; }
.hero-alt a { color: inherit; }

/* the sixty-second word from us, between the report and the offer */
.vsl-wrap { margin-top: 2.6rem; }
.vsl-wrap .kicker { margin-bottom: 0.8rem; }
.vsl-wrap video { width: 100%; border-radius: 14px; display: block; box-shadow: 0 10px 34px rgb(2 28 70 / 0.16); }

/* the single up-front recommendation, directly under the schedule */
#heroOffer { margin-top: 2.6rem; }
.hero-card { border-color: rgb(var(--accent)); border-width: 2.5px; background: rgb(var(--accent) / 0.08); }
.hero-card__fine { font-size: 0.85rem; opacity: 0.78; margin: 0.1rem 0 0.5rem; }
.all-options { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid rgb(var(--ink) / 0.14); text-align: center; }

/* checkout trust strip + call-back */
.co-trust { list-style: none; padding: 1.1rem 1.3rem; margin: 1.6rem 0 0; border: 1px solid rgb(var(--ink) / 0.1); border-radius: 14px; }
.co-trust li { font-size: 0.92rem; padding: 0.25rem 0 0.25rem 1.5rem; position: relative; opacity: 0.85; }
.co-trust li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 0.65rem; height: 0.35rem; border-left: 2.5px solid rgb(87 190 130); border-bottom: 2.5px solid rgb(87 190 130); transform: rotate(-45deg); }
.co-callback { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgb(var(--ink) / 0.1); }

.quiz__found { color: rgb(37 132 82); font-weight: 600; font-size: 0.92rem; margin-top: 0.5rem; }

/* plan-attach toggle on checkout */
.co-attach { margin-top: 1.1rem; border: 2.5px solid rgb(var(--accent)); background: rgb(var(--accent) / 0.1); border-radius: 16px; padding: 1.05rem 1.2rem; }
.co-attach__row { display: flex; gap: 0.85rem; align-items: flex-start; cursor: pointer; }
.co-attach__row input { width: 1.35rem; height: 1.35rem; margin-top: 0.2rem; accent-color: rgb(var(--accent)); flex: none; }
.co-attach__sub { font-size: 0.88rem; opacity: 0.8; line-height: 1.45; }

.suggest__row--none .suggest__name { opacity: 0.65; font-style: italic; }

/* Full-image rule extended to quiz cards (14 Aug): thumbs contain, never crop */
.plan-card__thumb { object-fit: contain !important; background: #05173a; }

/* Full-image rule extended to quiz cards (14 Aug): thumbs contain, never crop */
.plan-card__thumb { object-fit: contain !important; background: #05173a; }

/* The smaller start (Mason, 15 Aug): the $179 benchtop was a footnote under
   the hero when it is the easiest first yes we have - no plumber, impulse
   price, and it makes someone a CUSTOMER, which is the hardest step in the
   business. Framed on choice, never on taste: people are not complaining
   that their water tastes bad, they would simply rather not drink chlorine. */
.alt-offer {
  display: grid; grid-template-columns: 132px 1fr; gap: 1.2rem;
  align-items: center; margin-top: 1.4rem; padding: 1.2rem 1.3rem;
  background: #fff; border: 1px solid rgb(2 28 70 / 0.12);
  border-radius: var(--radius-card, 14px);
}
.alt-offer__media { background: #05173a; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; }
.alt-offer__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.alt-offer__kicker { font-size: var(--text-xs); letter-spacing: .08em; opacity: .55; margin: 0 0 .3rem; }
.alt-offer h4 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.25; }
.alt-offer p { margin: 0 0 .5rem; font-size: var(--text-sm); opacity: .85; }
.alt-offer__honest { opacity: .65 !important; }
.alt-offer__actions { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }
.alt-offer__spec { font-size: var(--text-sm); text-decoration: underline; opacity: .75; }
@media (max-width: 560px) {
  .alt-offer { grid-template-columns: 1fr; }
  .alt-offer__media { max-width: 120px; }
}
