/* LocateMe website — colors drawn from the app icon */
:root {
  --blue-1: #2a8bf5;
  --blue-2: #1a5fd0;
  --blue-3: #0d3a9a;
  --ink: #0b1630;
  --ink-2: #44506a;
  --ink-3: #6b7690;
  --bg: #ffffff;
  --bg-2: #f4f7fc;
  --line: #e3e9f3;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(11, 22, 48, .04), 0 8px 30px rgba(11, 22, 48, .07);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3fc;
    --ink-2: #b4c0d6;
    --ink-3: #8794ad;
    --bg: #070d1c;
    --bg-2: #0d1529;
    --line: #1c2741;
    --card: #101a31;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-2); }
@media (prefers-color-scheme: dark) { a { color: #6aaeff; } }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 18px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: #000; color: #fff !important; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-dark svg { width: 22px; height: 22px; }
.btn-dark small { display: block; font-size: .7rem; font-weight: 500; opacity: .8; line-height: 1; }
.btn-dark span { line-height: 1.15; text-align: left; }
.btn-ghost { color: var(--ink) !important; border: 1px solid var(--line); background: var(--card); }
@media (prefers-color-scheme: dark) { .btn-dark { background: #fff; color: #000 !important; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 40px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(42,139,245,.18), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(13,58,154,.10), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .cta { justify-content: center; } .hero .lede { margin-inline: auto; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--blue-2);
  background: rgba(42,139,245,.10); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: #7db8ff; background: rgba(42,139,245,.16); } }
.grad { background: linear-gradient(120deg, var(--blue-1), var(--blue-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .grad { background-image: linear-gradient(120deg, #6fb4ff, #2a8bf5); } }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: .85rem; color: var(--ink-3); margin-top: 14px; }

/* Phone mockup (pure CSS, mirrors the app's map + tray) */
.phone-stage { display: flex; justify-content: center; position: relative; text-align: left; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rings span { position: absolute; border: 2px solid rgba(42,139,245,.18); border-radius: 50%; }
.rings span:nth-child(1) { width: 380px; height: 380px; }
.rings span:nth-child(2) { width: 520px; height: 520px; }
.rings span:nth-child(3) { width: 660px; height: 660px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.5;
  border-radius: 48px; padding: 11px; background: #11151d;
  box-shadow: 0 0 0 2px #2b3140, 0 40px 80px -20px rgba(13,58,154,.45), 0 20px 40px -10px rgba(0,0,0,.3);
}
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #e8eef0; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 20px; z-index: 5; }
.map {
  position: absolute; inset: 0;
  background-color: #eef2ec;
  background-image:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(90deg, transparent 48.5%, #fff 48.5%, #fff 51.5%, transparent 51.5%),
    linear-gradient(0deg, transparent 48.5%, #fff 48.5%, #fff 51.5%, transparent 51.5%);
  background-size: 240px 240px, 240px 240px, 80px 80px, 80px 80px;
  background-position: -40px -20px, -40px -20px, 0 10px, 0 10px;
}
.map::before { /* park */ content: ""; position: absolute; left: 14%; top: 12%; width: 38%; height: 20%; background: #cfe5c4; border-radius: 10px; }
.map::after { /* water */ content: ""; position: absolute; right: -10%; top: 30%; width: 45%; height: 30%; background: #bcd8f0; border-radius: 50% 0 0 50%; transform: rotate(-12deg); }
.me { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); z-index: 2; }
.me i { display: block; width: 18px; height: 18px; border-radius: 50%; background: #1a7cf5; border: 3.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); position: relative; }
.me::before { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(26,124,245,.16); border: 1px solid rgba(26,124,245,.3); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { transform: translate(-50%,-50%) scale(.4); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .me::before { animation: none; } }
.map-btns { position: absolute; right: 12px; top: 54px; display: flex; flex-direction: column; gap: 9px; z-index: 3; }
.map-btns b { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.82); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; }
.map-btns svg { width: 17px; height: 17px; stroke: #1a5fd0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tray {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4;
  background: rgba(255,255,255,.9); backdrop-filter: blur(16px);
  border-radius: 30px; padding: 12px 16px 18px; color: #0b1630;
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
}
.tray .grab { width: 36px; height: 5px; background: #c8ccd4; border-radius: 3px; margin: 0 auto 12px; }
.tray .row { display: flex; align-items: center; gap: 8px; }
.tray .label { font-size: 11px; color: #6b7280; }
.tray .coord { font-family: var(--sans); font-variant-numeric: tabular-nums; font-weight: 650; font-size: 13.5px; letter-spacing: -.01em; white-space: nowrap; }
.tray .acts { display: flex; gap: 6px; margin-left: auto; }
.tray .acts b { width: 30px; height: 30px; border-radius: 50%; background: #eef1f6; display: grid; place-items: center; }
.tray .acts svg { width: 14px; height: 14px; stroke: #1a5fd0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tray .seg { display: flex; background: #eef1f6; border-radius: 9px; padding: 2px; margin-top: 14px; font-size: 10.5px; font-weight: 600; }
.tray .seg span { flex: 1; text-align: center; padding: 5px 0; border-radius: 7px; color: #44506a; }
.tray .seg span.on { background: #fff; color: #0b1630; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tray .list { margin-top: 12px; background: #f4f6fa; border-radius: 12px; font-size: 11.5px; }
.tray .list div { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #e6e9ef; }
.tray .list div:last-child { border: 0; }
.tray .list em { font-style: normal; color: #6b7280; font-variant-numeric: tabular-nums; }

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 26px; }
.strip div { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.strip svg { flex: none; width: 26px; height: 26px; stroke: var(--blue-1); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) { .strip .wrap { grid-template-columns: 1fr 1fr; } }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }
.alt { background: var(--bg-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--blue-1), var(--blue-3));
}
.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Formats explorer */
.formats { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .formats { grid-template-columns: 1fr; } }
.tabs { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 820px) { .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } }
.tab {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; color: var(--ink-2);
  white-space: nowrap;
}
.tab b { font-family: var(--mono); font-size: .85rem; min-width: 46px; color: var(--ink); }
.tab:hover { background: var(--card); }
.tab[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.tab:focus-visible { outline: 3px solid var(--blue-1); outline-offset: 2px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); min-height: 300px; }
.panel .value {
  font-family: var(--mono); font-size: clamp(1.15rem, 2.6vw, 1.7rem); font-weight: 600;
  padding: 18px 22px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
  margin: 8px 0 22px; overflow-wrap: anywhere;
}
.panel .used { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--blue-2); background: rgba(42,139,245,.1); padding: 5px 12px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .panel .used { color: #7db8ff; } }
.panel p { color: var(--ink-2); }
.panel .kicker { color: var(--ink-3); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { color: var(--ink); }
.visual {
  border-radius: 28px; padding: 40px; color: #fff; min-height: 320px;
  background: linear-gradient(140deg, var(--blue-1), var(--blue-3));
  position: relative; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(13,58,154,.5);
}
.visual::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); box-shadow: 0 0 0 50px rgba(255,255,255,.04), 0 0 0 100px rgba(255,255,255,.03); }
.mode { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.mode svg { flex: none; width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode strong { display: block; }
.mode span { font-size: .9rem; opacity: .85; }

/* Emergency note */
.notice { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 22px 24px; margin-top: 40px; }
.notice svg { flex: none; width: 26px; height: 26px; stroke: #d93a2b; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice p { margin: 0; color: var(--ink-2); }

/* Final CTA */
.final { text-align: center; }
.final .app-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 20px 40px -12px rgba(13,58,154,.5); }
.final .cta { justify-content: center; }

/* FAQ / doc pages */
.page-head { padding: 72px 0 24px; }
.page-head p { color: var(--ink-2); font-size: 1.1rem; }
.doc { padding: 24px 0 96px; }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--ink-3); font-size: .9rem; }
.summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; }
.summary p:last-child { margin: 0; }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; position: relative; color: var(--ink); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 20px; color: var(--ink-2); }
details > div p:last-child { margin: 0; }

.contact-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-3); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
