/* CMNAV Sat Nav Finder
   Brand palette + tokens at top. No hard-coded colours below :root. */

:root {
  /* Brand */
  --cmnav-navy: #122E41;
  --cmnav-gold: #E9AD14;
  --cmnav-green: #5DAA3D;
  --cmnav-blue: #268BB6;

  /* Third-party brand colours (NOT CMNAV brand — used only for WhatsApp CTA) */
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #1FB855;

  /* General */
  --bg: #FFFFFF;
  --heading: #121212;
  --text: #121212;
  --text-light: #949494;
  --link: #121212;
  --line: #DDDDDD;
  --line-soft: #ECECEC;

  /* Buttons */
  --btn-primary-bg: var(--cmnav-gold);
  --btn-primary-text: #121212;
  --btn-secondary-bg: #121212;
  --btn-secondary-text: #FFFFFF;
  --btn-secondary-border: #121212;
  --btn-outline-bg: transparent;
  --btn-outline-text: #121212;
  --btn-outline-border: #121212;

  /* Header / footer */
  --header-bg: var(--cmnav-navy);
  --header-text: #FFFFFF;
  --footer-bg: var(--cmnav-navy);
  --footer-text: var(--cmnav-gold);

  /* Forms */
  --input-text: #4D4D4D;
  --input-bg: #FFFFFF;
  --input-border: #DDDDDD;
  --input-focus-border: var(--cmnav-gold);

  /* Stock badges */
  --in-stock: #268C0B;
  --low-stock: #CC1313;
  --out-of-stock: #121212;

  /* Info panel tints */
  --panel-info-bg: #F0F4F7;
  --panel-guide-bg: #FAF6E8;
  --panel-conflict-bg: #FFF7E6;
  --panel-warning-bg: #FFF7E0;

  /* Spacing */
  --gap-xs: 4px; --gap-sm: 8px; --gap-md: 16px;
  --gap-lg: 24px; --gap-xl: 40px; --gap-2xl: 64px;

  /* Radius */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: var(--font-body);
  --line-tight: 1.2; --line-base: 1.5;

  /* Layout */
  --maxw: 720px;
  --gutter: 20px;
  --media-col: 320px;
  --tap-min: 48px;

  /* Type sizing */
  --fs-base: 16px;
  --fs-q: clamp(22px, 4vw, 28px);
  --fs-headline: clamp(20px, 3.5vw, 24px);
  --fs-price: 24px;
}

* { box-sizing: border-box; }

/* Global hard-stop on the HTML `hidden` attribute. Any class with a
   `display: ...` rule could otherwise override it (we hit this with
   `.q-warning { display: block }` shadowing `[hidden]`). The semantic is
   binary — there's never a case where a [hidden] element should render. */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--line-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { height: 100%; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.header-bar { flex: 0 0 auto; }
main.app { flex: 1 0 auto; }
.footer-bar { flex: 0 0 auto; }

a { color: var(--link); }

/* ------------------------------------------------------------------- */
/* Header bar                                                          */
/* ------------------------------------------------------------------- */
.header-bar {
  width: 100%;
  background: var(--header-bg);
  color: var(--header-text);
  padding: var(--gap-md) var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-bar__logo-link { display: inline-flex; line-height: 0; }
.header-bar__logo {
  height: 36px;
  width: auto;
  display: block;
}
@media (min-width: 769px) {
  .header-bar__logo { height: 50px; }
}

/* ------------------------------------------------------------------- */
/* App container                                                       */
/* ------------------------------------------------------------------- */
.app {
  display: flex;
  flex-direction: column;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: var(--gap-lg) var(--gutter) var(--gap-xl);
}

.quiz__top { margin-bottom: var(--gap-md); }

.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { opacity: 0.85; }

/* ------------------------------------------------------------------- */
/* Intro screen                                                        */
/* ------------------------------------------------------------------- */
.intro__heading {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  margin: 0 0 var(--gap-md);
  color: var(--heading);
  line-height: var(--line-tight);
}
.intro__lede {
  font-size: 17px;
  color: var(--text);
  margin: 0 0 var(--gap-xl);
  max-width: 36em;
}
.intro__sub {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 var(--gap-md);
}
.intro__points {
  list-style: none;
  margin: 0 0 var(--gap-xl);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.intro__points li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  line-height: var(--line-base);
}
.intro__check {
  color: var(--cmnav-green);
  font-weight: 700;
  font-size: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}
.intro__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-md);
}

/* ------------------------------------------------------------------- */
/* Progress + quiz                                                     */
/* ------------------------------------------------------------------- */
.progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--gap-lg);
}
.progress-bar {
  height: 3px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--cmnav-gold);
  transition: width 220ms ease-out;
}
.progress-text {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.q-label {
  font-size: var(--fs-q);
  font-weight: 600;
  line-height: var(--line-tight);
  margin: 0 0 var(--gap-lg);
  color: var(--heading);
}

.q-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.q-option {
  display: block;
  width: 100%;
  min-height: var(--tap-min);
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 120ms, background 120ms, transform 80ms;
}
.q-option:hover { border-color: var(--text); }
.q-option:active { transform: scale(0.997); }
.q-option.selected {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-bg);
}

.q-foot {
  margin-top: var(--gap-lg);
  display: flex;
  gap: var(--gap-md);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.btn-back, .btn-continue {
  /* Compact next to option buttons; not full-width on mobile so the row stays a row. */
  width: auto;
  padding: 12px 20px;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Inline contextual warning shown below quiz options. */
.q-warning {
  display: block;
  width: 100%;
  /* Defensive: if the warning ever ends up inside a CSS grid context,
     span all columns so it sits below the option grid at full width. */
  grid-column: 1 / -1;
  box-sizing: border-box;
  margin-top: var(--gap-md);
  background: var(--panel-warning-bg);
  border-left: 4px solid var(--cmnav-gold);
  border-radius: var(--radius-sm);
  padding: var(--gap-md);
  font-size: 14px;
  line-height: var(--line-base);
  color: var(--text);
}
.q-warning__line {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
}
.q-warning__icon {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.q-warning--warn  .q-warning__icon { color: var(--cmnav-gold); }
.q-warning--info  .q-warning__icon { color: var(--cmnav-blue); }
.q-warning--ok    .q-warning__icon { color: var(--cmnav-green); }
.q-warning__body { margin: 0; }

/* ------------------------------------------------------------------- */
/* Result area                                                         */
/* ------------------------------------------------------------------- */
.result {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

/* Conflict banner — shown above the two-card stretch-vs-sacrifice UI */
.cmnav-finder__conflict-banner {
  background: var(--panel-conflict-bg);
  border-left: 4px solid var(--cmnav-gold);
  padding: var(--gap-md) var(--gap-lg);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: var(--line-base);
  color: var(--text);
}
.cmnav-finder__conflict-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--gap-sm);
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.cmnav-finder__conflict-heading::before {
  content: '⚠';
  color: var(--cmnav-gold);
}

/* Budget explanation panel */
.cmnav-finder__budget-explanation {
  background: var(--panel-info-bg);
  border-left: 4px solid var(--cmnav-blue);
  padding: var(--gap-md) var(--gap-lg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: var(--line-base);
  color: var(--text);
}
.cmnav-finder__budget-explanation-heading {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 var(--gap-sm) 0;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}
.cmnav-finder__budget-explanation-heading::before {
  content: 'ℹ';
  color: var(--cmnav-blue);
  font-weight: bold;
}
.cmnav-finder__budget-explanation p { margin: 0; }

/* Two-card grid for conflict mode */
.result__pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}
/* Branded column-tag pill — sits at the top of each card, identifies which arm
   of a two-card conflict the customer is looking at. Replaces the old plain
   uppercase label that lived above the card. */
.cmnav-finder__card-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
  align-self: flex-start;
}
.cmnav-finder__card-tag--primary {
  background: var(--cmnav-gold);
  color: var(--text);
}
.cmnav-finder__card-tag--alternative {
  background: var(--cmnav-blue);
  color: var(--bg);
}

/* Card */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-media {
  width: 100%;
  background: var(--bg);
  display: block;
}
.card-img {
  /* `contain` prevents cropping at any aspect ratio; the white card-media
     background fills the leftover space cleanly. */
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
  object-fit: contain;
  background: var(--bg);
  padding: var(--gap-md);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  /* Reset the previous fixed-aspect-ratio override; let the image's own
     dimensions drive height up to max-height. */
  aspect-ratio: auto;
}
.card-img-placeholder {
  background: var(--line-soft);
  aspect-ratio: 4 / 3;
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.card__title-row { margin: 0; }
.headline {
  font-size: var(--fs-headline);
  font-weight: 700;
  margin: 0;
  color: var(--heading);
  line-height: var(--line-tight);
}
.title {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin: var(--gap-sm) 0 0;
}
.price {
  font-size: var(--fs-price);
  font-weight: 700;
  margin: 0;
  color: var(--heading);
}
.price--sale { color: var(--low-stock); }
.price-was {
  margin-left: 8px;
  color: var(--text-light);
  font-weight: 400;
  text-decoration: line-through;
  font-size: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--line-soft);
  color: var(--text);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.badge-ok    { color: var(--in-stock); background: var(--line-soft); }
.badge-ok    .badge-dot   { background: var(--in-stock); }
.badge-warn  { color: var(--low-stock); background: var(--line-soft); }
.badge-warn  .badge-dot   { background: var(--low-stock); }
.badge-bad   { color: var(--out-of-stock); background: var(--line-soft); }
.badge-bad   .badge-dot   { background: var(--out-of-stock); }

.reason {
  font-size: 15px;
  color: var(--text);
  margin: var(--gap-sm) 0 0;
  line-height: var(--line-base);
}

/* Card-level CTA (per-card "View product") */
.card__cta {
  margin-top: var(--gap-md);
}

/* ------------------------------------------------------------------- */
/* Guide panel                                                         */
/* ------------------------------------------------------------------- */
.cmnav-finder__guide-panel {
  background: var(--panel-guide-bg);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  font-size: 15px;
  line-height: var(--line-base);
  color: var(--text);
}
.cmnav-finder__guide-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 var(--gap-sm);
  color: var(--heading);
  line-height: var(--line-tight);
}
.cmnav-finder__guide-panel > p { margin: 0 0 var(--gap-md); }
.cmnav-finder__guide-panel > p:last-child { margin-bottom: 0; }

.cmnav-finder__guide-contact {
  font-size: 14px;
  color: var(--text);
}
.cmnav-finder__guide-contact a {
  font-weight: 600;
}

/* ------------------------------------------------------------------- */
/* Action hierarchy                                                    */
/* ------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.actions__primary-row {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.actions__tertiary {
  display: flex;
  justify-content: center;
}

/* Separator before the Start Over CTA */
.actions__separator {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--gap-sm) 0 0;
}
.actions__start-over {
  display: flex;
  justify-content: center;
}
.actions__start-over .btn {
  width: 100%;
}
@media (min-width: 481px) {
  .actions__start-over .btn { width: auto; min-width: 280px; }
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
  padding: 14px 22px;
  min-height: var(--tap-min);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  transition: opacity 120ms, background 120ms;
  width: 100%;
  text-align: center;
}
.btn:hover { opacity: 0.92; }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}
.btn-outline {
  background: var(--btn-outline-bg);
  color: var(--btn-outline-text);
  border-color: var(--btn-outline-border);
}

/* WhatsApp CTA — uses WhatsApp's brand green (intentional third-party brand
   use to make the channel instantly recognisable). Keeps the same shape and
   font as .btn so it sits comfortably alongside the gold primary button. */
.btn-whatsapp {
  background: var(--whatsapp-green);
  color: var(--bg);
  border: 2px solid var(--whatsapp-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  padding: 12px 22px;
  min-height: var(--tap-min);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-whatsapp:hover {
  background: var(--whatsapp-green-hover);
  border-color: var(--whatsapp-green-hover);
}
.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* The card-level "View product" stays primary gold, full width on the card */
.card__cta .btn { width: 100%; }

/* Tertiary text-link action below the two main buttons */
.btn-text {
  background: transparent;
  border: 0;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 4px;
  min-height: 0;
  font-weight: 500;
}
.btn-text:hover { opacity: 0.85; }

/* ------------------------------------------------------------------- */
/* Email form                                                          */
/* ------------------------------------------------------------------- */
.email-form {
  margin-top: var(--gap-md);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.email-form-row {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.email-form input[type=email] {
  width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  border-radius: var(--radius-sm);
}
.email-form input[type=email]:focus {
  outline: 2px solid var(--input-focus-border);
  outline-offset: 1px;
  border-color: var(--input-focus-border);
}
.email-note { color: var(--text-light); font-size: 13px; }
.email-success { color: var(--in-stock); font-size: 14px; }
.email-error { color: var(--low-stock); font-size: 14px; }

/* ------------------------------------------------------------------- */
/* Loading + error                                                     */
/* ------------------------------------------------------------------- */
.loading {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  color: var(--text-light);
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.err {
  padding: var(--gap-md) var(--gap-lg);
  background: var(--panel-info-bg);
  border-left: 4px solid var(--low-stock);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.err h2 { margin: 0 0 var(--gap-sm); color: var(--heading); }

/* ------------------------------------------------------------------- */
/* Footer                                                              */
/* ------------------------------------------------------------------- */
.footer-bar {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--gap-md) var(--gutter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-md);
  font-size: 13px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-bar__logo {
  height: 28px;
  width: auto;
  display: block;
}
.footer-bar__text { line-height: var(--line-base); }
.footer-bar a {
  color: var(--footer-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------- */
/* State-driven visibility                                             */
/* ------------------------------------------------------------------- */
.app[data-state=loading] #intro,
.app[data-state=loading] #quiz,
.app[data-state=loading] #result,
.app[data-state=loading] #error { display: none !important; }
.app[data-state=intro] #loading,
.app[data-state=intro] #quiz,
.app[data-state=intro] #result,
.app[data-state=intro] #error { display: none !important; }
.app[data-state=quiz] #loading,
.app[data-state=quiz] #intro,
.app[data-state=quiz] #result,
.app[data-state=quiz] #error { display: none !important; }
.app[data-state=result] #loading,
.app[data-state=result] #intro,
.app[data-state=result] #quiz,
.app[data-state=result] #error { display: none !important; }
.app[data-state=error] #loading,
.app[data-state=error] #intro,
.app[data-state=error] #quiz,
.app[data-state=error] #result { display: none !important; }
.app[data-state=intro] #intro,
.app[data-state=quiz] #quiz,
.app[data-state=result] #result,
.app[data-state=error] #error { display: block !important; }

/* ------------------------------------------------------------------- */
/* Debug overlay                                                       */
/* ------------------------------------------------------------------- */
.debug {
  position: fixed;
  right: 12px;
  bottom: 12px;
  max-width: 320px;
  background: var(--cmnav-navy);
  color: var(--cmnav-gold);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.45;
  z-index: 9999;
  white-space: pre-wrap;
}

/* ------------------------------------------------------------------- */
/* Breakpoints                                                         */
/* ------------------------------------------------------------------- */

/* Mobile (≤480px) — refinements over base */
@media (max-width: 480px) {
  :root {
    --fs-base: 16px;
    --gutter: 16px;
  }
  .app { padding: var(--gap-md) var(--gutter) var(--gap-lg); }
  .q-option { padding: 14px 16px; font-size: 16px; }
  .card-body { padding: 18px 18px 20px; }
  /* Mobile image sizing: cap the image (not the container) so the image
     scales down to fit while remaining fully visible (object-fit:contain).
     280px is the sweet spot — tall enough for portrait product shots,
     short enough not to dominate a small viewport. */
  .card-img { max-height: 280px; padding: var(--gap-sm); }
  .header-bar__logo { height: 36px; }
}

/* Tablet (481–768px) — 2-column quiz, row actions, inline email form */
@media (min-width: 481px) {
  .q-options { grid-template-columns: 1fr 1fr; }

  .actions__primary-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .actions__primary-row .btn,
  .actions__primary-row .btn-whatsapp {
    flex: 1 1 0;
    min-width: 200px;
    width: auto;
  }

  .intro__actions { flex-direction: row; align-items: center; }

  .email-form-row { flex-direction: row; }
  .email-form-row .btn { width: auto; }
  .email-form input[type=email] { min-width: 220px; flex: 1; }
}

/* Desktop (≥769px) — split card: image LEFT (40%), content RIGHT (60%) */
@media (min-width: 769px) {
  .card {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: stretch;
  }
  /* On the split layout the media slot becomes a left column; let the image
     fill its height while preserving full visibility (contain, no crop). */
  .card-media {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .card-img {
    height: auto;
    max-height: 100%;
  }
  .card-body { padding: 24px 26px 26px; }

  /* Side-by-side conflict pair becomes 2 columns at desktop too. */
  .result__pair { grid-template-columns: 1fr 1fr; }
  /* Each card inside the pair still stacks (image-top, body-bottom) — looks
     better than two split cards squeezed into half columns. */
  .result__pair .card { display: flex; flex-direction: column; }
  .result__pair .card-media { height: auto; }
}

/* Wide desktop (≥1440px) — bump max-width */
@media (min-width: 1440px) {
  :root {
    --maxw: 900px;
    --media-col: 360px;
  }
  .app { padding: var(--gap-xl) var(--gutter); }
  .card-body { padding: 28px 32px 30px; }
}

/* Ultrawide (≥2560px) — same as wide; never grow further */
@media (min-width: 2560px) {
  /* intentionally empty */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
  .spinner { animation: none; }
  .q-option { transition: none; }
}
