/* bakuriders.az landing. Tokens and rules: /DESIGN.md (this page follows its never-use list:
   no gradients, glass, blobs, feature grids, landmarks, uppercase transform). Fonts are local. */

@font-face { font-family: "Noto Sans"; font-weight: 400; font-display: swap; src: url(fonts/noto-sans-latin-400-normal.woff2) format("woff2");
  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: "Noto Sans"; font-weight: 400; font-display: swap; src: url(fonts/noto-sans-latin-ext-400-normal.woff2) format("woff2");
  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: "Noto Sans"; font-weight: 600; font-display: swap; src: url(fonts/noto-sans-latin-600-normal.woff2) format("woff2");
  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: "Noto Sans"; font-weight: 600; font-display: swap; src: url(fonts/noto-sans-latin-ext-600-normal.woff2) format("woff2");
  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: "Noto Sans"; font-weight: 700; font-display: swap; src: url(fonts/noto-sans-latin-700-normal.woff2) format("woff2");
  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: "Noto Sans"; font-weight: 700; font-display: swap; src: url(fonts/noto-sans-latin-ext-700-normal.woff2) format("woff2");
  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 {
  --bg: #F7F6F2; --surface: #FFFFFF; --surface-subtle: #ECEFEA;
  --text: #182C2B; --text-2: #4F625F; --border: #CDD7D1; --border-strong: #7A8C87;
  --primary: #006B54; --on-primary: #FFFFFF; --primary-soft: #DDEFE7; --primary-ink: #00513F;
  --navy: #173E50; --navy-soft: #E1EBF0; --clay: #B34432; --clay-soft: #F7E6E1;
  --rider: #1F5FBF; --focus: #173E50;
  --map-land: #E8EAE2; --map-block: #DEE2D8; --map-park: #CFE3CC; --map-water: #B9D7E2;
  --map-road: #FFFFFF; --map-road-major: #F5E7C8; --map-label: #3E504D; --map-lane: #1D6E8C;
  --map-route: #006B54; --map-casing: #FFFFFF;
  --shadow-2: 0 2px 4px rgba(24, 44, 43, .08), 0 8px 24px rgba(24, 44, 43, .12);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101E21; --surface: #182B2F; --surface-subtle: #22383D;
    --text: #F4F7F3; --text-2: #B8C9C5; --border: #425A60; --border-strong: #6E878C;
    --primary: #7CD7B2; --on-primary: #102B22; --primary-soft: #1D3D35; --primary-ink: #9BE3C5;
    --navy: #B7D9E5; --navy-soft: #1E3842; --clay: #F2B7A6; --clay-soft: #3B2A26;
    --rider: #8DB8FF; --focus: #B7D9E5;
    --map-land: #16272B; --map-block: #1C3035; --map-park: #1B3830; --map-water: #0E3140;
    --map-road: #2A4147; --map-road-major: #3A4A3E; --map-label: #B8C9C5; --map-lane: #5FC1E0;
    --map-route: #7CD7B2; --map-casing: #101E21;
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/24px "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; padding: 12px 16px; background: var(--surface); color: var(--text); border-radius: 12px; z-index: 10; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); max-width: 1320px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; min-height: 48px; }
.brand-mark { width: 32px; height: 32px; }
.bm-bg { fill: var(--primary); }
.bm-wheel { fill: none; stroke: var(--on-primary); stroke-width: 2.2; }
.bm-frame { fill: none; stroke: var(--on-primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lang { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 12px; padding: 3px; gap: 2px; }
.lang button {
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--text-2); background: none; border: 0;
  min-width: 48px; min-height: 40px; border-radius: 9px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- hero ---------- */
.hero {
  max-width: 1320px; margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 112px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.eyebrow { margin: 0 0 16px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--primary-ink); letter-spacing: .01em; }
.headline { margin: 0; font-weight: 700; font-size: clamp(52px, 9.2vw, 132px); line-height: .94; letter-spacing: -.035em; }
.headline .line { display: block; padding-bottom: .06em; }
.headline em { font-style: normal; color: var(--primary); }
.lede { margin: 28px 0 0; max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border-radius: 12px; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 24px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s var(--ease-out), background-color .18s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-ink); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: var(--primary-ink); color: var(--on-primary); } }
.btn-quiet { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn-quiet:hover { background: var(--surface-subtle); }
.status { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--primary); background: var(--primary-soft); }

/* the ride card: an illustrative map with the app's ride panel floating over it */
.ride-card { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: var(--map-land); border: 1px solid var(--border); }
.ride-map { width: 100%; height: auto; aspect-ratio: 600 / 520; }
.m-land { fill: var(--map-land); }
.m-block { fill: var(--map-block); }
.m-park { fill: var(--map-park); }
.m-road path { fill: none; stroke: var(--map-road); stroke-width: 12; }
.m-road-major { fill: none; stroke: var(--map-road-major); stroke-width: 16; }
.m-water { fill: var(--map-water); }
.m-wave { fill: none; stroke: var(--map-land); stroke-width: 2.5; stroke-linecap: round; opacity: .7; }
.m-lane { fill: none; stroke: var(--map-lane); stroke-width: 8; stroke-linecap: round; }
.m-lane-centre { fill: none; stroke: var(--map-land); stroke-width: 1.6; stroke-dasharray: 7 7; }
.m-label { fill: var(--map-label); font: 600 18px "Noto Sans", sans-serif; letter-spacing: .04em; }
.m-label-small { font-size: 13px; }
.m-route-casing { fill: none; stroke: var(--map-casing); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.m-route { fill: none; stroke: var(--map-route); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.m-start { fill: var(--map-casing); stroke: var(--map-route); stroke-width: 4; }
.m-rider-halo { fill: var(--rider); opacity: .18; }
.m-rider-dot { fill: var(--rider); stroke: var(--map-casing); stroke-width: 3; }
.map-tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 8px;
  background: var(--surface); color: var(--text-2); font-size: 12px; line-height: 16px; border: 1px solid var(--border);
}
.ride-card { display: flex; flex-direction: column; }
/* Floats over the sea only, never over the route. */
.hud {
  position: relative; margin: -64px 12px 12px; padding: 14px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow-2); display: grid; gap: 12px;
}
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 8px; }
.metrics div { min-width: 0; }
.metrics dt { font-size: 12px; line-height: 16px; color: var(--text-2); }
.metrics dd { margin: 2px 0 0; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; white-space: nowrap; }
.metrics dd span[data-i18n] { font-size: .6em; font-weight: 600; color: var(--text-2); }
.btn-ride { min-height: 64px; width: 100%; font-size: 18px; background: var(--primary); color: var(--on-primary); }
.btn-ride:hover { background: var(--primary-ink); }
.hud-done { display: flex; align-items: center; gap: 12px; }
.hud-done[hidden] { display: none; }
.hud-done p { margin: 0; color: var(--text-2); }
.hud-done strong { color: var(--text); }
.hud-done img { animation: pop .5s var(--ease-out) both; }
@keyframes pop { from { transform: scale(.6) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- places ---------- */
.places { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; }
.places-track { display: flex; gap: 0; width: max-content; animation: drift 48s linear infinite; }
.places-track span { font-weight: 700; font-size: clamp(28px, 4vw, 52px); line-height: 1.1; letter-spacing: -.02em; color: var(--text); padding: 0 .5em; white-space: nowrap; }
.places-track span:nth-child(3n+2) { color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); }
.places-track span::after { content: "·"; color: var(--clay); padding-left: 1em; -webkit-text-stroke: 0; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- how: four stops on a route ---------- */
.how { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 10vw, 140px) var(--gutter); }
.how-head { max-width: 760px; }
.section-title { margin: 0; font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.stops { --progress: 0; position: relative; list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
/* the route line under the pins, drawn with scroll */
.stops::before, .stops::after { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 6px; border-radius: 3px; }
.stops::before { background: var(--map-lane); opacity: .25; }
.stops::after { background: var(--map-route); transform-origin: left; transform: scaleX(var(--progress)); }
.stop { position: relative; z-index: 1; }
.stop:nth-child(even) h3 { margin-top: 64px; }
.stop-pin {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--border-strong); font-weight: 700; font-size: 20px; color: var(--text-2);
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out);
}
.stop.passed .stop-pin { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: scale(1.06); }
.stop h3 { margin: 20px 0 8px; font-size: 22px; line-height: 28px; }
.stop p { margin: 0; color: var(--text-2); max-width: 30ch; }

/* ---------- privacy ---------- */
.privacy { background: var(--navy); color: var(--bg); }
@media (prefers-color-scheme: dark) { .privacy { background: var(--surface); color: var(--text); } }
.privacy-inner { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 10vw, 140px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.big-statement { margin: 0; font-weight: 700; font-size: clamp(48px, 7vw, 100px); line-height: .94; letter-spacing: -.04em; grid-row: span 2; }
.big-statement em { font-style: normal; color: var(--primary-soft); }
@media (prefers-color-scheme: dark) { .big-statement em { color: var(--primary); } }
.chip-demo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-weight: 600; background: var(--surface); color: var(--text); border: 2px solid var(--primary); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.chip-stop { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid currentColor; font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 18px 0; border-top: 1px solid rgba(247, 246, 242, .28); font-size: 18px; line-height: 1.5; }
@media (prefers-color-scheme: dark) { .facts li { border-top-color: var(--border); } }
.facts strong { display: block; font-weight: 700; }
.facts span { opacity: .82; }

/* ---------- beta + footer ---------- */
.beta { max-width: 1320px; margin: 0 auto; padding: clamp(64px, 10vw, 140px) var(--gutter); }
.beta-body { margin: 24px 0 0; max-width: 46ch; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; }
.beta-note { margin: 16px 0 0; max-width: 52ch; color: var(--text-2); }
.foot { max-width: 1320px; margin: 0 auto; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--text-2); font-size: 14px; }
.foot p { margin: 0; }

/* ---------- motion: rise in, staggered; none when reduced ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* The hero rises in on load with CSS alone (no observer, no script timing). */
.js .rise { animation: rise .8s var(--ease-out) both; animation-delay: calc(80ms + var(--r, 0) * 90ms); }
.js .headline .line.rise { animation-name: rise-line; animation-duration: .9s; }
.js .eyebrow.rise { --r: 0; } .js .headline .line.rise:nth-child(1) { --r: 1; } .js .headline .line.rise:nth-child(2) { --r: 2; }
.js .lede.rise { --r: 3; } .js .hero-actions.rise { --r: 4; } .js .status.rise { --r: 5; } .js .ride-card.rise { --r: 2; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-line { from { opacity: 0; transform: translateY(45%); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .rise { animation: none; }
  .places-track { animation: none; }
  .hud-done img { animation: none; }
  .stops::after { transform: scaleX(1); }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stops { grid-template-columns: 1fr; gap: 36px; padding-left: 72px; }
  .stops::before, .stops::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 6px; height: auto; }
  .stops::after { transform-origin: top; transform: scaleY(var(--progress)); }
  .stop:nth-child(even) h3 { margin-top: 10px; }
  .stop-pin { position: absolute; left: -72px; top: 0; }
  .stop h3 { margin-top: 10px; }
  .privacy-inner { grid-template-columns: 1fr; }
  .big-statement { grid-row: auto; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .stops::after { transform: scaleY(1); } }
@media (max-width: 420px) {
  .hud { margin: -48px 8px 8px; padding: 12px; }
  .metrics dd { font-size: 20px; }
}
