/* App palette (dark only, like the app): bg #0F0F12, text #F5F5F0, lime #D4FF3A, pink #FF6BB5. Mobile first. */
:root {
  --bg: #0F0F12; --surface: #1A1A20; --line: #2A2A33;
  --text: #F5F5F0; --muted: #A1A1AA; --lime: #D4FF3A; --pink: #FF6BB5;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 var(--body); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Decorative radar: rings, a sweep and flags that greet as it passes (radar.js times them). No user data. */
.radar { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.radar.flags { z-index: 5; } /* radar.js moves the flags here, above the page */
.ring { position: absolute; left: 50%; top: 34%; border: 1px solid rgba(212, 255, 58, .10); border-radius: 50%; transform: translate(-50%, -50%); }
.r1 { width: 26vmax; height: 26vmax; } .r2 { width: 52vmax; height: 52vmax; }
.r3 { width: 78vmax; height: 78vmax; } .r4 { width: 104vmax; height: 104vmax; }
.sweep { position: absolute; left: 50%; top: 34%; width: 104vmax; height: 104vmax; margin: -52vmax 0 0 -52vmax; border-radius: 50%;
  /* the bright edge leads (at 0deg, turning clockwise) and fades behind it, like a real radar */
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(212, 255, 58, .16) 360deg); }
.dot { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; font-style: normal; font-size: 22px; line-height: 1;
  opacity: 0; filter: saturate(.6); transition: opacity .4s; }
/* radar.js shows a flag only on an empty spot of the screen, never under text, buttons or cards (owner 2026-11-04). */
.dot.on { opacity: .35; }
.dot::before { content: attr(data-flag); }
.dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(212, 255, 58, .6); opacity: 0; }
/* The bubble rises from the flag, toward the middle of the screen so it never runs off an edge. */
.dot b { position: absolute; bottom: 135%; left: 50%; translate: -50% 0; white-space: nowrap; padding: 7px 12px;
  font: 600 13px/1.2 var(--body); color: var(--text); background: var(--surface); border: 1px solid rgba(212, 255, 58, .45);
  border-radius: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(212, 255, 58, .15); opacity: 0; }
.dot.west b { left: -4px; translate: 0 0; border-bottom-left-radius: 4px; }
.dot.east b { left: auto; right: -4px; translate: 0 0; border-bottom-right-radius: 4px; }
/* One turn of the sweep is 9s; radar.js sets each flag's --d to when the sweep reaches it. */
.radar.go .sweep { animation: spin 9s linear infinite; }
.radar.go .dot.on { animation: lit 9s ease-out var(--d) infinite; }
.radar.go .dot.on::after { animation: ping 9s ease-out var(--d) infinite; }
.radar.go .dot.on b { animation: greet 9s ease-out var(--d) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lit { 0% { opacity: 1; filter: none; transform: scale(1.3); } 8% { transform: scale(1); } 40% { opacity: 1; filter: none; } 60%, 100% { opacity: .35; filter: saturate(.6); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 20%, 100% { transform: scale(4); opacity: 0; } }
@keyframes greet { 0% { opacity: 0; transform: translateY(8px) scale(.85); } 4%, 34% { opacity: 1; transform: none; } 40%, 100% { opacity: 0; transform: translateY(-4px); } }

header.top, main, footer { position: relative; z-index: 1; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; max-width: 1040px; margin: 0 auto; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 18px var(--display); letter-spacing: -.02em; }
.wordmark img { border-radius: 9px; }
.lang select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 34px 8px 14px; font: 500 14px var(--body); max-width: 150px;
  /* Our own chevron: the native one hugs the pill's edge on iOS (owner 2026-11-04). */
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 24px; display: grid; gap: 28px; }

.hero { text-align: center; padding-top: 18px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 107, 181, .14); color: var(--pink);
  font-weight: 700; font-size: 13px; border: 1px solid rgba(255, 107, 181, .35); }
h1 { font: 900 clamp(52px, 17vw, 120px)/.95 var(--display); letter-spacing: -.045em; margin: 18px 0 10px; color: var(--lime);
  text-shadow: 0 0 40px rgba(212, 255, 58, .25); }
.slogan { font: 700 clamp(20px, 5.6vw, 30px)/1.25 var(--display); margin: 0 auto; max-width: 18em; }
.sub { max-width: 32em; margin: 14px auto 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 15px var(--body); text-decoration: none; transition: transform .15s ease; }
.btn:active { transform: scale(.97); }
.stores { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
.store { flex-direction: column; min-height: 64px; padding: 10px 20px; background: var(--lime); color: var(--bg); gap: 0; }
.store .os { font-size: 12px; font-weight: 500; opacity: .75; }
.store b { font-size: 17px; }
.store small { font-size: 12px; }
.store[aria-disabled] { background: var(--surface); color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.store[aria-disabled] small { color: var(--pink); font-weight: 700; }

.features { display: grid; gap: 12px; }
.feat, .card { background: rgba(26, 26, 32, .82); border: 1px solid var(--line); border-radius: 24px; padding: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feat .emoji { font-size: 28px; }
.feat h3 { font: 700 18px/1.3 var(--display); margin: 8px 0 6px; }
.feat p { margin: 0; }

.invite { border-color: rgba(212, 255, 58, .45); box-shadow: 0 0 0 4px rgba(212, 255, 58, .06); margin-top: 8px; }
.who { display: flex; align-items: center; gap: 14px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--pink);
  color: var(--bg); font: 900 24px var(--display); }
.invite h2 { font: 700 20px/1.25 var(--display); margin: 0; overflow-wrap: anywhere; }
.invite .muted { margin: 4px 0 0; }
.ref { margin-top: 18px; }
.ref-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.ref-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px 8px 8px 16px; }
.ref-row code { flex: 1; min-width: 0; font: 900 clamp(20px, 6.4vw, 30px) var(--display); color: var(--lime); overflow-wrap: anywhere; }
.copy { flex: none; background: var(--pink); color: var(--bg); padding: 12px 18px; min-height: 44px; }
.hint { margin: 14px 0 0; font-weight: 500; }
.inviting .invite { order: -2; } .inviting .get { order: -1; }
.su { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.su h3 { font: 700 18px/1.3 var(--display); margin: 0; }
.su p { margin: 0; }
.su label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.su input:not([type=radio]):not([type=checkbox]), .su select { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 16px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 16px; font: 500 16px var(--body); }
.su input:focus, .su select:focus { outline: none; border-color: var(--lime); }
.su .at { position: relative; display: block; }
.su .at i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--lime); font: 700 16px var(--body); }
/* As specific as the input rule above (its :not()s count), or that rule's padding wins and the @ covers the text. */
.su .at input:not([type=radio]):not([type=checkbox]) { padding-left: 36px; }
.su fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.su legend { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.su .pick { display: block; }
.su .pick input { position: absolute; opacity: 0; }
.su .pick span { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--text); cursor: pointer; }
.su .pick input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--bg); font-weight: 700; }
.su .pick input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.su .check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 14px; }
.su .check input { width: 20px; height: 20px; accent-color: var(--lime); flex: none; margin-top: 2px; }
.su .check a { color: var(--lime); }
.su .primary { background: var(--lime); color: var(--bg); min-height: 52px; width: 100%; }
.su .primary:disabled { opacity: .5; cursor: default; }
.su .link { background: none; border: 0; color: var(--muted); font: 500 14px var(--body); text-decoration: underline; cursor: pointer; justify-self: center; }
.su .small { font-size: 13px; text-align: center; }
.su-err { color: var(--pink); font-weight: 700; }
.bad { color: var(--text); border-color: rgba(255, 107, 181, .5); margin: 8px 0 0; }

footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 24px 16px 40px; font-size: 14px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (min-width: 720px) {
  main { gap: 40px; padding-top: 24px; }
  .stores { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .invite { max-width: 640px; width: 100%; margin: 8px auto 0; }
  .bad { max-width: 640px; margin: 8px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .radar.go .sweep, .radar.go .dot.on, .radar.go .dot.on::after, .radar.go .dot.on b { animation: none; }
  .dot.on { opacity: .6; }
  .btn { transition: none; }
}
