/* Landing page only (the Mini Apps use app.css and follow Telegram's theme).
   Colours come from the logo: taxi pink #f2446f and wordmark green #0e3a22. Logo pink is too light for
   small text on white (3.5:1), so text and buttons use --brand-ink, which passes WCAG AA. */
:root {
  --brand: #f2446f;          /* logo pink: shapes, illustrations, large accents */
  --brand-ink: #d92b57;      /* pink for text and buttons (4.6:1 on --bg, 4.7:1 under white text) */
  --brand-ink-hover: #c8264f;
  --brand-soft: #fde7ed;
  --green: #0e3a22;          /* logo wordmark: headings */
  --green-mid: #1f7a4d;      /* map pin and dots */
  --on-green-accent: #ff6b8e; /* pink on the green section (4.7:1) */
  --bg: #fffafb;
  --surface: #ffffff;
  --text: #1d2b23;
  --heading: var(--green);
  --hint: #4a5a50;
  --line: #f1dde3;
  --drivers-bg: var(--green);
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #ff5c84;    /* 6.2:1 on --bg */
    --brand-ink-hover: #ff7a99;
    --brand-soft: #3a1c26;
    --green-mid: #3fae75;
    --bg: #0b1711;
    --surface: #14251b;
    --text: #eef4f0;
    --heading: #eef4f0;
    --hint: #9fb3a7;
    --line: #22362a;
    --drivers-bg: #123a25;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--heading); }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--heading); text-decoration: none; white-space: nowrap; }
.logo img { width: 36px; height: 36px; }
.logo span { color: var(--brand-ink); }
.nav nav { display: flex; gap: 18px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--hint); }
.nav nav a:hover { color: var(--brand-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-icon { width: 18px; height: 18px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn.primary { background: #d92b57; color: #fff; box-shadow: 0 8px 24px -10px var(--brand); }
.btn.primary:hover { background: #c8264f; }
.btn.ghost { color: var(--brand-ink); }
.btn.ghost:hover { color: var(--brand-ink-hover); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.eyebrow { margin: 0 0 10px; color: var(--brand-ink); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.lead { color: var(--hint); font-size: 18px; margin: 18px 0 0; }

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
  max-width: 1080px; margin: 0 auto; padding: 56px 20px 72px;
}
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 900; letter-spacing: -.01em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Illustration of the Mini App, not a screenshot. */
.phone {
  justify-self: center; width: 290px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 36px;
  box-shadow: 0 30px 60px -30px rgba(242, 68, 111, .45);
}
.phone-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px 10px; font-weight: 800; font-size: 15px; color: var(--heading); }
.phone-map {
  --map-land: #eef3ee; --map-water: #cfe4ef; --map-road: #ffffff;
  border-radius: 22px; overflow: hidden; background: var(--map-land);
}
@media (prefers-color-scheme: dark) {
  .phone-map { --map-land: #1a2820; --map-water: #12303b; --map-road: rgba(255, 255, 255, .11); }
}
.phone-map svg { display: block; width: 100%; height: auto; }
.map-land { fill: var(--map-land); }
.map-water { fill: var(--map-water); }
.map-road { fill: none; stroke: var(--map-road); stroke-linecap: round; }
.map-label { font-size: 9px; font-weight: 700; fill: var(--hint); }
.map-label.water { font-style: italic; font-weight: 600; text-anchor: middle; }
.map-route { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; }
.map-route .tunnel { stroke-dasharray: 2 7; } /* under the harbour */
.map-taxi rect { fill: var(--brand); stroke: #fff; stroke-width: 1.5; }
.map-taxi .glass { fill: #26323d; stroke: none; }
.map-pin circle, .map-pin rect { stroke: #fff; stroke-width: 2.5; }
.map-pin.start circle { fill: var(--green-mid); }
.map-pin.end rect { fill: var(--brand); }
.map-pin text { font-size: 11px; font-weight: 800; fill: #fff; text-anchor: middle; }
.phone-card { padding: 14px 8px 4px; display: grid; gap: 8px; font-size: 15px; }
.stop { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.green { background: var(--green-mid); }
.dot.red { background: var(--brand); }
.chips { display: flex; gap: 6px; margin-top: 4px; }
.chip { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--hint); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.fake-btn { margin-top: 6px; padding: 11px; text-align: center; border-radius: 14px; background: #d92b57; color: #fff; font-weight: 700; }

.section { max-width: 1080px; margin: 0 auto; padding: 64px 20px; }
section[id] { scroll-margin-top: 64px; } /* keep headings clear of the sticky nav after a menu jump */
.section > h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 900; margin-bottom: 28px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 70px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
}
.steps b { display: block; }
.steps span { color: var(--hint); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .icon { font-size: 28px; }
.feature h3 { font-size: 18px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--hint); font-size: 15px; }

/* The driver section turns the palette round: wordmark green, with pink as the accent. */
.drivers { max-width: none; background: var(--drivers-bg); color: #fff; }
.drivers-inner { max-width: 1080px; margin: 0 auto; }
.drivers .eyebrow { color: var(--on-green-accent); }
.drivers .lead { color: rgba(255,255,255,.85); }
.drivers h2 { color: #fff; }
.drivers .accent { color: var(--on-green-accent); }
.drivers h2 { font-size: clamp(32px, 5.5vw, 52px); font-weight: 900; }
.drivers .lead { max-width: 640px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; max-width: 860px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--on-green-accent); }
.drivers .btn.primary { box-shadow: none; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand-ink); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--hint); }

.footer {
  max-width: 1080px; margin: 0 auto; padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  color: var(--hint); font-size: 14px; border-top: 1px solid var(--line);
}
.footer-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--heading); font-weight: 700; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 40px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nav nav { gap: 12px; font-size: 14px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ── Legal pages: /privacy/ and /terms/ ── */
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--hint); }
.footer-links a:hover { color: var(--brand-ink); }
.nav nav a[aria-current="page"] { color: var(--brand-ink); }
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; line-height: 1.75; }
.doc h1 { font-size: clamp(28px, 6vw, 40px); }
.doc h2 { font-size: 22px; margin: 40px 0 8px; scroll-margin-top: 80px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--brand-ink); }
.doc-meta { color: var(--hint); font-size: 14px; margin: 6px 0 18px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.doc-embed { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 14px; margin-top: 12px; }
.doc-embed h3 { margin-top: 14px; }
