:root {
  color-scheme: light;
  --primary: #345a70;
  --background: #f6f9f8;
  --surface: #ffffff;
  --surface-secondary: #e3edf1;
  --text: #213643;
  --text-secondary: #657783;
  --accent: #da995a;
}

* { box-sizing: border-box; }

html { background: var(--background); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(168, 193, 204, .46), transparent 34%),
    radial-gradient(circle at 92% 92%, rgba(218, 153, 90, .18), transparent 32%),
    var(--background);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.beta-page {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(56px, 9vw, 120px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand img { width: 50px; height: 44px; }

.intro-copy { margin: clamp(54px, 8vh, 88px) 0 44px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; letter-spacing: -.055em; line-height: 1.02; }
h1 { max-width: 680px; font-size: clamp(48px, 6.5vw, 82px); }
h2 { font-size: clamp(32px, 4vw, 46px); }

.lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.expectations { margin: 0; padding: 0; list-style: none; }
.expectations li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(33, 54, 67, .14); }
.expectations li:last-child { border-bottom: 1px solid rgba(33, 54, 67, .14); }
.expectations li > span { color: var(--accent); font-size: 12px; font-weight: 700; }
.expectations p { margin: 0; color: var(--text-secondary); line-height: 1.55; }
.expectations strong { color: var(--text); }

.signup-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(33, 54, 67, .1);
  border-radius: 32px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 30px 80px rgba(33, 54, 67, .12);
  backdrop-filter: blur(18px);
}

.signup-note { margin: 16px 0 28px; color: var(--text-secondary); line-height: 1.5; }

form > label:not(.consent-row) { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 700; }
form > input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #cad7dc;
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}
form > input:focus { outline: 3px solid rgba(52, 90, 112, .22); border-color: var(--primary); }

.consent-row { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.consent-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); }

button, .testflight-link {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .testflight-link:hover { filter: brightness(.92); }
button:disabled { cursor: wait; opacity: .7; }

.privacy { margin: 12px 0 0; color: var(--text-secondary); font-size: 12px; text-align: center; }
.form-message { margin-top: 20px; }
.form-message p { margin: 0 0 14px; color: var(--text); font-weight: 600; }
.form-message.error { color: #9b4b35; font-weight: 600; }

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 12px;
}
footer a { text-underline-offset: 3px; }

@media (max-width: 820px) {
  .beta-page { width: min(100% - 32px, 620px); display: block; padding-top: 28px; }
  .intro-copy { margin: 48px 0 36px; }
  .expectations { margin-bottom: 40px; }
  .signup-card { border-radius: 26px; }
  footer { width: calc(100% - 32px); }
}

@media (max-width: 480px) {
  .beta-page { width: min(100% - 24px, 620px); }
  h1 { font-size: 46px; }
  .signup-card { padding: 24px 20px; }
  footer { width: calc(100% - 24px); display: grid; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
