/* Poppins, self-hosted and subset to Latin — no third-party font request. */
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   APL Shippers — design tokens
   Colours are the supplied brand palette. Everything else in the stylesheets
   is expressed in terms of these variables, so a rebrand happens here.
   ========================================================================== */

:root {
  /* Brand palette (supplied) */
  --navy-purple: #230366;
  --deep-purple: #3a0793;
  --bright-purple: #7a16df;
  --yellow: #ffc51a;
  --white: #ffffff;
  --dark-text: #160b49;
  --light-grey: #f4f4f8;

  /* Derived purples used for gradients, hovers and dividers */
  --purple-900: #1a0250;
  --purple-800: #2b0578;
  --purple-700: #4a0ba8;
  --purple-600: #6512c4;
  --purple-500: #8b3ae6;
  --purple-300: #b98cf2;
  --purple-100: #ece0fd;
  --purple-050: #f6f1fe;

  /* Yellows */
  --yellow-dark: #e8ac00;
  --yellow-light: #ffd75c;
  --yellow-050: #fff7e0;

  /* Neutrals */
  --ink: var(--dark-text);
  --ink-muted: #58507f;
  --ink-subtle: #6b6390;
  --line: #e6e3f2;
  --line-strong: #d6d1e8;
  --surface: var(--white);
  --surface-muted: var(--light-grey);

  /* Text on dark backgrounds */
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --on-dark-subtle: rgba(255, 255, 255, 0.6);

  /* Status */
  --danger: #c81e46;
  --danger-bg: #fdeaee;
  --success: #0f7a52;
  --success-bg: #e7f6ef;

  /* Gradients */
  --gradient-hero: radial-gradient(120% 90% at 12% 18%, #4a0ba8 0%, #2f0680 42%, #230366 100%);
  --gradient-band: linear-gradient(135deg, #2b0578 0%, #4a0ba8 100%);
  --gradient-cta: linear-gradient(135deg, #3a0793 0%, #7a16df 100%);
  --gradient-yellow: linear-gradient(180deg, #ffd043 0%, #ffc51a 100%);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 34px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(22, 11, 73, 0.06);
  --shadow-sm: 0 4px 14px rgba(22, 11, 73, 0.07);
  --shadow-md: 0 12px 30px rgba(22, 11, 73, 0.1);
  --shadow-lg: 0 26px 60px rgba(11, 2, 45, 0.22);
  --shadow-yellow: 0 10px 24px rgba(255, 197, 26, 0.38);
  --shadow-purple: 0 12px 28px rgba(122, 22, 223, 0.3);

  /* Layout */
  --container: 1240px;
  --container-narrow: 860px;
  --gutter: 24px;
  --header-height: 84px;

  /* Type */
  /* next/font sets --font-poppins. The var() fallback keeps the stack valid if
     the webfont has not loaded (or is blocked), instead of collapsing to the
     browser default serif. */
  --font-sans: var(--font-poppins, 'Poppins'), 'Segoe UI', system-ui, -apple-system,
    'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
  --step-1: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.36rem + 0.7vw, 2rem);
  --step-4: clamp(1.875rem, 1.6rem + 1.35vw, 2.75rem);
  --step-5: clamp(2.25rem, 1.75rem + 2.5vw, 3.75rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 420ms;
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --header-height: 72px;
  }
}


/* ==========================================================================
   Reset, base typography, layout primitives and utilities
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Nothing on the site should ever scroll sideways. */
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: inherit;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--bright-purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple-700);
}

ul,
ol {
  padding-left: 1.15rem;
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

/* --- Focus ---------------------------------------------------------------
   A visible focus ring is required on every interactive element. Two variants
   so the ring stays legible on both light and purple backgrounds.            */

:focus-visible {
  outline: 3px solid var(--bright-purple);
  outline-offset: 2px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow);
}

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 999;
  background: var(--yellow);
  color: var(--dark-text);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* --- Layout primitives --------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3.5rem, 2.4rem + 4vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

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

.section--purple {
  background: var(--gradient-band);
  color: var(--on-dark);
}

.section--purple h2,
.section--purple h3 {
  color: var(--white);
}

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2rem, 1.5rem + 1.6vw, 3.25rem);
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  font-size: var(--step-1);
}

.section--purple .section-head p {
  color: var(--on-dark-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bright-purple);
  margin-bottom: 0.75rem;
}

.section--purple .eyebrow {
  color: var(--yellow);
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-muted);
}

.stack > * + * {
  margin-top: 1rem;
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.8rem + 0.9vw, 1.75rem);
}

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

@media (max-width: 960px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Utilities ----------------------------------------------------------- */

.text-yellow {
  color: var(--yellow);
}

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

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: var(--step--1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Entrance animations -------------------------------------------------
   Sections fade up once as they enter the viewport. Implemented with the CSS
   `animation-timeline` where supported and a small IntersectionObserver
   fallback (see components/util/Reveal.tsx) elsewhere.                       */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print: keep legal pages readable on paper. */
@media print {
  .site-header,
  .site-footer,
  .quote-cta-band,
  .mobile-quote-bar {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}


/* ==========================================================================
   Reusable UI components — buttons, badges, cards, forms, accordions
   ========================================================================== */

/* --- Buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: var(--gradient-yellow);
  --btn-color: var(--dark-text);
  --btn-shadow: var(--shadow-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  min-height: 52px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease),
    background-color var(--t-base) var(--ease), filter var(--t-base) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(255, 197, 26, 0.45);
  color: var(--btn-color);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--deep-purple);
  color: var(--white);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--purple {
  --btn-bg: var(--gradient-cta);
  --btn-color: var(--white);
  --btn-shadow: var(--shadow-purple);
}

.btn--purple:hover {
  box-shadow: 0 18px 36px rgba(122, 22, 223, 0.4);
}

.btn--purple .btn__arrow {
  background: rgba(255, 255, 255, 0.2);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--white);
  --btn-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--outline-purple {
  --btn-bg: transparent;
  --btn-color: var(--bright-purple);
  --btn-shadow: none;
  border: 2px solid var(--purple-100);
}

.btn--outline-purple:hover {
  background: var(--purple-050);
  border-color: var(--bright-purple);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-color: var(--white);
  --btn-shadow: none;
  padding-inline: 0.6rem;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 60px;
  padding: 1.1rem 2rem;
  font-size: var(--step-1);
}

.btn--sm {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  font-size: var(--step--1);
}

/* --- Badges / pills ------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem 0.5rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark-text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--purple-050);
  color: var(--bright-purple);
  font-size: var(--step--1);
  font-weight: 600;
}

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 1.2rem + 0.7vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  height: 100%;
}

.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-100);
}

.card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--on-dark);
  box-shadow: none;
}

.card--dark p {
  color: var(--on-dark-muted);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--purple-050);
  color: var(--bright-purple);
  margin-bottom: 1.1rem;
}

.card--dark .card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

.card__title {
  font-size: var(--step-2);
  margin-bottom: 0.6rem;
}

.card__text {
  color: var(--ink-muted);
}

.card--dark .card__text {
  color: var(--on-dark-muted);
}

/* Tick list used inside service cards and the hero */

.tick-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
}

.tick-list .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark-text);
  flex-shrink: 0;
  margin-top: 2px;
}

.tick-list--purple .tick {
  background: var(--purple-050);
  color: var(--bright-purple);
}

/* --- Form controls -------------------------------------------------------- */

.field {
  display: block;
  min-width: 0;
}

.field + .field {
  margin-top: 1.05rem;
}

.field__label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field__optional {
  font-weight: 400;
  color: var(--ink-subtle);
}

.field__hint {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-subtle);
  margin-top: 0.35rem;
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__icon {
  position: absolute;
  left: 14px;
  /* Centre on the control's own height. Inside .field__control the flex
     alignment would do this, but the combobox is a plain block container, so
     centre it explicitly and both cases behave the same. */
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--bright-purple);
  pointer-events: none;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font-size: var(--step-0);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
  appearance: none;
}

.field__icon ~ .input,
.field__icon ~ .select {
  padding-left: 44px;
}

.textarea {
  min-height: 118px;
  padding-top: 0.85rem;
  resize: vertical;
  line-height: 1.6;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-subtle);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--purple-300);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--bright-purple);
  box-shadow: 0 0 0 4px rgba(122, 22, 223, 0.15);
}

.select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%237A16DF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* Error state */

.field--error .input,
.field--error .select,
.field--error .textarea,
.field--error .combobox__input {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.field--error .input:focus,
.field--error .select:focus,
.field--error .textarea:focus {
  box-shadow: 0 0 0 4px rgba(200, 30, 70, 0.15);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: var(--step--1);
  font-weight: 500;
}

/* Checkbox and radio */

.checkbox,
.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox input,
.radio input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--bright-purple);
  cursor: pointer;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  position: relative;
  flex: 1 1 auto;
  min-width: 116px;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--step-0);
  font-weight: 500;
  text-align: center;
  transition: all var(--t-fast) var(--ease);
}

.choice input:hover + .choice__label {
  border-color: var(--purple-300);
}

.choice input:focus-visible + .choice__label {
  outline: 3px solid var(--bright-purple);
  outline-offset: 2px;
}

.choice input:checked + .choice__label {
  border-color: var(--bright-purple);
  background: var(--purple-050);
  color: var(--bright-purple);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--bright-purple);
}

/* --- Combobox (searchable country selector) ------------------------------- */

.combobox {
  position: relative;
}

.combobox__input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 42px 0.8rem 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: var(--step-0);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.combobox__input:hover {
  border-color: var(--purple-300);
}

.combobox__input:focus {
  outline: none;
  border-color: var(--bright-purple);
  box-shadow: 0 0 0 4px rgba(122, 22, 223, 0.15);
}

.combobox__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bright-purple);
}

.combobox__toggle:hover {
  background: var(--purple-050);
}

.combobox__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 264px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
}

.combobox__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-xs);
  cursor: pointer;
  font-size: var(--step-0);
}

.combobox__option[aria-selected='true'],
.combobox__option:hover {
  background: var(--purple-050);
  color: var(--bright-purple);
}

.combobox__option .dial {
  color: var(--ink-subtle);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.combobox__group {
  padding: 0.5rem 0.75rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.combobox__empty {
  padding: 0.85rem 0.75rem;
  color: var(--ink-subtle);
  font-size: var(--step--1);
}

/* Phone field: country code selector + number */

.phone-field {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.5rem;
}

.phone-field .combobox__input {
  padding-left: 14px;
  padding-right: 34px;
}

.phone-field .combobox__toggle {
  right: 0;
  width: 30px;
}

/* The dial-code control is narrow, but its dropdown should not be — country
   names would wrap onto two lines. */
.phone-field .combobox__list {
  width: max(280px, 100%);
}

@media (max-width: 420px) {
  .phone-field {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

/* --- Accordion ------------------------------------------------------------ */

.accordion {
  display: grid;
  gap: 0.85rem;
}

.accordion__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.accordion__item[data-open='true'] {
  border-color: var(--purple-100);
  box-shadow: var(--shadow-sm);
}

.accordion__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.accordion__button:hover {
  color: var(--bright-purple);
}

.accordion__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-050);
  color: var(--bright-purple);
  flex-shrink: 0;
  transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.accordion__item[data-open='true'] .accordion__indicator {
  background: var(--bright-purple);
  color: var(--white);
  transform: rotate(180deg);
}

.accordion__panel {
  padding: 0 1.35rem 1.35rem;
  color: var(--ink-muted);
}

.accordion__panel > * + * {
  margin-top: 0.75rem;
}

/* --- Alerts / notices ----------------------------------------------------- */

.notice {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--purple-050);
  border: 1px solid var(--purple-100);
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.55;
}

.notice__icon {
  color: var(--bright-purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice--warning {
  background: var(--yellow-050);
  border-color: #f5dfa0;
}

.notice--warning .notice__icon {
  color: var(--yellow-dark);
}

.notice--error {
  background: var(--danger-bg);
  border-color: #f4c2ce;
  color: #8a1531;
}

.notice--error .notice__icon {
  color: var(--danger);
}

.notice--success {
  background: var(--success-bg);
  border-color: #bfe5d4;
  color: #0b5c3e;
}

.notice--success .notice__icon {
  color: var(--success);
}

/* --- Spinner -------------------------------------------------------------- */

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(35, 3, 102, 0.25);
  border-top-color: var(--deep-purple);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.btn--purple .spinner,
.spinner--light {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Breadcrumbs ---------------------------------------------------------- */

.breadcrumbs {
  font-size: var(--step--1);
  color: var(--ink-subtle);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}

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

.breadcrumbs a:hover {
  color: var(--bright-purple);
  text-decoration: underline;
}

.breadcrumbs [aria-current='page'] {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumbs--on-dark {
  color: var(--on-dark-subtle);
}

.breadcrumbs--on-dark [aria-current='page'] {
  color: var(--white);
}

.breadcrumbs--on-dark a:hover {
  color: var(--yellow);
}


/* ==========================================================================
   Site header, navigation and footer
   ========================================================================== */

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-purple);
  color: var(--white);
  transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

/* On the home page the header sits on top of the hero gradient. */
.site-header[data-transparent='true']:not([data-scrolled='true']) {
  background: transparent;
}

.site-header[data-scrolled='true'] {
  background: rgba(26, 2, 80, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(11, 2, 45, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-height);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}

.site-header__logo img {
  width: auto;
  height: 46px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 0;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav__link[aria-current='page'] {
  color: var(--white);
  font-weight: 600;
}

.site-nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
}

.site-nav__chevron {
  transition: transform var(--t-fast) var(--ease);
}

.site-nav__item {
  position: relative;
}

.site-nav__item:hover .site-nav__chevron,
.site-nav__item:focus-within .site-nav__chevron {
  transform: rotate(180deg);
}

/* Dropdown */

.site-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
    visibility var(--t-fast) var(--ease);
}

.site-nav__item:hover .site-nav__menu,
.site-nav__item:focus-within .site-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav__menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-xs);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.site-nav__menu a:hover {
  background: var(--purple-050);
  color: var(--bright-purple);
}

.site-nav__menu .desc {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-subtle);
  margin-top: 2px;
}

.site-nav__menu a:hover .desc {
  color: var(--ink-muted);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile menu trigger */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --- Mobile navigation panel --------------------------------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.mobile-nav[data-open='true'] {
  display: block;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 2, 45, 0.6);
  backdrop-filter: blur(3px);
  border: 0;
  width: 100%;
  animation: fade-in var(--t-base) var(--ease);
}

.mobile-nav__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--navy-purple);
  color: var(--white);
  box-shadow: -20px 0 60px rgba(11, 2, 45, 0.5);
  animation: slide-in var(--t-base) var(--ease);
  overflow-y: auto;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav__head img {
  height: 40px;
  width: auto;
}

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.mobile-nav__links {
  list-style: none;
  padding: 0.75rem var(--gutter) 0;
  margin: 0;
  flex: 1;
}

.mobile-nav__links > li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.mobile-nav__links a {
  display: block;
  padding: 1rem 0;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav__links a[aria-current='page'] {
  color: var(--yellow);
}

.mobile-nav__sublinks {
  list-style: none;
  padding: 0 0 0.75rem 0;
  margin: 0;
}

.mobile-nav__sublinks a {
  padding: 0.55rem 0 0.55rem 1rem;
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--on-dark-muted);
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}

.mobile-nav__footer {
  padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Very small phones: keep the logo, quote button and menu toggle on one line. */
@media (max-width: 430px) {
  .site-header__inner {
    gap: 0.6rem;
  }

  .site-header__logo img {
    height: 38px;
  }

  .site-header__actions {
    gap: 0.5rem;
  }

  .site-header__actions .btn {
    padding-inline: 0.9rem;
    font-size: 0.82rem;
    min-height: 44px;
  }

  .site-header__actions .btn__arrow {
    display: none;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1080px) {
  .site-nav,
  .site-header__actions .btn--header-secondary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* --- Sticky mobile quote bar --------------------------------------------- */

.mobile-quote-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(22, 11, 73, 0.1);
}

@media (max-width: 720px) {
  .mobile-quote-bar {
    display: block;
  }

  body {
    padding-bottom: 78px;
  }
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--navy-purple);
  color: var(--on-dark-muted);
  padding-top: clamp(3rem, 2.4rem + 2.4vw, 4.5rem);
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

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

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  padding-bottom: 2.75rem;
}

.site-footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1.1rem;
}

.site-footer__brand p {
  max-width: 34ch;
  font-size: var(--step--1);
  line-height: 1.7;
}

.site-footer__title {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  font-size: var(--step--1);
}

.site-footer__company {
  font-size: var(--step--1);
  line-height: 1.75;
  font-style: normal;
}

.site-footer__company strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.site-footer__cta {
  margin-top: 1.4rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.6rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--on-dark-subtle);
}

.site-footer__disclaimer {
  max-width: 62ch;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   Page sections — hero, feature band, services, process, tracking, legal
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--gradient-hero);
  color: var(--on-dark);
  margin-top: calc(var(--header-height) * -1);
  padding-top: calc(var(--header-height) + clamp(2rem, 1.2rem + 3vw, 3.5rem));
  padding-bottom: clamp(2.5rem, 1.8rem + 2.6vw, 4rem);
  overflow: hidden;
}

/* Decorative dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 20% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(70% 60% at 20% 30%, #000 0%, transparent 70%);
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
}

.hero__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero__globe {
  position: absolute;
  top: 4%;
  left: 20%;
  width: clamp(320px, 34vw, 560px);
  aspect-ratio: 1;
  opacity: 0.75;
}

.hero__route {
  position: absolute;
  top: 6%;
  left: 12%;
  width: clamp(220px, 20vw, 330px);
  aspect-ratio: 1;
  opacity: 0.85;
}

.hero__plane {
  position: absolute;
  top: 9%;
  left: 41%;
  width: clamp(110px, 12vw, 185px);
  filter: drop-shadow(0 14px 24px rgba(11, 2, 45, 0.45));
  animation: float-plane 7s ease-in-out infinite;
}

.hero__pin {
  position: absolute;
  top: 34%;
  left: 44%;
  width: 34px;
  color: var(--yellow);
  animation: float-pin 4.5s ease-in-out infinite;
}

@keyframes float-plane {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-14px, -16px, 0) rotate(-2.5deg);
  }
}

@keyframes float-pin {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  align-items: start;
}

.hero__content {
  position: relative;
  padding-bottom: 0.5rem;
}

.hero__title {
  margin-top: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 12ch;
}

.hero__title .accent {
  color: var(--yellow);
}

.hero__text {
  margin-top: 1.15rem;
  max-width: 38ch;
  color: var(--on-dark-muted);
  font-size: var(--step-1);
}

.hero__benefits {
  margin-top: 1.6rem;
  max-width: 34ch;
}

.hero__benefits li {
  font-weight: 500;
}

.hero__mascot {
  position: absolute;
  right: -8%;
  bottom: 148px;
  width: clamp(168px, 17vw, 242px);
  z-index: 2;
  filter: drop-shadow(0 30px 40px rgba(11, 2, 45, 0.45));
  animation: float-mascot 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-mascot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Carrier panel inside the hero */

.carrier-panel {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  padding: 1rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  max-width: 100%;
}

.carrier-panel__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carrier-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.carrier-tile--yellow {
  background: var(--yellow);
}

.carrier-tile img {
  max-height: 30px;
  width: auto;
  object-fit: contain;
}

.carrier-tile--ups img {
  max-height: 46px;
}

.carrier-panel__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0.25rem 0.25rem;
  font-size: var(--step--1);
  color: var(--on-dark-muted);
}

.carrier-panel__note svg {
  color: var(--yellow);
  flex-shrink: 0;
}

/* Hero form card */

.hero__form {
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
}

/* .quote-card uses container-type: inline-size (so the step indicator can adapt
   to the card rather than the viewport). A side effect is that the card no
   longer contributes an intrinsic width, so any shrink-to-fit ancestor would
   collapse it. Always give it something to fill. */
.quote-card {
  width: 100%;
}

.quote-card {
  /* Lets the step indicator adapt to the width of the card itself, not the
     viewport — the same form is used in the narrow hero card and full width. */
  container-type: inline-size;
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.quote-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.quote-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--gradient-cta);
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-purple);
}

.quote-card__title {
  font-size: var(--step-2);
  line-height: 1.2;
}

.quote-card__subtitle {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.quote-card__footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  color: var(--ink-subtle);
  font-size: var(--step--1);
  text-align: center;
}

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

  .hero__title,
  .hero__text,
  .hero__benefits {
    max-width: none;
  }

  .hero__mascot {
    position: static;
    inset: auto;
    width: clamp(180px, 34vw, 260px);
    margin: 1.5rem auto -0.5rem;
  }

  .carrier-panel {
    max-width: none;
    order: 3;
  }

  .hero__globe {
    left: 34%;
    opacity: 0.5;
  }

  .hero__plane {
    left: auto;
    right: 6%;
  }

  .hero__pin {
    display: none;
  }
}

/* On small screens the form comes first, so the primary action is near the top. */
@media (max-width: 720px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    /* The base rule sets align-items:start for the two-column grid. In a COLUMN
       flex container that same property controls the horizontal axis, which
       would shrink every child to its content width — collapsing the quote card.
       Stretch is what we want once the layout is stacked. */
    align-items: stretch;
  }

  .hero__content {
    display: contents;
  }

  .hero__badge {
    order: 1;
  }
  .hero__title {
    order: 2;
  }
  .hero__text {
    order: 3;
  }
  .hero__mascot {
    order: 4;
  }
  .hero__form {
    order: 5;
    margin-top: 1.5rem;
  }
  .hero__benefits {
    order: 6;
    margin-top: 2rem;
  }
  .carrier-panel {
    order: 7;
  }
}

/* --- Feature band (under the hero) --------------------------------------- */

.feature-band {
  position: relative;
  z-index: 2;
  background: var(--gradient-band);
  color: var(--on-dark);
}

.feature-band__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-block: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
}

.feature-band__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-inline: clamp(0.75rem, 0.4rem + 1vw, 1.75rem);
}

.feature-band__item + .feature-band__item {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-band__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
  flex-shrink: 0;
}

.feature-band__title {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--white);
}

.feature-band__text {
  font-size: var(--step--1);
  color: var(--on-dark-muted);
  line-height: 1.5;
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .feature-band__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0;
  }

  .feature-band__item:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .feature-band__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .feature-band__item {
    border-left: 0 !important;
  }
}

/* --- Page hero (inner pages) --------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--gradient-hero);
  color: var(--on-dark);
  margin-top: calc(var(--header-height) * -1);
  padding-top: calc(var(--header-height) + clamp(2.5rem, 2rem + 2.5vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 70% at 85% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(60% 70% at 85% 20%, #000 0%, transparent 72%);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.page-hero .eyebrow {
  color: var(--yellow);
}

.page-hero__title {
  margin-top: 0.85rem;
  font-size: var(--step-4);
  max-width: 20ch;
}

.page-hero__text {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--on-dark-muted);
  font-size: var(--step-1);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-hero__mascot {
  width: clamp(140px, 16vw, 220px);
  filter: drop-shadow(0 24px 34px rgba(11, 2, 45, 0.45));
  animation: float-mascot 6s ease-in-out infinite;
}

@media (max-width: 860px) {
  .page-hero__mascot {
    display: none;
  }

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

/* --- Service cards -------------------------------------------------------- */

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--bright-purple);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
}

.service-card__link:hover {
  text-decoration: underline;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 1.2rem + 1.6vw, 3rem);
  padding-block: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.service-detail__head h2 {
  margin-top: 1.1rem;
  font-size: var(--step-3);
}

.service-detail__head .lede {
  margin-top: 0.75rem;
}

.service-detail:first-of-type {
  border-top: 0;
}

.service-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--purple-050);
  color: var(--bright-purple);
}

.service-detail__body > * + * {
  margin-top: 0.9rem;
}

.service-detail__body p {
  color: var(--ink-muted);
  max-width: 68ch;
}

@media (max-width: 820px) {
  .service-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

/* --- Process steps -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  counter-reset: step;
}

.step {
  position: relative;
  text-align: center;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem) 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step__number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-yellow);
  color: var(--dark-text);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-yellow);
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0.75rem auto 1rem;
  border-radius: 50%;
  background: var(--purple-050);
  color: var(--bright-purple);
}

.step__title {
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.step__text {
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* Connector line between steps on wide screens */
.steps--connected .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(var(--connector-offset, 1.75rem) * -0.5 - 4px);
  width: calc(var(--connector-offset, 1.75rem) + 8px);
  border-top: 2px dashed var(--purple-100);
}

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

  .steps--connected .step::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
}

/* --- CTA band ------------------------------------------------------------- */

.quote-cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gradient-cta);
  color: var(--on-dark);
  border-radius: var(--r-2xl);
  padding: clamp(2rem, 1.6rem + 2.4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.quote-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 100% at 90% 50%, #000, transparent 70%);
  mask-image: radial-gradient(60% 100% at 90% 50%, #000, transparent 70%);
}

.quote-cta-band h2 {
  font-size: var(--step-3);
  max-width: 20ch;
}

.quote-cta-band p {
  margin-top: 0.75rem;
  max-width: 56ch;
  color: var(--on-dark-muted);
}

.quote-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 820px) {
  .quote-cta-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Trust / benefits grid ------------------------------------------------ */

.benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--bright-purple);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.section--purple .benefit__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
  box-shadow: none;
}

.benefit__title {
  font-size: var(--step-1);
  margin-bottom: 0.3rem;
}

.benefit__text {
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

.section--purple .benefit__text {
  color: var(--on-dark-muted);
}

/* --- Carrier strip (light background) ------------------------------------ */

.carrier-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carrier-strip .carrier-tile {
  width: 148px;
  height: 72px;
  border: 1px solid var(--line);
}

.carrier-strip .carrier-tile--yellow {
  border-color: transparent;
}

/* --- Tracking page -------------------------------------------------------- */

.tracking-card {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}

.tracking-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1rem;
}

@media (max-width: 720px) {
  .tracking-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.tracking-events {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  gap: 1.1rem;
}

.tracking-event {
  position: relative;
  padding-left: 2rem;
}

.tracking-event::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bright-purple);
  box-shadow: 0 0 0 4px var(--purple-050);
}

.tracking-event::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: -1.1rem;
  width: 2px;
  background: var(--line);
}

.tracking-event:last-child::after {
  display: none;
}

.tracking-event__time {
  font-size: var(--step--1);
  color: var(--ink-subtle);
}

/* --- Quote page / multi-step form ---------------------------------------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.5rem, 1.2rem + 2vw, 3rem);
  align-items: start;
}

@media (max-width: 980px) {
  .quote-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The form stays first on narrow screens — it is the point of the page. */
}

.quote-aside .card + .card {
  margin-top: 1.25rem;
}

.form-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.form-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 0;
  min-width: 0;
}

.form-step__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--ink-subtle);
  border: 1.5px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--t-base) var(--ease);
}

.form-step__label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-step[data-state='current'] .form-step__dot {
  background: var(--gradient-cta);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-purple);
}

.form-step[data-state='current'] .form-step__label {
  color: var(--ink);
}

.form-step[data-state='complete'] .form-step__dot {
  background: var(--yellow);
  border-color: transparent;
  color: var(--dark-text);
}

.form-step[data-state='complete'] .form-step__label {
  color: var(--ink-muted);
}

.form-progress {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-muted);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.form-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-cta);
  transition: width var(--t-slow) var(--ease);
}

@media (max-width: 720px) {
  .form-step__label {
    display: none;
  }

  .form-step {
    flex: 0 0 auto;
  }

  .form-steps {
    justify-content: space-between;
  }
}

/* Truncated step labels look untidy — drop them when the card is narrow. */
@container (max-width: 560px) {
  .form-step__label {
    display: none;
  }

  .form-step {
    flex: 0 0 auto;
  }

  .form-steps {
    justify-content: space-between;
  }
}

.form-section__title {
  font-size: var(--step-2);
  margin-bottom: 0.3rem;
}

.form-section__description {
  color: var(--ink-muted);
  font-size: var(--step--1);
  margin-bottom: 1.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
  margin-top: 1.05rem;
}

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

.field-row .field + .field {
  margin-top: 0;
}

@media (max-width: 560px) {
  .field-row,
  .field-row--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.package-block {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-muted);
}

.package-block + .package-block {
  margin-top: 1rem;
}

.package-block__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step-0);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.form-actions .btn {
  flex: 1 1 auto;
}

.form-actions .btn--back {
  flex: 0 0 auto;
}

@media (max-width: 420px) {
  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* Confirmation screen */

.quote-success {
  text-align: center;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem) 0;
}

.quote-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  animation: pop 420ms var(--ease);
}

@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}

.quote-success__reference {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-md);
  background: var(--purple-050);
  border: 1px dashed var(--purple-300);
}

.quote-success__reference .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.quote-success__reference .value {
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--bright-purple);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* --- Legal pages ---------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.75rem, 1.4rem + 2vw, 3.5rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-muted);
}

.legal-nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.legal-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-xs);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
}

.legal-nav a:hover {
  background: var(--purple-050);
  color: var(--bright-purple);
}

.legal-nav a[aria-current='page'] {
  background: var(--bright-purple);
  color: var(--white);
}

.prose {
  max-width: 74ch;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  font-size: var(--step-2);
  margin-top: 2.5rem;
}

.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.5rem;
  color: var(--ink-muted);
}

.prose p {
  color: var(--ink-muted);
}

.prose strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-nav {
    position: static;
  }

  .legal-nav ul {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* --- FAQ page ------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1.75rem, 1.4rem + 2vw, 3rem);
  align-items: start;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- About page ----------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.75rem, 1.4rem + 2vw, 3.5rem);
  align-items: center;
}

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

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 1.2rem + 2vw, 3rem);
  background: var(--gradient-hero);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.about-visual img {
  position: relative;
  width: clamp(180px, 26vw, 280px);
  filter: drop-shadow(0 24px 34px rgba(11, 2, 45, 0.5));
}

/* --- Reviews (hidden until genuine reviews exist) ------------------------- */

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.review-card__quote {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink);
}

.review-card__author {
  font-weight: 600;
}

.review-card__context {
  font-size: var(--step--1);
  color: var(--ink-subtle);
}

.dev-flag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-xs);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
