/* RideSaathi website. One stylesheet for every page.
   Colours match the app (src/theme/index.ts): sage base, ink, yellow "you", metro green line, orange car.
   Section prefixes: hx- hero, st- stations strip, sb- safety band, lg- languages, cl- closing,
   hw- how-it-works line, rl- roles, fr- fair-share rule, sf- safety page, doc/faq/callout legal pages. */

:root {
  --bg: #DDE7E0;
  --bg-deep: #D2DED6;
  --surface: #F4F7F3;
  --text: #17231D;
  --muted: #56655D;
  --faint: #859289;
  --hairline: #C5D2C9;
  --ink: #1B2620;
  --on-ink: #FFFFFF;
  --on-ink-muted: #AFBDB5;
  --accent: #C9502B;
  --accent-text: #A8401C;
  --sun: #FFD23F;
  --line: #13A150;
  --line-text: #0C7A3A;
  --sky: #A9D6F5;
  --lilac: #CBB8F2;
  --mint: #B4E2C4;
  --on-tint: #17231D;
  --car: #F2724A;
  --car-light: #FF9F76;
  --cabin: #FFE4D8;
  --seat: #FFF3EC;
  --seat-edge: #F2C1AB;
  --glass: #26343F;
  --glass-light: #3F515E;
  --tyre: #262A28;
  --headlight: #FCE7B2;
  --tail: #C7432A;
  --road: #CDDAD1;
  --lane: #F4F7F3;
  --phone: #0E1411;
  --shadow: 0 1px 2px rgba(23, 35, 29, .06), 0 10px 30px rgba(23, 35, 29, .10);
  --header-bg: rgba(221, 231, 224, .86);

  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: light;
}

/* Dark: the app's dark palette. Same tokens twice: system dark (unless the visitor picked light) and a saved dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111915; --bg-deep: #0D1411; --surface: #1A241F; --text: #E4ECE6; --muted: #9CAAA2; --faint: #6E7C74;
    --hairline: #2A3730; --ink: #E4ECE6; --on-ink: #111915; --on-ink-muted: #44524A; --accent: #F08A63;
    --accent-text: #F08A63; --line: #2BC06A; --line-text: #3CCB78; --sky: #8EC3E6; --lilac: #B5A0E6;
    --mint: #8FCDA6; --car: #E8683F; --car-light: #F98F64; --cabin: #3D2B24; --seat: #4C372E; --seat-edge: #6E4D3F;
    --glass: #18222A; --glass-light: #2D3B46; --tyre: #060807; --headlight: #F0D488; --tail: #B53A22;
    --road: #18221D; --lane: #2A3730; --phone: #000000;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); --header-bg: rgba(17, 25, 21, .86);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
}
:root[data-theme="dark"] {
  --bg: #111915; --bg-deep: #0D1411; --surface: #1A241F; --text: #E4ECE6; --muted: #9CAAA2; --faint: #6E7C74;
  --hairline: #2A3730; --ink: #E4ECE6; --on-ink: #111915; --on-ink-muted: #44524A; --accent: #F08A63;
  --accent-text: #F08A63; --line: #2BC06A; --line-text: #3CCB78; --sky: #8EC3E6; --lilac: #B5A0E6;
  --mint: #8FCDA6; --car: #E8683F; --car-light: #F98F64; --cabin: #3D2B24; --seat: #4C372E; --seat-edge: #6E4D3F;
  --glass: #18222A; --glass-light: #2D3B46; --tyre: #060807; --headlight: #F0D488; --tail: #B53A22;
  --road: #18221D; --lane: #2A3730; --phone: #000000;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35); --header-bg: rgba(17, 25, 21, .86);
  color-scheme: dark;
}
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
.on-dark { display: none; }

/* ---------- Base ---------- */
*, *::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 14.5px/1.55 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--line-text); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 7.4vw, 50px); }
h2 { font-size: clamp(22px, 4.6vw, 30px); }
h3 { font-size: 17px; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Metro-sign small caps label */
.mono, .eyebrow { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--muted); display: inline-block; margin-bottom: 10px; }
.soft { color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--sun); color: #17231D; padding: 6px 10px; border-radius: 2px;
}
.tag.ink { background: var(--ink); color: var(--on-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 14px/1 var(--display); letter-spacing: .01em; text-decoration: none;
  padding: 12px 18px 10px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { color: var(--on-ink); background: var(--line); }
.btn-line { border-color: var(--text); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--line); color: var(--line-text); }
.btn-sm { padding: 9px 14px 7px; font-size: 13px; }
.arrow-link { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--line-text); }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 19px/1 var(--display); color: var(--text); padding-top: 3px; }
.brand:hover { color: var(--text); }
.brand svg { width: 26px; height: 26px; margin-top: -3px; }
.brand .b-ring { fill: var(--sun); stroke: var(--ink); }
.brand .b-line { stroke: var(--line); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sun); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn svg { width: 17px; height: 17px; }
.theme-btn .sun { display: none; }
.menu-btn { display: none; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
@media (max-width: 719px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--hairline); padding: 4px 16px 10px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .35s ease-in-out, transform .35s ease-in-out, visibility .35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--hairline); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--text); }
}

/* ---------- Reveal (calm fade + small glide) ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .7s ease-in-out, transform .7s ease-in-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hx { padding: 22px 0 0; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.hx-grid { display: grid; gap: 20px; }
.hx-copy h1 { margin: 2px 0 12px; }
.hx-copy h1 .hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 2px; }
:root[data-theme="dark"] .hx-copy h1 .hl { background: none; color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hx-copy h1 .hl { background: none; color: var(--sun); } }
.hx-lede { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.hx-facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--text); }
.hx-facts li { flex: 1 1 33%; min-width: 0; padding: 9px 10px 0 0; }
.hx-facts b { display: block; font: 800 20px/1.1 var(--display); }
.hx-facts span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.hx-stage { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; }
.hx-car { width: 100%; max-width: 400px; }
.hx-phone-wrap { width: 58%; max-width: 220px; height: 200px; overflow: hidden; margin-top: 4px; }
.phone {
  position: relative; border-radius: 30px; padding: 6px; background: var(--phone);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 30%; height: 11px; margin-left: -15%; border-radius: 99px; background: var(--phone); z-index: 2; }
.phone img { width: 100%; height: auto; border-radius: 24px; }
.phone .screen-top { height: 22px; border-radius: 24px 24px 0 0; background: #DDE7E0; margin-bottom: -2px; }
:root[data-theme="dark"] .phone .screen-top { background: #111915; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone .screen-top { background: #111915; } }
.phone .screen-top + img { border-radius: 0 0 24px 24px; }

@media (min-width: 900px) {
  .hx { padding-top: 44px; }
  .hx-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: end; gap: 32px; }
  .hx-copy { padding-bottom: 52px; }
  .hx-stage { grid-template-columns: minmax(0, 1fr) 196px; align-items: end; justify-items: stretch; gap: 16px; }
  .hx-car { max-width: 420px; margin-bottom: 18px; }
  .hx-phone-wrap { width: 196px; height: 350px; margin: 0; }
}

/* The drawn car (inline SVG). Colours come from tokens, so it follows light/dark. */
.car-svg text { font-family: var(--body); fill: var(--muted); font-size: 12px; }
.car-svg .who { font-family: var(--display); font-weight: 700; font-size: 15px; fill: var(--text); }
.car-svg .who.free { fill: var(--accent-text); }
.car-svg .ini { font-family: var(--display); font-weight: 800; font-size: 12.5px; fill: var(--on-tint); text-anchor: middle; }
.car-svg .road { fill: var(--road); }
.car-svg .lane { stroke: var(--lane); stroke-width: 3; stroke-dasharray: 16 14; fill: none; }
.car-svg .kerb { stroke: var(--hairline); stroke-width: 1; fill: none; }
.car-svg .tyre { fill: var(--tyre); }
.car-svg .mirror { fill: var(--car); }
.car-svg .body { fill: url(#rsBody); }
.car-svg .glass { fill: url(#rsGlass); }
.car-svg .glint { stroke: var(--glass-light); fill: none; }
.car-svg .crease { stroke: var(--car-light); fill: none; opacity: .8; }
.car-svg .headlight { fill: var(--headlight); }
.car-svg .tail { fill: var(--tail); }
.car-svg .cabin { fill: var(--cabin); }
.car-svg .seat { fill: var(--seat); stroke: var(--seat-edge); stroke-width: 1.6; }
.car-svg .wheel { stroke: var(--tyre); fill: none; }
.car-svg .lead { stroke: var(--text); stroke-width: 1.3; }
.car-svg .dot { fill: var(--text); }
.car-svg .lead-free { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; }
.car-svg .free-ring { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 4 3.6; }
.car-svg .free-plus { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.car-svg .av { stroke: var(--seat); stroke-width: 2.5; }
.car-svg .av-sun { fill: var(--sun); }
.car-svg .av-sky { fill: var(--sky); }
.car-svg .av-lilac { fill: var(--lilac); }
.car-svg .st-car { stop-color: var(--car); }
.car-svg .st-car-light { stop-color: var(--car-light); }
.car-svg .st-glass { stop-color: var(--glass); }
.car-svg .st-glass-light { stop-color: var(--glass-light); }
.car-svg .st-shadow { stop-color: #000; stop-opacity: .16; }
.car-svg .st-shadow-0 { stop-color: #000; stop-opacity: 0; }
.car-svg .st-fade-in { stop-color: #fff; stop-opacity: 0; }
.car-svg .st-fade-on { stop-color: #fff; stop-opacity: 1; }
.car-svg .shadow { fill: url(#rsShadow); }

/* Seats and callouts arrive one after another, slow fades only. */
.js .car-svg .seq { opacity: 0; animation: rs-fade .6s ease-in-out forwards; }
.car-svg .s1 { animation-delay: .25s; }
.car-svg .s2 { animation-delay: .45s; }
.car-svg .s3 { animation-delay: .65s; }
.car-svg .s4 { animation-delay: .85s; }
.car-svg .lane { animation: rs-lane 2.4s linear infinite; }
@keyframes rs-fade { to { opacity: 1; } }
@keyframes rs-lane { to { stroke-dashoffset: -30; } }

/* ---------- Bands ---------- */
.band { padding: 36px 0; }
@media (min-width: 820px) { .band { padding: 48px 0; } }
.band + .band { border-top: 1px solid var(--hairline); }
.section-head { max-width: 560px; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); }

/* Stations strip on the home page: three stops on one green line. */
.st-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.st-stop { position: relative; padding: 0 0 22px 38px; }
.st-stop::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: -8px; width: 5px; background: var(--line); }
.st-stop:last-child::before { display: none; }
.st-dot { position: absolute; left: 2px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--bg); border: 3.5px solid var(--text); z-index: 1; }
.st-dot.you { background: var(--sun); border-color: var(--text); width: 25px; height: 25px; left: 0; top: 0; }
.st-num { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); display: block; margin-bottom: 2px; }
.st-stop h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.st-stop p { color: var(--muted); max-width: 30em; }
.st-split { display: flex; gap: 3px; margin-top: 10px; max-width: 260px; }
.st-split i { height: 8px; border-radius: 99px; }
.st-split .a { flex: 56; background: var(--sun); }
.st-split .b { flex: 40; background: var(--sky); }
.st-split .c { flex: 28; background: var(--lilac); }
.st-foot { margin-top: 6px; }
@media (min-width: 820px) {
  .st-line { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .st-stop { padding: 40px 0 0; }
  .st-stop::before { left: 10px; right: -40px; top: 9px; bottom: auto; width: auto; height: 5px; }
  .st-dot { top: 1px; }
  .st-dot.you { top: -1px; }
}

/* Safety band: ink panel, like the app's bottom bar on the Line design. */
.sb { background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 26px 20px; }
.sb h2 { color: var(--on-ink); }
.sb .eyebrow { color: var(--sun); }
:root[data-theme="dark"] .sb .eyebrow { color: #6B5A00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb .eyebrow { color: #6B5A00; } }
.sb-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.sb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.sb-list li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
:root[data-theme="dark"] .sb-list li { border-top-color: rgba(17, 25, 21, .16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb-list li { border-top-color: rgba(17, 25, 21, .16); } }
.sb-list b { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 3px; }
.sb-list span { color: var(--on-ink-muted); font-size: 13.5px; }
.sb .arrow-link { color: var(--sun); }
:root[data-theme="dark"] .sb .arrow-link { color: #0C7A3A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb .arrow-link { color: #0C7A3A; } }
@media (min-width: 720px) {
  .sb { padding: 32px 32px 26px; }
  .sb-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@media (min-width: 1000px) { .sb-list { grid-template-columns: repeat(4, 1fr); } }

/* Languages */
.lg { display: grid; gap: 14px; align-items: center; }
.lg-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font: 700 21px/1.3 var(--display); }
.lg-names li { white-space: nowrap; }
.lg-names li::after { content: "·"; color: var(--line); margin: 0 12px; font-weight: 800; }
.lg-names li:last-child::after { content: none; }
@media (min-width: 900px) { .lg { grid-template-columns: 300px 1fr; gap: 32px; } }

/* Closing */
.cl { display: grid; gap: 16px; align-items: center; justify-items: start; border-top: 1.5px solid var(--text); padding-top: 22px; }
.cl h2 { margin-bottom: 6px; }
@media (min-width: 820px) { .cl { grid-template-columns: 1fr auto; } }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: 30px 0 22px; border-bottom: 1px solid var(--hairline); }
.page-head h1 { font-size: clamp(28px, 6vw, 42px); margin-bottom: 10px; max-width: 18em; }
.page-head p { color: var(--muted); font-size: 15.5px; max-width: 36em; }

/* ---------- How it works: the commute as a metro line ---------- */
.hw { list-style: none; margin: 0; padding: 8px 0 0; position: relative; max-width: 900px; }
.hw-stop { position: relative; display: grid; grid-template-columns: 40px 30px minmax(0, 1fr); column-gap: 8px; padding-bottom: 26px; }
.hw-stop::before { content: ""; position: absolute; left: 60.5px; top: 14px; bottom: -14px; width: 5px; background: var(--line); }
.hw-stop:last-child::before { display: none; }
.hw-stop:first-child::after { content: ""; position: absolute; left: 60.5px; top: -10px; height: 14px; width: 5px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 7px); }
.hw-n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.hw-mark { position: relative; z-index: 1; justify-self: center; width: 23px; height: 23px; border-radius: 50%; background: var(--bg); border: 3.5px solid var(--text); margin-top: 3px; }
.hw-mark.you { width: 29px; height: 29px; margin-top: 0; background: var(--sun); }
.hw-mark.end { border-radius: 2px; background: var(--ink); border: 0; display: grid; place-items: center; }
.hw-mark.end::after { content: ""; width: 9px; height: 9px; background: var(--sun); }
.hw-body h2 { font-size: 21px; margin-bottom: 2px; }
.hw-body .who { color: var(--line-text); display: block; margin-bottom: 6px; }
.hw-body p { color: var(--muted); max-width: 34em; }
.hw-body p + p { margin-top: 6px; }
.hw-fig { margin: 0; }
.hw-shot { margin-top: 14px; max-width: 300px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--hairline); }
.hw-shot img { width: 100%; height: auto; }
.hw-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (min-width: 820px) {
  .hw-stop { grid-template-columns: 56px 34px minmax(0, 1fr); column-gap: 14px; }
  .hw-stop::before, .hw-stop:first-child::after { left: 84.5px; }
  .hw-body.split { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 32px; align-items: start; }
  .hw-body.split .hw-shot { margin-top: 0; }
}

/* Two roles */
.rl { display: grid; gap: 0; border-top: 1.5px solid var(--text); }
.rl > div { padding: 16px 0; }
.rl > div + div { border-top: 1px solid var(--hairline); }
.rl h3 { font-size: 19px; margin-bottom: 8px; }
.rl ul { margin: 0; padding: 0; list-style: none; }
.rl li { position: relative; padding: 5px 0 5px 20px; color: var(--muted); border-top: 1px solid var(--hairline); }
.rl li:first-child { border-top: 0; }
.rl li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line); }
@media (min-width: 820px) {
  .rl { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .rl > div + div { border-top: 0; }
}

/* Fair-share rule: the ₹/km band as a gauge */
.fr { display: grid; gap: 22px; }
.fr-gauge { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px; }
.fr-scale { position: relative; height: 12px; border-radius: 99px; background: var(--bg-deep); margin: 30px 6px 6px; }
.fr-band { position: absolute; left: 20%; right: 20%; top: 0; bottom: 0; border-radius: 99px; background: var(--line); }
.fr-pin { position: absolute; left: 40%; top: -26px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; font-weight: 500; background: var(--sun); color: #17231D; padding: 3px 6px; border-radius: 2px; white-space: nowrap; }
.fr-pin::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 2px; height: 14px; margin-left: -1px; background: var(--text); }
.fr-ticks { position: relative; height: 16px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin: 0 6px; }
.fr-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.fr-ticks .t0 { left: 0; transform: none; }
.fr-ticks .t2 { left: 20%; }
.fr-ticks .t4 { left: 40%; }
.fr-ticks .t6 { left: 60%; }
.fr-ticks .t8 { left: 80%; }
.fr-ticks .t10 { left: 100%; transform: translateX(-100%); }
.fr-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.fr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-right: 6px; vertical-align: -1px; }
.fr-sum { font-family: var(--mono); font-size: 13px; border-top: 1px solid var(--hairline); margin-top: 12px; padding-top: 10px; }
.fr-sum b { font-family: var(--display); font-size: 20px; }
.fr-points { list-style: none; margin: 0; padding: 0; }
.fr-points li { padding: 10px 0; border-top: 1px solid var(--hairline); }
.fr-points li:first-child { border-top: 0; padding-top: 0; }
.fr-points b { display: block; font-family: var(--display); font-size: 16px; }
.fr-points span { color: var(--muted); }
@media (min-width: 820px) { .fr { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }

/* ---------- Safety page ---------- */
.sf { list-style: none; margin: 0; padding: 0; display: grid; }
.sf li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.sf li:first-child { border-top: 1.5px solid var(--text); }
.sf-ic { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); border: 1.5px solid var(--text); border-radius: 50%; }
.sf-ic svg { width: 19px; height: 19px; }
.sf-ic.sun { background: var(--sun); color: #17231D; border-color: var(--sun); }
.sf h3 { font-size: 17px; margin-bottom: 2px; }
.sf p { color: var(--muted); }
@media (min-width: 820px) {
  .sf { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .sf li:nth-child(2) { border-top: 1.5px solid var(--text); }
}
.tips { counter-reset: tip; list-style: none; margin: 0; padding: 0; }
.tips li { counter-increment: tip; position: relative; padding: 9px 0 9px 40px; border-top: 1px solid var(--hairline); color: var(--muted); }
.tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--mono); font-size: 12px; color: var(--line-text); font-weight: 500; }
.tips strong { color: var(--text); }

/* ---------- Docs (legal, support) ---------- */
.doc { padding: 30px 0 48px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.doc h3 { margin: 18px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 20px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc .updated { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.doc .lead { color: var(--muted); font-size: 15.5px; }
.summary { background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--sun); border-radius: 12px; padding: 14px 16px; margin: 18px 0 6px; }
.summary p { font-family: var(--display); font-weight: 700; font-size: 16px; }
.summary ul { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 10px 0; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
.doc-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 13px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--hairline); }
.doc-table tr:first-child th { border-top: 0; }
.doc-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (max-width: 599px) {
  .table-scroll { overflow: visible; }
  .doc-table { min-width: 0; font-size: 13.5px; }
  .doc-table tr:first-child { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr { padding: 10px 14px; border-top: 1px solid var(--hairline); }
  .doc-table tr:nth-child(2) { border-top: 0; }
  .doc-table td { border: 0; padding: 2px 0; }
  .doc-table td + td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
}
.callout { margin-top: 26px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--on-ink); }
.callout a { color: inherit; text-decoration-color: var(--sun); }
.callout a:hover { color: inherit; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 36px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: #17231D; font: 800 13px/1 var(--display); padding-top: 2px; }
.contact-row { display: grid; gap: 0; margin: 16px 0; border-top: 1.5px solid var(--text); }
.contact-row > div { padding: 14px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 6px; }
.contact-row > div:last-child { border-bottom: 0; }
.contact-row h3 { margin: 0; }
.contact-row .btn { justify-self: start; margin-top: 4px; }
@media (min-width: 720px) { .contact-row { grid-template-columns: 1fr 1fr; column-gap: 32px; } .contact-row > div { border-bottom: 0; } }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1.5px solid var(--text); }
.faq summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font-family: var(--mono); font-size: 18px; color: var(--line-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 30px 0 26px; background: var(--bg-deep); margin-top: 8px; }
.footer-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 5px 0; font-size: 13.5px; }
.footer-grid li a { text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-tag { margin-top: 8px; font-size: 13.5px; max-width: 30em; }
.made-by { font-size: 13px; margin-top: 6px; }
.mail { overflow-wrap: break-word; } /* the address breaks at the <wbr> before @, never mid-word */
.fineprint { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12px; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .car-svg .seq { opacity: 1; transform: none; transition: none; animation: none; }
  .car-svg .lane { animation: none; }
  .nav-links, .btn { transition: none; }
}
