:root {
  --navy: #072449;
  --navy-2: #0d335f;
  --ink: #0d1b2f;
  --muted: #5f6f85;
  --line: #dbe4ef;
  --soft: #f4f7fb;
  --soft-2: #eaf1f8;
  --white: #ffffff;
  --amber: #c44900;
  --amber-dark: #a83a00;
  --green: #1e7d48;
  --red: #b42318;
  --shadow: 0 18px 50px rgba(7, 36, 73, 0.16);
  --radius: 8px;
  --max: 1320px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: var(--navy-2);
  text-decoration: none;
}

a:hover {
  color: var(--amber-dark);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
  vertical-align: -0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 228, 239, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: calc(100% - 2rem);
  max-width: var(--max);
  margin: 0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--amber);
  background: #fff3ea;
  border: 1px solid #ffd8bd;
}

.brand-text strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand-text small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.1;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--ink);
  padding: 0.6rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--navy-2);
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

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

.button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 107, 0, 0.45);
  outline-offset: 3px;
}

.button-primary {
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.26);
}

.button-primary:hover {
  color: var(--white);
  background: var(--amber-dark);
}

.button-secondary,
.button-ghost {
  color: var(--navy);
  background: var(--white);
  border-color: #b8c6d7;
}

.button-ghost {
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  background: var(--white);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 36%, rgba(255,255,255,0.38) 57%, rgba(7,36,73,0.1) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(7,36,73,0.16));
}

.hero-inner {
  position: relative;
  width: calc(100% - 2rem);
  max-width: var(--max);
  min-height: 710px;
  margin: 0 auto;
  padding: 4.6rem 0 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.78fr);
  gap: 3.2rem;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--amber-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: 3.75rem;
  max-width: 10ch;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
}

.lead {
  font-size: 1.18rem;
  color: #233551;
}

.hero-copy .lead {
  margin: 1.25rem 0 1rem;
  max-width: 680px;
}

.hero-copy p:not(.eyebrow):not(.lead) {
  color: #314660;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.trust-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.2rem;
  max-width: 590px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.92rem;
}

.hero-calculator {
  align-self: center;
}

.section,
.benefit-band {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--soft);
}

.section-inner {
  width: calc(100% - 2rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 880px;
}

.benefit-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.benefits article,
.guide-card,
.legal-grid article,
.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(7, 36, 73, 0.08);
}

.benefits article {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1.2rem;
}

.benefits .icon,
.guide-card > .icon {
  width: 42px;
  height: 42px;
  padding: 0.7rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
}

.benefits h2 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.benefits p,
.guide-card p,
.steps p,
.prose p,
.source-note,
.calculator-copy,
.field small,
.info-panel p {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 760px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.section-heading p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.steps article {
  position: relative;
  min-height: 220px;
  padding: 2rem 1.4rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.steps .icon {
  width: 64px;
  height: 64px;
  color: var(--navy);
  margin: 0 auto 1rem;
}

.step-number {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

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

.guide-grid-small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  padding: 1.45rem;
}

.guide-card h2,
.guide-card h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.25rem;
  overflow-wrap: break-word;
}

.guide-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 900;
}

.page-hero {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 880px;
  font-size: 3.1rem;
}

.page-hero .lead {
  margin-top: 1rem;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.4rem;
  align-items: start;
}

.calculator-card {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(219, 228, 239, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 100%;
}

.calculator-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.9rem;
}

.calculator-head h2 {
  font-size: 1.65rem;
}

.data-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #cdd9e8;
  background: #f8fbff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.calculator-copy {
  margin-bottom: 1rem;
}

.compact-route-link {
  margin: 0 0 1rem;
}

.calculator-card-compact .form-grid {
  gap: 0.75rem;
}

.calculator-card-compact .field small {
  display: none;
}

.calculator-card-compact .result-region:empty {
  display: none;
}

.route-planner {
  position: relative;
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid #cdd9e8;
  border-radius: var(--radius);
  background: #f8fbff;
}

.route-planner-head,
.route-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.route-planner-head {
  margin-bottom: 0.65rem;
}

.route-planner-head h3 {
  font-size: 1.12rem;
}

.route-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--green);
  background: #e8f6ee;
  font-size: 0.8rem;
  font-weight: 900;
}

.route-planner > p,
.route-actions p {
  color: var(--muted);
  font-size: 0.88rem;
}

.route-form {
  margin-top: 0.85rem;
}

.route-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.5fr) minmax(210px, 1fr) minmax(130px, 0.5fr) minmax(210px, 1fr);
  gap: 0.75rem;
}

.route-city-field {
  position: relative;
}

.city-suggestions {
  position: static;
  display: grid;
  max-height: 220px;
  margin-top: 0.25rem;
  overflow-y: auto;
  border: 1px solid #b8c6d7;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 36, 73, 0.18);
}

.city-suggestions[hidden] {
  display: none;
}

.city-suggestions button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.city-suggestions button:hover,
.city-suggestions button:focus-visible {
  background: var(--soft);
}

.city-suggestions strong {
  color: var(--navy);
}

.city-suggestions span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.route-actions {
  align-items: center;
  margin-top: 0.85rem;
}

.route-result {
  margin-top: 0.9rem;
  scroll-margin-top: 96px;
}

.result-region {
  scroll-margin-top: 96px;
}

.route-result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1rem;
}

.route-map-panel {
  margin-top: 0.9rem;
  border: 1px solid #d6e1ed;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  overflow: hidden;
}

.route-live-map {
  position: relative;
  display: none;
  height: 320px;
  margin: 0.55rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dce8ef;
}

.route-map-panel.is-map-loading .route-live-map,
.route-map-panel.is-live-map .route-live-map {
  display: block;
}

.route-map-panel.is-map-loading .route-map-fallback,
.route-map-panel.is-live-map .route-map-fallback {
  display: none;
}

.route-map-panel.is-map-error .route-live-map {
  display: none;
}

.route-map-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #eef4fb;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.route-live-map .maplibregl-ctrl-attrib {
  font-size: 10px;
}

.route-live-marker {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(7, 36, 73, 0.24);
}

.route-live-marker span {
  position: absolute;
  left: 16px;
  top: -8px;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(7, 36, 73, 0.16);
}

.route-live-marker-start {
  background: var(--green);
}

.route-live-marker-destination {
  background: var(--navy);
}

.route-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem 0.2rem;
}

.route-map-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.route-map-legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.route-map-legend i {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  display: inline-block;
}

.route-legend-toll {
  background: var(--amber);
}

.route-legend-other {
  background: #5f86b8;
}

.route-map-svg {
  width: 100%;
  height: auto;
  min-height: 210px;
  display: block;
  padding: 0.35rem;
}

.route-map-bg {
  fill: #edf4fb;
}

.route-map-grid {
  fill: none;
  stroke: rgba(7, 36, 73, 0.08);
  stroke-width: 1;
}

.route-map-segment {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-map-segment-other {
  stroke: #5f86b8;
  stroke-width: 5;
}

.route-map-segment-toll {
  stroke: var(--amber);
  stroke-width: 7;
}

.route-map-marker circle {
  stroke: var(--white);
  stroke-width: 4;
}

.route-map-marker-start circle {
  fill: var(--green);
}

.route-map-marker-destination circle {
  fill: var(--navy);
}

.route-map-marker text {
  fill: var(--navy);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4;
  stroke-linejoin: round;
  font-size: 16px;
  font-weight: 900;
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.9rem 0;
}

.route-metrics div,
.route-breakdown div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.route-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.route-metrics strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.05;
}

.route-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.route-cost-panel {
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.route-cost-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.route-cost-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.route-cost-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.route-cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.route-country-cost {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.route-country-cost > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.route-country-cost > div:first-child > * {
  min-width: 0;
}

.route-country-cost span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.route-country-cost strong {
  color: var(--navy);
  font-size: 1.15rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.route-country-cost p {
  margin: 0.25rem 0 0.65rem;
  color: var(--text);
  font-weight: 800;
}

.route-country-cost dl {
  display: grid;
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.route-country-cost dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e8edf4;
}

.route-country-cost dt,
.route-country-cost dd {
  margin: 0;
}

.route-country-cost dd {
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}

.route-country-cost ul,
.route-notes {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.route-warning-panel {
  margin: 0.9rem 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid #f2c0bc;
  border-radius: var(--radius);
  background: #fff7f6;
  color: var(--text);
}

.route-warning-panel h4 {
  margin: 0 0 0.35rem;
  color: var(--red);
  font-size: 0.98rem;
}

.route-warning-panel p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.route-warning-panel ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
}

.status-high {
  color: var(--green);
  background: #e8f6ee;
}

.status-medium,
.status-low {
  color: #9a5b00;
  background: #fff2d9;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  color: var(--navy);
  font-weight: 900;
  font-size: 0.9rem;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c7d3e1;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
}

.field small {
  font-size: 0.78rem;
}

.field[hidden],
.is-field-hidden {
  display: none;
}

.vehicle-profile-note {
  grid-column: 1 / -1;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cdd9e8;
  border-radius: var(--radius);
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.36fr);
  gap: 0.75rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.result-region {
  margin-top: 1.15rem;
}

.result-placeholder,
.result-warning,
.result-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 1rem;
}

.result-placeholder {
  display: grid;
  gap: 0.45rem;
}

.result-placeholder .icon,
.result-warning .icon {
  color: var(--navy);
  width: 28px;
  height: 28px;
}

.small-note,
.result-disclaimer {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-warning {
  border-color: #f6c9c5;
  background: #fff7f6;
}

.result-warning h3,
.result-warning .icon {
  color: var(--red);
}

.result-warning ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.result-topline,
.result-main,
.cost-breakdown,
.notice-list p {
  display: flex;
  gap: 0.75rem;
}

.result-topline {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--navy);
  background: #eaf1f8;
  font-weight: 900;
}

.status-likely_taxable {
  color: var(--green);
  background: #e8f6ee;
}

.status-likely_not_taxable,
.status-possible_exception,
.status-unclear {
  color: #9a5b00;
  background: #fff2d9;
}

.result-main {
  margin: 1rem 0;
  align-items: stretch;
}

.result-main > div:first-child {
  min-width: 230px;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff8f1;
  border: 1px solid #ffd5b8;
}

.result-main p {
  color: var(--muted);
  font-weight: 800;
}

.result-main strong {
  display: block;
  color: var(--amber-dark);
  font-size: 2.15rem;
  line-height: 1;
  margin-top: 0.35rem;
}

.result-main dl {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.result-main dl div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

dd {
  margin: 0.25rem 0 0;
  color: var(--navy);
  font-weight: 900;
}

.basis {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.cost-breakdown {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cost-breakdown div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.cost-breakdown span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.cost-breakdown strong {
  display: block;
  color: var(--navy);
  margin-top: 0.25rem;
}

.notice-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.notice-list p {
  align-items: start;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: #fff7e8;
  color: #764800;
}

.result-disclaimer {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.info-panel {
  padding: 1.2rem;
  position: sticky;
  top: 104px;
}

.info-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

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

.check-list li {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 800;
}

.prose {
  display: grid;
  gap: 1.4rem;
}

.text-block {
  max-width: 850px;
}

.text-block h2 {
  margin-bottom: 0.55rem;
}

.cta-section {
  padding-top: 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}

.cta-inner h2 {
  color: var(--white);
}

.cta-inner p {
  margin-top: 0.35rem;
  color: #d7e4f4;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(7, 36, 73, 0.1);
  background: var(--white);
}

.dashboard-preview aside {
  background: linear-gradient(180deg, var(--navy), #093969);
  color: var(--white);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.dashboard-preview aside span {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: 1.1rem;
  padding: 1.25rem;
}

.preview-km-panel {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 94, 88, 0.14), rgba(250, 253, 255, 0.95)),
    repeating-linear-gradient(0deg, rgba(7, 36, 73, 0.06) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(7, 36, 73, 0.06) 0 1px, transparent 1px 36px),
    var(--soft);
  overflow: hidden;
  padding: 1.25rem;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.preview-chip {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(7, 36, 73, 0.08);
}

.preview-km-panel strong {
  display: block;
  color: var(--navy);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.preview-km-panel p {
  max-width: 34rem;
  color: var(--ink);
  font-weight: 700;
}

.preview-formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
}

.preview-formula span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(7, 36, 73, 0.08);
}

.preview-formula span:nth-child(2) {
  min-height: 42px;
  width: 42px;
  padding: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
}

.preview-table {
  align-self: center;
}

.preview-table h2 {
  margin-bottom: 1rem;
}

.preview-table dl {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.preview-table dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.preview-table p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--navy);
  font-weight: 900;
}

.faq-list details p {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

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

.legal-grid article {
  padding: 1.25rem;
}

.legal-grid h2 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.rate-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.rate-table th,
.rate-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rate-table th {
  background: var(--soft);
  color: var(--navy);
}

.source-note {
  margin-top: 0.8rem;
}

.source-links {
  line-height: 1.65;
}

.source-links a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.source-section {
  padding-top: 0;
}

.site-footer {
  background: var(--navy);
  color: #d7e4f4;
  padding: 3rem 0 1.2rem;
}

.footer-inner {
  width: calc(100% - 2rem);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 0.7fr));
  gap: 2rem;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand-mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--amber);
}

.site-footer .brand-text small,
.footer-brand p {
  color: #b9c8da;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 520px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: #d7e4f4;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  width: calc(100% - 2rem);
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9c8da;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.is-open {
    display: grid;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 82px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.8rem;
    box-shadow: var(--shadow);
    justify-items: stretch;
  }

  .main-nav.is-open a {
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 3rem 0;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.83));
  }

  .hero-copy {
    max-width: 820px;
  }

  h1 {
    max-width: 14ch;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-panel {
    position: static;
  }

  .preview-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-formula {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-formula span:nth-child(2) {
    width: 100%;
    border-radius: var(--radius);
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: calc(100% - 1rem);
    max-width: var(--max);
    min-height: 72px;
  }

  .main-nav.is-open {
    top: 72px;
  }

  .brand-text strong {
    font-size: 1.2rem;
  }

  .brand-text small {
    font-size: 0.75rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .section,
  .benefit-band,
  .page-hero {
    padding: 3rem 0;
  }

  h1,
  .page-hero h1 {
    font-size: 2.35rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .trust-list,
  .benefits,
  .steps,
  .guide-grid,
  .guide-grid-small,
  .route-grid,
  .route-metrics,
  .route-breakdown,
  .route-cost-grid,
  .form-grid,
  .result-main,
  .result-main dl,
  .cost-breakdown,
  .legal-grid,
  .preview-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-main,
  .route-planner-head,
  .route-actions,
  .route-map-head,
  .route-cost-head,
  .section-heading.split,
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .route-country-cost dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .route-country-cost dd {
    text-align: left;
    white-space: normal;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .calculator-card {
    padding: 1rem;
  }

  .calculator-head {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: auto;
    flex: 1 1 220px;
  }

  .route-map-legend {
    flex-wrap: wrap;
  }

  .route-map-svg {
    min-height: 180px;
  }

  .route-live-map {
    height: 240px;
    margin: 0.45rem;
  }

  .dashboard-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-preview aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .hero-actions .button {
    width: 100%;
    flex-basis: 100%;
  }

  .dashboard-preview aside {
    grid-template-columns: minmax(0, 1fr);
  }
}
