:root {
  --accent: #6875f5;
  --accent-dark: #5865e8;
  --ink: #171923;
  --muted: #62677a;
  --line: #e3e5ef;
  --error: #b4233c;
  --surface: #ffffff;
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Nunito Sans", sans-serif;
}

* { box-sizing: border-box; }

html { background: #f4f5ff; }

body {
  margin: 0;
  color: var(--ink);
  background: #f4f5ff;
}

button, input { font: inherit; }

.page {
  min-height: 100dvh;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 15% 0%, #ffffff 0%, #ffffff 34%, #f4f5ff 100%);
}

.shell {
  width: min(100%, 28rem);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand img { display: block; }

.intro { margin-top: clamp(2.75rem, 8vh, 5.5rem); }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  letter-spacing: -0.052em;
}

h1 {
  max-width: 11ch;
  margin-top: 0.7rem;
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  line-height: 0.98;
}

.lede {
  max-width: 36rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.form-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

form { display: grid; gap: 1.3rem; }

.field { display: grid; gap: 0.5rem; }

label, legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

input[type="email"] {
  width: 100%;
  height: 3.35rem;
  padding: 0 1rem;
  border: 1px solid #cfd2df;
  border-radius: 0.8rem;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type="email"]::placeholder { color: #999eaf; }

input[type="email"]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(104, 117, 245, 0.16);
}

.helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.platforms {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.platform-option { position: relative; }

.platform-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.platform-surface {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-height: 4.4rem;
  padding: 0.85rem;
  border: 1px solid #cfd2df;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.platform-option input:checked + .platform-surface {
  border-color: var(--accent);
  background: #f0f1ff;
}

.platform-check {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  color: white;
  background: #15803d;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 140ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-option input:checked + .platform-surface .platform-check {
  opacity: 1;
  transform: scale(1);
}

.platform-option input:focus-visible + .platform-surface {
  outline: 3px solid rgba(104, 117, 245, 0.2);
  outline-offset: 2px;
}

.platform-option:active .platform-surface { transform: scale(0.985); }

.platform-name {
  padding-right: 1.4rem;
  font-weight: 750;
}

.platform-note {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
}

.platforms > .helper { margin-top: 0.55rem; }

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 3.35rem;
  padding: 0 1rem 0 1.15rem;
  border: 0;
  border-radius: 0.8rem;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 24px -14px rgba(49, 58, 180, 0.75);
  cursor: pointer;
  font-weight: 750;
  transition: background 160ms ease, transform 100ms ease, opacity 160ms ease;
}

button:hover { background: var(--accent-dark); }
button:active { transform: translateY(1px) scale(0.99); }
button:focus-visible { outline: 3px solid rgba(104, 117, 245, 0.28); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: 0.68; }

.button-arrow { font-size: 1.2rem; }

.status {
  min-height: 1.2rem;
  margin: -0.6rem 0 0;
  color: var(--error);
  font-size: 0.8rem;
  line-height: 1.5;
}

.success { padding: 0.35rem 0 1rem; }

.success:focus { outline: none; }

.success-mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  color: white;
  background: var(--accent);
  animation: success-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success h2 {
  margin-top: 0.55rem;
  font-size: 2.15rem;
  line-height: 1.05;
}

.success > p:last-child {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

footer {
  display: flex;
  gap: 0.45rem;
  margin-top: 2rem;
  color: #84899a;
  font-size: 0.68rem;
}

[hidden] { display: none !important; }

@keyframes success-in {
  from { opacity: 0; transform: scale(0.72) rotate(-7deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (min-width: 760px) {
  .page { padding-inline: 2.5rem; }
  .shell { width: min(100%, 38rem); }
  .intro { margin-top: clamp(4rem, 12vh, 7.5rem); }
  h1 { max-width: 13ch; }
}

@media (max-height: 720px) {
  .page { padding-top: max(0.85rem, env(safe-area-inset-top)); padding-bottom: max(0.85rem, env(safe-area-inset-bottom)); }
  .intro { margin-top: 1.5rem; }
  h1 { font-size: 2.35rem; }
  .lede { margin-top: 0.75rem; line-height: 1.45; }
  .form-section { margin-top: 1rem; padding-top: 0.9rem; }
  form { gap: 0.85rem; }
  input[type="email"], button { height: 3rem; }
  .platform-surface { min-height: 3.7rem; padding: 0.65rem 0.75rem; }
  footer { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
