/* =========================================================================
   NorShip — shared stylesheet
   Placeholder brand: "NorShip" (rename trivially via grep)
   Palette: Norwegian navy, accent red, ocean blue, warm sand.
   ========================================================================= */

:root {
  --navy: #0B2545;
  --navy-deep: #061a36;
  --navy-soft: #1a3a66;
  --red: #C8102E;
  --red-soft: #e23b56;
  --ocean: #4A90E2;
  --sand: #F5EFE6;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #14181F;
  --text-muted: #5B6470;
  --border: #E4E7EB;
  --border-strong: #C9CFD7;
  --success: #15803D;
  --warning: #B45309;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, 0.08), 0 2px 4px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 12px 32px rgba(11, 37, 69, 0.12), 0 4px 8px rgba(11, 37, 69, 0.04);
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --container-narrow: 880px;
}

* { box-sizing: border-box; }

/* The HTML `hidden` attribute is overridden when elements have explicit
   display rules (grid, flex, etc.). Force display: none whenever hidden
   is set, so the JS `el.hidden = true` actually hides the element. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--bg { background: var(--surface); }
.section--navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.85); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 12px 24px; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); padding: 12px 24px; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
/* Legacy text-mark (kept as fallback if image fails to load) */
.nav__brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--ocean));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.9rem;
}
.nav__brand-mark::after { content: "N"; }

/* New logo image — primary brand mark in nav */
.nav__logo {
  height: 40px;
  width: auto;
  display: block;
  /* Image already has tight crop; this ensures consistent vertical rhythm. */
}
@media (max-width: 880px) {
  .nav__logo { height: 34px; }
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--red); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: transform .2s ease;
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links,
  .nav.open .nav__cta {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 70%, #041125 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(74,144,226,0.18), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(200,16,46,0.10), transparent 40%);
  pointer-events: none;
  z-index: 1;
}
/* US flag overlay — save your flag photo as /images/hero-flag.png.
   Tweak opacity below to dial intensity (0.10 = very subtle, 0.30 = bold). */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/images/hero-flag.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.hero__grid { z-index: 2; }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 540px; }
.hero__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__flags {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 24px;
}
.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hero__card h3 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.hero__address-line {
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #E8EEF7;
  margin-bottom: 8px;
}
.hero__address-line strong { color: var(--ocean); }
.hero__card-note { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 12px 0 0; }

@media (max-width: 880px) {
  .hero { padding: 64px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Feature grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--ocean));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); margin: 0; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px; left: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 12px; }
.step p { color: var(--text-muted); margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Section heading ---------- */
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head p { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.trust__stat { text-align: center; }
.trust__num { font-size: 2rem; font-weight: 800; color: var(--navy); display: block; }
.trust__label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 880px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-strip__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 880px) {
  .cta-strip { grid-template-columns: 1fr; padding: 32px 24px; }
  .cta-strip__actions { justify-content: flex-start; }
}

/* ---------- Forms ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form__row--full { grid-template-columns: 1fr; }
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form__group label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.form__group .hint { font-size: 0.82rem; color: var(--text-muted); }
.form__group input,
.form__group select,
.form__group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,0.12);
}
.form__group textarea { min-height: 110px; resize: vertical; }
.form__actions { margin-top: 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form__status { font-size: 0.95rem; }
.form__status.success { color: var(--success); }
.form__status.error { color: var(--red); }
@media (max-width: 700px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Tables / pricing ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--bg); }
.price-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.pricing-card--featured { border-color: var(--red); }
.pricing-card__badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--red); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.pricing-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 24px 0 0; }
.pricing-card li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  position: absolute; left: 4px; top: 10px;
}
@media (max-width: 880px) { .pricing-cards { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  /* minmax(0, ...) prevents grid tracks from expanding past viewport width
     when children (e.g. long <select> options, wide bracket labels) have
     intrinsic content wider than the track. */
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.calc__form,
.calc__results { min-width: 0; }         /* let grid items shrink below content */
/* Force every form control inside the calculator to obey its container's
   width, even when the <select> options carry huge intrinsic min-widths
   (long labels like the pickup-zone list would otherwise blow the layout). */
.calc__form .form__group,
.calc__form .form__row { min-width: 0; }
.calc__form select,
.calc__form input,
.calc__form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.calc__form { padding: 32px; }
.calc__results {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 32px;
}
.calc__results h3 { color: #fff; }
.calc__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  font-size: 0.95rem;
}
.calc__line:last-of-type { border-bottom: none; }
.calc__line span:first-child { color: rgba(255,255,255,0.78); }
.calc__line span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__total {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc__total .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.calc__total .value { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc__disclaimer { font-size: 0.8rem; opacity: 0.7; margin-top: 16px; }
.calc__mode { display: flex; gap: 8px; margin-bottom: 16px; }
.calc__mode label {
  flex: 1; cursor: pointer;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .15s ease;
}
.calc__mode input { display: none; }
.calc__mode input:checked + label-content,
.calc__mode label.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 880px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 400;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--bg); }
.faq__body { padding: 0 24px 20px; color: var(--text-muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__brand { color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 12px; display: block; }
.footer__tag { font-size: 0.95rem; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.site-footer a:hover { color: var(--red-soft); }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page header (for inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 56px;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 640px; }

/* Car-import header: single composed image with the classic Mustang on the
   left and F-150 Lightning on the right, dark studio background with the
   negative space in the middle reserved for the headline.
   Save as /images/cars-hero.png. Wide landscape (≥1800px) PNG. */
.page-header--cars {
  position: relative;
  overflow: hidden;
  /* Slightly taller so the cars have room to breathe */
  padding-top: 96px;
  padding-bottom: 96px;
}
.page-header--cars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/images/cars-hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
/* Subtle navy wash that darkens edges + center for headline contrast */
.page-header--cars::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11,37,69,0.55) 0%, rgba(11,37,69,0.15) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
/* Keep the headline + copy above both layers */
.page-header--cars > .container { position: relative; z-index: 2; }
/* Strong text-shadow so the white type pops against the cars */
.page-header--cars h1,
.page-header--cars p,
.page-header--cars .eyebrow {
  text-shadow: 0 2px 16px rgba(0,0,0,0.65);
}
/* On narrow screens, dial the image down a touch so the text stays punchy */
@media (max-width: 880px) {
  .page-header--cars { padding-top: 64px; padding-bottom: 64px; }
  .page-header--cars::before { opacity: 0.55; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.muted { color: var(--text-muted); }
.tag {
  display: inline-block;
  background: var(--sand);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.prose p { font-size: 1.05rem; }
.prose ul { padding-left: 24px; margin-bottom: 18px; }
.prose li { margin-bottom: 6px; }
.callout {
  background: var(--sand);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout strong { color: var(--navy); }

/* =========================================================================
   v2 — Bracket pricing, tier toggles, signup wizard, tier comparison
   ========================================================================= */

/* ---------- Pill toggle (used for mode + tier on calculator) ---------- */
.pill-toggle {
  display: flex;
  gap: 8px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.pill-toggle input { display: none; }
.pill-toggle label {
  flex: 1 1 0;
  min-width: 0;              /* let it shrink below content width */
  cursor: pointer;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
  overflow-wrap: anywhere;   /* wrap long labels instead of overflowing */
}
.pill-toggle label:hover { color: var(--navy); }
.pill-toggle label.is-active {
  background: var(--navy);
  color: #fff;
}
.pill-toggle--plus label.is-active { background: var(--red); }

.pill-toggle__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -8px 0 18px;
}

/* ---------- Plus-cell highlight in rate tables ---------- */
.price-table th.plus-cell,
.price-table td.plus-cell {
  background: rgba(200, 16, 46, 0.06);
  color: var(--red);
  font-weight: 700;
}
.price-table thead th.plus-cell { color: #fff; background: var(--red); }

/* ---------- Tier comparison cards ---------- */
.tier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.tier-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.tier-card--plus {
  border-color: var(--red);
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}
.tier-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0;
}
.tier-card__price small { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.tier-card__tag {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--red); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
}
.tier-card ul { list-style: none; padding: 0; margin: 20px 0; }
.tier-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.tier-card li:last-child { border-bottom: none; }
.tier-card li::before {
  content: "✓"; color: var(--success); font-weight: 700;
  position: absolute; left: 4px; top: 8px;
}
.tier-card li.dim { color: var(--text-muted); }
.tier-card li.dim::before { content: "—"; color: var(--text-muted); }
@media (max-width: 880px) { .tier-cards { grid-template-columns: 1fr; } }

/* ---------- Calculator v2: brackets + plus-hint ---------- */
.calc__bracket-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-weight: 600;
}
.calc__total .secondary {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.calc__plus-hint {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(200, 16, 46, 0.15);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.4;
}
.calc__plus-hint strong { color: #fff; }

/* Driving-licence weight warnings — different severity for over-4250 kg
   (red, no legal path with Class B) vs 3500–4250 kg EV (yellow, path opens
   in November 2027). */
.license-warning--red    { background: rgba(200, 16, 46, 0.28); color: #ffe4e6; }
.license-warning--yellow { background: rgba(234, 179, 8, 0.24); color: #fef3c7; }

/* ---------- Signup wizard ---------- */
.wizard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.wizard__progress {
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}
.wizard__step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
}
.wizard__step-pill .n {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.wizard__step-pill.is-active { color: var(--navy); }
.wizard__step-pill.is-active .n {
  background: var(--navy); color: #fff;
}
.wizard__step-pill.is-done .n {
  background: var(--success); color: #fff;
}
.wizard__step-pill.is-done .n::before { content: "✓"; }
.wizard__step-pill.is-done .n span { display: none; }
.wizard__divider {
  flex: 1; height: 2px;
  background: var(--border);
  border-radius: 2px;
  max-width: 60px;
}
.wizard__divider.is-done { background: var(--success); }

.wizard__panel { padding: 32px; }
.wizard__panel[hidden] { display: none; }
.wizard__panel h2 { margin-bottom: 4px; }
.wizard__panel > p:first-of-type { color: var(--text-muted); margin-bottom: 24px; }

.wizard__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.wizard__nav .spacer { flex: 1; }

/* Tier-pick cards inside wizard step 3 */
.wizard__tier-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 8px;
}
.wizard__tier-pick label {
  display: block;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s ease, transform .12s ease;
}
.wizard__tier-pick label:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.wizard__tier-pick input { display: none; }
.wizard__tier-pick input:checked + label,
.wizard__tier-pick label.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,0.12);
}
.wizard__tier-pick label[for="tier-plus"].is-active { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,0.12); }
.wizard__tier-pick h4 { margin: 0 0 4px; font-size: 1.05rem; }
.wizard__tier-pick .price {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  margin: 6px 0 12px;
}
.wizard__tier-pick .price small { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.wizard__tier-pick ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.88rem; color: var(--text-muted);
}
.wizard__tier-pick li { padding: 4px 0 4px 16px; position: relative; }
.wizard__tier-pick li::before {
  content: "•"; color: var(--navy); font-weight: 700;
  position: absolute; left: 4px;
}
.wizard__summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.92rem;
  margin-top: 16px;
}
.wizard__summary dt { font-weight: 600; color: var(--navy); display: inline; }
.wizard__summary dd { display: inline; margin: 0 0 0 4px; color: var(--text); }
.wizard__summary div { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.wizard__summary div:last-child { border-bottom: none; }

@media (max-width: 700px) {
  .wizard__tier-pick { grid-template-columns: 1fr; }
  .wizard__progress { font-size: 0.78rem; padding: 12px 16px; gap: 8px; }
  .wizard__divider { max-width: 24px; }
}

/* ---------- Calculator v2 layout: more breathing room ---------- */
.calc .calc__form { padding: 28px; }
.calc .calc__results { padding: 28px; }

/* Mobile scaling for the calculator — tighter padding, wrapping labels,
   compact preset buttons so nothing overflows the viewport. */
@media (max-width: 700px) {
  .calc .calc__form,
  .calc .calc__results { padding: 18px; }
  .calc__form h3,
  .calc__results h3 { font-size: 1.05rem; }
  .calc__line { font-size: 0.88rem; gap: 12px; }
  .calc__line span:last-child { text-align: right; }
  .calc__bracket-label {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .calc__total .value { font-size: 1.35rem; }
  [data-car-preset] { font-size: 0.78rem; padding: 8px 10px; margin: 2px; }
}

/* Ensure long content in narrow result cells never breaks the layout */
.calc__line span { min-width: 0; }
.calc__line span:first-child { flex: 1 1 auto; }
.calc__line span:last-child  { flex: 0 0 auto; white-space: nowrap; }

/* ---------- Size estimator (free product lookup) ---------- */
.estimator {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.estimator__row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.estimator__row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  min-width: 0; /* prevents flex overflow with long URLs */
}
.estimator__row input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,0.12);
}
.estimator__row button { white-space: nowrap; }
.estimator__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.estimator__hint a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin: 0 2px;
}
.estimator__status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.45;
}
.estimator__status--info    { background: #e0f2fe; color: #075985; }
.estimator__status--success { background: #dcfce7; color: #166534; border-left: 3px solid var(--success); }
.estimator__status--warn    { background: #fef3c7; color: #92400e; }
.estimator__status--error   { background: #fee2e2; color: #991b1b; }
.estimator__status .muted   { color: inherit; opacity: 0.75; font-weight: 400; }

@media (max-width: 700px) {
  .estimator__row { flex-direction: column; }
  .estimator__row button { width: 100%; }
}

