/* Waybill download page. Same palette as the app: asphalt, amber, light grey.
   The one loud element is the paper waybill in the hero; the rest stays quiet. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url("fonts/caveat-latin-500-normal.woff2") format("woff2"); }

:root {
  --asphalt: #18191b;
  --lane: #2a2c30;
  --line: #3b3e44;
  --text: #f1f1ef;
  --fog: #a9abb0;
  --amber: #f0ae0c;
  --paper: #ece7da;
  --paper-rule: #b9b1a0;
  --ink: #23407a;
  --stamp: #c98a00;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --measure: 34rem;
}

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

html { background: var(--asphalt); color: var(--text); }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  /* Faint lane markings, like a road seen from above. */
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(50% - 1px), rgba(255, 255, 255, 0.025) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px) 100%);
}

a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: #ffc63d; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--amber); color: #18191b; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

/* Top bar */
.top {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font: 700 1.5rem/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.top nav { display: flex; gap: 1.5rem; }
.top nav a { color: var(--fog); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); }

main { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}

h1 {
  margin: 0;
  font: 700 clamp(4.5rem, 11vw, 8.5rem)/0.82 var(--display);
  letter-spacing: -0.01em;
  color: var(--text);
}
.payoff {
  margin: 0.75rem 0 0;
  font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--display);
  color: var(--amber);
}
.lede { max-width: var(--measure); margin: 1.5rem 0 0; color: #d6d6d3; font-size: 1.125rem; }

.download { margin-top: 2rem; }
.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--amber);
  color: #18191b;
  font: 700 1.25rem/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 2px 0 #9b6f00;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button:hover { color: #18191b; transform: translateY(-1px); box-shadow: 0 3px 0 #9b6f00; }
.button:active { transform: translateY(1px); box-shadow: 0 1px 0 #9b6f00; }
.button[aria-disabled="true"] { background: var(--lane); color: var(--fog); box-shadow: none; cursor: default; transform: none; }
.meta { margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; color: var(--fog); font-size: 0.95rem; }

/* The waybill */
.waybill { margin: 0; }
.sheet {
  position: relative;
  background: var(--paper);
  color: #2b2a27;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 3px;
  transform: rotate(-1.6deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 24px 48px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #2b2a27;
  padding-bottom: 0.4rem;
}
.sheet-title { font: 700 1.6rem/1 var(--display); letter-spacing: 0.02em; }
.sheet-no { font: 600 1rem/1 var(--display); color: #6b665c; }

.boxes { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-left: 1px solid var(--paper-rule); border-top: 1px solid var(--paper-rule); margin-top: 0.75rem; }
.box { border-right: 1px solid var(--paper-rule); border-bottom: 1px solid var(--paper-rule); padding: 0.35rem 0.55rem 0.45rem; min-height: 3.7rem; }
.box.wide { grid-column: 1 / -1; }
.box dt { font: 600 0.78rem/1.2 var(--body); color: #6b665c; }
.box dt b { display: inline-block; min-width: 1.1rem; font-family: var(--display); color: #2b2a27; }
.box dd { margin: 0.1rem 0 0; }
.hand { font: 500 1.45rem/1.15 var(--hand); color: var(--ink); }

.route { display: block; width: 100%; height: auto; margin-top: 0.75rem; }
.route .road { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 7; }
.route .stop { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.route .border { stroke: #8a8374; stroke-width: 1.5; stroke-dasharray: 6 4; }

.stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 2.6rem;
  margin: 0;
  padding: 0.2rem 0.7rem 0.1rem;
  border: 3px solid var(--stamp);
  border-radius: 6px;
  color: var(--stamp);
  font: 700 2rem/1 var(--display);
  text-transform: uppercase; /* a rubber stamp is uppercase */
  letter-spacing: 0.08em;
  transform: rotate(-11deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
  animation: stamp 520ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 700ms both;
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-11deg) scale(1.9); }
  to { opacity: 0.88; transform: rotate(-11deg) scale(1); }
}
.waybill figcaption { margin-top: 1.25rem; color: var(--fog); font-size: 0.95rem; text-align: center; }

/* Sections */
section h2 {
  margin: 0 0 1.5rem;
  font: 700 clamp(2rem, 4vw, 2.75rem)/1.05 var(--display);
}
.features, .privacy, .install { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }

.ledger { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
.ledger div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.ledger dt { font: 600 1.25rem/1.3 var(--display); color: var(--amber); }
.ledger dd { margin: 0; color: #d6d6d3; }

.privacy-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; max-width: 60rem; }
.privacy-body p { margin: 0; color: #d6d6d3; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; max-width: 44rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; align-items: baseline; }
.steps li::before {
  content: counter(step);
  font: 700 2rem/1 var(--display);
  color: var(--amber);
}
.steps q { quotes: "“" "”"; }
.later { margin: 1.5rem 0 0; color: var(--fog); }

/* Footer */
.foot { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; border-top: 1px solid var(--line); color: var(--fog); font-size: 0.95rem; }
.foot p { margin: 0 0 0.5rem; }
.legal { font-size: 0.85rem; }

/* Small screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .waybill { max-width: 30rem; }
  .ledger, .privacy-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top nav { display: none; }
  .ledger div { grid-template-columns: 1fr; gap: 0.25rem; }
  .hand { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; }
  .button { transition: none; }
}
