@font-face {
  font-family: Roboto;
  src: url("./roboto-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --navy: #002b49;
  --lime: #a3d500;
  --bg: #f6f8fa;
  --paper: #fff;
  --ink: var(--navy);
  --muted: #526575;
  --line: #d7e0e5;
  --soft: #edf2f5;
  --stage: #e5ecef;
  --link: #005e61;
  --focus: #006c47;
  --accent-text: #416000;
  --max: 1160px;
  --edge: clamp(20px, 4.5vw, 64px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c141b;
    --paper: #121c24;
    --ink: #e6eef3;
    --muted: #bccad4;
    --line: #30404c;
    --soft: #192733;
    --stage: #192733;
    --link: #a9d5f4;
    --focus: #67ddb9;
    --accent-text: var(--lime);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 Roboto, Arial, sans-serif;
}
main:focus { outline: none; }
img { display: block; max-inline-size: 100%; block-size: auto; }
figure, dl, dd { margin: 0; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--navy); }
.wrap { inline-size: min(var(--max), 100% - 2 * var(--edge)); margin-inline: auto; }
.icon { inline-size: 24px; block-size: 24px; flex: none; vertical-align: middle; }
.skip-link {
  position: absolute;
  z-index: 1;
  inset: 12px auto auto 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--paper);
  translate: 0 -160%;
}
.skip-link:focus { translate: 0; }
.site-header { background: var(--paper); border-block-end: 1px solid var(--line); }
.header-inner { min-block-size: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner > a { display: inline-flex; align-items: center; min-block-size: 44px; }
.wordmark {
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark img, .footer-name img { flex: none; }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font-size: 1.12rem; font-weight: 900; letter-spacing: .015em; }
.wordmark small { margin-block-start: 5px; color: var(--accent-text); font-weight: 700; font-size: .75rem; }

h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.25vw, 5.4rem); font-weight: 850; letter-spacing: -.037em; }
h2 { font-size: clamp(1.9rem, 3.35vw, 3.05rem); font-weight: 800; letter-spacing: -.027em; }
h3 { font-size: 1.25rem; font-weight: 760; }
p { margin: 0; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.52; }
.hero-copy { min-inline-size: 0; }
.hero-copy .lede { max-inline-size: 43ch; margin-block-start: 20px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 26px; }
.store { display: flex; align-items: center; gap: 10px; min-block-size: 56px; padding: 9px 14px; border-radius: 12px; line-height: 1.2; }
.store .icon { inline-size: 22px; block-size: 22px; }
.store strong, .store small { display: block; }
.store strong { font-size: 1rem; }
.store small { margin-block-start: 3px; font-size: .75rem; }
.android { background: var(--navy); color: var(--lime); }
.android small { color: #e6eef3; }
.ios { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.ios small { color: var(--muted); }
figcaption { margin-block-start: 11px; font-size: .82rem; color: var(--muted); }

.hero {
  padding-block: clamp(36px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}
.visual-stage {
  min-block-size: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  border-radius: 16px;
  background-color: var(--stage);
  background-image: url("./road-grid.svg");
  background-size: cover;
  background-position: center;
}
.hero-visual figcaption { text-align: center; }
.visual-stage > img { inline-size: 100%; border-radius: 12px; }
.visual-stage > .route-capture {
  inline-size: min(100%, 320px);
  aspect-ratio: 1080 / 2280;
  object-fit: cover;
  object-position: center bottom;
  box-shadow: 0 13px 36px #001c3333;
}

.section-band { background: var(--paper); border-block: 1px solid var(--line); }
.detail-layout, .steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(42px, 6vw, 80px);
}

.estimate-panel {
  inline-size: min(100%, 390px);
  padding: clamp(18px, 3.6vw, 38px);
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
}
.estimate-top { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.estimate-top .icon { color: var(--lime); }
.estimate-route { margin-block: 12px 18px; font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 670; }
.estimate-costs, .estimate-stats, .toll-example { font-variant-numeric: tabular-nums; }
.estimate-costs > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding-block: 6px; }
.estimate-costs > div:not(.estimate-total) { color: #e6eef3; }
.estimate-total { margin-block-start: 8px; border-block-start: 1px solid #7393a9; }
.estimate-total dd { color: var(--lime); font-size: clamp(1.6rem, 3.9vw, 3.25rem); font-weight: 850; letter-spacing: -.025em; }
.estimate-total small { color: #e6eef3; font-size: .78rem; letter-spacing: 0; }
.estimate-stats { display: grid; grid-template-columns: 1fr 1.15fr .75fr; gap: 6px; margin-block-start: 12px; }
.estimate-stats dt { color: #bccad4; font-size: .77rem; }
.estimate-stats dd { font-weight: 700; }
.estimate-note { margin-block-start: 12px; color: #bccad4; font-size: .78rem; }
.detail-layout { align-items: center; }
.detail-layout p { margin-block: 12px; color: var(--muted); }
.breakdown-example p { margin-block-start: 0; }
.toll-example { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; background: var(--soft); }
.toll-example small { display: block; color: var(--muted); }
.toll-example > strong { margin-inline-start: auto; text-align: end; }

.steps-layout { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }
.steps-list { display: grid; gap: 16px; padding-inline-start: 1.5em; margin: 0; }
.steps-list li { padding-inline-start: 5px; }
.steps-list li::marker { color: var(--accent-text); font-weight: 850; }
.steps-list p { margin-block-start: 5px; color: var(--muted); }

.document { max-inline-size: 720px; padding-block: clamp(34px, 5.5vw, 72px); }
.document h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-block: 16px 14px; }
.document h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); margin-block: 30px 9px; text-wrap: initial; }
.document p + p { margin-block-start: 12px; }
.document ol { margin-block: 0; padding-inline-start: 1.5em; }
.document li + li { margin-block-start: 6px; }
.document .draft { padding: 14px 16px; border-radius: 12px; background: var(--soft); margin-block-start: 20px; }
.contents { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-block-start: 14px; }
.contents a { display: inline-flex; align-items: center; min-block-size: 44px; }

.site-footer { background: var(--bg); padding-block: 14px 12px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 20px; }
.footer-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 760; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.site-footer a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--muted); }

@media (min-width: 761px) {
  .wordmark img { inline-size: 62px; }
  .store { min-block-size: 68px; padding: 12px 18px; }
  .store .icon { inline-size: 26px; block-size: 26px; }
  .store strong { font-size: 1.125rem; }
  .store small { font-size: .875rem; }
}

@media (max-width: 760px) {
  .hero, .detail-layout, .steps-layout { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-inline-size: 18ch; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
