/* ───────────────────────── Lōc marketing site ─────────────────────────
   Flat, dark, Swiss/Rams. Palette mirrors the iOS app's dark theme:
   Neutral #121413 · Surface #1C1F1E · TealGreen #3E8C7E · Ink #F2F2EF
   Muted #9AA2A0 · BurntOrange #D8693B. No frameworks, no build step. */

:root {
  --bg:        #0F1110;
  --bg-2:      #121413;
  --surface:   #1C1F1E;
  --surface-2: #232726;
  --teal:      #3E8C7E;
  --teal-bright:#52a596;
  --teal-soft: #22332F;
  --orange:    #D8693B;
  --ink:       #F2F2EF;
  --muted:     #9AA2A0;
  --hairline:  rgba(154, 162, 160, 0.16);
  --hairline-2:rgba(154, 162, 160, 0.10);
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1080px;
  --pad:       clamp(20px, 5vw, 40px);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

em { font-style: normal; color: var(--teal-bright); }

/* ───────────────────────── nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline-2);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
}
.nav__logo { border-radius: 7px; display: block; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }

/* ───────────────────────── layout primitives ───────────────────────── */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 128px) var(--pad);
  border-top: 1px solid var(--hairline-2);
}
.band--tight { padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(48px, 8vw, 92px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 18px;
}
.band__title {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 22px;
}
.band__lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 60ch; margin: 0 0 14px; }
.band__foot { color: var(--muted); max-width: 64ch; margin: 28px 0 0; font-size: 15.5px; }
.band__foot strong, .band__lede strong { color: var(--ink); font-weight: 600; }

/* ───────────────────────── hero ───────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 11vw, 120px) var(--pad) clamp(40px, 7vw, 80px);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(62, 140, 126, 0.16), transparent 60%);
}
.hero__icon {
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--hairline), 0 20px 60px -20px rgba(0,0,0,0.8);
  margin-bottom: 26px;
}
.hero__wordmark {
  font-size: clamp(44px, 8vw, 76px);
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 18px;
}
.hero__tagline {
  font-size: clamp(19px, 3vw, 27px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 auto 22px;
  max-width: 28ch;
}
.hero__sub {
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 17px);
  max-width: 56ch;
  margin: 0 auto 30px;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface);
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(82, 165, 150, 0.18);
}

/* ───────────────────────── privacy rules list ───────────────────────── */
.rules { list-style: none; margin: 30px 0 0; padding: 0; max-width: 66ch; }
.rules li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline-2);
  color: var(--ink);
  font-size: 16.5px;
}
.rules li strong { color: var(--teal-bright); font-weight: 600; }
.rules__n {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-bright);
  font-size: 13px; font-weight: 700;
  margin-top: 1px;
}

/* ───────────────────────── feature grid ───────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-bright);
  font-size: 20px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ───────────────────────── device mockups ───────────────────────── */
.band--showcase { text-align: center; }
.band--showcase .band__lede { margin-left: auto; margin-right: auto; }
.phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  margin-top: 48px;
}
.phone { text-align: center; }
.phone__screen {
  position: relative;
  margin: 0 auto;
  width: 100%; max-width: 210px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border: 2px solid #2c302f;
  border-radius: 30px;
  padding: 9px;
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.phone__screen::before { /* dynamic island */
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 14px; background: #000; border-radius: 99px; z-index: 3;
}
.phone__cap { color: var(--muted); font-size: 13px; margin: 16px 0 0; letter-spacing: 0.01em; }

.scr {
  width: 100%; height: 100%;
  background: var(--bg-2);
  border-radius: 22px;
  padding: 30px 12px 12px;
  overflow: hidden;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.scr__bar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  padding-bottom: 8px;
}
.scr__live { color: var(--teal-bright); font-size: 10px; font-weight: 600; }
.scr__card {
  margin-top: auto;
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-radius: 9px; padding: 8px 10px; font-size: 10.5px; color: var(--muted);
}
.scr__card strong { color: var(--ink); }

/* map screen */
.scr--map .map { flex: 1; }
.map {
  position: relative; flex: 1; min-height: 60px;
  border-radius: 11px;
  background:
    linear-gradient(0deg, rgba(62,140,126,0.05), rgba(62,140,126,0.05)),
    repeating-linear-gradient(0deg, var(--surface) 0 22px, var(--bg-2) 22px 23px),
    repeating-linear-gradient(90deg, var(--surface) 0 22px, var(--bg-2) 22px 23px);
  border: 1px solid var(--hairline-2);
  overflow: hidden;
}
.dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 8px; font-weight: 700; color: #fff;
  border: 2px solid var(--bg-2);
}
.dot--a { background: #5b8def; }
.dot--b { background: var(--orange); }
.dot--me { background: var(--teal); box-shadow: 0 0 0 4px rgba(62,140,126,0.25); }

/* geofence */
.map--geo { display: grid; place-items: center; }
.geo {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(62, 140, 126, 0.16);
  border: 2px solid var(--teal);
}
.geo__pin {
  position: absolute; color: var(--teal-bright); font-size: 22px; font-weight: 300;
  line-height: 1;
}

/* rows + toggles */
.row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-radius: 9px; padding: 9px 11px; font-size: 11.5px; color: var(--ink);
}
.row__val { color: var(--muted); font-size: 11px; }
.sw {
  flex: none; width: 30px; height: 18px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--hairline);
  position: relative;
}
.sw::after {
  content: ""; position: absolute; top: 1px; left: 1px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--muted);
  transition: all 0.2s ease;
}
.sw--on { background: var(--teal); border-color: var(--teal); }
.sw--on::after { left: auto; right: 1px; background: #fff; }

.masterbox {
  margin-top: 4px; border: 1px solid var(--teal-soft);
  border-radius: 10px; padding: 8px; background: rgba(62,140,126,0.06);
}
.row--master { background: transparent; border: none; padding: 2px; font-weight: 600; }
.masterbox__hint { margin: 4px 2px 0; font-size: 9.5px; color: var(--muted); }

/* watchers */
.watcher {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-radius: 9px; padding: 8px 10px;
}
.av {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff;
}
.av--a { background: #5b8def; }
.av--b { background: var(--orange); }
.av--c { background: #8a6cd4; }
.watcher__name { display: flex; flex-direction: column; font-size: 11.5px; color: var(--ink); flex: 1; }
.watcher__name small { color: var(--muted); font-size: 9.5px; }
.badge--live { color: var(--teal-bright); font-size: 9px; }

/* ───────────────────────── how it works ───────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.step {
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: 26px 24px;
}
.step__n {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ───────────────────────── privacy policy ───────────────────────── */
.legal { list-style: none; margin: 30px 0 0; padding: 0; max-width: 70ch; }
.legal li {
  padding: 15px 0; border-top: 1px solid var(--hairline-2);
  color: var(--muted); font-size: 15.5px;
}
.legal li strong { color: var(--ink); font-weight: 600; }
.band--legal a { color: var(--teal-bright); }

/* ───────────────────────── footer ───────────────────────── */
.foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px var(--pad) 60px;
  border-top: 1px solid var(--hairline-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
}
.foot__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.foot__brand img { border-radius: 6px; }
.foot__links { display: flex; gap: 22px; flex: 1; }
.foot__links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot__links a:hover { color: var(--ink); }
.foot__copy { color: var(--muted); font-size: 13px; margin: 0; width: 100%; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 880px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .nav__links { display: none; }
  .grid, .steps, .phones { grid-template-columns: 1fr; }
  .phone__screen { max-width: 240px; }
  .hero__tagline { max-width: 22ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
