/* Daremposh — Coming Soon / Newsletter splash. Self-contained. */
:root {
  --ink: #0a0a0a;
  --bg: #0a0a0a;
  --paper: #f4f4f3;
  --muted: #b3b3b3;
  --faint: #8a8a8a;
  --line: rgba(255,255,255,0.22);
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--paper); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; min-height: 100svh; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.stage { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* Video background */
.bg { position: fixed; inset: 0; z-index: 0; background: var(--ink); overflow: hidden; }
.bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.6) 100%);
}

/* Content */
.content {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  gap: clamp(1.4rem, 3vw, 2rem);
}
.logo { width: clamp(280px, 66vw, 560px); filter: invert(1); }
.eyebrow {
  font-size: clamp(.68rem, .6rem + .3vw, .78rem); letter-spacing: .28em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.headline {
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem); text-wrap: balance; max-width: 16ch;
}
.headline .thin { font-weight: 300; }
.sub { color: var(--muted); max-width: 42ch; line-height: 1.55; font-size: clamp(.95rem, .9rem + .3vw, 1.1rem); }

/* Form */
.signup { width: 100%; max-width: 460px; margin-top: .4rem; }
.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 220px; min-width: 0; padding: 1.05rem 1.2rem; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); color: #fff; font-size: .95rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .3s ease, background .3s ease;
}
.field-row input::placeholder { color: rgba(255,255,255,0.55); }
.field-row input:focus-visible { outline: none; border-color: #fff; background: rgba(255,255,255,0.1); }
.btn {
  padding: 1.05rem 1.8rem; background: #fff; color: var(--ink);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  border: 1px solid #fff; transition: background .35s var(--ease), color .35s var(--ease), opacity .3s ease; white-space: nowrap;
}
.btn:hover { background: transparent; color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }
/* Email / Phone toggle */
.toggle { display: flex; width: max-content; margin: 0 auto 1rem; border: 1px solid var(--line); }
.toggle button {
  padding: .62rem 1.5rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease);
}
.toggle button[aria-selected="true"] { background: #fff; color: var(--ink); }
[data-panel][hidden] { display: none; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* SA phone field with fixed +27 prefix */
.phone-field {
  flex: 1 1 220px; min-width: 0; display: flex; align-items: stretch;
  border: 1px solid var(--line); background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .3s ease, background .3s ease;
}
.phone-field:focus-within { border-color: #fff; background: rgba(255,255,255,0.1); }
.phone-prefix { display: flex; align-items: center; padding: 0 .7rem 0 1.1rem; color: rgba(255,255,255,0.85); font-size: .95rem; border-right: 1px solid var(--line); }
.phone-field input { flex: 1; min-width: 0; border: none; background: transparent; padding: 1.05rem .9rem; color: #fff; font-size: .95rem; letter-spacing: .02em; }
.phone-field input::placeholder { color: rgba(255,255,255,0.5); }
.phone-field input:focus-visible { outline: none; }

.consent { margin-top: .9rem; font-size: .72rem; color: var(--faint); letter-spacing: .01em; line-height: 1.5; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.status { margin-top: .9rem; min-height: 1.3em; font-size: .9rem; }
.status[data-state="success"] { color: #fff; font-weight: 500; }
.status[data-state="error"] { color: #ff8f8f; }

/* Success swap */
.signup.done .toggle, .signup.done .field-row, .signup.done .consent { display: none; }
.done-msg { display: none; }
.signup.done .done-msg { display: block; }
.done-msg h2 { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1.3rem, 1rem + 1.6vw, 1.9rem); margin-bottom: .5rem; }
.done-msg p { color: var(--muted); font-size: .98rem; }
.again { margin-top: 1.1rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color .3s var(--ease); }
.again:hover { color: #fff; }

/* Footer */
.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 5vw, 3rem);
  font-size: .72rem; letter-spacing: .04em; color: var(--faint);
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .social { display: flex; gap: 1.2rem; }
.foot .meta { display: flex; gap: 1.2rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .bg video { display: none; } }
@media (max-width: 520px) {
  .field-row input, .phone-field { flex-basis: 100%; }
  .btn { width: 100%; }
  .foot { justify-content: center; text-align: center; }
}

/* Lightweight legal page (privacy) reuse */
.legal { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: clamp(3rem,8vw,6rem) clamp(1.25rem,5vw,2rem); }
.legal h1 { font-size: clamp(1.8rem,1.2rem+2.4vw,2.8rem); letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .7rem; color: #fff; }
.legal p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-bottom: 2rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
