/* HATBRAN website. Same tokens as the app (design canvas): brand blue, coral for
   run/record, green for walk, purple for ride. Kantumruy Pro for Khmer + Latin text,
   Archivo for headlines and numbers. */
:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2FA;
  --ink: #0D1B2A;
  --muted: #56637A;
  --line: #DCE2EE;
  --blue: #1F45E0;
  --blue-soft: #E6ECFF;
  --coral: #D2381F;
  --coral-soft: #FCE9E5;
  --walk: #0B8A6A;
  --walk-soft: #DFF3EC;
  --ride: #6A3FD0;
  --ride-soft: #ECE5FB;
  --hike: #A06A12;
  --hike-soft: #F6ECD9;
  --on-blue: #FFFFFF;
  --map: #E9EEF5;
  --map-road: #FFFFFF;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 12px 32px -12px rgba(13, 27, 42, .18);
  --display: "Archivo", "Kantumruy Pro", "Segoe UI", system-ui, sans-serif;
  --body: "Kantumruy Pro", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1120; --surface: #121B2D; --surface-2: #18233A; --ink: #E8EDF5; --muted: #9AA6BA;
    --line: #25314A; --blue: #6F8BFF; --blue-soft: #1B2752; --coral: #FF6A4D; --coral-soft: #3A1E1A;
    --walk: #2FC79C; --walk-soft: #12332B; --ride: #A88BFF; --ride-soft: #261D44; --hike: #E0A84A; --hike-soft: #33280F;
    --on-blue: #0A1120; --map: #172238; --map-road: #22304B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1120; --surface: #121B2D; --surface-2: #18233A; --ink: #E8EDF5; --muted: #9AA6BA;
  --line: #25314A; --blue: #6F8BFF; --blue-soft: #1B2752; --coral: #FF6A4D; --coral-soft: #3A1E1A;
  --walk: #2FC79C; --walk-soft: #12332B; --ride: #A88BFF; --ride-soft: #261D44; --hike: #E0A84A; --hike-soft: #33280F;
  --on-blue: #0A1120; --map: #172238; --map-road: #22304B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
}
html[lang="km"] body { line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.15; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3 { font-family: var(--body); line-height: 1.4; }
p { margin: 0; }
.num { font-family: "Archivo", system-ui, sans-serif; font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 36px; height: 36px; }
.brand b { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand small { display: block; font-size: 11px; color: var(--muted); line-height: 1; margin-top: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.lang button {
  font: 600 13px var(--body); border: 0; background: transparent; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; cursor: pointer; min-height: 30px;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--body); text-decoration: none; border-radius: 12px; padding: 12px 20px;
  min-height: 46px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; border-radius: 10px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .bar-end { margin-left: auto; }
}
@media (max-width: 520px) {
  .bar-end .btn { display: none; }
  .brand small { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 48px 72px; }
.hero-route { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.hero-route path { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; opacity: .35; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.khmer-mark {
  font-family: "Kantumruy Pro", sans-serif; font-weight: 700; color: var(--blue);
  font-size: clamp(44px, 7vw, 76px); line-height: 1.3; margin-top: 18px; display: block;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.02em; margin-top: 4px;
}
html[lang="km"] .hero h1 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--coral); }
.lede { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-note .pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

/* Phone mockup */
.phone {
  width: 300px; max-width: 100%; aspect-ratio: 300 / 610; margin: 0 auto;
  border-radius: 44px; background: var(--ink); padding: 10px; box-shadow: var(--shadow); position: relative;
}
:root[data-theme="dark"] .phone, :root:not([data-theme="light"]) .phone { background: #050A14; }
.screen {
  width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column; position: relative;
}
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #050A14; z-index: 3; }
.map {
  flex: 1 1 55%; position: relative; background-color: var(--map);
  background-image:
    linear-gradient(90deg, transparent 47%, var(--map-road) 47%, var(--map-road) 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, var(--map-road) 47%, var(--map-road) 53%, transparent 53%);
  background-size: 74px 74px, 92px 92px;
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .river { position: absolute; right: -30px; top: -10px; width: 90px; height: 120%; background: color-mix(in srgb, var(--blue) 16%, var(--map)); transform: rotate(12deg); border-radius: 40px; }
.gps-chip {
  position: absolute; top: 44px; left: 14px; font-size: 11px; font-weight: 700; background: var(--surface);
  border-radius: 999px; padding: 4px 10px; display: flex; gap: 6px; align-items: center; box-shadow: var(--shadow);
}
.gps-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--walk); display: block; }
.panel { padding: 14px 18px 18px; display: grid; gap: 10px; }
.panel .type { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.chip.run { color: var(--coral); background: var(--coral-soft); }
.big-num { font-size: 44px; font-weight: 800; line-height: 1; }
.big-num small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stats div { display: grid; }
.stats b { font-size: 17px; font-weight: 700; }
.stats span { font-size: 11px; color: var(--muted); }
.rec-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.rec-btn { width: 54px; height: 54px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; box-shadow: 0 6px 16px -6px var(--coral); }
.rec-btn::after { content: ""; width: 16px; height: 16px; border-radius: 4px; background: #fff; }
.rec-row span { font-size: 11px; color: var(--muted); }
.voice-bubble {
  position: absolute; right: -18px; top: 38%; background: var(--surface); border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--shadow); font-size: 12px; max-width: 170px; display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid var(--line);
}
.voice-bubble svg { flex: none; color: var(--blue); }
@media (max-width: 420px) { .voice-bubble { right: 0; } }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding-block: 80px; }
.section-head { display: grid; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.01em; }
html[lang="km"] .section-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: 0; }
.section-head p { color: var(--muted); font-size: 17px; }
.kicker { font-family: "Archivo", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
html[lang="km"] .kicker { font-family: var(--body); letter-spacing: 0; font-size: 14px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Activity strip */
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.act {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.act .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.act b { display: block; font-weight: 600; }
.act span { font-size: 13px; color: var(--muted); }
.act.walk .ico { background: var(--walk-soft); color: var(--walk); }
.act.run .ico { background: var(--coral-soft); color: var(--coral); }
.act.ride .ico { background: var(--ride-soft); color: var(--ride); }
.act.hike .ico { background: var(--hike-soft); color: var(--hike); }
.acts-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Feature spotlights */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.spot + .spot { margin-top: 88px; }
.spot.flip .spot-art { order: -1; }
@media (max-width: 900px) { .spot { grid-template-columns: 1fr; gap: 32px; } .spot.flip .spot-art { order: 0; } }
.spot h3 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; margin-top: 10px; }
html[lang="km"] .spot h3 { font-size: clamp(22px, 2.4vw, 28px); }
.spot p.lead { color: var(--muted); font-size: 17px; margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231F45E0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Route planner art */
.planner { padding: 16px; display: grid; gap: 12px; }
.planner .map { height: 240px; flex: none; border-radius: 14px; overflow: hidden; }
.pp-fields { display: grid; gap: 8px; }
.pp-field { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.pp-field i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pp-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-route { padding: 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; }
.pp-route b { display: block; font-size: 16px; }
.pp-route.sel { border-color: var(--blue); background: var(--blue-soft); }
.turn { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 14px; }
.turn svg { flex: none; }

/* Challenge art */
.chal { padding: 20px; display: grid; gap: 16px; }
.chal-top { display: flex; gap: 14px; align-items: center; }
.medal { width: 52px; height: 52px; border-radius: 14px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; flex: none; }
.chal-top b { font-size: 18px; display: block; }
.chal-top span { font-size: 13px; color: var(--muted); }
.progress { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 64%; border-radius: 999px; background: linear-gradient(90deg, var(--coral), #F0703A); }
.chal-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.chal-meta b { color: var(--ink); }
.board { display: grid; gap: 2px; }
.board div { display: grid; grid-template-columns: 26px 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; font-size: 14px; }
.board div.me { background: var(--blue-soft); }
.board .rank { font-weight: 700; color: var(--muted); text-align: center; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.badge i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feat { padding: 22px; display: grid; gap: 10px; align-content: start; box-shadow: none; }
.feat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.feat h3 { font-size: 18px; font-weight: 700; }
.feat p { color: var(--muted); font-size: 15px; }

/* Privacy */
.privacy-art { padding: 20px; display: grid; gap: 10px; }
.vis { display: grid; grid-template-columns: 40px 1fr 22px; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.vis.on { border-color: var(--blue); background: var(--blue-soft); }
.vis .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.vis b { display: block; font-size: 15px; }
.vis span { font-size: 13px; color: var(--muted); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.vis.on .radio { border: 6px solid var(--blue); }
.hide-ends { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: var(--blue); position: relative; flex: none; margin-left: auto; }
.switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: none; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: "Archivo", sans-serif; font-weight: 800; font-size: 15px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--surface);
}
.step h3 { font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }
.step .loader-wrap { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.step .loader-wrap span { font-size: 13px; color: var(--muted); }
.url {
  font-family: "Archivo", sans-serif; font-weight: 600; font-size: 15px; background: var(--surface-2);
  border-radius: 10px; padding: 8px 12px; display: inline-block; word-break: break-all;
}

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; padding: 16px 28px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--blue); color: var(--on-blue); border-radius: 28px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta-band p { margin-top: 10px; opacity: .85; font-size: 17px; }
.cta-band .btn-light { background: var(--on-blue); color: var(--blue); }
.cta-band svg.ring-bg { position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; opacity: .14; pointer-events: none; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Footer */
.site-footer { padding-block: 48px 40px; border-top: 1px solid var(--line); margin-top: 80px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink); font-weight: 700; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { margin-top: 36px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Plain pages (legal, delete account, reset password) */
.page { padding-block: 48px 24px; }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.doc .updated { color: var(--muted); margin-top: 8px; font-size: 14px; }
.doc h2 { font-size: 21px; font-weight: 700; margin-top: 36px; }
.doc p, .doc li { color: var(--ink); margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc .muted { color: var(--muted); }
.callout { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--blue-soft); }
.callout.warn { background: var(--coral-soft); }
.path { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 600; }
.path span { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }

/* Form card (reset password) */
.form-card { max-width: 440px; padding: 28px; margin-top: 24px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input {
  font: 16px var(--body); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); min-height: 48px;
}
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.hint { font-size: 13px; color: var(--muted); }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.msg.err { background: var(--coral-soft); color: var(--coral); }
.msg.ok { background: var(--walk-soft); color: var(--walk); }
.form-card .btn { width: 100%; }
.form-card .btn[disabled] { opacity: .6; cursor: default; transform: none; }

.loader { display: block; }
@media (max-width: 900px) { .hero-route { display: none; } }

/* Get the app: buttons and cards follow the visitor's phone (html[data-platform], set by site.js). */
[data-show="android"], [data-show="ios"] { display: none; }
html[data-platform="android"] [data-show="android"],
html[data-platform="ios"] [data-show="ios"] { display: inline-flex; }
html[data-platform="android"] [data-show="desktop"],
html[data-platform="ios"] [data-show="desktop"] { display: none; }
.hero-note a.pill { text-decoration: none; }
.hero-note a.pill:hover { color: var(--ink); border-color: var(--muted); }

.get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .get-grid { grid-template-columns: 1fr; } }
.get-card { padding: 24px; display: grid; gap: 16px; align-content: start; box-shadow: none; }
.get-head { display: flex; align-items: center; gap: 14px; }
.get-head h3 { font-size: 22px; font-weight: 800; }
.get-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.get-ico.android { background: var(--walk-soft); color: var(--walk); }
.get-ico.ios { background: var(--surface-2); color: var(--ink); }
.mine-tag { display: none; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 2px 9px; border-radius: 999px; margin-top: 4px; width: fit-content; }
.get-head > div { display: grid; }
html[data-platform="android"] .get-card[data-platform="android"],
html[data-platform="ios"] .get-card[data-platform="ios"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); order: -1; }
html[data-platform="android"] .get-card[data-platform="android"] .mine-tag,
html[data-platform="ios"] .get-card[data-platform="ios"] .mine-tag { display: inline-block; }
.get-btn { width: 100%; }
.get-meta { font-size: 14px; color: var(--muted); margin-top: -6px; }
.get-alt { font-size: 14px; color: var(--muted); margin-top: -8px; }
.get-alt a { font-weight: 600; }
.get-steps { margin: 0; padding: 0; list-style: none; counter-reset: gs; display: grid; gap: 10px; }
.get-steps li { counter-increment: gs; position: relative; padding-left: 36px; font-size: 15px; min-height: 26px; }
.get-steps li::before {
  content: counter(gs); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font: 700 12px "Archivo", sans-serif; background: var(--surface-2); color: var(--ink);
}
.ios-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: var(--blue); vertical-align: middle; }
.get-note { font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.get-qr { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 20px 24px; box-shadow: none; }
.get-qr img { width: 120px; height: 120px; border-radius: 10px; flex: none; background: #fff; padding: 4px; }
.get-qr h3 { font-size: 18px; font-weight: 700; }
.get-qr p { color: var(--muted); margin-top: 4px; }
html[data-platform="android"] .get-qr, html[data-platform="ios"] .get-qr { display: none; }
