/* velro.linumic.com -- one stylesheet for the three languages.
   Logical properties throughout (inline-start/end), so the Dari and Pashto
   pages read right to left and the English page left to right from the same
   rules. Colours are the app's brand (design/DESIGN.md); amber is kept for
   money, as in the app. */

@font-face { font-family: Vazirmatn; font-weight: 100 900; font-display: swap;
  src: url(fonts/vazirmatn-2.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 100 900; font-display: swap;
  src: url(fonts/vazirmatn-1.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Vazirmatn; font-weight: 100 900; font-display: swap;
  src: url(fonts/vazirmatn-3.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #0E6042;
  --pine: #06301F;
  --mint: #8FD9BC;
  --fare: #F5B841;
  --paper: #F5F7F6;
  --ink: #102019;
  --muted: #4A5A52;
  --line: #D6E0DA;
  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Vazirmatn, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
}
:lang(en) body, body:lang(en) { line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--fare);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.top { padding-block: 1.25rem; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.langs { display: flex; gap: .25rem; list-style: none; padding: 0; font-size: .95rem; }
.langs a { display: block; padding: .3rem .7rem; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--ink); background: #fff; }
.langs a[aria-current="page"] { color: #fff; background: var(--ink); }

/* Hero: the copy on one side, the app on the other, and the mark's two
   lines drawn large behind the phone, the way they lean on the app icon. */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font-weight: 850;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 12ch;
  text-wrap: balance;
}
:lang(en) .hero h1 { letter-spacing: -.025em; max-width: 13ch; }
.hero .lede { margin-block-start: 1.25rem; max-width: var(--measure); font-size: 1.2rem; color: var(--muted); }
.stage { position: relative; justify-self: center; width: min(100%, 22rem); }
/* Anchored on the phone's side that faces the copy and running out to the
   page edge, so the stripes never pass under the words (the mark itself is
   never mirrored). */
.stage .lines { position: absolute; inset-inline-start: -14%; top: 20%; width: 175%; height: auto; z-index: 0; }
.phone {
  position: relative; z-index: 1;
  border-radius: 2.6rem;
  border: 9px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(6, 48, 31, .55);
}
.phone img { border-radius: 1.9rem; }

/* Download buttons */
.get { margin-block-start: 2rem; }
.get p { font-weight: 700; margin-block-end: .6rem; }
.stores { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; }
.stores a {
  display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center;
  min-width: 10.5rem; padding: .65rem 1.05rem; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; line-height: 1.25;
}
.stores a:hover { background: var(--green); }
.stores svg { grid-row: span 2; width: 1.6rem; height: 1.6rem; }
.stores small { font-size: .8rem; opacity: .75; }
.stores b { font-size: 1.05rem; font-weight: 700; }
.stores.on-dark a { background: transparent; border: 1.5px solid var(--mint); color: #fff; }
.stores.on-dark a:hover { background: var(--mint); color: var(--pine); }

/* The places, on a road sign: white type and a white inner border on the
   green of the highway signs between Kabul and Charikar. */
.where { padding-block: clamp(2rem, 6vw, 4rem); }
.sign {
  background: var(--green); color: #fff;
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  outline: 4px solid #fff; outline-offset: -14px;
  box-shadow: 0 0 0 1px var(--green);
}
.sign h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.35; padding-inline: .5rem; }
.places {
  list-style: none; padding: 0; margin-block-start: 1.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem 1.5rem;
  padding-inline: .5rem;
}
.places li { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; }
.places svg { width: 1.9rem; height: auto; flex: none; }
.where .note { margin-block-start: 1rem; max-width: 48rem; color: var(--muted); }

/* How it works: a real sequence, so it is numbered. */
.how { padding-block: clamp(3rem, 7vw, 5.5rem); }
.how h2, .more h2, .trust h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.3; }
.steps { list-style: none; padding: 0; margin-block-start: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; }
.steps .shot { border-radius: 1.6rem; border: 1px solid var(--line); overflow: hidden; background: #fff; max-width: 17rem; }
.steps h3 { margin-block-start: 1.25rem; font-size: 1.3rem; font-weight: 800; display: flex; gap: .6rem; align-items: baseline; }
.steps h3::before {
  content: counter(step, var(--counter, decimal));
  color: var(--green); font-weight: 850; font-size: 1.6rem; line-height: 1;
}
:lang(fa) .steps, :lang(ps) .steps { --counter: persian; }
.steps p { margin-block-start: .4rem; color: var(--muted); max-width: 22rem; }
.fare { color: var(--ink); background: var(--fare); padding: 0 .35em; border-radius: 6px; font-weight: 700; white-space: nowrap; }

/* More: a plain two-column list, each line led by the mark's short stroke. */
.more { padding-block: 0 clamp(3rem, 7vw, 5.5rem); }
.more ul { list-style: none; padding: 0; margin-block-start: 1.75rem; columns: 2; column-gap: 3rem; }
.more li { break-inside: avoid; padding-block: .85rem; border-block-start: 1px solid var(--line); }
.more b { display: block; font-weight: 800; }
.more span { color: var(--muted); }

/* Drivers */
.drivers { background: var(--pine); color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); }
.drivers .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.drivers h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 850; line-height: 1.2; }
.drivers .lede { margin-block-start: 1rem; max-width: var(--measure); color: #CFE4DA; font-size: 1.15rem; }
.drivers ul.points { list-style: none; padding: 0; margin-block-start: 1.5rem; }
.drivers ul.points li { padding-block: .45rem; padding-inline-start: 1.6rem; position: relative; }
.drivers ul.points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 1.05em;
  width: 1rem; height: .32rem; background: var(--mint); transform: skewX(-20deg);
}
.drivers .free { margin-block-start: 1.25rem; font-weight: 800; font-size: 1.2rem; color: var(--mint); }
.drivers .phone { border-color: #000; max-width: 17rem; justify-self: center; }

/* Trust */
.trust { padding-block: clamp(3rem, 7vw, 5rem); }
.trust ul { list-style: none; padding: 0; margin-block-start: 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.trust li { border-block-start: 3px solid var(--ink); padding-block-start: 1rem; }
.trust b { display: block; font-weight: 800; font-size: 1.15rem; }
.trust span { color: var(--muted); }
.trust .policy { margin-block-start: 2rem; }

/* Footer */
.foot { border-block-start: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: .98rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.social { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; padding: 0; }
.foot .muted { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .drivers .wrap { grid-template-columns: 1fr; }
  .stage { width: min(78%, 19rem); margin-block-start: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .steps h3 { margin-block-start: 0; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more ul { columns: 1; }
  .trust ul { grid-template-columns: 1fr; gap: 1.25rem; }
  .drivers .phone { max-width: 14rem; }
}
@media (max-width: 420px) {
  .places { gap: .2rem 1rem; }
  .places li { font-size: 1.1rem; gap: .5rem; }
  .places svg { width: 1.4rem; }
  .stores li { flex: 1 1 9rem; }
  .stores a { min-width: 0; width: 100%; }
  .steps li { grid-template-columns: 7rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
