@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --ink: rgba(30,29,28,0.94);
  --ink-dim: rgba(58,56,54,0.62);
  --ink-faint: rgba(58,56,54,0.42);
  --orange: #c67458;
  --blue: #a1d8dc;
  --purple: #726eb3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.2px;
  color: var(--ink);
  background: #fcfbf9;
  position: relative;
}

@media (prefers-color-scheme: dark) {
  body { background: #141414; }
  :root { --ink: rgba(255,255,255,0.95); --ink-dim: rgba(255,255,255,0.62); --ink-faint: rgba(255,255,255,0.42); }
}

/* ── Real map photography as a FIXED background, on every page — ──
   ── light/dark swapping with system preference, exactly like the ──
   ── app itself does. Fixed so it stays put whether a page scrolls ──
   ── (the policy pages) or not (the homepage). ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('assets/map_light.png');
  background-size: cover;
  background-position: center;
}
@media (prefers-color-scheme: dark) {
  .page-bg { background-image: url('assets/map_dark.png'); }
}

/* ── Frosted blur layer over the map — the same translucent sheet ──
   ── treatment the app itself uses over the map on iOS. Radial: ──
   ── blur concentrated at the center, fading to sharp corners. ── */
.frost {
  position: fixed;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(5px) saturate(1.1);
  -webkit-backdrop-filter: blur(5px) saturate(1.1);
  background: rgba(252,251,249,0.22);
  mask-image: radial-gradient(ellipse at center, black 0%, black 35%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, black 35%, transparent 95%);
}
@media (prefers-color-scheme: dark) {
  .frost { background: rgba(20,20,20,0.28); }
}

/* ── Shared brand header: dots ABOVE the wordmark, tight spacing ──
   ── — used identically at the top of every page ── */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.orbs {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.orb { border-radius: 50%; }
.orb.blue   { width: 22px; height: 22px; background: var(--blue); }
.orb.purple { width: 17px; height: 17px; background: var(--purple); }
.orb.orange { width: 20px; height: 20px; background: var(--orange); }

.brand-logo {
  height: clamp(34px, 8vw, 42px);
  width: auto;
  display: block;
}

/* ── Homepage: single viewport, no scroll ── */
.home-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
}

.content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  text-align: center;
  gap: 8px;
}

.hero { width: 100%; max-width: 520px; flex-shrink: 0; }

.tagline {
  font-size: clamp(11.5px, 2.6vw, 13.5px);
  line-height: 1.4;
  color: var(--ink-dim);
  letter-spacing: -0.2px;
  max-width: 380px;
  margin: 12px auto 0;
}

/* ── Real phone mockup image ── */
.phone-img {
  height: min(30vh, 260px);
  width: auto;
  filter: drop-shadow(0 24px 40px rgba(20,20,20,0.2));
  flex-shrink: 1;
}

/* ── Feature row: compact, horizontal, three across ── */
.features-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  flex-shrink: 0;
}
.feature {
  flex: 1;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(30,29,28,0.1);
  border-radius: 16px;
  padding: 10px 9px;
}
@media (prefers-color-scheme: dark) {
  .feature { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
}
.feature h3 {
  margin: 0 0 3px;
  font-weight: 400;
  font-size: clamp(10px, 2.4vw, 11.5px);
  letter-spacing: -0.2px;
  text-transform: lowercase;
}
.feature p {
  margin: 0;
  font-size: clamp(9px, 2.1vw, 10.5px);
  line-height: 1.35;
  color: var(--ink-dim);
  letter-spacing: -0.1px;
}
.feature.f-blue h3 { color: #4d9ba3; }
.feature.f-purple h3 { color: var(--purple); }
.feature.f-orange h3 { color: var(--orange); }

/* ── Footer row: store badges + links, compact ── */
.foot { width: 100%; max-width: 480px; }

.stores {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(30,29,28,0.07);
  border: 1px solid rgba(30,29,28,0.12);
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: default;
}
@media (prefers-color-scheme: dark) {
  .store-btn { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
}

.coming-soon {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: -0.1px;
  margin: 0 0 12px;
}

footer.links {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: -0.1px;
}
footer.links a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: rgba(30,29,28,0.15);
  text-underline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
  footer.links a { text-decoration-color: rgba(255,255,255,0.2); }
}
footer.links .sep { margin: 0 6px; opacity: 0.4; }

/* ── Policy pages: scroll normally over the same fixed map backdrop ── */
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 88px;
  position: relative;
  z-index: 2;
}

h1.page-title {
  font-size: 24px; font-weight: 400; letter-spacing: -1px;
  text-align: center; margin: 26px 0 6px; text-transform: lowercase;
}
.updated { font-size: 11px; color: var(--ink-faint); text-align: center; margin-bottom: 28px; }

/* Each policy page's headings cycle through the three brand colors —
   a real, deliberate use of them as section markers, not decoration */
.policy h2 { font-size: 13px; font-weight: 400; letter-spacing: -0.3px; margin: 30px 0 10px; text-transform: lowercase; }
.policy h2:nth-of-type(3n+1) { color: #4d9ba3; }
.policy h2:nth-of-type(3n+2) { color: var(--purple); }
.policy h2:nth-of-type(3n)   { color: var(--orange); }
.policy p, .policy li { font-size: 13px; line-height: 21px; color: var(--ink-dim); letter-spacing: -0.2px; }
.policy a { text-decoration: underline; text-underline-offset: 2px; }
.policy strong { font-weight: 400; }

.field-label {
  font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ink-dim); margin-bottom: 8px; display: block;
}
textarea, input[type="text"] {
  width: 100%;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-size: 14px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(30,29,28,0.12);
  background: rgba(252,251,249,0.5);
  color: var(--ink); margin-bottom: 16px; resize: vertical;
}
@media (prefers-color-scheme: dark) {
  textarea, input[type="text"] {
    border-color: rgba(255,255,255,0.16);
    background: rgba(20,20,20,0.4);
  }
}
textarea:focus, input[type="text"]:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
textarea { min-height: 130px; }

.submit-btn {
  width: 100%; padding: 15px; border-radius: 999px; border: none;
  background: #1e1d1c; color: #fcfbf9;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-size: 15px; font-weight: 400; letter-spacing: -0.4px; cursor: pointer;
  transition: opacity 0.15s ease;
}
@media (prefers-color-scheme: dark) {
  .submit-btn { background: #f2f0ec; color: #1e1d1c; }
}
.submit-btn:hover { opacity: 0.85; }
.submit-btn:disabled { opacity: 0.5; cursor: default; }

.status-msg { text-align: center; font-size: 13px; margin-top: 16px; }
.status-msg.error { color: #963d1e; }
.status-msg.success { color: #1a755f; }

.back-link { display: block; text-align: center; margin-top: 44px; font-size: 12px; color: var(--ink-faint); text-decoration: underline; }

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