:root {
  --bg: #f4f1ea;
  --ink: #16171a;
  --muted: rgb(22 23 26 / 0.66);
  --accent: #ff630a;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  color: var(--ink);
  font-family: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(70% 55% at 50% 28%, rgb(255 255 255 / 0.85), transparent 72%), var(--bg);
}

.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain { pointer-events: none; opacity: 0.05; mix-blend-mode: multiply; }
.accent-fill { fill: var(--accent); }
.accent-stroke { stroke: var(--accent); }

.frame {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3.6vw, 44px) clamp(16px, 4vw, 56px);
  pointer-events: none;
}

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }

.mono {
  font: 12px 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--muted); }
#count { color: var(--muted); }
#count.on { color: var(--ink); }

.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  pointer-events: auto;
}

.lead { display: flex; flex-direction: column; gap: 22px; flex: 1 1 340px; max-width: 470px; }

h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}

form { display: flex; flex-direction: column; gap: 10px; }

.field {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgb(22 23 26 / 0.14);
  background-color: rgb(255 255 255 / 0.7);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field:focus-within { border-color: rgb(22 23 26 / 0.36); box-shadow: 0 0 0 4px rgb(22 23 26 / 0.05); }

.grow { flex: 1 1 auto; min-width: 0; display: flex; }

input[type=email] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 16px 'Schibsted Grotesk', system-ui, sans-serif;
  letter-spacing: -0.01em;
}
input[type=email]::placeholder { color: rgb(22 23 26 / 0.5); }
input[type=email]:focus { outline: none; }

.btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background-color: var(--ink);
  color: #f7f5f0;
  font: 500 15px 'Schibsted Grotesk', system-ui, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s, opacity .16s;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: default; }
@media (hover: hover) { .btn:hover { background-color: #2a2c31; } }

.status { margin: 0; min-height: 18px; padding-left: 2px; font-size: 13px; color: #b42318; }
.status.ok { color: var(--ink); }

.sr-only, .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp { left: -9999px; }

@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.in { animation: in .6s var(--ease) both; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) { .in { animation: none; } }
