/* DeathSnail's site, in the Night theme from design/tokens.json. */
:root {
  --bg: #0E1116; --surface: #171B22; --raised: #1F2430; --border: #2A3140;
  --text: #ECEFF4; --muted: #8A93A6; --slime: #A8E05F; --danger: #FF5A4E; --on-slime: #10140B;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Nunito, ui-rounded, system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

nav.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 24px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo span { color: var(--slime); }
.links { display: flex; gap: 24px; font-weight: 800; color: var(--muted); }
.links a { text-decoration: none; }
.links a:hover { color: var(--text); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--slime); color: var(--on-slime); font: inherit; font-size: 16px; font-weight: 900; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { filter: brightness(1.06); }
.button:disabled { opacity: .6; cursor: default; }
.button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Store badges: official artwork, untouched. Same height for both, with clear space around each. */
.badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badges span { color: var(--muted); font-weight: 800; font-size: 14px; }
.store { display: grid; justify-items: start; gap: 6px; }
a.store span { color: var(--slime); }
.badges img { display: block; height: 44px; width: auto; }

/* The waitlist, until launch. */
.signup { max-width: 600px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; scroll-margin-top: 12px; }
.signup h2 { font-size: 28px; margin: 0 0 4px; }
.signup .hint { color: var(--muted); margin: 0 0 16px; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 10px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.phones label { position: relative; }
.phones input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.phones span { display: block; padding: 9px; border-radius: 10px; text-align: center; font-weight: 800; color: var(--muted); }
.phones input:checked + span { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--slime); }
.phones input:focus-visible + span { outline: 2px solid var(--slime); outline-offset: 2px; }
.fields { display: flex; gap: 10px; }
.fields input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; }
.fields input::placeholder { color: var(--muted); opacity: .7; }
.fields input:focus { outline: none; border-color: var(--slime); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { min-height: 1.5em; margin: 8px 0 0; font-size: 14px; font-weight: 800; color: var(--muted); }
.status.error { color: var(--danger); }
.perks { list-style: none; display: grid; gap: 10px; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.perks li { position: relative; padding-left: 26px; color: var(--muted); }
.perks li::before { content: ''; position: absolute; left: 3px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--slime); box-shadow: 0 0 10px rgba(168, 224, 95, .55); }
.perks b { color: var(--text); }
.fine { margin: 16px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.fine a { color: var(--slime); }
/* iPhone visitors get the pre-order first: waitlist.js puts .pre on the form. */
.pre .email-only { display: none; }
#waitlist:not(.pre) .pre-only { display: none; }
.preorder { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 16px 0; }
.preorder img { display: block; height: 52px; width: auto; }
.quiet { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.done h2 { margin-bottom: 8px; }
.done p { margin: 0 0 12px; }
.done:focus { outline: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero-grid .badges { margin-bottom: 4px; }

.hero { padding: 48px 0 0; }
.hero h1 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 64px; line-height: 1.04; margin: 0; max-width: 820px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--slime); }
.hero p.lede { color: var(--muted); font-size: 20px; max-width: 620px; margin: 18px 0 14px; }
/* The stakes, on their own line: the one red in the hero, with a heart that beats. */
.one-life { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 32px; line-height: 1.1; }
.one-life em { font-style: normal; color: var(--danger); text-shadow: 0 0 24px rgba(255, 90, 78, .45); }
.one-life .heart { flex: 0 0 auto; width: 28px; height: 28px; fill: var(--danger); filter: drop-shadow(0 0 8px rgba(255, 90, 78, .6)); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 30%, 100% { transform: scale(1); } 8% { transform: scale(1.2); } 16% { transform: scale(1); } 23% { transform: scale(1.12); } }
.track { position: relative; height: 300px; margin-top: 12px; overflow: hidden; }
.track svg.trail { position: absolute; left: 0; bottom: 34px; width: 100%; height: 30px; overflow: visible; }
.track .walker { position: absolute; bottom: 20px; left: 0; }
.track .quote { position: absolute; left: 0; bottom: 262px; font-weight: 900; color: var(--slime); white-space: nowrap; font-size: 15px; background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }

section { padding: 56px 0 0; }
h2 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 34px; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 680px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; }
.step .art { height: 160px; display: flex; align-items: center; justify-content: center; }
.step h3 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 22px; margin: 10px 0 6px; }
.step p { color: var(--muted); margin: 0; }
.lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.line { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.line img { width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto; }
.line b { display: block; font-size: 13px; color: var(--muted); font-weight: 800; }
.line span { font-weight: 800; }
.final { margin: 64px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 30px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.final h2 { font-size: 40px; line-height: 1.1; margin-bottom: 10px; }
.final-cta { display: grid; gap: 16px; justify-items: start; }

footer { padding: 40px 0 50px; color: var(--muted); font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Text pages: privacy, terms, support, account deletion. */
article { max-width: 760px; padding: 24px 0 0; }
article h1 { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 44px; line-height: 1.1; margin: 0 0 6px; }
article .updated { color: var(--muted); font-weight: 700; margin: 0 0 28px; }
article h2 { font-size: 26px; margin: 34px 0 8px; }
article h3 { font-size: 18px; font-weight: 900; margin: 22px 0 6px; }
article p, article li { color: #C9CFDA; }
article ul { padding-left: 22px; }
article li { margin: 6px 0; }
article a { color: var(--slime); }
article table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
article th, article td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--border); }
article th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; border-top: 0; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; margin: 18px 0; }

@media (max-width: 860px) {
  .hero h1 { font-size: 42px; }
  .one-life { font-size: 27px; gap: 10px; }
  .one-life .heart { width: 24px; height: 24px; }
  .track { height: 250px; }
  .track .quote { bottom: 214px; }
  .steps, .lines, .final { grid-template-columns: 1fr; }
  .links { display: none; }
  .final { padding: 28px; }
  .signup { padding: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-grid .badges { margin-bottom: 24px; }
  article h1 { font-size: 34px; }
}
@media (max-width: 520px) {
  .fields { flex-direction: column; }
  .fields .button { width: 100%; }
  /* Google's minimum is 40px; at 44 the pair doesn't fit side by side in the bottom card. */
  .final .badges img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .one-life .heart { animation: none; } }
