/* TollCompass coming-soon page. Fonts are self-hosted (no Google Fonts: GDPR). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-5.3.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-5.3.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-next-latin-5.3.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-next-latin-ext-5.3.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --atlas: #eef1ec;      /* road-atlas paper */
  --ink: #1d2a33;        /* slate ink */
  --asphalt: #4a5560;    /* secondary text */
  --marking: #f2c230;    /* road-works lane marking */
  --steel: #1f5f8b;      /* links */
  --sticker: #ffffff;    /* country-code stickers stay white in every theme */
  --sticker-ink: #1d2a33;
  --rule: #c9d0c8;
  --road: #34414b;        /* asphalt strip in the hero */

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --atlas: #182128;
    --ink: #e6ebe4;
    --asphalt: #a9b3ad;
    --steel: #8cc4ea;
    --rule: #33414b;
    --road: #0f161b;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--atlas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: var(--steel); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
a:focus-visible {
  outline: 3px solid var(--marking);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(56rem, 100% - 2rem);
  margin-inline: auto;
}
@media (min-width: 40rem) { .wrap { width: min(56rem, 100% - 4rem); } }

/* Header */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}
.wordmark {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0;
}
.lang-link { font-size: 1rem; }

/* Hero: the route of country-code stickers */
.hero { padding-top: 2.5rem; }

.route-frame {
  overflow: hidden;
  margin: 0 0 2.25rem;
  padding: 6px 0;         /* room for the tilted stickers */
}
.route {
  display: block;
  width: 100%;
  height: auto;
}
/* On phones the road runs off the right edge: fewer stickers, readable size. */
@media (max-width: 40rem) {
  .route { width: 190%; }
}
.route .road-bed { stroke: var(--road); }
.route .road-line { stroke: var(--marking); }
.route .sticker ellipse { fill: var(--sticker); stroke: var(--sticker-ink); }
.route .sticker text {
  fill: var(--sticker-ink);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: 22px;
}

h1 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  max-width: 15ch;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 36rem;
  margin: 0 0 0.75rem;
}
.launch {
  color: var(--asphalt);
  margin: 0;
}

/* Sections */
.section {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 2rem;
}

h2 {
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 750;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
h3 {
  font-family: var(--display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.covers {
  display: grid;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 52rem) {
  .covers { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.covers p { margin: 0; color: var(--asphalt); }

.notice {
  max-width: 40rem;
  border: 2px solid var(--ink);
  padding: 1.25rem 1.5rem;
  margin: 0;
}
.notice p { margin: 0 0 0.75rem; }
.notice p:last-child { margin-bottom: 0; }

.contact p { margin: 0; max-width: 40rem; }
.contact .address-line { font-size: 1.375rem; font-weight: 700; margin-top: 0.25rem; }

/* German section */
.de p { max-width: 40rem; margin: 0 0 1rem; }
.de .provider { color: var(--asphalt); font-size: 1rem; }

/* Footer */
.legal {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--asphalt);
  font-size: 0.9375rem;
}
.legal p { margin: 0 0 0.5rem; max-width: 44rem; }

/* The one moment of motion: the lane marking is painted from D to TR,
   and each sticker appears as the line reaches it. */
@media (prefers-reduced-motion: no-preference) {
  .route .paint {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: paint 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.2s forwards;
  }
  .route .sticker {
    opacity: 0;
    animation: stick 0.35s ease-out forwards;
  }
  .route .s1 { animation-delay: 0.15s; }
  .route .s2 { animation-delay: 0.42s; }
  .route .s3 { animation-delay: 0.65s; }
  .route .s4 { animation-delay: 0.88s; }
  .route .s5 { animation-delay: 1.1s; }
  .route .s6 { animation-delay: 1.32s; }
  .route .s7 { animation-delay: 1.55s; }
}
@keyframes paint { to { stroke-dashoffset: 0; } }
@keyframes stick { from { opacity: 0; } to { opacity: 1; } }
