/* Public marketing / content pages. The app itself uses viewer.css.
   Same palette as the app: near-black ground, #63a0ff accent. */
:root {
  --bg:        #111;
  --bg-2:      #17181c;
  --bg-3:      #1f2127;
  --line:      rgba(255,255,255,.09);
  --fg:        #eceef2;
  --fg-dim:    #9aa0aa;
  --accent:    #63a0ff;
  --accent-2:  #4d8fee;
  --team-a:    #4da3ff;
  --team-b:    #ff5c5c;
  --radius:    12px;
  --max:       1120px;
  --gutter:    16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: #cfd6e2; max-width: 40em; }
.dim  { color: var(--fg-dim); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .75rem;
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* -- Skip link / focus ----------------------------------------------------- */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* -- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: rgba(255,255,255,.2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,.45); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* -- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,17,17,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: #cfd6e2; padding: 8px 10px; border-radius: 6px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav .btn { margin-left: 6px; color: #fff; }
.nav .btn:hover { background: var(--accent-2); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    color: var(--fg); border-radius: 8px; padding: 8px; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
  .nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; }
}

/* -- Hero ------------------------------------------------------------------ */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1.1fr; } }
.hero p.lead { margin-bottom: 0; }
.trial-note { font-size: .9rem; color: var(--fg-dim); margin-top: 12px; }

/* The app-window mockup: a real map preview with an SVG strat drawn on top. */
.mock {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #2a2b30;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3c44; }
.mock-bar span { margin-left: 8px; font-size: 12px; color: var(--fg-dim); }
.mock-stage { position: relative; aspect-ratio: 4 / 3; }
.mock-stage img { width: 100%; height: 100%; object-fit: cover; }
.mock-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* -- Cards / grids ----------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(99,160,255,.12); margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Map tiles */
.map-card { display: block; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.map-card:hover { text-decoration: none; border-color: rgba(99,160,255,.6); transform: translateY(-2px); }
.map-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #2a2b30; }
.map-card span { display: block; padding: 12px 14px; font-weight: 600; }
.map-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* -- Pricing ----------------------------------------------------------------- */
.plans { display: grid; gap: 20px; max-width: 820px; margin: 32px auto 0; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(99,160,255,.6); box-shadow: 0 0 0 1px rgba(99,160,255,.25); }
.plan .badge-top {
  position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.price { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 8px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--fg-dim); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.soon {
  display: inline-block; font-size: 11px; font-weight: 600; color: #f5c56b;
  border: 1px solid rgba(245,197,107,.4); border-radius: 999px; padding: 0 7px; margin-left: 6px; vertical-align: 2px;
}

/* -- FAQ --------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 24px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: #cfd6e2; }

/* -- CTA band ------------------------------------------------------------------ */
.cta-band {
  background: linear-gradient(135deg, rgba(99,160,255,.16), rgba(99,160,255,.04));
  border: 1px solid rgba(99,160,255,.3); border-radius: var(--radius); padding: 40px 24px; text-align: center;
}
.cta-band .btn-row { justify-content: center; }

/* -- Map page -------------------------------------------------------------------- */
.crumbs { font-size: .9rem; color: var(--fg-dim); margin-bottom: 16px; }
.crumbs a { color: var(--fg-dim); }
.map-hero img { border-radius: var(--radius); border: 1px solid var(--line); background: #2a2b30; width: 100%; }
.map-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .map-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); color: #cfd6e2; }

/* -- Prose (legal) ----------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose li { margin-bottom: .4em; }
.prose p, .prose li { color: #d6dbe4; }

/* -- 404 ------------------------------------------------------------------------ */
.notfound { padding: 96px 0; text-align: center; }
.notfound .code { font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }

/* -- Footer ----------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 40px; font-size: .9rem; color: var(--fg-dim); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: var(--fg); font-size: .9rem; margin: 0 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--fg-dim); }
.footer-grid a:hover { color: var(--fg); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .footer-brand { grid-column: auto; } }
.disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.5; }

/* -- Sticky mobile CTA --------------------------------------------------------------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(17,17,17,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky-cta .site-footer { padding-bottom: 96px; }
}

/* -- Notices ------------------------------------------------------------------------ */
.notice {
  max-width: 760px; margin: 0 auto 24px; padding: 12px 16px; border-radius: 8px; text-align: left;
  background: rgba(99,160,255,.1); border: 1px solid rgba(99,160,255,.35); color: #dbe7ff;
}
.notice.warn { background: rgba(245,197,107,.08); border-color: rgba(245,197,107,.4); color: #f7e2b5; }
.notice.error { background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.45); color: #ffd0d0; }

/* -- Auth pages ---------------------------------------------------------------------- */
.auth { padding: 56px 0 72px; }
.auth-card {
  width: 100%; max-width: 400px; margin: 0 auto; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--fg-dim); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .inline-form input {
  padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05); color: var(--fg);
  font-family: inherit; font-size: 16px; line-height: 1.3;   /* 16px: no iOS zoom */
}
.field input:focus, .inline-form input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #ff6b6b; }
.field .hint { font-size: 13px; color: var(--fg-dim); }
.form-error { color: #ff8a8a; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.form-ok { color: #9fe0b0; font-size: 14px; margin: 4px 0 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--fg-dim); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { background: #eaeaea; }
.btn-google svg { width: 18px; height: 18px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--fg-dim); margin-top: 18px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }
.btn[disabled] { opacity: .6; cursor: progress; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -- Account ----------------------------------------------------------------------------- */
.account { padding: 48px 0 64px; }
.account .card + .card { margin-top: 20px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 16px; }
.kv dt { color: var(--fg-dim); }
.kv dd { margin: 0; }
.status { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.status.ok { background: rgba(80,200,120,.15); color: #8fe3a8; }
.status.warn { background: rgba(245,197,107,.15); color: #f5c56b; }
.status.off { background: rgba(255,255,255,.08); color: var(--fg-dim); }
.members { list-style: none; padding: 0; margin: 0 0 16px; }
.members li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.members form { margin: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
