:root {
  --paper: #F4F1E8;
  --ink: #23271F;
  --accent: #3A6B4E;
  --accent-2: #55A06F;
  --danger: #9B4322;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', -apple-system, sans-serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); color: var(--paper); background: #14160f;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; }
::selection { background: rgba(244,241,232,0.3); }

/* ===== Fullscreen video stage + lo-fi homemade treatment ===== */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #14160f; }
.stage-video, .stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-video { z-index: 1; }
.stage-fallback {
  z-index: 0;
  background:
    radial-gradient(70% 55% at 30% 24%, #f2c982, transparent 60%),
    radial-gradient(60% 52% at 78% 82%, #bd8f57, transparent 62%),
    linear-gradient(158deg, #caa15f 0%, #97824c 46%, #46543a 100%);
  filter: saturate(0.85) contrast(0.95);
  transform: scale(1.06);
  animation: haze 34s ease-in-out infinite alternate;
}
@keyframes haze {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.13) translate(-1.6%, -1.1%); }
}
.stage-grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.17; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(3) infinite;
}
.stage-scan {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,0.6) 2px 3px);
}
.stage-vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 0 220px 46px rgba(18,14,7,0.72); }
.stage-scrim {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    radial-gradient(78% 58% at 50% 60%, rgba(10,8,4,0.20), transparent 62%),
    linear-gradient(to bottom, rgba(10,8,4,0.40), transparent 26%, transparent 58%, rgba(10,8,4,0.46));
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-4%,3%); }
  50% { transform: translate(3%,-2%); } 75% { transform: translate(-2%,-3%); } 100% { transform: translate(2%,2%); }
}

/* ===== Nav over the stage ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.brand .logo { width: 26px; height: 26px; }
.brand .nm { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.nav-tag {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244,241,232,0.85); border: 1px solid rgba(244,241,232,0.4); border-radius: 999px; padding: 6px 13px;
  backdrop-filter: blur(4px);
}

/* ===== Cover: minimal centered signup ===== */
.cover { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 96px 28px; }
.cover-in { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.cover-line {
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; max-width: 15ch;
  color: rgba(244,241,232,0.94); text-shadow: 0 2px 34px rgba(10,8,4,0.6);
}

/* ===== Buttons + form (legible over video) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  border-radius: 999px; padding: 14px 24px; transition: background .2s, transform .2s; white-space: nowrap;
}
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: #fff; transform: translateY(-1px); }
.btn-solid .ar { transition: transform .2s; }
.btn-solid:hover .ar { transform: translateX(3px); }

.wl { display: flex; flex-direction: column; align-items: center; }
.wl-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.wl-input {
  font-family: var(--sans); font-size: 15px; color: var(--paper);
  background: rgba(18,16,9,0.34); backdrop-filter: blur(6px);
  border: 1px solid rgba(244,241,232,0.42); border-radius: 999px;
  padding: 14px 22px; min-width: 260px; flex: 1 1 260px; max-width: 320px;
  transition: border-color .2s, box-shadow .2s;
}
.wl-input::placeholder { color: rgba(244,241,232,0.62); }
.wl-input:focus { outline: none; border-color: var(--paper); box-shadow: 0 0 0 3px rgba(244,241,232,0.18); }
.wl-form .btn { flex: 0 0 auto; }
.wl-ok {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  animation: okIn 1.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.wl-ok-mark {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(183,224,190,0.85); box-shadow: 0 0 28px rgba(183,224,190,0.35);
  animation: okGlow 4s ease-in-out infinite;
}
.wl-ok-mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px; border-radius: 50%; background: #B7E0BE;
}
.wl-ok-line {
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3.6vw, 34px);
  color: rgba(244,241,232,0.95); text-shadow: 0 1px 26px rgba(10,8,4,0.55);
}
.wl-ok-sub {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: lowercase;
  color: rgba(244,241,232,0.72); text-shadow: 0 1px 12px rgba(10,8,4,0.6);
}
@keyframes okIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes okGlow {
  0%, 100% { box-shadow: 0 0 28px rgba(183,224,190,0.35); }
  50% { box-shadow: 0 0 44px rgba(183,224,190,0.55); }
}
.wl-err { color: #ffd6c4; font-size: 13.5px; margin-top: 12px; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.wl-note { color: rgba(244,241,232,0.78); font-size: 13px; margin-top: 14px; text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 460px) {
  .wl-form { flex-direction: column; align-items: stretch; }
  .wl-input { flex: none; width: 100%; min-width: 0; max-width: none; }
  .wl-form .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-fallback, .stage-grain, .wl-ok, .wl-ok-mark { animation: none; }
}
