/* maimap.app's pages (home, privacy, terms, support): Apple's look, light
   and dark, in the system font. The map page has its own style.css. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-text: #0066cc;
  --card: #ffffff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --nav: rgba(255, 255, 255, 0.78);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #161617;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #424245;
    --accent: #0a84ff;
    --accent-text: #2997ff;
    --card: #1c1c1e;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    --nav: rgba(22, 22, 23, 0.78);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(980px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* The bar along the top. */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--text); opacity: 0.8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* Home. */
.hero { text-align: center; padding: 72px 0 40px; }
.hero-mark { width: 88px; height: 88px; margin: 0 auto 28px; filter: drop-shadow(0 8px 18px rgba(8, 102, 214, 0.28)); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; font-weight: 700; }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--muted); max-width: 720px; margin: 22px auto 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 32px; }
.button {
  display: inline-block; padding: 12px 24px; border-radius: 980px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 500;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.soon { color: var(--muted); font-size: 15px; }

.shot { margin: 32px auto 0; padding: 0 0 24px; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; }
.shot figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

section.band { padding: 96px 0 24px; }
.band > h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 700; text-align: center; }
.band > .lead { text-align: center; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature {
  background: var(--bg-soft); border-radius: 22px; padding: 28px 26px 30px;
}
.feature svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 18px; }
.feature h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px; border-radius: 22px; border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 14px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
}
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.promise { text-align: center; padding: 96px 0; }
.promise h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
.promise p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 18px auto 20px; }

/* Text pages: privacy, terms, support. */
.doc { padding: 64px 0 40px; max-width: 720px; }
.doc h1 { font-size: clamp(36px, 6vw, 48px); font-weight: 700; line-height: 1.1; }
.doc .updated { color: var(--muted); margin: 10px 0 36px; font-size: 15px; }
.doc h2 { font-size: 24px; font-weight: 600; margin: 44px 0 10px; letter-spacing: -0.02em; }
.doc h3 { font-size: 18px; font-weight: 600; margin: 26px 0 6px; letter-spacing: -0.015em; }
.doc p, .doc li { line-height: 1.6; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.summary { background: var(--bg-soft); border-radius: 18px; padding: 22px 26px; margin: 0 0 8px; }
.summary p { margin: 0; }
.summary ul { margin: 8px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.contact { background: var(--bg-soft); border-radius: 22px; padding: 30px; margin: 8px 0 44px; }
.contact h2 { margin: 0 0 8px; }
.contact p { margin: 0; color: var(--muted); }
.contact .button { margin-top: 18px; }

/* The foot of every page. */
.footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 44px; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); text-decoration: none; }

/* Not found. */
.lost { text-align: center; padding: 120px 0; }
.lost h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 700; }
.lost p { color: var(--muted); font-size: 19px; margin: 16px 0 28px; }

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-links { gap: 16px; }
  .nav-links .wide-only { display: none; }
  .hero { padding: 48px 0 24px; }
  .hero-mark { width: 72px; height: 72px; margin-bottom: 22px; }
  .features { grid-template-columns: 1fr; }
  .shot img { border-radius: 8px; }
  section.band { padding-top: 72px; }
  .promise { padding: 72px 0; }
}
