:root {
  --bg: #f7f6fb;
  --ink: #17151f;
  --muted: #5e5a6e;
  --card: #ffffff;
  --line: #e4e1ee;
  --accent: #5b4bdb;
  --accent-ink: #ffffff;
  --phone: #121018;
  --screen: #1d1a27;
  --screen-ink: #f4f2fa;
  --screen-muted: #b3adc6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e14;
    --ink: #f1eff7;
    --muted: #a7a2b8;
    --card: #1a1822;
    --line: #2c2938;
    --accent: #8c7ff0;
    --accent-ink: #0f0e14;
    --phone: #000000;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.top { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.toplink { font-weight: 600; text-decoration: none; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 18px; }
h3 { margin: 0 0 6px; font-size: 19px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.fine { color: var(--muted); font-size: 14px; }

.button {
  display: inline-block; border: 0; border-radius: 14px; padding: 14px 22px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650;
  text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.06); }
.button:disabled { opacity: 0.6; cursor: default; }

/* the phone demo */
.phone { justify-self: center; width: min(320px, 100%); }
.screen {
  position: relative; aspect-ratio: 9 / 18.5; border-radius: 44px; background: var(--screen);
  border: 10px solid var(--phone); color: var(--screen-ink); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(40, 20, 90, 0.45);
  user-select: none; -webkit-user-select: none;
}
.step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 22px; text-align: center; }
.step[hidden] { display: none; }
.appglyph { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, #25f4ee, #fe2c55); display: grid; place-items: center; font-size: 30px; color: #fff; margin-bottom: 6px; }
.s-title { font-size: 24px; font-weight: 700; margin: 0; }
.s-sub { color: var(--screen-muted); margin: 0 0 14px; }
.s-hint { position: absolute; top: 26px; margin: 0; color: var(--screen-muted); font-weight: 600; }
.s-note { color: var(--screen-muted); font-size: 12px; margin: 4px 0 0; }
.s-primary, .s-secondary { width: 100%; border: 0; border-radius: 14px; padding: 13px; font: inherit; font-weight: 650; cursor: pointer; }
.s-primary { background: #8c7ff0; color: #0f0e14; }
.s-secondary { background: rgba(255, 255, 255, 0.1); color: var(--screen-ink); }
.sheet { touch-action: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin-top: 18px; }
.bubble { aspect-ratio: 1; border-radius: 50%; position: relative; transition: transform 0.22s cubic-bezier(.3, 1.6, .5, 1), opacity 0.22s; }
.bubble::after { content: ""; position: absolute; width: 26%; height: 26%; left: 20%; top: 20%; border-radius: 50%; background: rgba(255, 255, 255, 0.38); }
.bubble.popped { transform: scale(1.35); opacity: 0; }
.phone-cap { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

.how, .why, .signup { padding-top: 40px; padding-bottom: 40px; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; max-width: 46em; }
.steps li { padding-left: 4px; }
.steps b { display: block; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card p { margin: 0; color: var(--muted); }

.signup { max-width: 640px; }
.signup p { color: var(--muted); }
#form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
#form input[type=email] {
  flex: 1 1 240px; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit;
}
.check { flex-basis: 100%; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 15px; }
.status { flex-basis: 100%; margin: 4px 0 0; min-height: 1.5em; font-weight: 600; }
.status.ok { color: #1f9d63; }
.status.err { color: #d1435b; }

.foot { padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: 15px; }

.page { max-width: 720px; padding-top: 24px; padding-bottom: 40px; }
.page h1 { font-size: clamp(30px, 4vw, 40px); }
.page h2 { font-size: 22px; margin-top: 32px; }
.page p, .page li { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 8px; }
  .why { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { transition: none; }
  html { scroll-behavior: auto; }
}
