/* Home page. Dusk photos carry the sections and the words stay short. Highway signs and the
   amber centerline come from the logo; the type and sign corners match TruckBridge, the sister company. */
:root {
  --night: #071628;
  --road: #0f3058;
  --on-navy: #c8d6e8;
  --control: #7f8a9b;  /* input borders, 3:1 on white */
  --haze: #f1f4f8;
  --market: #2f6fb5;   /* chart series, passes the CVD validator against amber */
  /* In landscape the notch takes the side edge, so the gutter grows to clear it (viewport-fit=cover). */
  --gutter: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --column: 84rem;
  --sign-radius: 6px;
  --out: cubic-bezier(.23, 1, .32, 1);
  --in-out: cubic-bezier(.77, 0, .175, 1);
}

::selection { background: var(--amber); color: var(--navy); }
.landing input { caret-color: var(--navy); }

/* Amber is too faint on white, so focus rings are navy except on the dark bands. */
.landing :focus-visible { outline-color: var(--navy); }
.landing .hero-copy :focus-visible,
.landing .trust :focus-visible,
.landing .danger :focus-visible,
.landing .borrow :focus-visible,
.landing .steps :focus-visible { outline-color: var(--amber); }

/* Every section sits on one column, so all left edges line up with the logo. */
.landing main > section {
  padding-block: clamp(56px, 7vw, 96px);
  padding-inline: max(var(--gutter), calc((100% - var(--column)) / 2));
}
.landing .site-header, .landing .site-footer {
  padding-inline: max(var(--gutter), calc((100% - var(--column)) / 2));
}
.landing main h2, .landing main h3 { text-wrap: balance; }
.landing main h2 {
  margin: 0;
  font: 700 clamp(2.25rem, 4.4vw, 3.5rem)/1.02 var(--display);
}
.landing main p { margin: 0; text-wrap: pretty; }

/* Header */
.landing .site-nav { align-items: center; font-size: 1.0625rem; }
.landing .site-nav a { padding-block: 14px; }
.landing .site-nav .nav-cta {
  padding: 14px 20px;
  border: 0;
  border-radius: var(--sign-radius);
  background: var(--amber);
}

/* Hero: the truck is an image rather than a background so it can carry alt text. It fades
   into a CSS sky on its left edge, which is where the copy and the form sit. */
.landing main > .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 37.5rem);
  align-content: start;
  gap: clamp(20px, 2.4vw, 28px);
  padding-block: clamp(28px, 2.6vw, 40px) clamp(40px, 4.4vw, 64px);
  background: linear-gradient(180deg, #0a1f3b 0%, #123058 44%, #2a3f5e 62%, #0b1a2e 74%, var(--night) 100%);
  color: #fff;
}
.hero-photo {
  position: absolute;
  inset-block: 0;
  right: 0;
  z-index: -1;
  width: min(70%, 72rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
  mask-image: linear-gradient(to right, transparent 0, #000 34%);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 100%;
}
.landing main .hero h1 {
  margin: 0;
  font: 700 clamp(3.25rem, 6vw, 4.875rem)/.96 var(--display);
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(7, 22, 40, .45);
}
.landing main .hero-lead {
  margin-top: 14px;
  font: 600 clamp(1.25rem, 1.75vw, 1.375rem)/1.25 var(--head);
}
.landing main .hero-plain { margin-top: 8px; max-width: 34em; color: var(--on-navy); font: 400 1.0625rem/1.45 var(--head); }

.hero-form {
  max-width: 32rem;
  padding: clamp(20px, 2vw, 24px);
  border-radius: var(--sign-radius);
  background: var(--paper);
  color: var(--navy);
  box-shadow: 0 18px 44px rgba(7, 22, 40, .5);
  scroll-margin-top: 16px;
}
.hero-form:focus { outline: none; }
.landing main .hero-form h2 {
  margin: 0 0 12px;
  font: 700 1.625rem/1.08 var(--display);
}
.hero-form .form { max-width: none; }
.hero-form .field input { border-color: var(--control); }
.hero-form .field input:focus { border-color: var(--navy); }
.hero-form .field input[aria-invalid="true"] { border-color: #b42318; }
.hero-form .check input { width: 24px; height: 24px; margin-top: 0; }
.hero-form .field { margin-bottom: 12px; }
.hero-form .field-row { gap: 12px; }
/* Consent wording stays word for word, on its own step, so the first step is only three fields. */
.hero-form .check { margin-bottom: 14px; padding: 0; border: 0; gap: 10px; }
/* Step 2 holds only the two boxes, so the consent reads at body size in a sunny cab. */
.hero-form .check label { color: var(--asphalt); font-size: 0.9375rem; line-height: 1.5; }
.hero-form .check label a { padding-block: 4px; }
.hero-form .check strong { color: var(--navy); }
.hero-form .check input[aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: 2px; }
.hero-form .button { width: 100%; }
.hero-form .done p { margin-top: 8px; }
.hero-form .done h2 { margin-bottom: 0; }
/* Sent: both lane dashes painted, and the number set like a sign, because it is the one thing to check. */
.form-progress.is-done i::before { transform: none; }
.landing main .hero-form .done-phone {
  margin-top: 4px;
  white-space: nowrap;
  font: 700 clamp(2rem, 8vw, 2.5rem)/1.1 var(--display);
  font-variant-numeric: tabular-nums;
}
/* The sent card is shorter, so the desktop hero is too: keep the cab and stacks in frame, not just the grille. */
@media (min-width: 901px) { .is-sent .hero-photo img { object-position: 62% 45%; } }
/* Once the request is sent, nothing else on the page asks for it again. */
.is-sent .site-nav .nav-cta, .is-sent .inline-cta, .is-sent .steps-cta { display: none; }

/* Two lane dashes: the second one paints in on the consent step. */
.landing main .form-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--asphalt);
  font: 600 0.8125rem/1 var(--head);
}
.form-progress i { flex: 0 0 34px; height: 4px; border-radius: 2px; background: var(--lane); overflow: hidden; }
.form-progress i::before { content: ""; display: block; height: 100%; background: var(--amber); }
.form-progress i + i::before { transform: scaleX(0); transform-origin: left; }
.form[data-step="2"] .form-progress i + i::before { transform: none; }
.form-progress span { order: 3; }

.landing main .form-note { margin-bottom: 14px; }
.link-button {
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: 600 0.875rem/1.4 var(--head);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.hero-form .step-back { display: block; margin: 2px auto 0; }

.landing .button {
  padding: 17px 28px;
  border-radius: var(--sign-radius);
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.0625rem;
}
@media (hover: hover) and (pointer: fine) {
  .landing .button:hover:not([disabled]), .landing .site-nav .nav-cta:hover { background: #ffb056; }
}

/* Short facts in place of paragraphs */
.landing main > .trust {
  padding-block: clamp(22px, 2.6vw, 32px);
  background: var(--night);
  color: #fff;
}
.trust ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust li { position: relative; }
.trust li + li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: calc(clamp(24px, 3vw, 48px) / -2 - 2px);
  width: 4px;
  height: 56px; /* two whole dashes on every item, however its text wraps */
  background: linear-gradient(to bottom, var(--amber) 52%, transparent 52%) 0 0 / 4px 28px repeat-y;
}
.trust strong { display: block; font: 700 clamp(1.625rem, 2.6vw, 2.125rem)/1.05 var(--display); }
.trust span { display: block; margin-top: 4px; color: var(--on-navy); font: 400 0.9375rem/1.35 var(--head); }
@media (min-width: 1200px) { .trust span { font-size: 1rem; } }

/* Dangers: a poster. The heading sits in the sky, the numbers on the ground, the truck between. */
.landing main > .danger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: clamp(560px, min(66vw, 88svh), 940px); /* the headline and the numbers share a laptop screen */
  padding-block: clamp(40px, 4.4vw, 64px);
  background: var(--night);
  color: #fff;
}
.danger-photo { position: absolute; inset: 0; z-index: -2; }
.danger-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 90% 100%; }
.landing main > .danger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 22, 40, .72) 0%, rgba(7, 22, 40, 0) 34%, rgba(7, 22, 40, 0) 62%, rgba(7, 22, 40, .94) 82%);
}
.landing main .danger h2 { max-width: 16em; font-size: clamp(2.5rem, 5vw, 4.25rem); text-shadow: 0 2px 18px rgba(7, 22, 40, .5); }
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px clamp(24px, 4vw, 64px); align-items: end; }
.landing main .stat-number {
  font: 700 clamp(3rem, 5vw, 4.5rem)/.95 var(--display);
  font-variant-numeric: tabular-nums;
}
.landing main .stat-big .stat-number { color: var(--amber); font-size: clamp(5rem, 9.5vw, 8.5rem); line-height: .85; }
.landing main .stat-text { margin-top: 8px; font: 500 1.0625rem/1.3 var(--head); }
.landing main .stat-source { margin-top: 6px; color: var(--on-navy); font: 400 0.75rem/1.4 var(--head); }

/* The stakes in a sentence */
.landing main .watch-line { max-width: 24em; font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--display); }
/* The talk stands beside the line. Its captions are burned in, so it can play muted. */
.landing main > .watch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px clamp(32px, 6vw, 88px);
}
.watch-video {
  width: clamp(240px, 24vw, 340px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--sign-radius);
  background: var(--night);
  box-shadow: 0 18px 44px rgba(7, 22, 40, .25);
}
.watch-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A sign. Good news is white, like a regulatory sign. */
.sign {
  margin: 5px;
  padding: 20px;
  border: 3px solid var(--navy);
  border-radius: var(--sign-radius);
  outline: 5px solid var(--paper);
  outline-offset: -1px;
  background: var(--paper);
  color: var(--navy);
}
.landing main .sign-number {
  font: 700 clamp(2.75rem, 4vw, 3.5rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.landing main .sign-text { margin-top: 8px; font: 600 1.0625rem/1.3 var(--head); }
.landing main .sign-note { margin-top: 10px; color: var(--asphalt); font: 400 0.875rem/1.45 var(--head); }
.landing main .inline-cta { margin-top: 20px; }

/* Off the road: the money, drawn as a road seen from above */
.landing main > .off-road {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  background: var(--haze);
}
.landing main .off-road-head p { margin-top: 12px; max-width: 30em; }
.off-road-answer { margin-top: clamp(20px, 2.4vw, 28px); }
.lanes-money { margin-top: 6px; } /* the road's top edge meets the headline's cap height */
.lanes-money {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 4vw, 56px);
  padding: clamp(28px, 3.4vw, 44px) clamp(36px, 3vw, 44px);
  border-radius: var(--sign-radius);
  background: var(--road);
  /* Shoulder, then the white edge line, on both sides. Inset so it stays on the page's column. */
  box-shadow: inset 12px 0 0 var(--night), inset -12px 0 0 var(--night), inset 17px 0 0 #fff, inset -17px 0 0 #fff;
  color: #fff;
}
.lanes-money::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  /* "space" places only whole dashes and spreads the leftover between them, so the line never ends on a stub */
  background: linear-gradient(to bottom, var(--amber) 26px, transparent 26px) 0 0 / 4px 50px no-repeat space;
}
.lane-money h3 { margin: 0 0 14px; font: 700 clamp(1.75rem, 2.8vw, 2.25rem)/1.05 var(--display); }
.lane-money ul { margin: 0; padding: 0; list-style: none; font: 500 clamp(1.0625rem, 1.7vw, 1.25rem)/1.25 var(--head); }
.lane-money li + li { margin-top: 12px; }
.lane-stops li { text-decoration: line-through; text-decoration-color: var(--amber); text-decoration-thickness: 2px; color: var(--on-navy); }

/* IUL vs 401(k): the argument on the left, the chart beside it */
.landing main > .market {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "head chart" "tax chart";
  column-gap: clamp(32px, 4vw, 88px);
}
.market-head { grid-area: head; }
.landing main .market-head p { margin-top: 14px; max-width: 34em; }
.chart { grid-area: chart; margin: 0; }
.chart figcaption { margin-bottom: 14px; font: 700 1rem/1.3 var(--head); }

/* Two odometers follow the same money through five years. home.js turns the printed amounts into reels;
   without it they stay as plain text and the table still has every year. */
.odometer { font-family: var(--head); }
.landing main .odo-year { margin-bottom: 10px; color: var(--navy); font: 700 clamp(1.5rem, 2.6vw, 2rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.odo-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.odo { container-type: inline-size; padding: 12px; border-radius: var(--sign-radius); background: var(--haze); }
.odo-name { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--navy); font-weight: 700; }
.key { display: block; flex: none; width: 20px; height: 3px; border-radius: 2px; }
.key-market { background: var(--market); }
.key-iul { background: var(--amber); }
.odo-reels {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px 4px 6px;
  border-radius: var(--sign-radius);
  background: var(--navy);
  color: var(--paper);
  font: 700 clamp(1.375rem, 19cqi, 3.25rem)/1.2 var(--display);
  font-variant-numeric: tabular-nums;
}
.odo-sign { padding-right: 3px; color: var(--amber); }
.odo-tail { padding-left: 1px; color: var(--on-navy); }
.odo-reel { position: relative; display: block; width: .62em; height: 1.2em; overflow: hidden; border-radius: 3px; background: var(--night); }
/* The window darkens toward its edges, so the digits read as turning on a drum. */
.odo-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7, 22, 40, .6), transparent 28%, transparent 72%, rgba(7, 22, 40, .6)); }
.odo-strip { display: block; }
.odo-strip b { display: block; height: 1.2em; font-weight: 700; text-align: center; }
/* The year's change is the point of the chart, so it reads at sign size. */
.landing main .odo-change { min-height: 1.1em; margin-top: 10px; color: var(--navy); font: 700 clamp(1.25rem, 9cqi, 1.75rem)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.landing main .odo-change[data-down] { color: #b42318; }
/* A loss gets a drawn down-arrow; the floor gets a drawn floor line, in the IUL's amber. */
.landing main .odo-change[data-down]::before, .landing main .odo-change[data-floor]::before {
  content: "";
  display: inline-block;
  width: .62em;
  height: .62em;
  margin-right: .28em;
  vertical-align: .04em;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.landing main .odo-change[data-down]::before { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 2.5h10L6 11z'/%3E%3C/svg%3E"); }
.landing main .odo-change[data-floor]::before {
  /* A solid bar on the baseline: the floor itself, in the IUL's amber key color. */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 11h16v4H0z'/%3E%3C/svg%3E");
  width: .8em;
  background: var(--amber);
}
.landing main .odo-before { text-wrap: balance; }
.landing main .odo-before { margin-top: 2px; color: var(--asphalt); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.odo-years { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; }
.odo-years[hidden] { display: none; }
.odo-years button {
  min-height: 44px;
  padding: 0 2px;
  border: 1px solid var(--lane);
  border-radius: var(--sign-radius);
  background: var(--paper);
  color: var(--navy);
  font: 600 0.875rem/1.1 var(--head);
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .odo-years button:hover { border-color: var(--navy); }
}
.odo-years button[aria-current] { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.landing main .odo-line { min-height: 2.7em; margin-top: 12px; color: var(--navy); font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
/* The rest of the story stays in plain sight, as loud as the year's line above it. */
.landing main .chart-note { margin-bottom: 6px; max-width: 72ch; color: var(--asphalt); font: 400 0.8125rem/1.5 var(--head); }
.chart-table { margin-top: 8px; font: 400 0.9375rem/1.4 var(--head); }
.chart-table summary { padding-block: 10px; cursor: pointer; font-weight: 600; }
/* Every disclosure on the page uses the FAQ's drawn chevron. */
.chart-table summary, .footer-legal summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.chart-table summary::-webkit-details-marker, .footer-legal summary::-webkit-details-marker { display: none; }
.chart-table summary::after, .footer-legal summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.chart-table[open] summary::after, .footer-legal[open] summary::after { transform: translateY(2px) rotate(225deg); }
.chart-table table { width: 100%; margin-top: 6px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--lane); text-align: left; vertical-align: top; }
.chart-table small { display: block; color: var(--asphalt); font-size: 0.75rem; }
.landing main .market-tax { grid-area: tax; margin-top: 24px; max-width: 26em; font: 700 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--display); }

/* Borrowing: the photo runs off the edge of the page, with the number signed on it */
.landing main > .borrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-block: 0;
  padding-right: 0;
  background: var(--navy);
  color: #fff;
}
.borrow-copy { padding-block: clamp(48px, 6vw, 80px); }
.landing main .borrow-copy p:not(.inline-cta) { margin-top: 14px; max-width: 32em; color: var(--on-navy); }
.landing main .borrow-copy .borrow-lead { color: #fff; }
.borrow-photo { position: relative; align-self: stretch; min-height: clamp(380px, 40vw, 600px); }
.borrow-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.borrow-photo .sign { position: absolute; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); max-width: 15rem; }

/* Before you sign: each question states the answer, and the detail opens on request */
.landing main > .straight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  column-gap: clamp(32px, 6vw, 88px);
}
.faq details { border-bottom: 1px solid var(--lane); }
.faq details:first-child { border-top: 1px solid var(--lane); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-block: 14px;
  font: 600 clamp(1.125rem, 1.6vw, 1.25rem)/1.25 var(--head);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* Drawn chevron, so the marker matches the page instead of the browser */
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: translateY(-2px) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.landing main .faq p { max-width: 62ch; padding-bottom: 18px; color: var(--asphalt); font-size: 1.0625rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
}

/* Steps run along the centerline, because they are a real sequence */
.landing main > .steps { background: var(--night); color: #fff; }
.steps-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 68px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 3px solid #fff;
  border-radius: var(--sign-radius);
  font: 700 1.625rem/1 var(--display);
}
/* The centerline runs from each sign to the next and stops at the last one. */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 62px;
  right: calc(clamp(24px, 4vw, 56px) * -1 + 12px);
  height: 4px;
  /* Whole dashes with an equal gap at each end, so the line meets both signs the same way. */
  background: linear-gradient(to right, transparent 10px, var(--amber) 10px 32px, transparent 32px) 0 0 / 42px 4px space no-repeat;
}
/* The last ask comes after the steps it sells, on the same left edge as everything else, and wide enough to close the page. */
.landing main .steps-cta { margin-top: clamp(32px, 4vw, 48px); }
.steps-cta .button { min-width: min(100%, 18rem); text-align: center; }
.steps h3 { margin: 0; font: 700 clamp(1.5rem, 2.2vw, 1.75rem)/1.1 var(--display); }
.landing main .steps li p { margin-top: 8px; color: var(--on-navy); font-size: 1.0625rem; line-height: 1.45; }

/* Phones: the button is always in reach, except when the form is already on screen */
.sticky-cta { display: none; }

/* Footer: the disclosure and photo credit take their own rows, then copyright and links */
.footer-legal { flex: 0 0 100%; margin: 0 0 4px; }
.footer-legal summary { min-height: 44px; padding-block: 11px; cursor: pointer; font-weight: 600; }
.footer-legal p { max-width: 62ch; margin: 0 0 8px; text-wrap: pretty; }
.landing .photo-credit { flex: 0 0 100%; margin: 0 0 8px; font-size: 0.8125rem; }
.landing .site-footer { align-items: center; } /* copyright and links share one baseline row */
.landing .site-footer nav a { display: inline-block; padding-block: 12px; }

/* Motion. The truck pulls in once and the hero copy follows, then each section rises into place
   the first time it comes on screen. home.js adds .reveal only to what starts below the fold, so
   the page is fully visible without it. Reduced motion keeps short fades and drops all movement. */
.reveal:not(.is-in) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-photo img { animation: pull-in 900ms var(--out) both; transform-origin: 62% 100%; }
  .hero-copy > *, .hero-form { animation: rise 600ms var(--out) both; }
  .hero-lead { animation-delay: 60ms; }
  .hero-plain { animation-delay: 120ms; }
  .hero-form { animation-delay: 180ms; }

  .reveal:not(.is-in) { transform: translateY(16px); }
  .sign.reveal:not(.is-in) { transform: translateY(8px) scale(.96); }
  .reveal.is-in { transition: opacity 560ms var(--out), transform 560ms var(--out); }

  /* The centerline paints down the road, and the income that stops gets struck out after it. */
  .lanes-money.reveal:not(.is-in)::before { clip-path: inset(0 0 100% 0); }
  .lanes-money.is-in::before { transition: clip-path 800ms var(--in-out) 120ms; }
  .lanes-money.reveal:not(.is-in) .lane-stops li { color: #fff; text-decoration-color: transparent; }
  .lanes-money.is-in .lane-stops li { transition: color 300ms ease 560ms, text-decoration-color 300ms ease 560ms; }

  /* Each step's centerline paints on to the next sign. */
  .steps li.reveal:not(.is-in):not(:last-child)::after { clip-path: inset(0 100% 0 0); }
  .steps li.is-in:not(:last-child)::after { transition: clip-path 700ms var(--in-out) 200ms; }
  @media (max-width: 900px) {
    .steps li.reveal:not(.is-in):not(:last-child)::after { clip-path: inset(0 0 100% 0); }
  }

  /* Photos settle as they scroll through the page, echoing the hero. They never scale below full size, so no edge shows. */
  @supports (animation-timeline: view()) {
    .danger-photo, .borrow-photo { overflow: hidden; }
    .danger-photo img, .borrow-photo > img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .danger-photo img { transform-origin: 90% 100%; }
    .borrow-photo > img { transform-origin: 40% 30%; }
  }

  .landing .button, .landing .site-nav .nav-cta { transition: transform 120ms var(--out), background-color 150ms ease-out; }
  .landing .button:active:not([disabled]), .landing .site-nav .nav-cta:active { transform: scale(.98); }
  .odo-years button { transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 120ms var(--out); }
  .odo-years button:active { transform: scale(.97); }
  .hero-form .field input { transition: border-color 150ms ease-out; }
  .sticky-cta { transition: transform 200ms var(--out), visibility 200ms; }
  .form-progress i + i::before { transition: transform 240ms var(--out); }
  .faq summary::after, .chart-table summary::after, .footer-legal summary::after { transition: transform 180ms var(--out); }

  /* Closed sections open instead of jumping, in browsers that can animate to a natural height. */
  @supports selector(::details-content) and (interpolate-size: allow-keywords) {
    .faq details, .chart-table, .footer-legal { interpolate-size: allow-keywords; }
    .faq details::details-content, .chart-table::details-content, .footer-legal::details-content {
      height: 0;
      opacity: 0;
      overflow: clip;
      transition: height 220ms var(--out), opacity 220ms var(--out), content-visibility 220ms allow-discrete;
    }
    .faq details[open]::details-content, .chart-table[open]::details-content, .footer-legal[open]::details-content { height: auto; opacity: 1; }
  }

  /* A new step, the thank-you or an error message rises or fades into place. */
  .form-step, .hero-form .done { transition: opacity 200ms var(--out), transform 200ms var(--out); }
  .field-error { transition: opacity 160ms var(--out); }
  @starting-style {
    .form-step, .hero-form .done { opacity: .5; transform: translateY(6px); }
    .field-error { opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: fade 200ms ease-out both; }
  .reveal.is-in { transition: opacity 200ms ease-out; }
}
/* The scale outruns the shift, so the photo's left edge never shows a gap on phones. */
@keyframes pull-in { from { opacity: .55; transform: translateX(2%) scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.1); } to { transform: none; } }
@keyframes fade { from { opacity: .55; } to { opacity: 1; } }

@media (max-width: 900px) {
  /* Phones and tablets stack: truck, headline, form. Copy sits on the flat night color below the photo. */
  .landing main > .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
    background: var(--night);
  }
  .hero-photo {
    position: relative;
    inset: auto;
    z-index: auto;
    width: auto;
    height: clamp(240px, 62vw, 460px);
    margin-inline: calc(max(var(--gutter), (100% - var(--column)) / 2) * -1);
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .hero-photo img { object-position: 58% 62%; }
  .landing main .hero h1 { margin-top: -32px; position: relative; }
  .hero-form { max-width: none; }

  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li + li::before { display: none; }

  .landing main > .danger { min-height: 0; justify-content: flex-start; gap: 0; }
  .landing main > .danger::after { display: none; }
  .danger-photo {
    position: relative;
    inset: auto;
    z-index: auto;
    order: 2;
    aspect-ratio: 3 / 2;
    margin-inline: calc(max(var(--gutter), (100% - var(--column)) / 2) * -1);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent);
  }
  .stats { order: 3; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }

  .landing main > .off-road, .landing main > .straight, .landing main > .watch { grid-template-columns: minmax(0, 1fr); }
  .watch-video { width: min(100%, 340px); }
  /* Stacked, the problem comes before the answer: headline, the money road, then the sign and the button. */
  .off-road-main { display: contents; }
  .off-road-head { order: 1; }
  .lanes-money { order: 2; }
  .off-road-answer { order: 3; margin-top: 0; }
  .landing main > .market {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "head" "chart" "tax";
  }
  .chart { margin-top: 28px; }
  .landing main > .borrow { grid-template-columns: minmax(0, 1fr); padding-right: max(var(--gutter), calc((100% - var(--column)) / 2)); }
  .borrow-photo { order: -1; min-height: 72vw; margin-inline: calc(max(var(--gutter), (100% - var(--column)) / 2) * -1); }
  .borrow-copy { padding-block: 0 48px; }
  .faq { margin-top: 24px; }

  .steps ol { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps li { padding: 0 0 0 72px; }
  .steps li:not(:last-child)::after {
    top: 54px;
    bottom: -36px;
    left: 23px;
    right: auto;
    width: 4px;
    height: auto;
    /* Shorter phone connectors use a shorter dash so each shows two or more whole dashes, centered when only one fits. */
    background: linear-gradient(to bottom, transparent 6px, var(--amber) 6px 20px, transparent 20px) center / 4px 28px no-repeat space;
  }
  .inline-cta .button { display: block; text-align: center; }

  .landing { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: block;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper);
    box-shadow: 0 -6px 18px rgba(7, 22, 40, .18);
  }
  .sticky-cta .button { display: block; text-align: center; }
  .sticky-cta.is-hidden { transform: translateY(100%); visibility: hidden; }
}

@media (max-width: 560px) {
  /* The first phone screen reaches the Name field, and the header keeps its button. */
  .landing .site-header { flex-direction: row; align-items: center; flex-wrap: nowrap; padding-block: 12px; }
  .landing .site-nav a:not(.nav-cta) { display: none; }
  .landing .site-nav .nav-cta { padding: 12px 16px; white-space: nowrap; }
  .hero-photo { height: clamp(180px, 46vw, 460px); }
  .landing main .hero h1 { font-size: 2.75rem; margin-top: -24px; }
  .landing main .hero-plain { display: none; }
  /* Stacked fields: the field margin alone spaces them, so the row gap would double it. */
  .hero-form .field-row { gap: 0; }
  .lanes-money { column-gap: 32px; padding-inline: 28px; align-items: start; }
  .lane-money h3 { font-size: clamp(1.375rem, 6.2vw, 2.25rem); }
  .trust strong { font-size: 1.375rem; }
  .steps-cta .button { display: block; text-align: center; }
  .steps-cta { width: 100%; }
  .landing main .odo-line { min-height: 4.05em; }
  .odo-name { gap: 6px; font-size: clamp(0.8125rem, 11cqi, 0.9375rem); white-space: nowrap; }
  .key { width: 14px; }
  .landing .site-footer nav a { min-height: 44px; }
}

/* The smallest phones fit the logo and the header button on one row, and the form climbs a little. */
@media (max-width: 374px) {
  .landing .site-header img { height: 32px; }
  .landing .site-nav .nav-cta { padding: 10px 12px; font-size: 1rem; }
  .hero-photo { height: 150px; }
  .landing main .hero-form h2 { font-size: 1.375rem; }
  .landing .site-footer nav { column-gap: 16px; }
  .lanes-money { column-gap: 24px; padding-inline: 22px; }
  .lane-money h3 { font-size: 1.25rem; }
  .lane-money ul { font-size: 1rem; }
}

/* Short laptop screens (1366×768 and the like): the whole form, button included, fits the first screen. */
@media (min-width: 901px) and (max-height: 740px) {
  .landing main > .hero { padding-top: 20px; gap: 16px; }
  .landing main .hero h1 { font-size: 3.5rem; }
  .landing main .hero-plain { display: none; }
}

@media print {
  .hero-photo, .danger-photo, .borrow-photo > img, .sticky-cta, .odo-years, .watch-video { display: none; }
  .reveal:not(.is-in) { opacity: 1; transform: none; }
}
