:root {
  /* Primary brand colors */
  --lab-green: #003b01;
  --lab-green-light: #0f5c14;
  --lab-light-green: #e3fbef;
  /* Secondary colors */
  --lab-orange: #f46f06;
  --lab-orange-light: #fef7e7;
  --lab-blue: #196ffb;
  --lab-blue-light: #e3f5fd;
  /* UI colors (from brand guidelines) */
  --lab-cta: #584aff;
  --lab-ui-support: #d0d7e1;
  --lab-ui-support-light: #eceff3;
  --lab-cream: #f6f5f0;
  --lab-ink: #101828;
  --lab-muted: #4c5557;
  --lab-border: #e3e3dc;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  color: var(--lab-ink);
  background: var(--lab-cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo,
.name,
.bike-name,
.subject,
.email-greeting,
.lead,
.tradein-bike {
  font-family:
    "Space Grotesk",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--lab-green);
  color: #fff;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.analytics-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.analytics-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.topbar .logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.topbar .logo span {
  color: var(--lab-light-green);
}

.topbar .tag {
  font-size: 0.8rem;
  color: #cfe6cf;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Landing page ---------- */
.hero {
  text-align: center;
  padding: 64px 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--lab-green);
}

.hero p {
  font-size: 1.05rem;
  color: var(--lab-muted);
  line-height: 1.6;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.person-card {
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
  display: block;
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 59, 1, 0.14);
  border-color: var(--lab-green);
}

.person-card .photo-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dfe7de;
}

.person-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-card .info {
  padding: 18px 14px 22px;
}

.person-card .name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.person-card .role {
  font-size: 0.85rem;
  color: var(--lab-muted);
  margin: 0 0 2px;
}

.person-card .company {
  font-size: 0.78rem;
  color: var(--lab-green-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.person-card .cta {
  margin-top: 12px;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lab-green);
}

.person-card .cta::after {
  content: " →";
}

/* ---------- Person / email preview page (single-screen, no scroll) ---------- */
.person-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topbar--compact {
  padding: 10px 24px;
  flex: 0 0 auto;
}

.topbar--compact .back-link {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

.email-frame {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
}

.email-window {
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.email-chrome {
  background: #f1f1ec;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--lab-border);
  flex: 0 0 auto;
}

.email-chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d0d0c8;
  flex: 0 0 auto;
}

.email-meta {
  padding: 8px 20px 8px;
  border-bottom: 1px solid var(--lab-border);
  flex: 0 0 auto;
}

.email-meta .subject {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--lab-ink);
  margin: 0 0 4px;
}

.email-meta .row {
  font-size: 0.7rem;
  color: var(--lab-muted);
  display: flex;
  gap: 6px;
  margin: 1px 0;
}

.email-meta .row b {
  color: var(--lab-ink);
  font-weight: 600;
}

.email-body {
  padding: 12px 22px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.email-brandbar {
  background: var(--lab-green);
  color: #fff;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}

.email-brandbar .logo {
  font-weight: 800;
  font-size: 0.94rem;
}

.email-brandbar .logo span {
  color: var(--lab-light-green);
}

.email-greeting {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--lab-green);
}

.email-intro {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #333;
  margin: 0 0 12px;
}

.email-intro strong {
  color: var(--lab-green);
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.rec-card {
  display: flex;
  gap: 10px;
  border: 1px solid var(--lab-border);
  border-radius: 10px;
  padding: 7px 10px;
  align-items: center;
  background: #fbfbf8;
}

.rec-card .num {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lab-green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-card .thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #e7e7de;
}

.rec-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rec-card .details {
  flex: 1;
  min-width: 0;
}

.rec-card .bike-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 1px;
}

.rec-card .bike-type {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lab-green-light);
  font-weight: 700;
  margin: 0 0 3px;
}

.rec-card .bike-blurb {
  font-size: 0.86rem;
  color: var(--lab-muted);
  line-height: 1.45;
  margin: 0 0 4px;
}

.rec-card .price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lab-ink);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 0;
}

.price-old {
  font-size: 0.8rem;
  color: #9aa0a0;
  text-decoration: line-through;
}

.price-new {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lab-green);
}

.price-badge {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--lab-light-green);
  color: var(--lab-green);
  padding: 2px 8px;
  border-radius: 999px;
}

.price-regular {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lab-ink);
}

.tradein-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--lab-light-green);
  border: 1px solid #bfe9d3;
  border-radius: 12px;
  padding: 10px 16px;
  margin: 0 0 14px;
}

.tradein-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tradein-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lab-green-light);
  font-weight: 700;
  margin-bottom: 1px;
}

.tradein-bike {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--lab-ink);
}

.tradein-bike.highlight {
  color: var(--lab-green);
}

.tradein-rrp {
  font-size: 0.72rem;
  color: #9aa0a0;
  text-decoration: line-through;
  line-height: 1.3;
}

.tradein-arrow {
  font-size: 1.1rem;
  color: var(--lab-green);
  font-weight: 700;
}

@media (max-width: 480px) {
  .tradein-banner {
    flex-direction: column;
    gap: 6px;
  }
  .tradein-arrow {
    transform: rotate(90deg);
  }
}

.email-cta-block {
  text-align: center;
  padding: 4px 4px 4px;
}

.email-cta-block p.lead {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--lab-ink);
  margin: 0 0 3px;
}

.email-cta-block p.sub {
  font-size: 0.8rem;
  color: var(--lab-muted);
  margin: 0 0 12px;
}

.cta-button {
  display: inline-block;
  background: var(--lab-cta);
  color: #fff;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(88, 74, 255, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(88, 74, 255, 0.48);
}

.cta-caption {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--lab-muted);
}

.email-footer {
  background: #f1f1ec;
  padding: 18px 32px;
  font-size: 0.72rem;
  color: #9aa0a0;
  text-align: center;
  border-top: 1px solid var(--lab-border);
}

.email-signoff {
  text-align: center;
  font-size: 0.95rem;
  color: var(--lab-green);
  line-height: 1.6;
  margin: 0 0 28px;
}

.urgency-banner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.urgency-banner .inner {
  margin-top: 18px;
  background: var(--lab-orange-light);
  border: 1px solid #f9d9ad;
  color: #b25405;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
}

/* ---------- Placeholder deal page ---------- */
.placeholder-wrap {
  max-width: 640px;
  margin: 90px auto;
  text-align: center;
  padding: 0 24px;
}

.placeholder-wrap h1 {
  color: var(--lab-green);
  font-size: 1.8rem;
}

.placeholder-wrap p {
  color: var(--lab-muted);
  line-height: 1.6;
}

.pill {
  display: inline-block;
  background: var(--lab-light-green);
  color: var(--lab-green);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

@media (max-width: 520px) {
  .topbar {
    padding: 14px 20px;
  }
  .email-body,
  .email-meta,
  .email-brandbar,
  .email-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .rec-card {
    flex-wrap: wrap;
  }
}

/* ---------- Deal page ---------- */
.deal-page .topbar .back-link {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
}

.deal-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  text-align: center;
}

.deal-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--lab-green);
  margin: 0 0 8px;
}

.deal-hero p {
  color: var(--lab-muted);
  font-size: 1rem;
  margin: 0;
}

/* Highway step nav */
.highway {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1000px;
  margin: 28px auto 8px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  background: var(--lab-cream);
  z-index: 10;
  padding-top: 14px;
  padding-bottom: 14px;
}

.highway-step {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--lab-muted);
  font-weight: 700;
  font-size: 0.84rem;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.highway-step.is-active {
  opacity: 1;
  color: var(--lab-green);
}

.highway-step .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  flex: 0 0 auto;
}

.highway-step.is-active .step-num {
  background: var(--lab-green);
  color: #fff;
  border-color: var(--lab-green);
}

.highway-line {
  width: 32px;
  height: 2px;
  background: var(--lab-border);
  flex: 0 0 auto;
}

.highway-step .step-label {
  display: none;
}

@media (min-width: 640px) {
  .highway-step .step-label {
    display: inline;
  }
}

/* Deal sections */
.deal-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  scroll-margin-top: 90px;
}

.deal-section--tint {
  background: var(--lab-light-green);
  max-width: 100%;
  border-radius: 0;
}

.deal-section--tint .deal-section-head,
.deal-section--tint .bike-grid,
.deal-section--tint .second-bike-banner {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.deal-section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab-cta);
  margin-bottom: 8px;
}

.deal-section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lab-green);
  margin: 0 0 8px;
}

.deal-section-head p {
  color: var(--lab-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Step 1: choice cards */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 20px;
}

.choice-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--lab-border);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.08);
}

.choice-card.is-selected {
  border-color: var(--lab-green);
  background: var(--lab-light-green);
}

.reco-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lab-orange);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.choice-icon {
  font-size: 1.6rem;
}

.choice-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lab-ink);
}

.choice-copy {
  font-size: 0.82rem;
  color: var(--lab-muted);
  line-height: 1.4;
}

[data-active-flow="trade_in"] .flow-detail--trade_in {
  display: flex;
}

[data-active-flow="buyout"] .flow-detail--buyout {
  display: flex;
}

/* Step 2: bike grid */
.bike-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 760px) {
  .bike-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .bike-grid {
    grid-template-columns: 1fr;
  }
}

.bike-card {
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.bike-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.1);
}

.bike-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #e7e7de;
}

.bike-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.match-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 59, 1, 0.85);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 1;
}

.bike-info {
  padding: 12px 14px 6px;
  flex: 1 1 auto;
}

.bike-info .bike-type {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lab-green-light);
  font-weight: 700;
  margin: 0 0 2px;
}

.bike-info .bike-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.bike-info .bike-blurb {
  font-size: 0.78rem;
  color: var(--lab-muted);
  line-height: 1.4;
  margin: 0 0 8px;
}

.bike-info .price {
  margin: 0;
}

.price--trade_in,
.price--buyout {
  display: none;
}

[data-active-flow="trade_in"] .price--trade_in {
  display: block;
}

[data-active-flow="buyout"] .price--buyout {
  display: block;
}

/* Second bike banner */
.second-bike-banner {
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.second-bike-tag {
  display: none;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lab-cta);
  margin-bottom: 4px;
}

[data-active-flow="trade_in"] .second-bike-tag--trade_in,
[data-active-flow="buyout"] .second-bike-tag--buyout {
  display: inline-block;
}

.second-bike-headline {
  display: none;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lab-ink);
  margin: 0 0 4px;
}

[data-active-flow="trade_in"] .second-bike-headline--trade_in,
[data-active-flow="buyout"] .second-bike-headline--buyout {
  display: block;
}

.second-bike-body {
  display: none;
  font-size: 0.86rem;
  color: var(--lab-muted);
  margin: 0;
  max-width: 480px;
}

[data-active-flow="trade_in"] .second-bike-body--trade_in,
[data-active-flow="buyout"] .second-bike-body--buyout {
  display: block;
}

.cta-button--ghost {
  background: transparent;
  color: var(--lab-cta);
  border: 2px solid var(--lab-cta);
  box-shadow: none;
  font-family: inherit;
  cursor: pointer;
}

.cta-button--ghost:hover {
  background: var(--lab-cta);
  color: #fff;
  transform: translateY(-2px);
}

/* Step 3: family add-on card */
.addon-card {
  max-width: 640px;
  margin: 0 auto 24px;
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.addon-thumb {
  width: 110px;
  height: 90px;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #e7e7de;
}

.addon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.addon-info {
  flex: 1 1 auto;
}

.addon-info .bike-type,
.addon-info .bike-name,
.addon-info .bike-blurb {
  margin: 0 0 3px;
}

.deal-final-cta {
  text-align: center;
  padding-top: 8px;
}

@media (max-width: 560px) {
  .choice-cards {
    grid-template-columns: 1fr;
  }
  .addon-card {
    flex-direction: column;
    text-align: center;
  }
}

/* BikeBuddy live-chat handoff */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.chat-live-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 250px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, var(--lab-green), #075d29);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 11px 14px;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(0, 59, 1, 0.3);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.chat-live-link:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(0, 59, 1, 0.38);
}

.chat-live-link:focus-visible {
  outline: 3px solid var(--lab-orange);
  outline-offset: 3px;
}

.chat-live-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.15rem;
}

.chat-live-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.chat-live-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 600;
}

.chat-live-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
}

.chat-live-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  transition: transform 0.18s ease;
}

.chat-live-link:hover .chat-live-arrow {
  transform: translateX(3px);
}

/* ---------- Deal page: conversion steering & visual polish ---------- */

/* Hero: more deliberate type hierarchy + soft brand gradient */
.deal-page {
  background:
    radial-gradient(
      900px 420px at 50% -120px,
      rgba(227, 251, 239, 0.9),
      rgba(246, 245, 240, 0) 70%
    ),
    var(--lab-cream);
}

.deal-hero {
  max-width: 780px;
  padding: 56px 24px 12px;
}

.deal-hero h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.deal-hero > p {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto;
}

.deal-hero-sub {
  margin: 10px auto 0;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--lab-muted);
}

.social-proof {
  margin: 8px auto 0;
  font-size: 0.78rem;
  color: var(--lab-muted);
  opacity: 0.8;
}

/* Section rhythm */
.deal-section {
  max-width: 1000px;
  padding: 44px 24px 56px;
}

.deal-section-head h2 {
  font-size: 1.85rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.deal-section-head p {
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 560px;
}

.section-kicker {
  letter-spacing: 0.1em;
}

/* Bike status & transparency panel */

.status-badge--time {
  background: #fff;
  border-color: var(--lab-ui-support);
  color: var(--lab-muted);
}

.status-badge--ok {
  background: var(--lab-light-green);
  border-color: rgba(15, 92, 20, 0.25);
  color: var(--lab-green);
}

.status-badge--ok::before {
  content: "✓";
  font-size: 0.74rem;
}

.status-badge--warn {
  background: var(--lab-orange-light);
  border-color: rgba(244, 111, 6, 0.3);
  color: #9a4703;
}

.status-badge--warn::before {
  content: "!";
  font-weight: 800;
}

.status-note-eyebrow {
  margin: 0 0 4px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lab-cta);
}

.status-note-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.status-note-body {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--lab-muted);
}

.status-note-footnote {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--lab-muted);
  opacity: 0.7;
}

/* Choice cards: recommended badge now follows the active flow */
.reco-badge {
  display: none;
  box-shadow: 0 4px 12px rgba(244, 111, 6, 0.3);
}

/* Badge follows the steering direction, never the rider's own selection. */
[data-steer-flow="trade_in"] .reco-badge--trade_in,
[data-steer-flow="buyout"] .reco-badge--buyout {
  display: inline-block;
}

.choice-card {
  padding: 26px 20px 22px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
}

.choice-card.is-selected {
  box-shadow: 0 12px 28px rgba(0, 59, 1, 0.12);
}

/* Flow detail strip */

/* Peace-of-mind comparison */

[data-active-flow="trade_in"] .compare-col--trade_in,
[data-active-flow="buyout"] .compare-col--buyout {
  background: #fff;
  border-color: var(--lab-green);
  box-shadow: 0 14px 30px rgba(0, 59, 1, 0.12);
}

[data-active-flow="trade_in"] .compare-col--trade_in .compare-reco,
[data-active-flow="buyout"]
  .compare-col--buyout
  [data-active-flow="trade_in"]
  .compare-col--trade_in
  .compare-title,
[data-active-flow="buyout"] .compare-col--buyout .compare-price-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--lab-muted);
}

.compare-price-value {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lab-green);
  text-align: right;
}

/* CTA hierarchy */
.cta-stack {
  text-align: center;
}

.cta-stack-set {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

[data-active-flow="trade_in"] .cta-stack-set--trade_in,
[data-active-flow="buyout"] .cta-stack-set--buyout {
  display: flex;
}

.cta-button--primary {
  font-size: 1rem;
  padding: 15px 34px;
  letter-spacing: -0.01em;
}

.cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(88, 74, 255, 0.42);
}

.cta-secondary {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--lab-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--lab-ui-support);
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

.cta-secondary:hover {
  color: var(--lab-ink);
  text-decoration-color: var(--lab-muted);
}

/* Incentive & benefits section */

[data-active-flow="trade_in"] .loyalty-block--trade_in,
[data-active-flow="buyout"] .loyalty-block--buyout {
  display: block;
}

.loyalty-total-value {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lab-light-green);
  letter-spacing: -0.02em;
}

.loyalty-total-label {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* Step 2 & 3 polish */
.deal-section--tint {
  background: linear-gradient(180deg, var(--lab-light-green), #f1fdf6);
  border-top: 1px solid rgba(0, 59, 1, 0.07);
  border-bottom: 1px solid rgba(0, 59, 1, 0.07);
}

.deal-section--tint .deal-section-head,
.deal-section--tint .bike-grid,
.deal-section--tint .second-bike-banner {
  max-width: 1000px;
}

.bike-card,
.second-bike-banner,
.addon-card {
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.bike-info .bike-name {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.second-bike-banner {
  padding: 24px 28px;
}

.deal-final-cta {
  padding-top: 16px;
}

@media (max-width: 860px) {
  .deal-hero h1 {
    font-size: 2rem;
  }
}

/* ---------- Deal page: horizontal step wizard ---------- */
.wizard {
  padding-bottom: 96px;
}

.deal-page .deal-section[data-step] {
  display: none;
}

.deal-page[data-active-step="1"] .deal-section[data-step="1"],
.deal-page[data-active-step="2"] .deal-section[data-step="2"],
.deal-page[data-active-step="3"] .deal-section[data-step="3"],
.deal-page[data-active-step="4"] .deal-section[data-step="4"] {
  display: block;
  animation: stepIn 0.2s ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.deal-page[data-step-direction="back"] .deal-section[data-step] {
  animation-name: stepInBack;
}

@keyframes stepInBack {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Highway pills are now navigation controls */
.highway-step {
  background: none;
  border: none;
  padding: 4px 6px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.highway-step:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.highway-step:focus-visible {
  outline: 2px solid var(--lab-cta);
  outline-offset: 2px;
}

/* Bottom Back / Next control bar */
.step-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(246, 245, 240, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--lab-border);
}

.step-nav-progress {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lab-muted);
}

.step-nav-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.94rem;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid var(--lab-cta);
  background: var(--lab-cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 74, 255, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.step-nav-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(88, 74, 255, 0.48);
}

.step-nav-btn--back {
  background: transparent;
  color: var(--lab-cta);
  box-shadow: none;
}

.step-nav-btn--back:hover {
  background: rgba(88, 74, 255, 0.08);
  box-shadow: none;
}

.step-nav-btn.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .step-nav-progress {
    display: none;
  }
  .step-nav-btn {
    padding: 11px 20px;
    font-size: 0.86rem;
  }
}

/* ---------- Deal step 1: single decision module ---------- */
/* Replaces the old status panel + choice cards + flow detail + comparison +
   loyalty sections, which all asked the same binary question. */

.context-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--lab-border);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--lab-muted);
}

.context-eyebrow {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--lab-green-light);
}

.context-model {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--lab-ink);
}

.context-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lab-ui-support);
}

.context-fact strong {
  color: var(--lab-ink);
  font-weight: 600;
}

.context-flag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.context-flag.is-ok {
  background: var(--lab-light-green);
  color: var(--lab-green);
}

.context-flag.is-warn {
  background: var(--lab-orange-light);
  color: var(--lab-orange);
}

.decision-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 22px;
}

.decision-head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--lab-green);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.decision-head p {
  margin: 0;
  color: var(--lab-muted);
  font-size: 0.94rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 26px;
  align-items: start;
}

@media (max-width: 720px) {
  .decision-grid {
    grid-template-columns: 1fr;
  }
}

/* The cards are the choice AND the comparison. Selected = recommended path. */
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--lab-border);
  border-radius: 16px;
  padding: 22px 22px 18px;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.choice-card:hover {
  border-color: var(--lab-green-light);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.choice-card:focus-visible {
  outline: 2px solid var(--lab-cta);
  outline-offset: 3px;
}

.choice-card.is-selected {
  border-color: var(--lab-green);
  box-shadow: 0 16px 36px rgba(0, 59, 1, 0.13);
  background: linear-gradient(180deg, #fff 0%, var(--lab-light-green) 100%);
}

/* Two independent states.
   - The badge marks what WE steer towards (data-steer-flow, from the BMS
     score). It never moves when the rider clicks.
   - The tick marks what the RIDER picked (.is-selected). */
.reco-badge,
.choice-tick {
  display: none;
}

[data-steer-flow="trade_in"] .choice-card[data-flow="trade_in"] .reco-badge,
[data-steer-flow="buyout"] .choice-card[data-flow="buyout"] .reco-badge {
  display: inline-flex;
}

.choice-card.is-selected .choice-tick {
  display: inline-flex;
}

/* The steered card keeps a quiet lift even when the rider picks the other
   one, so the recommendation stays legible as a recommendation. */
[data-steer-flow="trade_in"] .choice-card[data-flow="trade_in"],
[data-steer-flow="buyout"] .choice-card[data-flow="buyout"] {
  border-color: var(--lab-green-light);
}

.choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.choice-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--lab-ink);
  line-height: 1.2;
}

.choice-card.is-selected .choice-title {
  color: var(--lab-green);
}

.choice-tick {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lab-green);
  color: #fff;
  font-size: 0.74rem;
  align-items: center;
  justify-content: center;
}

.choice-summary {
  font-size: 0.86rem;
  color: var(--lab-muted);
  line-height: 1.45;
}

.choice-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--lab-border);
}

.choice-price-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab-green-light);
}

.choice-price-value {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lab-ink);
  line-height: 1.2;
}

.choice-card.is-selected .choice-price-value {
  color: var(--lab-green);
}

.choice-bullets {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.choice-bullets li {
  display: flex;
  gap: 9px;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--lab-muted);
}

.choice-bullets li.is-ok {
  color: var(--lab-ink);
}

.choice-mark {
  flex: 0 0 auto;
  width: 16px;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--lab-ui-support);
}

.choice-bullets li.is-ok .choice-mark {
  color: var(--lab-green);
}

/* Cost-realism note, shown where it is actually relevant: the buyout card. */
.choice-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lab-muted);
  background: var(--lab-orange-light);
  border-left: 3px solid var(--lab-orange);
  border-radius: 0 8px 8px 0;
  padding: 9px 12px;
}

/* Progressive disclosure keeps the three-tier detail available but quiet. */
.choice-includes {
  margin-top: 2px;
  border-top: 1px solid var(--lab-border);
  padding-top: 10px;
}

.choice-includes summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lab-cta);
  display: flex;
  align-items: center;
  gap: 6px;
}

.choice-includes summary::-webkit-details-marker {
  display: none;
}

.choice-includes summary::after {
  content: "▾";
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.choice-includes[open] summary::after {
  transform: rotate(180deg);
}

.choice-includes-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.choice-includes-math {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--lab-green);
  background: var(--lab-light-green);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.4;
}

.choice-includes-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.choice-includes-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--lab-light-green);
  color: var(--lab-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-includes-icon svg {
  width: 14px;
  height: 14px;
}

.choice-includes-title {
  margin: 0 0 2px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--lab-ink);
  line-height: 1.35;
}

.choice-includes-text {
  margin: 0;
  font-size: 0.75rem;
  color: var(--lab-muted);
  line-height: 1.45;
}

.decision-cta {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.decision-footnote {
  margin: 14px 0 0;
  font-size: 0.68rem;
  color: var(--lab-muted);
  opacity: 0.75;
}

/* Bike cards in step 2 are selectable directly, so the five competing
   "Select this bike" buttons are gone. */
.bike-card {
  position: relative;
  cursor: pointer;
}

.bike-card:focus-visible {
  outline: 2px solid var(--lab-cta);
  outline-offset: 3px;
}

.bike-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lab-green);
  color: #fff;
  font-size: 0.78rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 59, 1, 0.3);
}

.bike-card.is-selected {
  border-color: var(--lab-green);
  box-shadow: 0 16px 32px rgba(0, 59, 1, 0.14);
}

.bike-card.is-selected .bike-tick {
  display: flex;
}

.bike-info {
  padding-bottom: 14px;
}

/* ---------- Bottom navigation vs. chat widget separation ---------- */
/* The step nav is a full-width bar; the chat toggle floats clear above it
   so it can never sit on top of the Next button. */
.step-nav {
  max-width: none;
  padding: 0;
  background: rgba(246, 245, 240, 0.97);
  border-top: 1px solid var(--lab-border);
  box-shadow: 0 -4px 20px rgba(16, 24, 40, 0.06);
}

.step-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
}

.wizard {
  padding-bottom: 96px;
}

.chat-widget {
  bottom: 92px;
}

/* ---------- Deal step 3: two-bike sets ---------- */

.set-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto 32px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .set-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

.set-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--lab-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.set-card:hover {
  border-color: var(--lab-green-light);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}

.set-card:focus-visible {
  outline: 2px solid var(--lab-cta);
  outline-offset: 3px;
}

.set-card.is-selected {
  border-color: var(--lab-green);
  box-shadow: 0 16px 34px rgba(0, 59, 1, 0.14);
}

.set-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lab-green);
  color: #fff;
  font-size: 0.78rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 59, 1, 0.3);
}

.set-card.is-selected .set-tick {
  display: flex;
}

/* Two thumbnails side by side make the "set" idea readable at a glance. */
.set-thumbs {
  display: flex;
  gap: 2px;
  background: var(--lab-border);
  height: 128px;
}

.set-thumb {
  flex: 1;
  overflow: hidden;
  background: var(--lab-cream);
}

.set-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.set-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  flex: 1;
}

.set-tagline {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab-green-light);
}

.set-title {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--lab-ink);
  line-height: 1.25;
}

.set-card.is-selected .set-title {
  color: var(--lab-green);
}

.set-why {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--lab-muted);
}

.set-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.set-list li {
  font-size: 0.78rem;
  color: var(--lab-ink);
  line-height: 1.35;
}

.set-list-type {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lab-green);
  background: var(--lab-light-green);
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 5px;
}

.set-price {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.set-saving {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--lab-orange);
  background: var(--lab-orange-light);
  border-radius: 999px;
  padding: 3px 9px;
}

/* Bundle savings only exist on the trade-in path. */
[data-active-flow="buyout"] .set-saving {
  display: none;
}

/* ---------- Deal step 4: the voucher ---------- */

.voucher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 28px;
  align-items: stretch;
}

@media (max-width: 780px) {
  .voucher-grid {
    grid-template-columns: 1fr;
  }
}

/* Styled as a physical coupon: notched edge, dashed tear line. */
.voucher {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px dashed var(--lab-border);
  border-radius: 16px;
  padding: 22px 24px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.voucher:hover {
  border-color: var(--lab-green-light);
  transform: translateY(-2px);
}

.voucher:focus-visible {
  outline: 2px solid var(--lab-cta);
  outline-offset: 3px;
}

.voucher.is-selected {
  border-color: var(--lab-green);
  border-style: solid;
  background: linear-gradient(180deg, #fff 0%, var(--lab-light-green) 100%);
  box-shadow: 0 18px 38px rgba(0, 59, 1, 0.15);
}

.voucher-flag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--lab-orange);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 0 14px 0 12px;
}

.voucher-tick {
  position: absolute;
  bottom: 18px;
  right: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lab-green);
  color: #fff;
  font-size: 0.78rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.voucher.is-selected .voucher-tick {
  display: flex;
}

.voucher-kicker {
  margin: 0 0 2px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab-green-light);
}

.voucher-total {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--lab-green);
  letter-spacing: -0.02em;
}

.voucher-sub {
  margin: 4px 0 14px;
  font-size: 0.8rem;
  color: var(--lab-muted);
}

/* The three-tier allocation, shown so the number is credible, not magic. */
.voucher-tiers {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--lab-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voucher-tiers li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--lab-muted);
  opacity: 0.55;
}

.voucher-tiers li.is-full {
  opacity: 1;
}

.voucher-tier-val {
  flex: 0 0 52px;
  font-weight: 800;
  color: var(--lab-ink);
  font-size: 0.85rem;
}

.voucher-tier-txt {
  line-height: 1.35;
}

.voucher-note {
  margin: 14px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--lab-muted);
  padding-right: 34px;
}

.claim {
  max-width: 860px;
  margin: 0 auto 26px;
  text-align: center;
}

.claim-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.claim-caption {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--lab-muted);
}

.claim-status {
  margin: 10px 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--lab-green);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.claim-status.is-visible {
  opacity: 1;
}

/* The voucher is worthless without a dealer, so the handoff is explicit. */
.dealer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 22px;
  background: var(--lab-cream);
  border: 1px solid var(--lab-border);
  border-radius: 14px;
}

.dealer-main {
  flex: 0 0 auto;
}

.dealer-kicker {
  margin: 0 0 2px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lab-green-light);
}

.dealer-name {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--lab-ink);
}

.dealer-meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--lab-muted);
}

.dealer-alt {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--lab-muted);
  padding-left: 20px;
  border-left: 1px solid var(--lab-border);
}

@media (max-width: 640px) {
  .dealer-alt {
    padding-left: 0;
    border-left: none;
  }
}
