/* @Reminder — atreminder.com
   Night-cartography skin: the deep navy of the marketing banner with the
   app icon's teal as the single signal colour. Every colour is painted
   explicitly — the site commits to its dark world. Fonts are self-hosted
   (SIL OFL); the site makes no third-party requests, matching the app's
   local-first architecture. */

/* ——— Fonts (self-hosted, SIL OFL) ——— */
@font-face {
  font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal;
  font-display: swap; src: url("../fonts/BricolageGrotesque-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal;
  font-display: swap; src: url("../fonts/BricolageGrotesque-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-weight: 400; font-style: normal;
  font-display: swap; src: url("../fonts/Figtree-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-weight: 500; font-style: normal;
  font-display: swap; src: url("../fonts/Figtree-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-weight: 600; font-style: normal;
  font-display: swap; src: url("../fonts/Figtree-SemiBold.woff2") format("woff2");
}

/* ——— Tokens ——— */
:root {
  --teal: #2DD4BF; --cyan: #0EA5C9;

  --bg-0: #070E19; --bg-1: #0B1524;
  --surface-1: #101C2E; --surface-2: #16253A; --surface-3: #1D2F49;
  --border-1: rgba(190, 227, 248, 0.08);
  --border-2: rgba(190, 227, 248, 0.16);
  --text-1: #EAF3F7; --text-2: #9AB0C0; --text-3: #5F7689;
  --text-on-tint: #03201C;
  --tint: var(--teal);
  --tint-soft: rgba(45, 212, 191, 0.13);
  --pin: #FF6B5E; /* the coral map-pin from the brand cards — pins only */

  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Figtree", -apple-system, "Helvetica Neue", sans-serif;

  color-scheme: dark;
}

/* ——— Base ——— */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px;
}
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ——— Type roles ——— */
.eyebrow {
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tint); margin: 0 0 12px;
}
h1 {
  font: 700 clamp(38px, 6.4vw, 64px)/1.03 var(--font-display);
  letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance;
}
h1 .at, h2 .at { color: var(--tint); }
h2 {
  font: 600 clamp(27px, 4vw, 38px)/1.12 var(--font-display);
  letter-spacing: -0.012em; margin: 0 0 10px; text-wrap: balance;
}
h3 { font: 600 17px/1.3 var(--font-body); margin: 0 0 6px; }
.sub { color: var(--text-2); font-size: 17.5px; max-width: 58ch; }

/* ——— Nav ——— */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 14, 25, 0.78);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-1);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px; max-width: 1080px; margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font: 600 17px/1 var(--font-display); color: var(--text-1);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); font: 500 14px/1 var(--font-body); }
.nav-links a:hover { color: var(--text-1); text-decoration: none; }
.nav-links .btn { color: var(--text-on-tint); }
@media (max-width: 620px) { .nav-links a:not(.btn) { display: none; } }

/* ——— Buttons ——— */
.btn {
  display: inline-block;
  background: var(--tint); color: var(--text-on-tint);
  font: 600 15px/1 var(--font-body);
  border-radius: 999px; padding: 13px 24px;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), filter 0.15s;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: scale(0.98); filter: brightness(0.94); }
.btn.small { padding: 9px 18px; font-size: 13px; }

/* Official App Store badge — Apple artwork, unmodified. */
.store-badge { display: inline-block; padding: 14px; }
.store-badge img { height: 54px; width: auto; }

/* ——— Hero ——— */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 50% -160px, rgba(14, 165, 201, 0.22), transparent 68%),
    var(--bg-0);
  padding: 84px 0 0; text-align: center; overflow: hidden;
}
/* the night-map dot grid, fading out downwards */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(190, 227, 248, 0.13) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 62%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 62%);
}
.hero .wrap { position: relative; }
.hero .sub { margin: 0 auto 30px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-note { color: var(--text-3); font-size: 13px; }
.trust {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 34px 0 0; padding: 0; list-style: none;
}
.trust li {
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 8px 15px; font: 600 12.5px/1.2 var(--font-body);
  color: #BEE9E2; white-space: nowrap;
  background: rgba(7, 14, 25, 0.55);
}
.trust li::before { content: "●"; color: var(--tint); margin-right: 7px; font-size: 9px; }

/* ——— Device mock (pure CSS, no screenshots) ——— */
.hero-shot { margin: 56px auto -1px; width: min(340px, 80vw); }
.device {
  background: #050A12;
  border: 1px solid var(--border-2);
  border-radius: 40px; padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.screen {
  position: relative; overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(160deg, #0D1F30 0%, #0A1826 55%, #081220 100%);
  aspect-ratio: 320 / 660;
}
/* map texture: dot grid + two soft "roads" */
.screen .map {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(115deg, transparent 47.7%, rgba(190, 227, 248, 0.07) 48%, rgba(190, 227, 248, 0.07) 50%, transparent 50.3%),
    linear-gradient(22deg, transparent 63.7%, rgba(190, 227, 248, 0.05) 64%, rgba(190, 227, 248, 0.05) 66.5%, transparent 66.8%),
    radial-gradient(rgba(190, 227, 248, 0.1) 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
}
/* an @ pin on the map */
.pin {
  position: absolute; width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border-2); border-radius: 50%;
  font: 700 16px/1 var(--font-display); color: var(--text-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.pin.active { background: var(--tint); border-color: var(--tint); color: var(--text-on-tint); }
/* geofence ring pulse around the active pin */
.ring, .ring::before {
  content: ""; position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(45, 212, 191, 0.65);
  pointer-events: none;
}
.ring { width: 34px; height: 34px; animation: pulse 3s cubic-bezier(0.2, 0.6, 0.36, 1) infinite; }
.ring::before { inset: -1.5px; animation: pulse 3s 1.2s cubic-bezier(0.2, 0.6, 0.36, 1) infinite; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ring { transform: scale(2.2); opacity: 0.35; animation: none; }
  .ring::before { animation: none; opacity: 0; }
}
/* the nearby panel that slides over the map */
.nearby {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  background: rgba(16, 28, 46, 0.96);
  border: 1px solid var(--border-2); border-radius: 18px;
  padding: 14px 15px 15px;
  box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.45);
}
.nearby .tag {
  display: inline-block; font: 600 9.5px/1.2 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tint); background: var(--tint-soft);
  border-radius: 999px; padding: 4px 9px; margin: 0 0 9px;
}
.nearby .who { font: 600 16px/1.25 var(--font-body); margin: 0 0 2px; color: var(--text-1); }
.nearby .dist { font: 500 11.5px/1.3 var(--font-body); color: var(--text-3); margin: 0 0 9px; }
.nearby .note {
  font: 400 12.5px/1.5 var(--font-body); color: var(--text-2); margin: 0;
  border-top: 1px solid var(--border-1); padding-top: 9px;
}
.nearby .fam { display: flex; gap: 6px; margin: 10px 0 0; flex-wrap: wrap; }
.nearby .fam span {
  font: 500 11px/1.2 var(--font-body); color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border-1);
  border-radius: 999px; padding: 4px 9px;
}

/* ——— Sections ——— */
section { padding: 84px 0; }
section.alt { background: var(--bg-1); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .sub { margin: 0 auto; }

/* ——— Moments (the problem) ——— */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .moments { grid-template-columns: 1fr; } }
.moment {
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 26px;
}
.moment .q {
  font: 600 18px/1.35 var(--font-display); color: var(--text-1); margin: 0 0 8px;
}
.moment p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ——— How it works ——— */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 26px; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 700 13px/1 var(--font-display);
  color: var(--tint); letter-spacing: 0.08em; margin-bottom: 14px;
}
.step p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ——— Bento grid ——— */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
.bento .cell {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 20px; padding: 26px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.bento .cell p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.bento .span3 { grid-column: span 3; }
.bento .span2 { grid-column: span 2; }
.bento .tall { grid-row: span 2; }
@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .span3, .bento .span2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span3, .bento .span2 { grid-column: span 1; }
}

/* mini map mock inside a bento cell */
.cell .mini-map {
  position: relative; overflow: hidden;
  margin: 20px -26px -26px; min-height: 300px; flex: 1;
  background:
    linear-gradient(115deg, transparent 47.7%, rgba(190, 227, 248, 0.07) 48%, rgba(190, 227, 248, 0.07) 50%, transparent 50.3%),
    linear-gradient(200deg, #0D1F30, #081220),
    #0A1826;
  border-top: 1px solid var(--border-1);
}
.cell .mini-map::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(190, 227, 248, 0.1) 1px, transparent 1.5px);
  background-size: 22px 22px;
}

/* lock-screen notification mock */
.notif-stack { margin: 22px 0 6px; display: grid; gap: 10px; }
.notif {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border-2); border-radius: 16px;
  padding: 13px 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.notif img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.notif .n-title {
  display: flex; justify-content: space-between; gap: 10px;
  font: 600 13.5px/1.3 var(--font-body); color: var(--text-1); margin: 0 0 2px;
}
.notif .n-title time { font: 400 11.5px/1.4 var(--font-body); color: var(--text-3); white-space: nowrap; }
.notif .n-body { font: 400 12.5px/1.45 var(--font-body); color: var(--text-2); margin: 0; }
.notif.ghost { opacity: 0.45; transform: scale(0.97); }

/* ——— Profiles split section ——— */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split .copy .sub { margin-bottom: 18px; }
.profile-card {
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 24px; max-width: 380px; margin: 0 auto;
}
.profile-card .label {
  font: 600 11px/1.2 var(--font-body); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); margin: 0 0 14px;
}
.profile-card .p-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.profile-card .p-pin {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--tint-soft); color: var(--tint);
  border-radius: 50%; font: 700 20px/1 var(--font-display);
}
.profile-card .p-name { font: 600 17px/1.25 var(--font-body); margin: 0; }
.profile-card .p-sub { font: 400 12.5px/1.4 var(--font-body); color: var(--text-3); margin: 0; }
.profile-card dl { margin: 0; display: grid; gap: 9px; }
.profile-card .row {
  display: grid; grid-template-columns: 74px 1fr; gap: 10px;
  background: var(--surface-2); border-radius: 12px; padding: 11px 13px;
}
.profile-card dt { font: 600 11px/1.5 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.profile-card dd { margin: 0; font: 500 13.5px/1.5 var(--font-body); color: var(--text-1); overflow-wrap: anywhere; }
.profile-card .note-row dd { color: var(--text-2); font-weight: 400; }
.profile-footnote {
  margin: 14px auto 0; max-width: 380px;
  color: var(--text-3); font-size: 12.5px; text-align: center;
}

/* ——— Pricing ——— */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto; align-items: stretch; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 30px;
  display: flex; flex-direction: column;
}
.plan.pro { border-color: rgba(45, 212, 191, 0.4); background: linear-gradient(180deg, rgba(45, 212, 191, 0.07), transparent 45%), var(--surface-1); }
.plan .p-tier { font: 600 12px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.plan.pro .p-tier { color: var(--tint); }
.plan .p-price { font: 700 34px/1.05 var(--font-display); letter-spacing: -0.015em; margin: 0 0 4px; }
.plan .p-price small { font: 500 14px/1.3 var(--font-body); color: var(--text-3); letter-spacing: 0; }
.plan .p-alt { color: var(--text-3); font-size: 13px; margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan li { color: var(--text-2); font-size: 14.5px; padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--tint); font-weight: 600; }
.plan li.na { color: var(--text-3); }
.plan li.na::before { content: "—"; color: var(--text-3); }
.plan .p-cta { margin-top: auto; }
.pricing-note { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 22px; }

/* ——— Privacy pillars ——— */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 26px;
}
.pillar h3 { color: #BEE9E2; }
.pillar p { color: var(--text-2); font-size: 14.5px; }
.privacy-more { text-align: center; margin-top: 30px; color: var(--text-2); font-size: 14.5px; }

/* ——— Platforms ——— */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto; }
@media (max-width: 720px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 26px;
}
.platform .status {
  display: inline-block; font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 11px; margin: 0 0 12px;
}
.platform .status.live { color: var(--tint); background: var(--tint-soft); }
.platform .status.soon { color: var(--text-3); background: var(--surface-2); }
.platform p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ——— Founder note ——— */
.founder {
  background: var(--surface-1); border: 1px solid var(--border-1);
  border-radius: 20px; padding: 40px; max-width: 720px; margin: 0 auto;
}
.founder .sig { color: var(--text-2); font: 600 14px/1.4 var(--font-body); margin-top: 20px; }
.founder .sig small { display: block; font-weight: 400; color: var(--text-3); }

/* ——— Final CTA ——— */
.closing { text-align: center; position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 300px at 50% 115%, rgba(14, 165, 201, 0.18), transparent 70%);
}
.closing .wrap { position: relative; }

/* ——— Footer ——— */
footer {
  border-top: 1px solid var(--border-1);
  padding: 40px 0 60px; color: var(--text-3); font-size: 13px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 18px; }
.foot-links a { color: var(--text-2); }
footer .legal { max-width: 72ch; line-height: 1.6; }

/* ——— Prose pages (privacy / terms / support) ——— */
.prose { padding: 64px 0 84px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); }
.prose h2 { font: 600 20px/1.3 var(--font-body); margin: 34px 0 10px; }
.prose h3 { font: 600 16px/1.35 var(--font-body); margin: 24px 0 8px; color: var(--text-1); }
.prose p, .prose li { color: var(--text-2); font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--tint); }
.prose .meta { color: var(--text-3); font-size: 13.5px; }
.prose strong { color: var(--text-1); }

/* ——— Scroll-driven reveals (pure CSS, progressive enhancement) ——— */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise both cubic-bezier(0.22, 1, 0.36, 1);
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(26px); }
      to { opacity: 1; transform: none; }
    }
  }
}
