/*
 * Webdev Zimbabwe — /upgrades router (v2026)
 * Load AFTER webdev-base.css. Primitives live there; this file adds only the
 * blocks specific to the upgrade router.
 *
 * Block letters follow Upgrades_Umbrella_Brief_v1 §5:
 *   A hero (no CTA) · B four routes · C "not sure?" router
 *   D what stays the same · E required vs optional · F final fallback
 *
 * The brief's non-negotiables shape this file: routing must be visible within
 * the first scroll, one CTA per route, and the page must load in under two
 * seconds — so there is no hero image, no carousel and no decorative motion.
 */

/* ---------- BLOCK A — hero ----------
 * Uses the shared .wd-subhero component in webdev-base.css.
 *
 * .wd-subhero--upgrades MOVED to webdev-base.css — /email-office-upgrade and
 * /managed-website-upgrade share the same artwork, and those run the migration
 * template, so base is the only layer all three load.
 */

/* .wd-chips lives in webdev-base.css — shared with the migration pages. */

/* ---------- BLOCK B — four upgrade routes ---------- */

.wd-routes {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wd-route {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* The behavioural question, not the product name — customers do not know their
   SKU, so this is what they scan for (brief §3, critical content rule). */
.wd-route__q {
  color: var(--wd-orange-700);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}

.wd-route__head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.wd-route h3 {
  font-size: clamp(1.1875rem, 1.6vw, 1.375rem);
}

.wd-route .wd-body {
  margin-top: 0;
}

.wd-route__foot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.wd-route__foot .wd-btn {
  flex: 1 1 auto;
}

/*
 * .wd-route--lead is intentionally UNSTYLED. The Email & Office card led the
 * priority order and used to carry an orange outline plus a "Required at next
 * renewal" badge; the client removed both, so all four routes now read as
 * equal-weight choices. The class is kept as a hook in case that emphasis is
 * wanted back.
 */

/* ---------- BLOCK C — "not sure?" router ---------- */

.wd-quiz {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.wd-quiz__intro h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

.wd-quiz__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wd-quiz__count {
  color: var(--wd-grey-500);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.wd-quiz__q {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 650;
  margin: 0;
}

.wd-quiz__answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.wd-quiz__answers .wd-btn {
  min-width: 6.5rem;
}

/*
 * Without JavaScript every question is shown as a plain list with a direct link,
 * so the router never dead-ends. The script hides the list and drives one
 * question at a time instead.
 */
.wd-quiz__list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-quiz__list li {
  border-top: 1px solid var(--wd-grey-200);
  padding-top: 1rem;
}

.wd-quiz__list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.wd-quiz__list p {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.wd-quiz__fallback {
  color: var(--wd-grey-500);
  font-size: 0.9375rem;
  margin: 0.25rem 0 0;
}

.wd-quiz__fallback a {
  color: var(--wd-orange-700);
  font-weight: 600;
}

.wd-quiz__fallback a:hover,
.wd-quiz__fallback a:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 0.22em;
}

/* ---------- BLOCK D — what stays the same ---------- */

.wd-stays {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-stays .wd-icon {
  color: var(--wd-orange-600);
  margin-bottom: 0.875rem;
}

.wd-stays h3 {
  font-size: 1.0625rem;
}

.wd-stays p {
  color: var(--wd-grey-700);
  font-size: 0.9375rem;
  margin: 0.375rem 0 0;
}

.wd-stays__note {
  align-items: center;
  color: var(--wd-charcoal-900);
  display: flex;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  margin: clamp(2rem, 3.5vw, 3rem) 0 0;
  text-align: center;
}

.wd-stays__note .wd-icon {
  color: var(--wd-success-600);
  margin: 0;
}

/* ---------- BLOCK E — required vs optional ----------
 * Every SECTION on this page sits on the one page ground (the tinted and white
 * stripes were removed at the client's request for a single consistent
 * surface). This card is the one deliberate exception: it takes .wd-panel--dark,
 * which is --wd-slate-600, the same grey as the stuck header — so the accent
 * reads as part of the chrome rather than as another background colour.
 */

.wd-policy {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.wd-policy h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
}

.wd-policy p {
  color: var(--wd-grey-200);
  margin: 0.875rem 0 0;
}

.wd-policy__legend {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-policy__legend li {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

/*
 * Scoped to the description, NOT a bare `span`: a bare selector also matched the
 * badge spans and overrode their text colour to light grey on a light pill,
 * making both badges unreadable.
 */
.wd-policy__note {
  color: var(--wd-grey-200);
  font-size: 0.9375rem;
}

/* Timing language: "at your next renewal" only — never an internal date. */
.wd-policy__timing {
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: var(--wd-grey-300);
  font-size: 0.9375rem;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
}

/* ---------- BLOCK F — final fallback ---------- */

.wd-final {
  text-align: center;
}

.wd-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
  .wd-routes {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-quiz,
  .wd-policy {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-stays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 575.98px) {
  .wd-stays {
    grid-template-columns: minmax(0, 1fr);
  }

  .wd-route__foot .wd-btn,
  .wd-final__actions .wd-btn {
    width: 100%;
  }

  .wd-quiz__answers .wd-btn {
    flex: 1 1 auto;
  }
}

/* ---------- route card icon ----------
 * Sits ABOVE the heading, using the default .wd-icon-plate: a large, thin,
 * muted outline mark. That is the treatment the client's reference uses and it
 * matches the card pattern on the rest of the site.
 */
.wd-route .wd-icon-plate {
  margin-bottom: 0.25rem;
}

/*
 * All four route buttons are identical: same size (550x44) and the same filled
 * orange pill, per the client's reference. The lead card keeps its emphasis
 * through the orange card border and the "Required at next renewal" badge.
 */
.wd-route__foot .wd-btn {
  justify-content: center;
  width: 100%;
}
