/* Nearby — opening soon.
   One idea: a night map of the neighbourhood, two dots that are actually close, and a match that
   arrives as a sentence instead of a percentage. Inter carries the interface, Literata italic is
   the human voice (reasons, Aria's promise), Plex Mono only ever shows distances. */

@font-face { font-family: "Inter"; src: url("assets/fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/Literata-Italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/IBMPlexMono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --night: #070914;       /* the page: the city after dark */
  --ink: #0E1230;         /* map blocks, raised surfaces */
  --ink-2: #141A44;
  --signal: #5468FF;      /* proximity, links, Aria — a readable lift of the brand's Atlas violet */
  --coral: #E0607A;       /* you */
  --verified: #5CB37F;    /* a verified human */
  --paper: #F4F2EE;       /* text */
  --mist: #A3A8C9;        /* secondary text */
  --line: rgba(163, 168, 201, 0.16);

  --font-sans: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-voice: "Literata", Georgia, "Noto Serif", serif;
  --font-mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.35rem;
  --step-2: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--paper);
  background-color: var(--night);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--paper); color: var(--night); font-weight: 600; text-decoration: none;
  border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Greek words run longer: one step smaller so the headline keeps to three or four lines. */
:lang(el) { --step-3: clamp(2.1rem, 1.35rem + 2.9vw, 3.5rem); }

/* ── Masthead ─────────────────────────────────────────────────────────── */

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 84rem; margin: 0 auto; padding: 1.5rem var(--gutter) 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 650; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none;
}
.wordmark-mark { width: 1.7rem; height: 1.7rem; }

.lang { display: inline-flex; gap: .25rem; }
.lang button, .lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 .6rem;
  font: inherit; font-size: var(--step--1); font-weight: 500; letter-spacing: .03em; text-decoration: none;
  color: var(--mist); background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
}
.lang [aria-pressed="true"], .lang [aria-current="page"] { color: var(--paper); border-color: var(--line); }
.lang button:hover, .lang a:hover { color: var(--paper); }

/* ── Hero: the map ────────────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  max-width: 84rem; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(4rem, 9vw, 8rem);
}
.hero-copy { max-width: 36rem; }

h1 {
  margin: 0;
  font-weight: 620; font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede { margin: 1.5rem 0 0; max-width: 31rem; font-size: 1.15rem; color: var(--mist); }

.status { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 1.5rem; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.6rem;
  font: inherit; font-weight: 600; text-decoration: none;
  color: var(--night); background: var(--paper);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.button:hover { background: #fff; }
.button:active { transform: scale(.98); }

.hero-map {
  position: relative; margin: 0;
  aspect-ratio: 5 / 4; width: 100%;
  background: var(--ink);
  border: 1px solid var(--line); border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(84, 104, 255, .35);
}
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-streets line { stroke: rgba(163, 168, 201, .10); stroke-width: 1; }
.map-river { fill: none; stroke: #0A0E26; stroke-width: 34; stroke-linecap: round; }
.map-park { fill: rgba(92, 179, 127, .10); }
.map-avenue { fill: none; stroke: rgba(84, 104, 255, .28); stroke-width: 3; }
.map-people circle { fill: var(--paper); }
.map-you { fill: var(--coral); stroke: var(--night); stroke-width: 3; }
.map-match { fill: var(--signal); stroke: var(--night); stroke-width: 3; }
.map-pulse { fill: none; stroke: var(--coral); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-link { stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .012 .018; opacity: .9; }

/* The distance rides along the line (it runs at about -25.6°). */
.map-distance {
  position: absolute; left: 49.9%; top: 51.1%;
  transform: translate(-50%, -1.75rem) rotate(-25.6deg);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; color: var(--paper);
  white-space: nowrap;
}

/* The match: a struck-out number, then the sentence. Anchored above the middle of the line. */
.reason {
  /* Lower-right corner of the map: clear of both dots and of the line between them. */
  position: absolute; right: 4%; bottom: 6%;
  width: min(58%, 21rem);
  padding: 1rem 1.15rem 1.1rem;
  background: var(--night);
  border: 1px solid rgba(84, 104, 255, .55); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.reason-score {
  position: relative; display: inline-block;
  font-family: var(--font-mono); font-size: 1.1rem; color: var(--mist);
}
.reason-score::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 52%;
  height: 1.5px; background: var(--coral);
  transform-origin: left center;
}
.reason-text {
  display: block; margin-top: .35rem;
  font-family: var(--font-voice); font-style: italic; font-weight: 420;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.35;
  transition: opacity .5s ease;
}
.reason-text.is-swapping { opacity: 0; }

@media (max-width: 34rem) {
  .reason { left: .8rem; right: .8rem; bottom: .8rem; width: auto; padding: .7rem .9rem .8rem; }
  .reason-text { font-size: 1rem; }
}

@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}

/* One orchestrated moment: people appear, you two find each other, the number is struck out and
   replaced by a reason. After that only the reason changes, slowly. */
@media (prefers-reduced-motion: no-preference) {
  .js .map-people { animation: appear 1.2s .1s ease both; }
  .js .map-you, .js .map-match { animation: appear .6s .5s ease both; }
  .js .map-link { animation: link 1.1s .9s var(--ease-out) both; }
  .js .map-distance { animation: appear .5s 1.7s ease both; }
  .js .reason { animation: card .8s 1.9s var(--ease-out) both; }
  .js .reason-score::after { animation: strike .5s 2.7s var(--ease-out) both; }
  .js .reason-text { animation: appear .7s 3.1s ease both; }
  .js .map-pulse { animation: pulse 3.4s 3.4s ease-out infinite; }
  .js .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .js .hero-copy > :nth-child(n+4) { animation-delay: .36s; }
}
@keyframes appear { from { opacity: 0; } }
@keyframes link { from { stroke-dasharray: 0 1; } to { stroke-dasharray: .012 .018; } }
@keyframes card { from { opacity: 0; transform: translateY(.6rem); } }
@keyframes strike { from { transform: scaleX(0); } }
@keyframes pulse { 0% { opacity: .8; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes rise { from { opacity: 0; transform: translateY(.6rem); } }

/* ── Aria ─────────────────────────────────────────────────────────────── */

.aria {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  max-width: 72rem; margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem);
}
.aria h2, .here h2 {
  margin: 0; font-weight: 600; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.aria-copy p { margin: 1rem 0 0; max-width: 30rem; color: var(--mist); }
.aria-copy .aria-note { font-size: var(--step--1); }

.chat { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; max-width: 26rem; width: 100%; justify-self: center; }
.bubble { display: grid; gap: .15rem; max-width: 85%; padding: .8rem 1rem .9rem; border-radius: 18px; line-height: 1.45; }
.bubble-who { font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--mist); }
.bubble--aria { justify-self: start; background: var(--ink); border: 1px solid rgba(84, 104, 255, .5); border-bottom-left-radius: 6px; }
.bubble--aria .bubble-who { color: #8E9BFF; }
.bubble--you { justify-self: end; background: rgba(224, 96, 122, .14); border: 1px solid rgba(224, 96, 122, .35); border-bottom-right-radius: 6px; }

@media (min-width: 52rem) { .aria { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── Really here ──────────────────────────────────────────────────────── */

.here {
  max-width: 72rem; margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem);
}
.here-line { margin: 1rem 0 0; max-width: 34rem; color: var(--mist); }
.here-list {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.here-list li {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.25rem; background: var(--night);
}
.here-initial {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: 50%; background: var(--ink-2); font-weight: 600;
}
.here-check { display: inline-flex; align-items: center; gap: .35rem; color: var(--verified); font-size: var(--step--1); font-weight: 600; }
.here-check::before {
  content: ""; width: .95rem; height: .95rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.6 5.9-4.1 4.6a.8.8 0 0 1-1.2 0L4.4 8.4a.8.8 0 1 1 1.2-1.1l1.3 1.4 3.5-3.9a.8.8 0 1 1 1.2 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.6 5.9-4.1 4.6a.8.8 0 0 1-1.2 0L4.4 8.4a.8.8 0 1 1 1.2-1.1l1.3 1.4 3.5-3.9a.8.8 0 1 1 1.2 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.here-dist { margin-left: auto; font-family: var(--font-mono); font-size: .95rem; }

/* ── The promise ──────────────────────────────────────────────────────── */

.leave { max-width: 62rem; margin: 0 auto; padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem); text-align: center; }
.leave-line {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--font-voice); font-style: italic; font-weight: 400;
  font-size: var(--step-2); line-height: 1.25; letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ── See you soon ─────────────────────────────────────────────────────── */

.spot {
  max-width: 40rem; margin: 0 auto; text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
}
.spot h2 { margin: 0; font-weight: 600; font-size: var(--step-2); letter-spacing: -0.03em; }
.spot-lede, .spot-closed { margin: .75rem auto 0; max-width: 32rem; color: var(--mist); }
.spot-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 2rem auto 0; max-width: 32rem; }
.spot-form input {
  flex: 1 1 15rem; min-height: 48px; padding: 0 1.2rem;
  font: inherit; color: var(--paper); background: rgba(244, 242, 238, .06);
  border: 1px solid rgba(244, 242, 238, .38); border-radius: 999px;
}
.spot-form input[aria-invalid="true"] { border-color: var(--coral); }
.spot-privacy { margin: 1rem auto 0; font-size: var(--step--1); color: var(--mist); }
.spot-status { min-height: 1.6em; margin: 1rem 0 0; }
.spot-status--ok { color: var(--verified); }
.spot-status--error { color: #F08DA0; }

/* ── Android app: shown by main.js only when a release is published ───── */

.button-icon {
  display: block; width: 1.15rem; height: 1.15rem; margin-right: .55rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.hero-android { margin-top: .25rem; }
.hero-android-meta { margin: .75rem 0 0; font-size: var(--step--1); color: var(--mist); }
.hero-android-meta a { color: var(--paper); text-underline-offset: .2em; white-space: nowrap; }
.hero-android-meta a:hover { color: #8E9BFF; }

.android {
  display: grid; gap: 2.5rem clamp(2rem, 6vw, 5rem);
  max-width: 72rem; margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 6rem);
  border-top: 1px solid var(--line);
}
.android h2 {
  margin: 0; font-weight: 600; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}
.android-lede { margin: .75rem 0 1.75rem; max-width: 30rem; color: var(--mist); }
.android-meta { margin: .9rem 0 0; font-size: var(--step--1); color: var(--mist); }

.android-how h3 {
  margin: 0 0 1.1rem; font-family: var(--font-voice); font-weight: 420; font-style: italic;
  font-size: var(--step-1);
}
.android-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.android-steps li {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .85rem; align-items: start;
  counter-increment: step; line-height: 1.5;
}
.android-steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2rem; height: 2rem; margin-top: -.2rem;
  font-size: var(--step--1); font-weight: 600; color: #8E9BFF;
  border: 1.5px dashed rgba(244, 242, 238, .38); border-radius: 50%;
}

.android-foot { display: grid; gap: .75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.android-sha, .android-ios { margin: 0; font-size: var(--step--1); color: var(--mist); }
.android-sha-value {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: .78rem;
  color: var(--paper); word-break: break-all; user-select: all; -webkit-user-select: all;
}
.android-copy {
  min-height: 44px; padding: 0 .9rem; margin-left: .25rem;
  font: inherit; font-size: var(--step--1); color: var(--paper);
  background: none; border: 1px solid rgba(244, 242, 238, .38); border-radius: 999px; cursor: pointer;
}
.android-copy:hover { border-color: var(--paper); }
.android-copied { color: var(--verified); }
.android-ios strong { color: var(--paper); font-weight: 600; }
.android-ios a { color: #8E9BFF; text-underline-offset: .2em; }

@media (min-width: 52rem) {
  .android { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .android-foot { grid-column: 1 / -1; }
}

/* ── Store buttons: always shown; a placeholder page until the listings exist ── */

.stores { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.android-intro .stores { margin-top: 1.5rem; }
.store {
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 48px; padding: .35rem 1.3rem .35rem 1rem;
  color: var(--paper); text-decoration: none;
  border: 1px solid rgba(244, 242, 238, .38); border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease;
}
.store:hover { border-color: var(--paper); background: rgba(244, 242, 238, .06); }
.store:focus-visible { border-radius: 999px; }
.store-icon {
  width: 1.15rem; height: 1.15rem; flex: none;
  fill: none; stroke: #8E9BFF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.store-label { display: grid; line-height: 1.2; text-align: left; }
.store-name { font-weight: 700; font-size: .9375rem; }
.store-note { font-size: .75rem; letter-spacing: .02em; color: var(--mist); }

/* stores.html: what to do until the store listings exist. */
.stores-lede { color: var(--mist); }
.legal ul.stores-ways { margin: 1rem 0 0; padding-left: 1.25rem; }
.stores-ways li { max-width: 38rem; }
.stores-ways li + li { margin-top: .9rem; }
.stores-ways strong { color: var(--paper); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
  max-width: 84rem; margin: 0 auto; padding: 2rem var(--gutter) 2.5rem;
  font-size: var(--step--1); color: var(--mist);
}
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-underline-offset: .2em; }
.footer a:hover { color: var(--paper); }

/* ── Legal pages ──────────────────────────────────────────────────────── */

.legal { max-width: 42rem; margin: 0 auto; padding: 3rem var(--gutter) 5rem; }
.legal h1 { font-size: var(--step-2); letter-spacing: -0.03em; }
.legal h2 { font-weight: 600; font-size: var(--step-1); letter-spacing: -0.02em; margin: 2rem 0 .5rem; }
.legal p { max-width: 38rem; }
.legal-address { font-style: normal; font-size: var(--step-1); line-height: 1.45; margin: 1rem 0 2rem; }
.legal-updated { color: var(--mist); font-size: var(--step--1); }
.legal a { color: #8E9BFF; text-underline-offset: .2em; }
.legal-back { margin-top: 3rem; }
