:root {
  --magenta: #ef12fa;
  --violet: #6a2bff;
  --blue: #2457f5;
  --ink: #16141c;
  --muted: #5c5668;
  --line: rgba(22, 20, 28, 0.1);
  --paper: #fffbfe;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(80, 30, 140, 0.12);
  --gradient: linear-gradient(105deg, #c012e0 0%, #6a2bff 48%, #2457f5 100%);
  --radius: 16px;
  --nav: 72px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#top,
#product,
#beta,
#join-form {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(239, 18, 250, 0.16), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(36, 87, 245, 0.14), transparent 55%),
    var(--paper);
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav);
  backdrop-filter: blur(16px);
  background: rgba(255, 251, 254, 0.84);
  border-bottom: 1px solid transparent;
}

.nav-inner, .footer-inner, .section, .hero, .close {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-right: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: white;
  background: var(--gradient);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.nav-cta {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.hero { padding: 48px 0 32px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.15rem);
  line-height: 1.02;
  font-weight: 680;
  max-width: 14ch;
}

.lede {
  margin-top: 18px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
}

.join { margin-top: 28px; max-width: 520px; }

.join-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
}

.join-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(22, 20, 28, 0.04);
}

.join-row:focus-within {
  border-color: rgba(106, 43, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(106, 43, 255, 0.12);
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.button {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  white-space: nowrap;
}

.button:disabled { opacity: 0.7; cursor: progress; }

.button-inline { padding-inline: 22px; }

.form-hint, .form-error, .success p {
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-hint {
  margin-top: 10px;
  color: var(--muted);
}

.form-error {
  margin-top: 10px;
  color: #9d1230;
}

.testflight-link-row { margin-top: 12px; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-right: auto;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

.text-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}

.success-kicker {
  color: var(--violet);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.success h2 {
  margin: 6px 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.success-steps {
  margin: 14px 0 18px;
  padding-left: 1.1rem;
  color: var(--muted);
}

.success-steps li + li { margin-top: 6px; }

.success-steps a { color: var(--blue); }

.phone-wrap { display: flex; justify-content: center; }

.phone {
  width: min(100%, 320px);
  padding: 12px;
  border-radius: 44px;
  background: #1c1a22;
  box-shadow: var(--shadow);
}

.phone-screen {
  background: #000;
  color: #fff;
  border-radius: 34px;
  min-height: 560px;
  padding: 26px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.phone-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
}

.phone-streak {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.phone-streak b {
  font-size: 3.6rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.phone-streak span {
  color: #98989f;
  font-size: 0.85rem;
  font-weight: 600;
}

.phone-week {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.phone-week i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #636366;
}

.phone-week i.on { color: var(--magenta); }

.phone-week i.today {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--magenta);
}

.phone-stats {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 2px 4px 6px;
}

.phone-stats div { display: flex; flex-direction: column; gap: 2px; }

.phone-stats b { font-size: 1.25rem; font-weight: 700; }

.phone-stats span { color: #98989f; font-size: 0.68rem; }

.phone-kicker, .phone-ref {
  color: #98989f;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.phone-kicker { color: #fff; }

.phone-verse {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.phone-continue {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #1c1c1e;
}

.phone-continue span { color: #98989f; font-size: 0.68rem; font-weight: 600; }

.phone-continue b { font-size: 0.9rem; font-weight: 650; }

.phone-ref { margin-bottom: 4px; }

.phone-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 650;
  color: #98989f;
}

.phone-bar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  border-radius: 999px;
}

.phone-bar .tab svg { width: 18px; height: 16px; }

.phone-bar .on {
  color: var(--magenta);
  background: #2c2c2e;
}

.section { padding: 72px 0; }

.section-head { max-width: 38rem; margin-bottom: 32px; }

.section-head h2, .close h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.12;
  font-weight: 670;
}

.section-head p, .close p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.features li {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--violet);
  background: rgba(106, 43, 255, 0.1);
  margin-bottom: 14px;
}

.icon svg { width: 22px; height: 22px; }

.features h3 { font-size: 1.15rem; margin-bottom: 6px; }

.features p { color: var(--muted); line-height: 1.45; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps li {
  background: white;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  min-height: 180px;
}

.steps li:nth-child(1) { background: linear-gradient(180deg, #fff 40%, #fff0fd 100%); }
.steps li:nth-child(2) { background: linear-gradient(180deg, #fff 40%, #f4f0ff 100%); }
.steps li:nth-child(3) { background: linear-gradient(180deg, #fff 40%, #eef3ff 100%); }

.steps span {
  display: block;
  margin-bottom: 18px;
  font-weight: 720;
  letter-spacing: -0.04em;
  color: #6a2bff;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }

.steps p { color: var(--muted); line-height: 1.45; }

.close { padding-bottom: 80px; }

.close-card {
  padding: 48px 40px;
  border-radius: 28px;
  background:
    radial-gradient(500px 180px at 0% 0%, rgba(239, 18, 250, 0.18), transparent 70%),
    radial-gradient(500px 180px at 100% 100%, rgba(36, 87, 245, 0.16), transparent 70%),
    white;
  border: 1px solid var(--line);
}

.close .button { margin-top: 22px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer .brand { color: var(--ink); }
.footer .brand img { width: 28px; height: 28px; }

.doc {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
  padding: 48px 0 80px;
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  max-width: none;
}

.doc .doc-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.doc p, .doc li {
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.doc ul, .doc ol { padding-left: 1.2rem; margin: 0; }

.doc li { margin-top: 8px; }

.doc a { color: var(--blue); }

.doc .note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid rgba(106, 43, 255, 0.55);
  outline-offset: 3px;
}

.join-row:focus-within { outline: none; }

::selection { background: rgba(239, 18, 250, 0.22); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid, .features, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .phone-screen { min-height: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  h1 { max-width: none; }
}

@media (max-width: 560px) {
  .nav-inner, .footer-inner, .section, .hero, .close {
    width: min(1120px, calc(100% - 28px));
  }
  .join-row { flex-direction: column; border-radius: 20px; }
  .button, input[type="email"] { width: 100%; }
  .close-card { padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
