/* elsewheres.live. One stylesheet, no frameworks. */

:root {
  --bg: #06070d;
  --bg-2: #0b0d18;
  --panel: #10131f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f3f5ff;
  --ink-2: #b4bad3;
  --ink-3: #7c839f;
  --blue: #4f69f2;
  --blue-2: #7d91ff;
  --green: #34d399;
  --radius: 18px;
  --page: 1160px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, "SF Pro Text", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 28px; }

/* Header ---------------------------------------------------------------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
header.solid, body.page header {
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.brand .mark svg { width: 15px; height: 22px; }

nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: #5d76ff; transform: translateY(-1px); }
.btn.quiet { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--ink); }
.btn.quiet:hover { background: rgba(255, 255, 255, 0.1); }
.btn.small { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }
.btn.wide { width: 100%; }

/* The live map behind the hero ----------------------------------------- */
#map {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
}
.map-shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 7, 13, 0.92) 0%, rgba(6, 7, 13, 0.55) 38%, rgba(6, 7, 13, 0) 62%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.5) 0%, rgba(6, 7, 13, 0) 18%, rgba(6, 7, 13, 0) 70%, var(--bg) 100%);
}

.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 110px 0 80px;
}
.hero .wrap { width: 100%; }
.hero-copy { max-width: 600px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(16, 19, 31, 0.78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px; color: var(--ink-2);
  margin-bottom: 26px;
  min-width: 300px;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: beat 2s infinite;
  flex: none;
}
.status .dot.wait { background: #fbbf24; animation: none; }
.status b { color: var(--ink); font-weight: 650; }
.status .coords { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 {
  font-size: clamp(54px, 8.4vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0 0 26px;
  font-weight: 800;
}
h1 .soft { color: var(--blue-2); }

.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); margin: 0 0 32px; max-width: 32em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13.5px; color: var(--ink-3); margin-top: 18px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}

/* Everything after the hero sits on solid ground ------------------------ */
main.after { position: relative; z-index: 2; background: var(--bg); }

section { padding: 112px 0; border-top: 1px solid var(--line); }
section.tight { padding: 72px 0; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-2); margin: 0 0 16px;
}
h2 {
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.02; letter-spacing: -0.04em;
  margin: 0 0 18px; font-weight: 780;
}
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 680; letter-spacing: -0.015em; }
.sub { color: var(--ink-2); font-size: 19px; margin: 0 0 52px; max-width: 40em; }

/* Three facts ----------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 34px 30px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .big { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.fact p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Screens --------------------------------------------------------------- */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.phone {
  margin: 0;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2a2f45, #10131f 60%);
  box-shadow: 0 40px 80px -40px rgba(79, 105, 242, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone img { display: block; width: 100%; border-radius: 36px; }
.phone figcaption { text-align: center; color: var(--ink-3); font-size: 14px; padding: 16px 6px 4px; }
.screens .phone:nth-child(2) { transform: translateY(46px); }

/* Feature index --------------------------------------------------------- */
.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.group h3 { font-size: 22px; margin-bottom: 18px; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.group li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.group li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--blue); }
.group li b { color: var(--ink); font-weight: 620; }

/* Comparison ------------------------------------------------------------ */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--bg-2); }
.compare td { color: var(--ink-2); }
.compare .us { background: rgba(79, 105, 242, 0.1); color: var(--ink); font-weight: 650; }
.compare thead .us { color: var(--blue-2); background: rgba(79, 105, 242, 0.16); }
.compare .yes { color: var(--green); font-weight: 650; }
.compare .no { color: var(--ink-3); }
.source { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* Steps ----------------------------------------------------------------- */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
ol.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
ol.steps li::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font-family: var(--mono); font-size: 13px; color: var(--blue-2); margin-bottom: 18px;
}
ol.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Plans ----------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset, 0 30px 60px -30px rgba(79, 105, 242, 0.55); }
.plan .price { font-size: 42px; font-weight: 800; letter-spacing: -0.045em; margin: 8px 0 2px; }
.plan .per { color: var(--ink-3); font-size: 14px; margin: 0 0 22px; }
.plan .badge { font-size: 12px; font-weight: 700; color: #06281c; background: var(--green); padding: 3px 9px; border-radius: 999px; align-self: flex-start; margin-bottom: 10px; }
.plan .later { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; }
.plan .btn { margin-top: auto; }

.supporter {
  margin-top: 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px;
  background: linear-gradient(120deg, rgba(79, 105, 242, 0.16), rgba(79, 105, 242, 0.02));
}
.supporter p { margin: 6px 0 0; color: var(--ink-2); }

/* Founder --------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.founder .quote { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 650; margin: 0 0 24px; }
.founder .who { color: var(--ink-2); }
.ledger { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger div { display: flex; justify-content: space-between; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ledger div:last-child { border-bottom: 0; }
.ledger span { color: var(--ink-3); }
.ledger b { font-weight: 620; text-align: right; }

.invest {
  margin-top: 64px;
  border: 1px solid var(--line-2); border-radius: 22px;
  padding: 44px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(79, 105, 242, 0.22), transparent 70%),
    var(--panel);
}
.invest h3 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.03em; margin-bottom: 12px; }
.invest p { color: var(--ink-2); max-width: 46em; }
.invest .why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 30px; }
.invest .why div { border-top: 1px solid var(--line-2); padding-top: 14px; color: var(--ink-2); font-size: 15px; }
.invest .why b { display: block; color: var(--ink); margin-bottom: 4px; }

/* Cards, notes, prose (other pages) ------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.note { border: 1px solid var(--line-2); border-left: 3px solid var(--blue); border-radius: 12px; padding: 18px 22px; background: var(--panel); color: var(--ink-2); font-size: 15.5px; }
.note strong { color: var(--ink); }

body.page main { padding-top: 66px; }
body.page section:first-child { border-top: 0; }
.prose { max-width: 44em; }
.prose h1 { font-size: clamp(40px, 5vw, 64px); }
.prose h2 { font-size: 24px; margin-top: 40px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--blue-2); }
.prose .updated { font-size: 14px; color: var(--ink-3); }
.page h1 { font-size: clamp(44px, 6vw, 76px); }

details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 620; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
details summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); margin: 12px 0 0; max-width: 46em; }

footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 64px; color: var(--ink-3); font-size: 14.5px; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Scroll reveals -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .status .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* Smaller screens ------------------------------------------------------- */
@media (max-width: 980px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  ol.steps { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; gap: 36px; }
  .invest .why { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 80px 0; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .screens { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .screens .phone:nth-child(2) { transform: none; }
  .groups { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  ol.steps { grid-template-columns: 1fr; }
  .supporter { grid-template-columns: 1fr; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 13px 12px; }
  nav a.hide-small { display: none; }
  .map-shade { background: linear-gradient(180deg, rgba(6, 7, 13, 0.55) 0%, rgba(6, 7, 13, 0.75) 55%, var(--bg) 100%); }
  .invest { padding: 28px; }
  .status { min-width: 0; }
}
