/*
 * GPS Speedometer & Trip Meter — website styles
 * © 2026 Apps Bean Technologies. Original work; no third-party CSS, fonts or icon sets.
 * System font stack only: no web-font downloads, no third-party requests.
 */

/* ---------- Design tokens ---------- */
:root {
  --brand: #0055a5;
  --brand-light: #1a6cc2;
  --brand-deep: #003b73;
  --brand-ink: #002a52;
  --sky: #9ccbff;

  --bg: #f4f8fd;
  --bg-alt: #eaf2fb;
  --surface: #ffffff;
  --surface-2: #f7fafe;
  --text: #0b1a2e;
  --muted: #475a71;
  --border: #d6e2f0;
  --link: #0055a5;
  --focus: #ff9f1c;

  --ok: #12805c;
  --warn: #9a5b00;
  --danger: #b4232f;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgb(0 40 90 / .06), 0 8px 24px rgb(0 40 90 / .08);
  --shadow-l: 0 2px 6px rgb(0 40 90 / .08), 0 24px 60px rgb(0 40 90 / .16);

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111f;
    --bg-alt: #0b1829;
    --surface: #0f1d31;
    --surface-2: #12233a;
    --text: #e8f0fa;
    --muted: #a9b8cb;
    --border: #213653;
    --link: #8ec2ff;
    --ok: #4fd1a0;
    --warn: #ffc266;
    --danger: #ff8a93;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    --shadow-l: 0 2px 6px rgb(0 0 0 / .35), 0 24px 60px rgb(0 0 0 / .5);
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .05em .35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--link); margin-bottom: .75rem;
}
.eyebrow--on-dark { color: var(--sky); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px rgb(0 85 165 / .3); }
.brand span { font-size: 1.02rem; line-height: 1.15; }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.header-cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .site-header .header-cta { display: none; }
}
@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; gap: 0; padding-block: .5rem 0; }
  .site-nav { width: 100%; padding: .35rem 0 .6rem; }
  .site-nav ul { flex-wrap: wrap; gap: .3rem; }
  .site-nav a { padding: .35rem .7rem; font-size: .88rem; }
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
  .toc { top: 16px; }
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-deep)); color: #fff; box-shadow: 0 6px 20px rgb(0 85 165 / .35); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--outline-light { color: #fff; border-color: rgb(255 255 255 / .45); background: rgb(255 255 255 / .08); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.play-badge { display: inline-block; line-height: 0; border-radius: 12px; }
/* Official Google Play badge artwork, shown unmodified; the PNG includes Google's required clear space. */
.play-badge img { width: 200px; height: auto; margin: -15px; }
.play-badge--sm img { width: 168px; margin: -12px; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--surface-2); }
.hero a.chip:hover { background: rgb(255 255 255 / .2); }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 12% -10%, rgb(156 203 255 / .35), transparent 60%),
    radial-gradient(700px 600px at 95% 110%, rgb(0 30 70 / .7), transparent 60%),
    linear-gradient(160deg, #1a6cc2 0%, #0055a5 45%, #003b73 100%);
  isolation: isolate;
}
.hero::before {
  /* concentric dial rings, echoing the app's gauge */
  content: ""; position: absolute; z-index: -1; right: -220px; top: 50%; width: 900px; height: 900px; transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 88px, rgb(255 255 255 / .07) 89px 90px);
  -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%);
  mask: radial-gradient(circle, #000 40%, transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 96px) 0; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--sky); display: block; }
.hero .lead { color: rgb(255 255 255 / .86); max-width: 36rem; }
.hero .lead a, .hero__note a { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.75rem 0 1.5rem; }
.hero .chip { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .28); color: #fff; }
.hero__note { font-size: .88rem; color: rgb(255 255 255 / .75); margin-top: 1.25rem; }
.hero__art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero__art picture { width: min(100%, 340px); filter: drop-shadow(0 30px 50px rgb(0 20 50 / .5)); }
.hero__art img { width: 100%; border-radius: 40px 40px 0 0; }
.hero--page .hero__inner { grid-template-columns: 1fr; padding-block: clamp(44px, 7vw, 80px); }
.hero--page .lead { max-width: 46rem; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__art picture { width: min(78%, 300px); }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; }
.breadcrumbs li { margin: 0; color: rgb(255 255 255 / .8); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.breadcrumbs a { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow);
}
.card h3 { margin-top: .9rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon-tile {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff;
  background: linear-gradient(140deg, var(--brand-light), var(--brand) 60%, var(--brand-deep));
  box-shadow: 0 6px 16px rgb(0 85 165 / .3), inset 0 1px 0 rgb(255 255 255 / .3);
}
.icon-tile svg { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; margin: 0; }
.steps .card::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-alt); color: var(--link); font-weight: 800; border: 1px solid var(--border);
}

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split--reverse .split__media { order: -1; }
.split__media { display: flex; justify-content: center; }
.split__media picture { width: min(100%, 330px); }
.split__media img { border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 72% no-repeat;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin: 0; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--brand) transparent; overscroll-behavior-x: contain;
}
.gallery li { margin: 0; scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 1rem; align-items: flex-start; border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--border); background: var(--surface);
}
.callout svg { width: 28px; height: 28px; flex-shrink: 0; margin-top: .15rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.callout--warn svg { color: var(--warn); }
.callout--info svg { color: var(--link); }

.band {
  border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 10% 0%, rgb(156 203 255 / .35), transparent 60%), linear-gradient(140deg, #1a6cc2, #0055a5 55%, #003b73);
  box-shadow: var(--shadow-l);
}
.band h2 { color: #fff; }
.band p { color: rgb(255 255 255 / .86); }
.band__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
caption { text-align: left; padding: 1rem 1.1rem .25rem; font-weight: 700; }
th, td { text-align: left; padding: .8rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }

/* ---------- Long-form (legal) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.6rem; padding-top: .5rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose .table-wrap { margin: 1.25rem 0 1.5rem; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .92rem; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .6rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li + li { margin-top: .3em; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.meta-line { font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 2.75rem; }
.faq-group > h2 { font-size: 1.35rem; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230055a5' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 60% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--surface-2); }
.faq .answer { padding: 0 1.25rem 1.2rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { margin: 0; display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.contact-list strong { display: block; }
.contact-list address { font-style: normal; }
.topic-grid .card { display: flex; flex-direction: column; }
.topic-grid .card .btn { margin-top: auto; align-self: flex-start; }
.topic-grid .card p { flex-grow: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #04101f; color: #c9d6e6; padding-block: 56px 28px; font-size: .95rem; }
.site-footer a { color: #e6f0fb; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #8ea6c2; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: .45rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8ea6c2; }
.site-footer address { font-style: normal; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #8ea6c2; }
.footer-legal p { margin-bottom: .5rem; }
.footer-legal--solo { border-top: 0; margin-top: 0; padding-top: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .skip-link, .toc, .hero__art, .band, .play-badge { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead, .breadcrumbs a, .breadcrumbs li { color: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .card, .table-wrap, .faq { box-shadow: none; }
  .doc-layout { display: block; }
}
