/* Teli design system, web.
   Tokens mirror the Teli brand system. Both pages share this file so they
   cannot drift apart; a style used on only one page still lives here,
   because "where is that rule" should have one answer. */

:root {
  /* Green is an accent, not the ground. It marks the logo, the primary
     button, the step numbers, the tick marks and the online dot -- and one
     car in the drawing. Every neutral below is a real neutral rather than a
     green tinted one, so the page reads as paper and ink with a green mark
     on it, not as a green page. */
  --green: #0A7F3E;
  /* Green as a TEXT colour. --green is measured against white; on the night
     ground it falls to 3.5:1. Two digits darker than --green because the
     stone tint is stricter than white: 4.8:1 there, 5.4:1 on white. Fills
     keep --green -- white on it is 5.1:1. */
  --green-text: #0A7A3B;
  --gold: #FCD116;

  /* The dark ground: the driver page, the dark theme, and the negotiation
     card on both pages. Charcoal, not forest -- it has to carry gold and
     green without competing with either. */
  --night: #15181B;
  --night-2: #1E2327;
  --night-3: #2C3338;

  --surface-page: #FAFAF9;
  --surface-card: #FFFFFF;
  --surface-tint: #F1F2F0;
  --ink: #15181B;
  --ink-muted: #585F66;
  --border: #E2E4E3;
  --danger: #C62828;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-page: #15181B;
    --surface-card: #1E2327;
    --surface-tint: #1A1E22;
    --ink: #F4F5F5;
    --ink-muted: #A7AEB3;
    --border: #2C3338;
    --danger: #EF5350;
    --green-text: #35B566;  /* 6.0:1 on the card, 6.8:1 on the page */
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface-page: #15181B;
  --surface-card: #1E2327;
  --surface-tint: #1A1E22;
  --ink: #F4F5F5;
  --ink-muted: #A7AEB3;
  --border: #2C3338;
  --danger: #EF5350;
  --green-text: #35B566;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6.2vw, 66px); line-height: 1.03; font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
p { margin: 0; }

.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-muted); max-width: 56ch; }
.eyebrow {
  font-family: var(--font-text); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-text);
}
/* Every fare, distance and percentage on the site. Digits line up in a
   column, and a number never breaks across lines. */
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------------------- header */

header.bar-wrap {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-page);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(1px)) {
  header.bar-wrap {
    background: color-mix(in srgb, var(--surface-page) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
.bar { display: flex; align-items: center; gap: 14px; padding-block: 13px; }
.mark {
  font-family: var(--font-display); font-weight: 800; font-size: 23px;
  letter-spacing: -0.03em; color: var(--ink); text-decoration: none; flex: none;
}
.mark span { color: var(--green-text); }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bar nav a.navlink {
  color: var(--ink-muted); text-decoration: none; font-size: 14px;
  padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap;
}
.bar nav a.navlink:hover { color: var(--ink); background: var(--surface-tint); }
.bar nav a.navlink[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .bar nav a.navlink.hide-sm { display: none; } }

.lang {
  display: inline-flex; border: 1px solid var(--border);
  border-radius: var(--radius-pill); overflow: hidden; flex: none; margin-left: 4px;
}
.lang button {
  font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 13px; border: 0; background: transparent; color: var(--ink-muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface-page); }
:where(a, button, input):focus-visible { outline: 2px solid var(--green-text); outline-offset: 2px; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-text); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 52px;
  transition: transform 140ms var(--ease), filter 140ms var(--ease), background 140ms var(--ease);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { border-color: var(--green-text); color: var(--green-text); background: transparent; }
.btn-ghost:hover { background: var(--surface-tint); transform: translateY(-1px); }
.band-dark .btn-ghost:hover { background: var(--night-2); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ----------------------------------------------------------------- bands */

.band { padding-block: clamp(56px, 8vw, 96px); }
.band-tint { background: var(--surface-tint); }
.band-dark { background: var(--night); color: #F4F5F5; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #F4F5F5; }
.band-dark .lede, .band-dark .muted { color: #A7AEB3; }
.band-dark .eyebrow { color: var(--gold); }
.band-dark .card { background: var(--night-2); border-color: var(--night-3); }
.band-dark .card p { color: #A7AEB3; }
.muted { color: var(--ink-muted); }
.section-head { max-width: 62ch; }
.section-head h2 { margin-top: 10px; }
.section-head .lede { margin-top: 14px; }

.grid { display: grid; gap: 22px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; min-width: 0;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-muted); font-size: 15px; }
.card .icon { margin-bottom: 16px; display: block; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 40px; }
.step { min-width: 0; }
.step .n {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--green-text); letter-spacing: 0.08em; display: block; margin-bottom: 10px;
}
.band-dark .step .n { color: var(--gold); }
.step p { color: var(--ink-muted); font-size: 15px; margin-top: 6px; }
.band-dark .step p { color: #A7AEB3; }

ul.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
ul.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-muted); }
ul.ticks li::before {
  content: ""; position: absolute; left: 1px; top: 6px; width: 15px; height: 8px;
  border-left: 2.5px solid var(--green-text); border-bottom: 2.5px solid var(--green-text);
  transform: rotate(-45deg);
}
.band-dark ul.ticks li { color: #A7AEB3; }
.band-dark ul.ticks li::before { border-color: var(--gold); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface-card); font-size: 14px; color: var(--ink);
}
.band-dark .chip { background: var(--night-2); border-color: var(--night-3); color: #F4F5F5; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ------------------------------------------------------------ fare table */

.fares { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 15px; }
.fares th, .fares td { text-align: right; padding: 13px 10px; border-bottom: 1px solid var(--border); }
.fares th:first-child, .fares td:first-child { text-align: left; }
.fares thead th {
  font-family: var(--font-text); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}
.fares td.amt { font-family: var(--font-display); font-weight: 700; }
.fares tbody tr:last-child td { border-bottom: 0; }
.band-dark .fares th, .band-dark .fares td { border-color: var(--night-3); }
.band-dark .fares thead th { color: #A7AEB3; }
@media (max-width: 560px) {
  .fares th, .fares td { padding: 11px 4px; font-size: 14px; }
  .fares thead th { font-size: 11px; letter-spacing: 0.03em; }
}

/* ---------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--border); padding-block: 40px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: baseline; }
.foot p, .foot a { font-size: 14px; color: var(--ink-muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot .spacer { margin-left: auto; }
/* The registration line takes the full row under the rest. */
.foot .legal { flex-basis: 100%; font-size: 13px; }

/* -------------------------------------------------------------- the deal
   The negotiation card. This is the product demo, on both pages. */

.deal {
  position: relative; background: var(--night); border-radius: var(--radius);
  padding: 22px; overflow: hidden; min-width: 0;
  border: 1px solid var(--night-3);
}
.deal .streaks { position: absolute; inset: 0; opacity: 0.16; width: 100%; height: 100%; }
.deal-inner { position: relative; }
.trip { display: grid; gap: 10px; margin-bottom: 18px; }
.stop { display: flex; align-items: center; gap: 10px; color: #F4F5F5; font-size: 14px; min-width: 0; }
.dot { width: 10px; height: 10px; border-radius: var(--radius-pill); flex: none; }
.dot.a { background: #35B566; }
.dot.b { background: var(--gold); }
.stop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offers { display: grid; gap: 8px; }
.offer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--night-2); border-radius: var(--radius-sm); padding: 12px 14px;
}
.offer .who { font-size: 13px; color: #A7AEB3; min-width: 0; }
.offer .amt {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #F4F5F5;
  font-variant-numeric: tabular-nums; white-space: nowrap; flex: none;
}
.offer.final { background: var(--gold); }
.offer.final .who { color: var(--night); font-weight: 600; }
.offer.final .amt { color: var(--night); font-size: 22px; font-weight: 800; }

/* The negotiation plays itself out: propose, counter, agreed. Four seconds
   of animation explains the product better than a paragraph does. */
.js-anim .deal[data-play] .offer { opacity: 0; transform: translateY(8px); }
.deal[data-play].played .offer {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.deal[data-play].played .offer:nth-child(1) { transition-delay: 150ms; }
.deal[data-play].played .offer:nth-child(2) { transition-delay: 1150ms; }
.deal[data-play].played .offer:nth-child(3) { transition-delay: 2150ms; }

/* A quiet pulse on the agreed row, once, as it lands. */
@keyframes settle {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}
.deal[data-play].played .offer.final { animation: settle 520ms var(--ease) 2350ms 1; }

/* --------------------------------------------------------- driver switch */

.online {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--night-2); border: 1px solid var(--night-3);
  border-radius: var(--radius); color: #F4F5F5; font-weight: 600;
}
.online .switch {
  width: 54px; height: 31px; border-radius: var(--radius-pill);
  background: var(--night-3); position: relative; flex: none;
  transition: background 320ms var(--ease);
}
.online .switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px;
  border-radius: var(--radius-pill); background: #F4F5F5;
  transition: transform 320ms var(--ease);
}
.online.on .switch { background: var(--green); }
.online.on .switch::after { transform: translateX(23px); }
/* Status is never colour alone: the dot and the word move together. */
.online .state { display: inline-flex; align-items: center; gap: 8px; }
.online .state .pip {
  width: 9px; height: 9px; border-radius: var(--radius-pill);
  background: #7A8289; transition: background 320ms var(--ease);
}
.online.on .state .pip { background: #35B566; }

/* ------------------------------------------------------------- hero grid */

.hero { padding-block: clamp(44px, 7vw, 86px) clamp(40px, 6vw, 76px); }
.hero-grid {
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(30px, 5vw, 60px); align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--green-text); }
.band-dark .hero h1 em { color: var(--gold); }
.hero .lede { margin-top: 20px; }

/* ------------------------------------------------------------- art/scene */

.scene { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.scene-wrap { position: relative; min-width: 0; }

/* The wheels turn only while the scene is on screen. */
@keyframes roll { to { transform: rotate(360deg); } }
.scene.rolling .wheel { transform-box: fill-box; transform-origin: center; animation: roll 1.5s linear infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
.scene.rolling .body { animation: bob 1.5s ease-in-out infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.scene.rolling .road { stroke-dasharray: 16 10; animation: dash 1.1s linear infinite; }

/* ------------------------------------------------------------- animation
   Everything in this block is decoration. The page is complete and readable
   with all of it switched off, which is what the reduced-motion rule at the
   bottom of this file does. */

/* Content is visible by default and only hides itself once the script has
   confirmed it is about to animate it. If the script never runs, or the
   observer never delivers -- a background tab, an embedded webview, a
   throttled page -- the page is simply a readable page. Nothing the reader
   needs is ever behind an animation that might not arrive. */
.js-anim .reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--d, 0ms);
}

/* "Teli" means fast, so the brand's own geometry drifts. */
@keyframes drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }
.streaks rect { animation: drift 9s var(--ease) infinite alternate; }
.streaks rect:nth-child(odd) { animation-duration: 12.5s; }
.streaks rect:nth-child(3n) { animation-duration: 7.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; }
  .js-anim .deal[data-play] .offer { opacity: 1; transform: none; }
}
