/* yourtrucktax.com
 *
 * Modern fintech-weight system on the brand blue. See DESIGN.md.
 * `node scripts/contrast.mjs` must print "0 real failures".
 *
 * The signature is the live countdown to the next Form 2290 deadline. It is
 * the one thing on the page that moves on its own, and it is real data.
 */

/* ---------- Tokens -------------------------------------------------------- */

:root {
  --ink:      #0a1420;
  --ink-2:    #44546a;
  --ink-3:    #5d6b7e;

  --canvas:   #f4f6f9;
  --paper:    #ffffff;

  --blue-900: #04243f;
  --blue-800: #013a63;
  --blue-700: #005791;
  --blue-600: #006db7;   /* the brand blue */
  --blue-500: #1b88d6;
  --blue-400: #57a9e5;
  --blue-100: #dbecfa;
  --blue-50:  #eff7fd;

  --on-blue:   #ffffff;
  --on-blue-2: #b9d6ee;
  --link:      #005791;

  --amber: #ffb100;      /* accent, on blue only, for the deadline */
  --rust:  #b03a2b;
  --go:    #1f6b4a;

  --edge:      #7d8b9d;  /* control boundary on light — 3:1 verified */
  --edge-dark: #4e7ca3;  /* control boundary on blue  — 3:1 verified */
  --rule:      #e3e8ef;  /* decorative divider on light */
  --rule-blue: rgba(255, 255, 255, .16);

  --focus: var(--blue-600);
  --on-surface: var(--ink);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 104px;

  --r-card: 22px;
  --r-lg:   28px;
  --r-pill: 999px;

  --measure: 68ch;
  --gut: 24px;
  --maxw: 1240px;

  --step--2: 0.75rem;
  --step--1: 0.9375rem;
  --step-0:  1.0625rem;
  --step-1:  1.1875rem;
  --step-2:  1.5rem;
  --step-3:  clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  --step-4:  clamp(2.25rem, 1.5rem + 3.2vw, 3.25rem);
  --step-5:  clamp(2.5rem, 1.2rem + 5.6vw, 5rem);

  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease-in: cubic-bezier(.22, 1, .36, 1);
  --ease-state: cubic-bezier(.4, 0, .2, 1);

  /* Grain. One SVG, reused wherever a blue plane needs to stop banding. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- Reset --------------------------------------------------------- */

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

html, body { background: var(--canvas); }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light;            /* light-only site; stop UA auto-darkening controls */
  scroll-behavior: smooth;
}

/* Kill the 300ms tap delay and pick the tap flash deliberately rather than
 * letting the UA choose a grey box over a blue pill. */
a, button, .btn, summary, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 109, 183, .18);
}

/* A linked heading must not land under the masthead. */
:target, h1[id], h2[id], h3[id] { scroll-margin-top: var(--s-7); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue-600); color: #fff; }

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

/* Size and space do the work; nothing here is heavier than 600. */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.025em; }
h4 { font-size: var(--step-1); letter-spacing: -0.02em; }

p, li { max-width: var(--measure); }
p { margin: 0 0 var(--s-4); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.num, .facts dd, .rates td, .spec dd, .cd-num, table td, table th {
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--blue-600);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  /* Safe-area insets so a notched phone in landscape does not clip the
   * gutter. max() keeps the normal gutter everywhere else. */
  padding-inline: max(var(--gut), env(safe-area-inset-left)) max(var(--gut), env(safe-area-inset-right));
}

.section { padding-block: var(--s-8); }
.section-tint { background: var(--blue-50); padding-block: var(--s-8); }

.layout {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--s-7);
}
.aside { display: grid; gap: var(--s-5); align-content: start; }

.cols-2 { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }

@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A dark blue band, used for the closing call to action. */
.band-dark {
  background: var(--blue-900);
  background-image: var(--grain);
  background-blend-mode: overlay;
  color: var(--on-blue);
  border-radius: var(--r-lg);
  --on-surface: var(--on-blue);
  --focus: var(--amber);
  --edge: var(--edge-dark);
  --link: var(--blue-400);
}
.band-dark h2, .band-dark h3 { color: var(--on-blue); }
.band-dark p { color: var(--on-blue-2); }

/* ---------- Masthead ------------------------------------------------------ */

.masthead { background: var(--canvas); }
.masthead-in {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-4);
}

.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; margin-inline-end: auto; }
.brand .wordmark {
  white-space: nowrap;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand b { font-weight: 600; }
.brand i { font-style: normal; font-weight: 400; color: var(--ink-3); }

.tel {
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: -0.01em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.tel:hover { color: var(--blue-600); }
/* On any blue plane the ink colour above would be unreadable. */
.band-dark .tel, .hero .tel, .page-head .tel { color: var(--on-blue); }
.band-dark .tel:hover, .hero .tel:hover, .page-head .tel:hover { color: var(--amber); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-5);
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
}

/* The nav is one pill-shaped bar — the "one material" of this system. */
.nav { background: var(--canvas); }
.nav > .wrap { padding-bottom: var(--s-2); }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-2);
}
.nav li { max-width: none; }
.nav a {
  display: block;
  padding: var(--s-3) var(--s-4);
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: background-color .2s var(--ease-state), color .2s var(--ease-state);
}
.nav a:hover { background: var(--blue-50); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); }
.nav.open ul { display: block; }

.nav-cta a { color: var(--ink); font-weight: 600; }
.nav-cta:last-child a { background: var(--blue-600); color: #fff; }
.nav-cta:last-child a:hover { background: var(--blue-700); color: #fff; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav ul { display: flex; align-items: center; gap: var(--s-1); }
  .nav a { display: inline-flex; align-items: center; }
  .nav-cta { margin-inline-start: auto; }
  .nav-cta + .nav-cta { margin-inline-start: var(--s-2); }
}

/* ---------- Buttons: pills ------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 50px;
  padding: var(--s-3) var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease-state), color .2s var(--ease-state),
              border-color .2s var(--ease-state), transform .12s var(--ease-state);
}
.btn:hover { background: var(--blue-800); color: #fff; }
.btn:active { transform: scale(.98); }

.btn-amber { background: var(--blue-600); color: #fff; }
.btn-amber:hover { background: var(--blue-700); color: #fff; }

.btn-quiet {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--edge);
}
.btn-quiet:hover { background: var(--on-surface); color: var(--canvas); border-color: transparent; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-5); }

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

.placard {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.placard > :last-child { margin-bottom: 0; }
.placard h3 { font-size: var(--step-1); }

.field-label {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--s-3);
  max-width: none;
}

/* ---------- Hero: inset frame --------------------------------------------- */

.hero { padding: 0 var(--s-5) var(--s-5); background: var(--canvas); }
.hero > .wrap {
  max-width: calc(var(--maxw) + 2 * var(--gut));
  padding-inline: 0;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: var(--s-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--r-lg);
  background:
    var(--grain),
    linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 52%, var(--blue-700) 100%);
  background-blend-mode: overlay, normal;
  color: var(--on-blue);
  overflow: hidden;
  --on-surface: var(--on-blue);
  --focus: var(--amber);
  --edge: var(--edge-dark);
}
.hero h1 {
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--on-blue);
  margin-bottom: var(--s-5);
  max-width: 15ch;
}
.hero .lede { color: var(--on-blue-2); max-width: 40ch; }
.hero-side { display: grid; gap: var(--s-5); align-content: center; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-8); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--rule-blue);
  color: var(--on-blue);
  font-size: var(--step--1);
  font-weight: 500;
  max-width: none;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); letter-spacing: -0.012em; }

/* ---------- The countdown: the one thing that moves ----------------------- */

.countdown {
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--rule-blue);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.countdown .field-label { color: var(--on-blue-2); }
.cd-date {
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--amber);
  margin: 0 0 var(--s-4);
  max-width: none;
  font-variant-numeric: tabular-nums;
}
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.cd-unit { text-align: center; }
.cd-num {
  display: block;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--on-blue);
}
.cd-label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-blue-2);
}
.countdown .rule-note { color: var(--on-blue-2); font-size: var(--step--1); margin: var(--s-4) 0 0; }
/* WCAG 2.2.2 control for the auto-updating clock. Shown by JS only when the
 * clock is actually running, so it never promises something it cannot do. */
.cd-stop {
  margin-top: var(--s-4);
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  background: transparent;
  color: var(--on-blue-2);
  border: 1px solid var(--rule-blue);
  border-radius: var(--r-pill);
  font-size: var(--step--2);
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s var(--ease-state), color .2s var(--ease-state);
}
.cd-stop:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.cd-stop[hidden] { display: none; }

/* ---------- Deadline placard (article sidebars, on light) ----------------- */

.placard-amber, .placard-deadline {
  background:
    var(--grain),
    linear-gradient(150deg, var(--blue-900), var(--blue-700));
  background-blend-mode: overlay, normal;
  color: var(--on-blue);
  border: 0;
  border-radius: var(--r-card);
  padding: var(--s-5);
  --focus: var(--amber);
  --link: var(--blue-400);
}
.placard-amber .field-label { color: var(--on-blue-2); }
p.deadline-date {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--s-2);
  max-width: none;
}
p.deadline-left {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-blue);
  margin: 0 0 var(--s-4);
  max-width: none;
}
.deadline .rule-note { color: var(--on-blue-2); font-size: var(--step--1); margin: 0; }
.deadline .rule-note + .rule-note { margin-top: var(--s-3); }

/* ---------- Utility ------------------------------------------------------- */

.measure-short { max-width: 52ch; }
.stack-top { margin-top: var(--s-5); }
.no-gap { margin-bottom: 0; }
.big-figure {
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-2);
  max-width: none;
}

/* ---------- What you need ------------------------------------------------- */

.need-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr);
  margin-block: var(--s-6);
}
.need-grid .placard { display: flex; flex-direction: column; }
.need-grid h3 { font-size: var(--step-1); margin-bottom: var(--s-3); }
.need-grid p:last-child { margin-bottom: 0; font-size: var(--step--1); color: var(--ink-2); }

@media (min-width: 900px) {
  .need-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
}

/* ---------- Steps (the one real sequence on the site) --------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr);
}
.steps li {
  counter-increment: step;
  max-width: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: var(--step--1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.steps p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }

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

/* ---------- Facts and spec lists ------------------------------------------ */

.facts, .spec { margin: 0; font-size: var(--step--1); }
.facts dt, .spec dt { color: var(--ink-3); padding-top: var(--s-2); }
.placard-amber .facts dt { color: var(--on-blue-2); }
.facts dd, .spec dd {
  margin: 0 0 var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.placard-amber .facts dd { border-bottom-color: var(--rule-blue); }
.facts dd:last-child, .spec dd:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

/* specList() emits a <ul>, not a <dl>, so it needs its own treatment —
 * otherwise it falls through to browser default bullets. */
ul.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
ul.spec li {
  max-width: none;
  position: relative;
  padding-left: 32px;
  font-size: var(--step-0);
  color: var(--ink-2);
  margin: 0;
}
ul.spec li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23005791' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.band-dark ul.spec li { color: var(--on-blue-2); }
.band-dark ul.spec li::before { background-color: rgba(255, 255, 255, .12); }

/* ---------- FAQ ----------------------------------------------------------- */
/* Plain markup, always in the DOM — no accordion. A question a crawler or an
 * answer engine cannot read is not an answer. */

.faq { margin: var(--s-6) 0 0; }
.faq dt {
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  max-width: 36ch;
}
.faq dt:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.faq dd { margin: var(--s-3) 0 0; max-width: var(--measure); color: var(--ink-2); }

/* ---------- Prose --------------------------------------------------------- */

.prose { min-width: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 1.5em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-6) 0; }
.prose th, .prose td { border: 1px solid var(--rule); padding: var(--s-3); text-align: left; }
.prose th { background: var(--blue-50); font-weight: 600; }
.prose blockquote {
  margin: var(--s-6) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--blue-600);
  background: var(--blue-50);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  color: var(--ink-2);
}
.prose img { border-radius: var(--r-card); }
.prose p.lede { font-size: var(--step-1); color: var(--ink); }

/* ---------- Page head and breadcrumbs ------------------------------------- */

.page-head {
  margin: 0 var(--s-5);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px);
  border-radius: var(--r-lg);
  background:
    var(--grain),
    linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 60%, var(--blue-700) 100%);
  background-blend-mode: overlay, normal;
  color: var(--on-blue);
  --focus: var(--amber);
}
.page-head > .wrap { padding-inline: 0; }
.page-head h1 { color: var(--on-blue); margin-bottom: 0; }
.page-head p { color: var(--on-blue-2); margin: var(--s-4) 0 0; font-size: var(--step-1); max-width: 52ch; }

.crumbs { padding-block: var(--s-4); font-size: var(--step--1); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs span { color: var(--ink-3); padding-inline: var(--s-1); }

/* ---------- Pricing ------------------------------------------------------- */

.rates { width: 100%; border-collapse: collapse; }
.rates caption {
  text-align: left;
  font-size: var(--step-2);
  font-weight: 500;
  letter-spacing: -0.025em;
  padding-bottom: var(--s-4);
}
.rates th, .rates td { padding: var(--s-3) 0; text-align: left; border-bottom: 1px solid var(--rule); }
.rates thead th {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rates tbody th { font-weight: 400; color: var(--ink-2); }
.rates td:last-child {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}
.rates tr:last-child th, .rates tr:last-child td { border-bottom: 0; }
.price-foot { font-size: var(--step--1); color: var(--ink-2); margin-top: var(--s-4); }
.table-scroll { overflow-x: auto; }

/* ---------- Index lists --------------------------------------------------- */

.index-group { margin-bottom: var(--s-7); }
.index-group h2 { font-size: var(--step-2); margin-bottom: var(--s-4); }
.index-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s-6); }
.index-list li { max-width: none; break-inside: avoid; margin-bottom: var(--s-3); }

/* ---------- Trust / assurances -------------------------------------------- */

.trust, .assurances { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.trust li, .assurances li {
  max-width: none;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--step--1);
}
.trust svg, .assurances svg { flex: none; margin-top: 5px; color: var(--blue-600); }
.hero .trust svg, .hero .assurances svg, .band-dark .trust svg { color: var(--amber); }
.hero .assurances li, .hero .trust li { color: var(--on-blue-2); }

/* ---------- Forms --------------------------------------------------------- */

.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 500; margin-bottom: var(--s-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
}
.field textarea { border-radius: var(--r-card); min-height: 140px; }
.hint { font-size: var(--step--1); color: var(--ink-2); margin-top: var(--s-2); }

.rule-note { font-size: var(--step--1); color: var(--ink-2); }
.addr { font-style: normal; }

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

.foot {
  margin: var(--s-5);
  padding: var(--s-8) clamp(24px, 4vw, 56px) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--blue-900);
  background-image: var(--grain);
  background-blend-mode: overlay;
  color: var(--on-blue-2);
  --focus: var(--amber);
}
.foot > .wrap { padding-inline: 0; }
.foot a { color: var(--on-blue-2); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot h2 { font-size: var(--step-1); color: var(--on-blue); margin-bottom: var(--s-4); }
.foot p { color: var(--on-blue-2); font-size: var(--step--1); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { font-size: var(--step--1); margin-bottom: var(--s-3); max-width: none; }
.foot .tel { color: var(--on-blue); font-size: var(--step-1); }
.foot .tel:hover { color: var(--amber); }

.foot-grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.foot-base {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-blue);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  font-size: var(--step--2);
}
.foot-base p { margin: 0; font-size: var(--step--2); }

@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }

/* ---------- Entrance choreography ----------------------------------------- */
/* One sequence, on the hero only, finished by ~1.4s. Nothing else on the site
 * animates on scroll. */

@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(22px); }
  .hero-ready .rise {
    opacity: 1;
    transform: none;
    transition: opacity .8s var(--ease-in), transform .8s var(--ease-in);
  }
  .hero-ready .rise:nth-child(1) { transition-delay: .05s; }
  .hero-ready .rise:nth-child(2) { transition-delay: .15s; }
  .hero-ready .rise:nth-child(3) { transition-delay: .25s; }
  .hero-ready .rise:nth-child(4) { transition-delay: .35s; }
  .hero-ready .rise:nth-child(5) { transition-delay: .45s; }
  .hero-side.rise { transition-delay: .3s; }
}

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

@media (max-width: 899px) {
  .hero { padding-inline: var(--s-4); }
  .page-head, .foot { margin-inline: var(--s-4); }
}

@media (max-width: 639px) {
  .index-list { columns: 1; }
  .section, .section-tint { padding-block: var(--s-7); }
  .hero { padding-inline: var(--s-3); padding-bottom: var(--s-3); }
  .page-head, .foot { margin-inline: var(--s-3); }
  .cd-grid { gap: var(--s-1); }

  .masthead-in { flex-wrap: wrap; row-gap: var(--s-2); }
  .nav-toggle { order: 2; }
  .tel { order: 3; flex-basis: 100%; display: flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Pricing comparison -------------------------------------------- */

/* One table, two price columns, so a reader can compare a fleet size across
 * both plans on one line. Both money columns are right-aligned and tabular;
 * the base .rates rule only aligns the last one. */
.rates-compare th, .rates-compare td { padding-right: var(--s-4); }
.rates-compare td { text-align: right; white-space: nowrap; font-weight: 600; letter-spacing: -0.02em; }
.rates-compare thead th:not(:first-child) { text-align: right; }
.rates-compare tbody th { white-space: nowrap; }
.rates-compare th:last-child, .rates-compare td:last-child { padding-right: 0; }
.rates-compare tbody tr:nth-child(odd) { background: var(--blue-50); }
.rates-compare thead th { vertical-align: bottom; }
/* Three columns stretched over the full 1240px measure leave a canyon between
 * the fleet size and its price, so the eye loses the row. Cap the table and
 * give the money columns a fixed share. */
.rates-compare { max-width: 820px; }
.rates-compare thead th:not(:first-child) { width: 22%; }
/* The caption names the page's primary content, so it carries the weight of
 * the section headings further down rather than reading as a sub-label. */
.rates-compare caption {
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: -0.03em;
  padding-bottom: var(--s-5);
}
.price-foot { max-width: 820px; }
.th-note {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-2);
  margin-top: var(--s-1);
}

/* ---------- Utility, part two --------------------------------------------- */

/* These replace what used to be inline style attributes in build/content.mjs,
 * so every spacing decision on the site now comes from the scale above. */
.page-body { padding-block: var(--s-7); }
.small { font-size: var(--step--1); }
.tight-1 { margin-bottom: var(--s-1); }
.tight { margin-bottom: var(--s-2); }
.tight-3 { margin-bottom: var(--s-3); }
.stack-2 { margin-top: var(--s-6); }
.stack-3 { margin-top: var(--s-7); }
.h2-gap { margin-top: var(--s-7); }
.measure { max-width: var(--measure); }
.opt { font-weight: 400; color: var(--ink-3); }
.rule-note-flush { border-top: 0; padding-top: 0; }
.one-col { columns: 1; }
.stack-1 { margin-top: var(--s-3); }
.placard-lead { margin-bottom: var(--s-7); max-width: 46rem; }

@media print {
  .masthead, .nav, .foot, .btn-row, .aside, .nav-toggle, .skip, .countdown { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .page-head, .hero-grid { background: none !important; color: #000; margin: 0; padding: 0; }
  .page-head h1, .hero h1 { color: #000; }
  a { color: #000; text-decoration: none; }
}
