:root {
  color-scheme: light dark;
  --bg: #f4efe4;
  --text: #151611;
  --muted: #5d574a;
  --accent: #ec5b1f;
  --line: rgba(21, 22, 17, 0.14);
  --shadow: 0 28px 80px rgba(46, 35, 18, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12130f;
    --text: #f7f0df;
    --muted: #c6baa0;
    --accent: #ff6b2b;
    --line: rgba(247, 240, 223, 0.16);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(236, 91, 31, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(65, 71, 44, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 10px;
  opacity: 0.28;
}

.page-shell {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100dvh;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 72px) 22px;
  text-align: center;
}

.app-icon {
  width: clamp(116px, 20vw, 180px);
  height: clamp(116px, 20vw, 180px);
  margin-bottom: clamp(24px, 5vw, 42px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4.1rem, 13vw, 9.2rem);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lede {
  max-width: 54ch;
  margin: clamp(22px, 4vw, 34px) auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 650;
  line-height: 1.55;
}

.button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 168px;
  margin-top: clamp(24px, 5vw, 40px);
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  background-image: linear-gradient(180deg, #ff7540, var(--accent));
  color: #fff8eb;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(236, 91, 31, 0.28);
  transition: transform 180ms ease, filter 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(0.96);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.interest-panel {
  width: min(100%, 520px);
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.interest-panel[hidden] {
  display: none;
}

.thanks,
.form-message,
.final-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
}

.email-form {
  margin-top: 18px;
}

.email-form[hidden],
.final-message[hidden] {
  display: none;
}

.email-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 92%, var(--text));
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, var(--text));
}

input:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-color: var(--accent);
}

.secondary {
  margin-top: 0;
  box-shadow: none;
}

.form-message {
  min-height: 1.5em;
  margin-top: 10px;
}

.final-message {
  margin-top: 16px;
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .app-icon,
  h1,
  .lede,
  .button,
  .interest-panel {
    animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  h1 {
    animation-delay: 100ms;
  }

  .lede {
    animation-delay: 180ms;
  }

  .button {
    animation-delay: 260ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 520px) {
  h1 {
    max-width: 8ch;
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
}
