/* Shared by coming-soon.html, unsubscribe.html and 404.html. Three pages, one stylesheet, so a
   tweak to one can't leave the other looking like a different site. */
:root {
  --bg: #06070a; --card: #12141b;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18);
  --ink: #f4f5f7; --ink-soft: rgba(244,245,247,.66); --ink-mute: rgba(244,245,247,.42);
  --green: #31d158; --green-lit: #54df75; --indigo: #6871ff; --orange: #ff862b;
  --r: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
/* 100dvh, not 100vh: on mobile Safari the toolbars make vh taller than what's actually
   on screen, which would push the footer below the fold. */
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font-family: var(--font); -webkit-font-smoothing: antialiased;
  /* Two rows — content takes the slack, footer sits on the bottom edge. The explicit
     minmax(0, 1fr) column matters: an auto column sizes to the widest child's
     max-content, which on a phone let the headline and the form spill off-screen. */
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: 32px clamp(20px, 6vw, 32px) calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
/* Indigo top glow — the premium accent, per the app's color roles. Fixed and
   pointer-events:none so it never enters layout or eats a tap. */
/* Indigo top glow — the app's premium accent. Fixed + pointer-events:none so it never
   enters layout or eats a tap. Fades to rgba(...,0) rather than `transparent`, which Safari
   interpolates through transparent BLACK and smears gray across the falloff. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 92vh; pointer-events: none;
  background: radial-gradient(95% 68% at 50% 0%, rgba(104,113,255,.62), rgba(104,113,255,.16) 48%, rgba(104,113,255,0) 80%),
              radial-gradient(55% 42% at 14% 0%, rgba(77,31,142,.5), rgba(77,31,142,0) 75%);
}
main {
  position: relative; align-self: center; justify-self: center;
  width: 100%; max-width: 560px; text-align: center;
}
.glyph { width: clamp(58px, 16vw, 74px); height: auto; color: var(--ink); opacity: .95; }
.eyebrow {
  margin: clamp(20px, 5vw, 26px) 0 0; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green); font-weight: 600;
}
h1 {
  margin: 14px 0 0; font-size: clamp(30px, 8vw, 52px); line-height: 1.08;
  letter-spacing: -.02em; font-weight: 700; text-wrap: balance; overflow-wrap: break-word;
}
.sub {
  margin: clamp(18px, 5vw, 22px) auto 0; max-width: 40ch; color: var(--ink-soft);
  font-size: clamp(15px, 4vw, 16px); line-height: 1.55; text-wrap: pretty;
}
form {
  margin: clamp(24px, 6vw, 30px) auto 0; display: flex; gap: 10px; max-width: 460px;
}
input[type=email] {
  flex: 1; min-width: 0; padding: 15px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); outline: none;
  transition: border-color .2s;
}
input[type=email]:focus { border-color: var(--line-2); }
input[type=email]::placeholder { color: var(--ink-mute); }
button, .btn {
  padding: 15px 22px; font: inherit; font-size: 16px; font-weight: 600; color: #04120a;
  background: var(--green); border: 0; border-radius: var(--r); cursor: pointer;
  transition: background .2s, opacity .2s; white-space: nowrap;
}
button:hover, .btn:hover { background: var(--green-lit); }
.btn { display: inline-block; margin-top: clamp(24px, 6vw, 30px); text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--ink-mute); min-height: 18px; }
.note.err { color: var(--orange); }
.note.ok { color: var(--green); }
footer {
  position: relative; margin-top: 56px; padding-top: 24px; text-align: center;
  font-size: 13px; color: var(--ink-mute);
}
footer a {
  display: inline-block; padding: 6px 4px;   /* a real tap target, not a 13px hairline */
  color: var(--ink-mute); text-decoration: none;
}
footer a:hover { color: var(--ink-soft); }
.unsub { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--ink-mute); }
.unsub a {
  display: inline-block; padding: 4px 2px; white-space: nowrap;
  color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px;
}
.back { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.back:hover { color: var(--ink); }
/* Stack at the width where the row layout starts squeezing the input, not at some
   arbitrary phone breakpoint. Full-width button = a comfortable thumb target. */
@media (max-width: 520px) {
  form { flex-direction: column; }
  button { width: 100%; padding: 16px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
