/* The pages link tokens.css before this file. Do not use @import here: the browser then gets the two files one after the other. */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--navy); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { font-size: var(--body); line-height: var(--lh-body); font-variant-numeric: tabular-nums; }
/* Selected text: navy on safety orange, the colours of the buttons. The same in the two themes. */
::selection { background: var(--action); color: var(--on-action); }
a { color: inherit; text-decoration: none; }
/* A link in running text has an underline, so the colour is not the only sign of the link. */
p a, .proof span a, .text-page a { color: var(--link); text-decoration: underline; text-decoration-color: var(--action); text-decoration-thickness: 2px; text-underline-offset: 3px; }
p a:hover, .proof span a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 400; font-variant-numeric: lining-nums; text-wrap: balance; }  /* Castoro has old-style figures by default */
h1 { font-size: var(--h1); line-height: var(--lh-h1); letter-spacing: var(--track-h1); }
h2 { font-size: var(--h2); line-height: var(--lh-h2); letter-spacing: var(--track-h2); }
h3 { font-size: var(--h3); line-height: var(--lh-h3); letter-spacing: var(--track-h3); }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 var(--gutter); }
.soft { color: var(--navy-70); }
.small { font-size: var(--small); line-height: var(--lh-small); }
:focus-visible { outline: none; box-shadow: var(--ring); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); height: var(--control-h); padding: 0 var(--s2); border: 1px solid transparent; border-radius: var(--r-control); font: inherit; font-size: var(--button); font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); }
.btn-primary:active { background: var(--action-hover); filter: brightness(0.94); }
.btn-secondary { background: var(--page); color: var(--navy); border-color: var(--navy-12); }
.btn-secondary:hover { background: var(--fog); }
.btn-secondary:active { background: var(--fog); filter: brightness(0.97); }
.btn svg { width: 14px; height: 14px; }
.field { display: flex; flex-direction: column; gap: var(--s0); }
.field > span { font-size: var(--small); font-weight: 500; color: var(--navy-70); }
.field input, .field textarea, .field select { font: inherit; font-size: var(--body); color: var(--navy); background: var(--white); border: 1px solid var(--navy-12); border-radius: var(--r-control); height: var(--field-h); padding: 0 16px; width: 100%; transition: border-color .15s ease; }
.field textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--navy-40); }
/* Filled: a field with a value keeps a darker border. :where() keeps the specificity low, so focus and error still win. */
.field input:where(:not([type="date"]):not(:placeholder-shown)), .field textarea:not(:placeholder-shown), .field select:where(:has(option:checked:not([value=""]))), .field input:where([type="date"]:valid) { border-color: var(--navy-40); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--navy-40); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--action); }
.field.error input, .field.error select { border-color: var(--navy); }
.field .msg { display: none; font-size: var(--small); font-style: normal; color: var(--navy); }
.field.error .msg { display: block; }
/* Address suggestions under the pickup and drop-off fields (address.js). The panel floats like the quote card. */
.addr { position: relative; }
/* A stop on the quote page: the address, then its unit under it, so that the two stay together on a phone. */
.stop { display: flex; flex-direction: column; gap: var(--s2); }
.suggest { position: absolute; z-index: 5; top: calc(100% + var(--s0)); left: 0; right: 0; margin: 0; padding: var(--s0) 0; list-style: none; background: var(--white); border: 1px solid var(--navy-12); border-radius: var(--r-form); box-shadow: var(--shadow); }
.suggest [role="option"] { padding: var(--s1) var(--s2); line-height: var(--lh-small); cursor: pointer; }
.suggest [role="option"] span { display: block; font-size: var(--small); color: var(--navy-70); }
.suggest [role="option"]:hover, .suggest [aria-selected="true"] { background: var(--fog); }
/* Google requires these words under its suggestions: 12 to 16 px, weight 400, in the gray or white that it sets (--credit). */
.suggest .credit { padding: var(--s0) var(--s2); font-size: 12px; font-weight: 400; color: var(--credit); text-align: right; }
.card { background: var(--white); border: 1px solid var(--fog); border-radius: var(--r-card); padding: var(--s3); }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--navy-08); }
.header .wrap { display: flex; align-items: center; height: var(--header-h); gap: var(--s4); }
/* The logo files in website/design/logo/lane-box/ are copies from mzf-labs/mzf-brand.
   The dark theme uses the on-dark file, because the navy truck disappears on the dark page. */
.wordmark { display: flex; align-items: center; flex: none; }
.wordmark img { display: block; height: 30px; width: auto; }
.wordmark .logo-dark { display: none; }
:root[data-theme="dark"] .wordmark .logo-light { display: none; }
:root[data-theme="dark"] .wordmark .logo-dark { display: block; }
.footer .wordmark img { height: 26px; }
.menu { display: flex; gap: var(--s3); margin-left: var(--s1); }
.menu a { font-size: var(--small); font-weight: 500; color: var(--navy-70); padding: var(--s1) 0; }
.menu a:hover { color: var(--navy); }
.header .right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.tel { font-size: var(--small); font-weight: 500; white-space: nowrap; }
.tel a:hover { text-decoration: underline; }
.menu-btn { display: none; width: var(--control-h); padding: 0; }
.theme-btn { width: var(--control-h); padding: 0; }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
/* The theme item of the phone menu. The header has no room for the theme button on a phone. */
.menu-theme { display: none; font: inherit; font-size: var(--button); font-weight: 500; color: var(--navy-70); background: none; border: 0; padding: var(--s1) 0; text-align: left; cursor: pointer; }
.menu-theme:hover { color: var(--navy); }
.label-short { display: none; }

/* Hero */
.hero { padding-top: var(--header-h); }
.copy { text-align: center; padding-top: 88px; padding-bottom: var(--s4); position: relative; z-index: 2; }
.copy h1 { max-width: 14em; margin: 0 auto var(--s3); }
.br { display: block; } /* Ends the first sentence of the h1 on its own line, at every width. */
.lead { font-size: var(--lead); line-height: var(--lh-body); color: var(--navy-70); max-width: 34em; margin: 0 auto var(--s4); }
.quote-card { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--s1); background: var(--white); border: 1px solid var(--navy-12); border-radius: var(--r-form); padding: var(--s1); max-width: 600px; margin: 0 auto; box-shadow: var(--shadow); text-align: left; }
.quote-card .field { padding: var(--s1) 12px; gap: 4px; }
.quote-card .field > span { font-size: 12px; }
.quote-card .field input { border: 0; background: transparent; height: auto; padding: 0; font-size: 15px; }
.quote-card .field input:focus-visible { box-shadow: none; }
.quote-card .field:has(:focus-visible) { box-shadow: var(--ring); border-radius: var(--r-control); }
.quote-card .suggest [role="option"] { font-size: 15px; }
.quote-card .btn { align-self: stretch; height: auto; padding: 0 16px; }
.facts { margin: 16px 0 0; font-size: var(--small); color: var(--navy-70); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.phone-only { display: none; }
.facts b { font-weight: 500; color: var(--navy); }

/* Scene container. Has its height before anything draws. */
.scene { position: relative; height: var(--scene-h); margin-top: var(--s4); }  /* the map starts below the facts line, not under it */
.scene canvas, .scene .still { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The still has four files: 960, 1200, 1600 and 2880 px wide. On a desktop the still covers the 620 px scene, so it shows
   at 1594 px wide or more, and the sizes attribute in index.html says so. On a phone the still is below the first
   screen and the map covers it, so sizes says 100vw and the phone gets a smaller file. */
.scene .still { object-fit: cover; object-position: center; }
.scene[data-scene="ready"] .still { display: none; }
.scene .labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.scene .lbl { position: absolute; left: 0; top: 0; font-size: var(--label); font-weight: 500; letter-spacing: var(--track-label); color: var(--navy); white-space: nowrap; padding-bottom: 8px; text-shadow: 0 0 2px var(--page), 0 0 4px var(--page), 0 0 8px var(--page); }
.scene .lbl.dim { color: var(--navy-70); font-weight: 400; }
.scene .fade-t { position: absolute; left: 0; right: 0; top: 0; height: 44px; background: linear-gradient(var(--page), transparent); pointer-events: none; }
.scene .fade-b { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(transparent, var(--page)); pointer-events: none; }

/* The full header needs about 960 px, so below 980 px the links fold into the menu button. */
@media (max-width: 980px) {
  .menu { display: none; }
  .menu-btn { display: inline-flex; }
  /* The menu: a column panel under the header, shown while the button is open. */
  .header.menu-open .menu { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: var(--s1) var(--gutter) var(--s2); background: var(--page); border-top: 1px solid var(--navy-08); border-bottom: 1px solid var(--navy-08); }
  .header.menu-open .menu a { font-size: var(--button); padding: var(--s1) 0; }
}

@media (max-width: 760px) {
  .tel { display: none; }
  /* The phone header: logo 26 px tall, the size it was drawn for, then Get a quote and the menu button. 388 px wide. */
  .header .wrap { gap: var(--s2); }
  .header .wordmark img { height: 26px; }
  .header .btn-primary svg { display: none; }
  .header .right { gap: var(--s2); }
  .header .theme-btn { display: none; }
  .header.menu-open .menu-theme { display: block; }
  /* No minimum height: on a tall phone a full-screen hero left a gap above the map (spec 13, item 50). */
  .copy { padding-top: var(--s6); padding-bottom: var(--s3); }
  .phone-only { display: inline; }
  .quote-card { grid-template-columns: 1fr; }
  .quote-card .btn { height: var(--field-h); }
  .scene { margin-top: 0; }
}
/* Below 390 px (many Samsung phones are 360 px) the header button says Quote, so that the full logo still fits.
   Below 360 px the logo is 24 px tall. */
@media (max-width: 389px) {
  .header .label-long { display: none; }
  .header .label-short { display: inline; }
}
@media (max-width: 359px) {
  .header .wordmark img { height: 24px; }
}

/* Blocks */
.block { padding: var(--section) 0; }
.block + .block { padding-top: 0; }
.block h2 { max-width: 16em; margin-bottom: var(--s5); }
.proof { background: var(--white); border-top: 1px solid var(--fog); border-bottom: 1px solid var(--fog); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .wrap > div { padding: var(--s4) var(--s3) var(--s4) 0; border-right: 1px solid var(--fog); }
.proof .wrap > div:last-child { border-right: 0; }
.proof .wrap > div + div { padding-left: var(--s3); }
.proof b { display: block; text-wrap: balance; font-weight: 500; font-size: var(--body); letter-spacing: -0.01em; margin-bottom: var(--s0); }
.proof span { font-size: var(--small); color: var(--navy-70); line-height: var(--lh-small); display: block; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); border-top: 1px solid var(--fog); }
.steps li { padding-top: var(--s3); position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--navy); }
.steps b { display: block; font-weight: 500; font-size: var(--small); color: var(--navy-70); margin-bottom: var(--s2); }
.steps h3, .cards h3 { margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--navy-70); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.cards p { margin: 0; font-size: var(--small); line-height: var(--lh-small); color: var(--navy-70); }
@media (max-width: 760px) {
  .proof .wrap { grid-template-columns: 1fr 1fr; column-gap: var(--s3); }
  .proof .wrap > div { border-right: 0; padding: var(--s2) 0; border-bottom: 1px solid var(--fog); }
  .proof .wrap > div + div { padding-left: 0; }
  .proof .wrap > div:nth-last-child(-n+2) { border-bottom: 0; }
  .steps, .cards { grid-template-columns: 1fr; }
}

.area .lead { margin: 0 0 var(--s4); max-width: 30em; }
.area-map { height: 424px; margin: 0; border-radius: var(--r-card); overflow: hidden; }
.wrap.narrow { max-width: 720px; }
.pricing p { margin: 0 0 var(--s4); color: var(--navy-70); max-width: 720px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4); border: 1px solid var(--fog); border-radius: var(--r-card); background: var(--white); }
.band h2 { font-size: var(--h3); margin-bottom: var(--s1); }
.band p { margin: 0; color: var(--navy-70); max-width: 36em; }
.footer { border-top: 1px solid var(--fog); padding: var(--s8) 0 var(--s4); }
.cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s4); }
.cols div { display: flex; flex-direction: column; gap: var(--s1); }
.cols b { font-weight: 500; font-size: var(--small); color: var(--navy-70); }
.cols a:not(.wordmark) { font-size: var(--body); }
.cols a:not(.wordmark):hover { text-decoration: underline; }
.cols span { font-size: var(--small); color: var(--navy-70); }
.cols span.line a { color: var(--navy); }
.cols p { margin: var(--s1) 0 0; max-width: 28em; }
.legal { margin: var(--s6) 0 0; }
@media (max-width: 760px) {
  .area-map { height: 304px; }
  .band { flex-direction: column; align-items: flex-start; }
  .cols { grid-template-columns: 1fr; }
}

/* The quote page and the privacy page start below the fixed header. */
.quote-page, .text-page { padding: calc(var(--header-h) + var(--s8)) 0 var(--section); }
.quote-page h1, .text-page h1 { margin-bottom: var(--s2); }
.quote-page .lead, .text-page .lead { margin: 0 0 var(--s5); }

/* Text pages: the privacy page. Running text at a reading width, with a table that scrolls on a phone. */
.text-page h2 { font-size: var(--h3); line-height: var(--lh-h2); margin: var(--s6) 0 var(--s2); }
.text-page p, .text-page li { max-width: 40em; }
.text-page p { margin: 0 0 var(--s2); }
.text-page ul { margin: 0 0 var(--s2); padding-left: 1.25em; }
.text-page li { margin-bottom: var(--s1); }
.table-wrap { overflow-x: auto; margin: var(--s3) 0; }
.table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: var(--small); line-height: var(--lh-small); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: var(--s1) var(--s2) var(--s1) 0; border-bottom: 1px solid var(--fog); }
.table-wrap th { font-weight: 500; color: var(--navy-70); }

/* Quote page */
.stepbar { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.stepbar li { font-size: var(--small); font-weight: 500; color: var(--navy-70); padding-top: var(--s2); border-top: 2px solid var(--fog); }
.stepbar li.current { color: var(--navy); border-top-color: var(--link); }
[hidden] { display: none !important; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.actions { display: flex; gap: var(--s2); justify-content: flex-end; padding-top: var(--s1); }
.send { display: flex; flex-direction: column; gap: var(--s3); }
.send p { margin: 0; }
.sent h2 { font-size: var(--h3); margin-bottom: var(--s1); }
.sent p { margin: 0; color: var(--navy-70); }
@media (max-width: 760px) {
  .grid2 { grid-template-columns: 1fr; }
  .stepbar li { font-size: 12px; }
  .actions, .send { position: sticky; bottom: 0; background: var(--page); padding: var(--s2) 0; }
  .send { gap: var(--s1); }
  .send .actions { position: static; padding: 0; }
  .actions .btn-primary { flex: 1; }
}
