/* jolapp.asia — brand: graphite, ink, orange; one family (Onest). */
:root {
  --graphite: #17191E;
  --ink: #24272E;
  --orange: #FF7A16;
  --orange-press: #E86A0A;
  --paper: #FFFFFF;
  --asphalt: #F1F2F4;
  --muted: #666C78;
  --line: #E1E3E7;

  --bg: var(--paper);
  --text: var(--ink);
  --soft: var(--muted);
  --panel: var(--asphalt);
  --rule: var(--line);
  --band: var(--graphite);
  --link: #C65400;

  --wrap: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1F25;
    --text: #F2F3F5;
    --soft: #A3A8B2;
    --panel: #24272E;
    --rule: #33373F;
    --band: var(--graphite);
    --link: #FF9A4D;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.55 Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--orange); color: var(--graphite); font-weight: 600; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: orange with graphite text keeps contrast high. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--orange); color: var(--graphite);
  font-weight: 600; font-size: 18px; text-decoration: none;
  border-radius: 16px; border: 2px solid var(--orange);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange-press); border-color: var(--orange-press); }
.btn.ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .06); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 12px; }

/* ---- Hero: the city at night and the route that brings your car ---- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--graphite); color: #FFFFFF;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(23, 25, 30, .94) 0%, rgba(23, 25, 30, .78) 42%, rgba(23, 25, 30, .2) 75%);
}
.city { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.city .blocks rect { fill: #1F2228; stroke: #2A2D35; stroke-width: 2; }
.city .line, .city .halo { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.city .line { stroke-width: 9; animation: draw 2.4s cubic-bezier(.55, .05, .3, 1) .3s forwards; }
.city .halo { stroke-width: 26; opacity: .35; animation: draw 2.4s cubic-bezier(.55, .05, .3, 1) .3s forwards; }
.city .late { stroke-width: 5; opacity: .5; animation-delay: 1.4s; }
.city .pin { opacity: 0; animation: appear .5s ease-out 2.5s forwards; }
.city .dot { fill: var(--orange); }
.city .core { fill: #FFFFFF; }
.city .pulse { fill: var(--orange); opacity: .25; transform-origin: center; animation: pulse 2.6s ease-out 3s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .city .line, .city .halo { animation: none; stroke-dashoffset: 0; }
  .city .pin { animation: none; opacity: 1; }
  .city .pulse { animation: none; }
}

.bar { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.logo img { width: 112px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a, .langs a { color: #D5D7DC; text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .langs a:hover { color: #FFFFFF; }
.langs { display: flex; gap: 4px; margin-left: auto; }
.langs a { padding: 6px 9px; border-radius: 8px; font-size: 15px; }
.langs a[aria-current="page"] { color: #FFFFFF; background: rgba(255, 255, 255, .1); }

.hero-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: clamp(32px, 6vw, 72px); }
.hero-text { max-width: 600px; }
.nw { white-space: nowrap; }
h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.035em; font-weight: 800; }
.hero .lead { margin-top: 26px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: #C9CCD3; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stores { margin-top: 22px; font-size: 15px; color: #9EA3AD; max-width: 32em; }

/* Phones: complete iPhone pictures (frame, status bar, screen) made by capture.mjs. */
.phone { margin: 0; position: relative; }
.phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .5)); }
.hero-phones, .driver-phones { position: relative; height: 600px; }
.hero-phones .phone, .driver-phones .phone { position: absolute; width: 270px; }
.hero-phones .front, .driver-phones .front { right: 4%; top: 0; z-index: 1; }
.hero-phones .back, .driver-phones .back { right: calc(4% + 200px); top: 64px; width: 240px; transform: rotate(-5deg); filter: brightness(.82); }

/* ---- Light part of the page: the trip ---- */
.trip { position: relative; }
.section { --pad: clamp(72px, 9vw, 120px); padding-top: var(--pad); position: relative; }
.trip > .section:last-child { padding-bottom: clamp(72px, 9vw, 120px); }

/* The route through the page: a line in the left margin with a stop at each heading. */
@media (min-width: 1260px) {
  .trip::before {
    content: ""; position: absolute; z-index: 1; top: 0; bottom: 140px; width: 4px; border-radius: 2px;
    left: calc(50% - var(--wrap) / 2 - 46px); background: var(--orange);
  }
  .trip > .section::before {
    content: ""; position: absolute; z-index: 2; top: calc(var(--pad) + 15px); left: calc(50% - var(--wrap) / 2 - 54px);
    width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 4px solid var(--orange);
  }
  .trip > .drivers::before { top: calc(var(--pad) + 15px); background: var(--band); }
}

.tariffs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.tariffs li { padding-top: 8px; border-top: 2px solid var(--rule); }
.tariffs img { width: 100%; height: auto; margin: 12px 0 14px; }
.tariffs p { color: var(--soft); font-size: 16px; margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 48px; counter-reset: step; }
.steps .phone { width: 100%; max-width: 250px; }
.steps .phone img, .more-phone .phone img { filter: drop-shadow(0 18px 26px rgba(23, 25, 30, .22)); }
.step-text { margin-top: 26px; }
.step-text p { color: var(--soft); font-size: 16px; margin-top: 8px; }
.stop {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--orange); color: var(--graphite); font-weight: 700; font-size: 16px;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.facts { margin-top: 36px; }
.facts li { padding: 22px 0; border-top: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts p { color: var(--soft); margin-top: 6px; font-size: 17px; }

.angles { margin: 8px 0 0; padding: clamp(24px, 3vw, 36px); background: var(--panel); border-radius: 28px; }
.angles ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
.angles li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; text-align: center; }
.angle { width: 100%; max-width: 150px; height: auto; padding: 12px; background: var(--bg); border-radius: 18px; }
.angle path, .angle rect, .angle ellipse, .angle circle { fill: none; stroke: var(--text); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.angle .soft { stroke: var(--soft); stroke-width: 2; }
.angle .fill { fill: var(--text); }
.angle .accent { stroke: var(--orange); }
.angle rect.accent, .angle circle.accent { fill: rgba(255, 122, 22, .14); }
.angle .accent-line { stroke: var(--orange); }
.angle .bg { fill: var(--bg); }
.angles figcaption { margin-top: 22px; color: var(--soft); font-size: 15px; text-align: center; }

.more-split { align-items: start; }
.more-phone { display: flex; justify-content: center; }
.more-phone .phone { width: 270px; transform: rotate(3deg); }
.more li { padding: 22px 0; border-top: 1px solid var(--rule); }
.more li:last-child { border-bottom: 1px solid var(--rule); }
.more p { color: var(--soft); margin-top: 6px; font-size: 17px; }
.more { margin-top: 36px; }

/* ---- Drivers: dark band ---- */
.drivers { margin-top: var(--pad); padding-bottom: var(--pad); background: var(--band); color: #FFFFFF; position: relative; }
.drivers .lead { margin-top: 18px; font-size: 20px; color: #C9CCD3; max-width: 30em; }
.drivers .facts li { border-color: #33363E; }
.drivers .facts p { color: #A9ADB6; }
.start-h { margin-top: 40px; }
.start { margin: 20px 0 34px; display: grid; gap: 14px; }
.start li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.start .stop { margin: 0; flex: none; }
.drivers .split { align-items: center; }
.driver-phones { height: 640px; }

/* ---- Cities and questions ---- */
.cities { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-top: 40px; }
.cities div { border-top: 2px solid var(--rule); padding-top: 18px; }
.cities p { margin-top: 10px; color: var(--soft); font-size: 17px; line-height: 1.7; }

.faq { margin-top: 36px; max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 6px;
  border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: translateY(-4px) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details p { padding: 0 0 24px; color: var(--soft); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---- Footer ---- */
.foot { background: var(--panel); padding: 56px 0 64px; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1.2fr 1.2fr; gap: 32px; }
.foot h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { color: var(--soft); margin-top: 14px; }
.foot-logo { width: 100px; height: auto; }
.foot-langs { margin: 18px 0 0 -9px; }
.foot-langs a { color: var(--soft); }
.foot-langs a[aria-current="page"] { color: var(--text); background: var(--bg); }
.foot-langs a:hover { color: var(--text); }

/* ---- 404 ---- */
.nf .hero { min-height: 100vh; display: flex; align-items: center; padding: 0; }
.nf .hero-body { grid-template-columns: 1fr; padding: 0 var(--gutter); }

/* ---- Smaller screens ---- */
@media (max-width: 1060px) {
  .nav { display: none; }
  .tariffs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps .phone { max-width: 230px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-phones { height: 480px; max-width: 460px; width: 100%; margin: 8px auto 0; }
  .hero-phones .phone { width: 220px; }
  .hero-phones .front { right: 6%; }
  .hero-phones .back { width: 196px; right: calc(6% + 160px); top: 50px; }
  .hero::after { background: linear-gradient(180deg, rgba(23, 25, 30, .9) 0%, rgba(23, 25, 30, .72) 55%, rgba(23, 25, 30, .4) 100%); }
  .split { grid-template-columns: 1fr; }
  .more-phone { order: 2; }
  .driver-phones { height: 500px; max-width: 460px; width: 100%; margin: 24px auto 0; }
  .driver-phones .phone { width: 220px; }
  .driver-phones .back { width: 196px; right: calc(4% + 160px); top: 50px; }
  .cities { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .bar { gap: 12px; min-height: 68px; }
  .logo img { width: 92px; }
  .bar .btn { display: none; }
  .ctas .btn { flex: 1 1 100%; }
  .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tariffs li:last-child { grid-column: 1 / -1; }
  .tariffs li:last-child img { max-width: 50%; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
  .step-text { margin-top: 4px; }
  .angles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-phones, .driver-phones { height: 400px; }
  .hero-phones .phone, .driver-phones .phone { width: 180px; }
  .hero-phones .back, .driver-phones .back { width: 160px; right: calc(4% + 120px); top: 40px; }
  .more-phone .phone { width: 220px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
