/* Scree Waitlist — Final (Earthy & Warm)
   Recreated from the Claude Design handoff: "Scree Waitlist - Final.dc.html" */

:root {
  color-scheme: light;
  --cream: #f2ece0;
  --forest: #3b5c26;
  --forest-dark: #2e4a1d;
  --ink: #1a2b17;
  --moss: #4c6240;
  --sage: #8a9e7b;
  --amber: #b87428;
  --confirm-ink: #2c4b1b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

@keyframes scanMove {
  0%,
  100% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(6px);
  }
}

.page {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Subtle topo background */
.topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      ellipse at 55% 70%,
      transparent 0,
      transparent 88px,
      rgba(59, 92, 38, 0.038) 89px,
      transparent 90px
    ),
    repeating-radial-gradient(
      ellipse at 22% 38%,
      transparent 0,
      transparent 124px,
      rgba(59, 92, 38, 0.026) 125px,
      transparent 126px
    ),
    repeating-radial-gradient(
      ellipse at 80% 20%,
      transparent 0,
      transparent 64px,
      rgba(59, 92, 38, 0.022) 65px,
      transparent 66px
    );
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 52px;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.scan-line {
  animation: scanMove 3.2s ease-in-out infinite;
}

.brand-word {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.brand-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--forest);
  color: var(--cream);
  border-radius: 4px;
  padding: 2px 8px;
  line-height: 1.6;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px 108px;
  position: relative;
}

.hero-inner {
  max-width: 580px;
  width: 100%;
}

.headline {
  font-size: clamp(42px, 7.6vw, 74px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 26px;
  line-height: 1.01;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.subhead {
  font-size: 18px;
  color: var(--moss);
  margin: 0 0 40px;
  line-height: 1.65;
  font-weight: 400;
  max-width: 460px;
}

/* Feature chips */
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 92, 38, 0.09);
  border-radius: 10px;
  padding: 12px 18px;
}

.chip-stat {
  font-size: 22px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.03em;
  line-height: 1;
}

.chip-label {
  font-size: 13px;
  color: var(--moss);
  font-weight: 500;
  line-height: 1.4;
}

/* Form */
.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.signup[hidden] {
  display: none;
}

.field {
  background: rgba(255, 255, 255, 0.76);
  border: 1.5px solid rgba(26, 43, 23, 0.13);
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field::placeholder {
  opacity: 0.4;
}

.field:focus {
  border-color: var(--forest);
  background: #fff;
  outline: none;
}

.submit {
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.submit:hover:not(:disabled) {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.submit:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Success state */
.confirmation {
  max-width: 440px;
  background: rgba(59, 92, 38, 0.1);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--confirm-ink);
  font-size: 16px;
  font-weight: 500;
}

.confirmation[hidden] {
  display: none;
}

.check {
  font-size: 22px;
  line-height: 1;
}

/* Error message */
.form-error {
  max-width: 440px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #9a3b2a;
}

.form-error[hidden] {
  display: none;
}

.microcopy {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--sage);
}

/* Responsive */
@media (max-width: 640px) {
  .nav {
    padding: 22px 24px;
  }

  .hero {
    padding: 32px 24px 72px;
    align-items: flex-start;
  }

  .headline {
    margin-bottom: 20px;
  }

  .subhead {
    margin-bottom: 32px;
  }

  .chips {
    margin-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-line {
    animation: none;
  }

  .submit:hover:not(:disabled) {
    transform: none;
  }
}
