*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-navy);
  color: var(--color-white);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
  text-decoration: none;
}

.lang-switcher {
  position: relative;
}

.lang-switcher select {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-4);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-switcher::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- Layout shell ---------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-7);
}

.page-intro {
  margin-bottom: var(--space-6);
}

.page-intro h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0 0 var(--space-2);
}

.page-intro p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.hero-reassurance {
  background: linear-gradient(135deg, var(--color-blue-light) 0%, rgba(186, 221, 255, 0.35) 100%);
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}

.hero-reassurance__eyebrow {
  margin: 0 0 var(--space-1);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  opacity: 0.7;
}

.hero-reassurance__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: var(--color-navy);
}

.hero-reassurance__body {
  margin: 0 0 var(--space-4);
  color: var(--color-navy);
  max-width: 65ch;
  opacity: 0.85;
}

.hero-reassurance__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-reassurance__chips li {
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  box-shadow: var(--shadow-soft);
}

/* ---------- Wizard shell ---------- */

.wizard-progress[hidden] {
  display: none;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.wizard-progress__step[hidden] {
  display: none;
}

.wizard-progress__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  opacity: 0.6;
  cursor: default;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.wizard-progress__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.wizard-progress__step.is-active {
  opacity: 1;
  background: var(--color-navy);
  color: var(--color-white);
}

.wizard-progress__step.is-active .wizard-progress__num {
  background: var(--color-orange);
  color: var(--color-white);
}

/* Completed steps are real buttons: click to jump back and change that answer. */
.wizard-progress__step.is-done {
  opacity: 0.85;
  cursor: pointer;
}

.wizard-progress__step.is-done:hover {
  opacity: 1;
  background: var(--color-blue-light);
}

.wizard-progress__step.is-done:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.wizard-progress__step.is-done .wizard-progress__num {
  background: var(--color-blue-light);
  color: var(--color-navy);
  font-size: 0;
}

.wizard-progress__step.is-done .wizard-progress__num::before {
  content: "✓";
  font-size: 0.72rem;
}

.wizard-panel[hidden] {
  display: none;
}

.wizard-panel {
  max-width: 640px;
  margin: 0 auto;
  animation: wizard-panel-in var(--transition-medium);
}

@keyframes wizard-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-panel {
    animation: none;
  }
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-4);
  cursor: pointer;
}

.wizard-back:hover {
  color: var(--color-navy);
}

/* ---------- Picker groups ---------- */

.picker-group {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.picker-group--standalone {
  padding: var(--space-6);
  margin-bottom: 0;
}

.picker-group h2 {
  font-size: 1rem;
  margin: 0 0 var(--space-4);
}

.picker-group__hint {
  margin: calc(var(--space-4) * -1) 0 var(--space-4);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  text-align: left;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-white);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.option-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-1px);
}

.option-card:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}

.option-card[aria-pressed="true"] {
  border-color: var(--color-navy);
  background: var(--color-blue-light);
  box-shadow: var(--shadow-soft);
  animation: card-pick 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes card-pick {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

/* The selected card's icon gives a little cheer. */
.option-card[aria-pressed="true"] .option-card__icon {
  animation: icon-cheer 0.45s ease;
}

@keyframes icon-cheer {
  0% {
    transform: scale(1) rotate(0);
  }
  40% {
    transform: scale(1.25) rotate(-8deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .option-card[aria-pressed="true"],
  .option-card[aria-pressed="true"] .option-card__icon {
    animation: none;
  }
}

.option-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
}

/* Delivery-method line icon: a soft square tile with a navy glyph, matching
   the device cards' silhouette style so the two picker steps feel of a piece. */
.option-card__icon--line {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--color-navy);
  background: var(--color-blue-light);
}

.option-card__icon--line svg {
  width: 23px;
  height: 23px;
}

.option-card[aria-pressed="true"] .option-card__icon--line {
  background: #fff;
}

.option-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.option-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.option-card__badge {
  margin-top: var(--space-1);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

.option-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.option-card--compact {
  padding: var(--space-3) var(--space-4);
}

.option-card--disabled,
.option-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: var(--color-bg);
}

.option-card--disabled:hover,
.option-card:disabled:hover {
  border-color: var(--color-border);
  transform: none;
}

.model-search {
  margin-top: var(--space-4);
}

.model-search input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
}

.model-search input:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
}

.model-results {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-height: 200px;
  overflow-y: auto;
}

.model-results li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-control);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: 0.85rem;
}

.model-results li button:hover,
.model-results li button:focus-visible {
  background: var(--color-bg);
}

/* The "not in the list? check it yourself" prompt shown when nothing matches. */
.model-results__unknown {
  font-weight: 700;
  color: var(--color-blue) !important;
}

/* Result rows stack the name over its internal model code (4G/5G/Pro differ). */
.model-results li button {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.model-results__code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.model-search__empty {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.model-search__hint {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: var(--space-2) 0 0;
}

/* ---------- Guide / phone panel ---------- */

.guide-panel {
  background: var(--color-navy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.guide-panel::before,
.guide-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.guide-panel::before {
  width: 340px;
  height: 340px;
  top: -120px;
  right: -100px;
  animation: glow-drift-a 16s ease-in-out infinite;
}

.guide-panel::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
  opacity: 0.22;
  animation: glow-drift-b 20s ease-in-out infinite;
}

/* Two brand-coloured glows breathe slowly behind the phone — the telemeteor.com
   look, alive but never distracting. */
@keyframes glow-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(-26px, 30px) scale(1.12);
    opacity: 0.48;
  }
}

@keyframes glow-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(34px, -22px) scale(1.15);
    opacity: 0.32;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-panel::before,
  .guide-panel::after {
    animation: none;
  }
}

.guide-panel__fallback-notice {
  position: relative;
  z-index: 1;
  align-self: stretch;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-control);
  padding: var(--space-2) var(--space-4);
}

/* Instruction header — sits above the phone so the plain-language action is
   the first thing seen. */
.step-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42ch;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.step-progressbar {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.step-progressbar__fill {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-orange), #ff8a3d);
  transition: width 0.35s ease;
  overflow: hidden;
}

/* A soft sheen travels the filled bar so progress feels live, not static. */
.step-progressbar__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: translateX(-100%);
  animation: progress-sheen 2.4s ease-in-out infinite;
}

@keyframes progress-sheen {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-progressbar__fill::after {
    animation: none;
    opacity: 0;
  }
}

/* Icon + text sit on one row so the big glyph leads the eye into the title. */
.step-head__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
}

.step-head__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  /* A warm, softly-lit tile; the line glyph inside is deep navy for contrast. */
  color: var(--color-navy);
  background: linear-gradient(145deg, #ffd8b0, #ffb27a 55%, #ff9354);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 6px 14px rgba(255, 102, 0, 0.28);
}

.step-head__icon svg {
  width: 27px;
  height: 27px;
}

.step-head__icon.is-in {
  animation: badge-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

/* Starts and ends at the identity transform, so the badge is always full-size
   at rest — even if the run-once animation never gets a chance to advance. */
@keyframes badge-pop {
  0% {
    transform: scale(1) rotate(0);
  }
  28% {
    transform: scale(0.82) rotate(-8deg);
  }
  62% {
    transform: scale(1.1) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-head__icon.is-in {
    animation: none;
  }
}

.step-head__text {
  min-width: 0;
  flex: 1 1 auto;
}

.step-head__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue-light);
}

.step-head__count::before {
  content: " · ";
  opacity: 0.6;
}

.step-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: var(--weight-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Confetti celebration on the final step — the reward for finishing. */
.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
  border-radius: inherit;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation-name: confetti-fall;
  animation-timing-function: cubic-bezier(0.3, 0.6, 0.4, 1);
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, -10px) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    /* --fall is the panel height in px, set per burst (percentages in a
       transform resolve against the element's own tiny size, not the panel). */
    transform: translate(var(--drift, 0), var(--fall, 600px)) rotate(var(--spin, 540deg));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-layer {
    display: none;
  }
}

.step-text__warning {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border-radius: var(--radius-control);
  padding: var(--space-2) var(--space-3);
}

.step-text__warning[hidden] {
  display: none;
}

/* Description — always visible under the phone, no clicking to read it. */
.step-body {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: 42ch;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
}

.step-body:empty {
  display: none;
}

.step-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
  margin-top: var(--space-2);
}

.step-nav button {
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast),
    box-shadow var(--transition-fast);
}

.step-nav button:not(:disabled):hover {
  transform: translateY(-1px);
}

.step-nav__prev {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  font-size: 1.15rem;
  width: 54px;
  flex: 0 0 auto;
}

.step-nav__next {
  background: var(--color-orange);
  color: var(--color-white);
  flex: 1;
  font-size: 1.02rem;
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.35);
}

/* Content-freshness line under the guide: which official-source check date
   this step sequence was last verified against. */
.guide-verified {
  margin: var(--space-3) auto 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.guide-verified[hidden] {
  display: none;
}

/* ---------- Device detection banner ---------- */

.detect-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--color-navy), #24365c);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-card);
}

.detect-banner[hidden] {
  display: none;
}

.detect-banner__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.detect-banner__icon svg {
  width: 24px;
  height: 24px;
}

.detect-banner__text {
  flex: 1 1 140px;
}

.detect-banner__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue-light);
}

.detect-banner__device {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.detect-banner__note {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.detect-banner__note[hidden] {
  display: none;
}

.detect-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 160px;
}

.detect-banner__go {
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-4);
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.35);
  transition: transform var(--transition-fast);
}

.detect-banner__go:hover {
  transform: translateY(-1px);
}

.detect-banner__no {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.detect-banner__no:hover {
  color: var(--color-white);
}

/* ---------- eSIM compatibility verdict ---------- */

.compat-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  animation: wizard-panel-in var(--transition-medium);
  border-top: 5px solid var(--color-blue);
}

.compat-card--yes {
  border-top-color: #1e9e58;
}
.compat-card--region {
  border-top-color: #e8a23a;
}
.compat-card--no {
  border-top-color: #e5484d;
}

.compat-card__icon {
  line-height: 1;
  color: var(--color-blue);
}

.compat-card__icon svg {
  width: 52px;
  height: 52px;
}

.compat-card--yes .compat-card__icon {
  color: #1e9e58;
}
.compat-card--region .compat-card__icon {
  color: #e8a23a;
}
.compat-card--no .compat-card__icon {
  color: #e5484d;
}

.compat-card__model {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.compat-card__code {
  margin: 2px 0 0;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

.compat-card__title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--color-navy);
  max-width: 22ch;
}

.compat-card__sub {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.compat-card__note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-warning-text);
  background: var(--color-warning-bg);
  border-radius: var(--radius-control);
  padding: var(--space-3) var(--space-4);
  max-width: 46ch;
}

/* Carrier-lock caveat: a neutral caution (not the amber warning) so it reads
   calmly under a positive "yes/region" verdict. */
.compat-card__note--lock {
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
}

.compat-card__disclaimer {
  margin: var(--space-2) 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 52ch;
}

/* ---------- Troubleshooter ---------- */

.ts-entry {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1.5px dashed var(--color-blue);
  border-radius: var(--radius-card);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ts-entry__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #1b63c9;
  background: #dcecff;
}

.ts-entry__icon svg {
  width: 22px;
  height: 22px;
}

.ts-entry:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.ts-entry--subtle {
  border: none;
  background: none;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-entry--subtle:hover {
  color: var(--color-navy);
  transform: none;
  box-shadow: none;
}

.ts-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  animation: wizard-panel-in var(--transition-medium);
}

.ts-card__icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--color-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}

.ts-card__icon svg {
  width: 40px;
  height: 40px;
}

/* Tint the badge to match the outcome. */
.ts-card__icon--help {
  background: #dcecff;
  color: #1b63c9;
}
.ts-card__icon--check {
  background: #dcf3e6;
  color: #1e9e58;
}
.ts-card__icon--email {
  background: #ffe7d4;
  color: #d9611a;
}
.ts-card__icon--warn {
  background: #fdecc8;
  color: #b5771a;
}

/* Progress bar across the top of the troubleshooter card */
.ts-progress {
  width: 100%;
  max-width: 320px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  overflow: hidden;
}

.ts-progress__fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-orange), #ff8a3d);
  transition: width 0.35s ease;
}

.ts-progress__count {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* Phone mockup inside the troubleshooter card — shows the screen the
   customer should look at, matching the "show the phone screen" request. */
.ts-phone {
  width: 190px;
  max-width: 62vw;
  /* Phone-like proportion; the SVG is a full 300x630 screen and is cropped
     from the top, so the frame never shows an empty lower half. */
  aspect-ratio: 300 / 470;
  border-radius: 30px;
  background: #0b1220;
  padding: 8px;
  /* Guarantees the aspect ratio wins over the intrinsic size of the SVG. */
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(24, 39, 70, 0.28);
}

.ts-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.ts-phone__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ts-card__title {
  margin: 0;
  font-size: 1.45rem;
  color: var(--color-navy);
}

.ts-card__body {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 48ch;
}

.ts-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 360px;
  margin-top: var(--space-3);
}

.ts-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-4) var(--space-5);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ts-btn:hover {
  transform: translateY(-1px);
}

/* Buttons that carry a leading icon (support-email CTAs) centre icon + label. */
.ts-btn--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.ts-btn__icon {
  display: inline-flex;
}

.ts-btn__icon svg {
  width: 20px;
  height: 20px;
}

.ts-btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.3);
}

/* GREEN = the OK / positive answer (it works, yes) */
.ts-btn--yes {
  background: #1e9e58;
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(30, 158, 88, 0.3);
}

/* RED = the not-OK / negative answer (still broken, no) */
.ts-btn--no {
  background: #e5484d;
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(229, 72, 77, 0.28);
}

.ts-btn--muted {
  background: var(--color-bg);
  color: var(--color-navy);
}

.ts-card__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- Responsive breakpoints ---------- */

/* Tablet: roomier phone frame, 2-col option grids */
@media (min-width: 600px) and (max-width: 959px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: two-column guide — big phone on the left, big type on the right.
   Grid areas keep that layout regardless of DOM order (instruction-first). */
@media (min-width: 960px) {
  .wizard-panel[data-wizard-panel="guide"] {
    max-width: 980px;
  }

  .guide-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    /* The phone is much taller than the text beside it. Two flexible spacer
       rows absorb the difference so the text block sits centred against the
       phone instead of being stretched apart by it. */
    grid-template-areas:
      "notice notice"
      "phone  spacer-top"
      "phone  head"
      "phone  details"
      "phone  warning"
      "phone  nav"
      "phone  spacer-bottom";
    grid-template-rows: auto 1fr auto auto auto auto 1fr;
    align-content: center;
    align-items: center;
    column-gap: var(--space-7);
    row-gap: var(--space-4);
    padding: var(--space-7);
    min-height: 620px;
  }

  .guide-panel__fallback-notice {
    grid-area: notice;
  }
  .phone-frame-shell {
    grid-area: phone;
  }
  .step-head {
    grid-area: head;
    align-self: end;
    text-align: left;
    align-items: flex-start;
    max-width: none;
  }
  .step-body {
    grid-area: details;
    text-align: left;
    max-width: none;
    font-size: 1.05rem;
  }
  .step-text__warning {
    /* Its own row — must never sit on top of the description. */
    grid-area: warning;
    align-self: start;
    justify-self: start;
  }
  .step-nav {
    grid-area: nav;
    align-self: start;
    max-width: 340px;
  }

  .step-head__title {
    font-size: 1.9rem;
  }

  .picker-group--standalone {
    padding: var(--space-7);
  }
}

/* Mobile: the guide screen must fit phone mockup + text + nav in one view,
   no page-scrolling required to find the Next button. */
@media (max-width: 599px) {
  .page {
    padding: var(--space-4) var(--space-4) var(--space-5);
  }

  /* Compact troubleshooter so both answer buttons stay near the fold */
  .ts-card {
    padding: var(--space-5) var(--space-4);
    gap: var(--space-2);
  }

  .ts-phone {
    width: 150px;
  }

  .ts-card__title {
    font-size: 1.2rem;
  }

  .ts-card__body {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .ts-btn {
    padding: var(--space-3) var(--space-4);
    font-size: 0.95rem;
  }

  .page-intro {
    margin-bottom: var(--space-4);
  }

  .page-intro h1 {
    font-size: 1.9rem;
    line-height: 1.15;
  }

  .page-intro p {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  /* Bigger, friendlier tap targets on the picker screens */
  .picker-group h2 {
    font-size: 1.3rem;
  }

  .option-card__icon {
    font-size: 2.1rem;
  }

  .option-card__name {
    font-size: 1.12rem;
  }

  .option-card__desc {
    font-size: 0.95rem;
  }

  .hero-reassurance {
    padding: var(--space-5) var(--space-4);
    margin-bottom: var(--space-4);
  }

  .hero-reassurance__title {
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
  }

  .hero-reassurance__body {
    font-size: 0.95rem;
    margin-bottom: var(--space-3);
  }

  .hero-reassurance__chips {
    gap: var(--space-2);
  }

  .hero-reassurance__chips li {
    padding: var(--space-2) var(--space-3);
    font-size: 0.82rem;
  }

  .wizard-progress {
    margin-bottom: var(--space-4);
  }

  .wizard-progress__step span:last-child {
    display: none;
  }

  .picker-group {
    padding: var(--space-4);
  }

  .picker-group--standalone {
    padding: var(--space-5) var(--space-4);
  }

  .wizard-panel[data-wizard-panel="guide"] {
    max-width: none;
  }

  /* Mobile guide = one immersive screen: a short instruction on top, then a
     big, real phone (the whole screen visible — it looks like your phone),
     with a spotlight + finger on exactly where to tap, then a big Next.
     The phone fills all the height left over, so it's as large (and legible)
     as possible. Nothing scrolls, nothing is hidden behind a tap. */
  /* On the guide the breadcrumb is hidden, so the phone gets its space. */
  body.on-guide .wizard-progress {
    display: none;
  }

  .guide-panel {
    height: calc(100dvh - 100px);
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: var(--space-2);
    justify-content: flex-start;
  }

  .step-head {
    flex: 0 0 auto;
    gap: var(--space-1);
  }

  /* Centre the icon+title as one glanceable header on phones. */
  .step-head__row {
    justify-content: center;
    text-align: center;
    gap: var(--space-2);
  }

  .step-head__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .step-head__icon svg {
    width: 21px;
    height: 21px;
  }

  .step-head__text {
    flex: 0 1 auto;
  }

  .step-head__title {
    font-size: 1.32rem;
  }

  /* Description steps back so the title + picture carry the moment. */
  .step-body {
    opacity: 0.82;
  }

  .phone-frame-shell {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    align-items: center;
  }

  .phone-frame {
    height: 100% !important;
    width: auto !important;
    aspect-ratio: 220 / 462;
    max-width: 96vw;
    --phone-scale: 1;
    border-radius: 34px !important;
    padding: 9px !important;
  }

  .phone-frame__notch {
    display: block;
  }

  /* Description: shown in full for normal steps. Only the rare long one is
     clamped, and the phone flexes to give the text the room it needs. */
  .step-body {
    flex: 0 0 auto;
    font-size: 0.86rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .step-text__warning {
    flex: 0 0 auto;
    font-size: 0.76rem;
    padding: var(--space-1) var(--space-3);
  }

  .step-nav {
    flex: 0 0 auto;
    margin-top: 0;
  }
}

/* Short phones (e.g. iPhone SE): reclaim every pixel for the phone — drop the
   secondary description and tighten, so the mockup stays as big as possible. */
@media (max-width: 599px) and (max-height: 700px) {
  .guide-panel {
    height: calc(100dvh - 92px);
    padding: var(--space-2) var(--space-4) var(--space-3);
  }

  .step-body {
    display: none;
  }

  .step-head {
    gap: 2px;
  }

  .step-head__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .step-head__icon svg {
    width: 18px;
    height: 18px;
  }

  .step-head__title {
    font-size: 1.15rem;
  }

  .step-head__eyebrow {
    margin-top: 0;
  }
}

/* Quiet data-provenance line at the very bottom of the page. */
.db-note {
  margin: var(--space-6) auto var(--space-4);
  max-width: 640px;
  padding: 0 var(--space-4);
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.db-note[hidden] {
  display: none;
}
