/* ============================================================
   RETAILPRIME — Coming soon (Cream Grid)
   Single-screen, non-scrollable.
   ============================================================ */
:root {
  --primary: #161A1E;
  --secondary: #4A4947;
  --neutral: #DCD2B8;
  --surface: #FFFFFF;
  --card: #F7F3E9;
  --surface-muted: #F5F4ED;
  --border: #EBEBEB;
  --accent: #FDE68A;
  --on-surface-muted: #4B5563;
  --on-surface-subtle: #6B7280;
  --on-primary: #FFFFFF;
  --primary-hover: #1F2937;
  --error: #DC2626;
  --vision-1: #0C4A6E;

  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 32px;
  --s-xl: 48px;
  --r-sm: 6px;
  --r-2xl: 18px;
  --r-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Geist", system-ui, sans-serif;
  color: var(--primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--primary); }

/* ============================================================
   Layout — centered, fills the viewport, never scrolls
   ============================================================ */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-lg);
  padding: var(--s-lg) var(--s-md);
}

.card {
  width: 100%;
  max-width: clamp(340px, 45vw, 720px);
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--r-2xl);
  padding: clamp(var(--s-lg), 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(var(--s-md), 2.4vw, 40px);
}

/* ============================================================
   Brand
   ============================================================ */
.brand { display: inline-flex; align-items: center; gap: var(--s-sm); }
.brand__name {
  font-family: "Geist Mono", monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand__name span { color: var(--on-surface-subtle); }

/* ============================================================
   Announcement pill
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  background: var(--accent);
  color: var(--primary);
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  border-radius: var(--r-sm);
  padding: 6px 12px;
}
.pill__dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--primary); }

/* ============================================================
   Copy
   ============================================================ */
.title {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.title em {
  font-style: normal;
  color: var(--primary);
}
.lede {
  font-size: clamp(15px, 1.2vw, 20px);
  line-height: 1.6;
  color: var(--on-surface-muted);
  max-width: 46ch;
}

/* ============================================================
   Background illustrations (cream area, behind the card)
   ============================================================ */
.bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-art__item {
  position: absolute;
  width: clamp(220px, 16vw, 420px);
  height: auto;
}
.bg-art__item--tl { top: 6vh; left: 4vw; }
.bg-art__item--mr { top: 50%; right: 4vw; transform: translateY(-50%); }
.bg-art__item--bl { bottom: 6vh; left: 4vw; }

.page > .card { position: relative; z-index: 1; }
.page > .foot { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .bg-art { display: none; }
}

/* ============================================================
   Waitlist form
   ============================================================ */
.waitlist {
  width: 100%;
  display: flex;
  gap: var(--s-sm);
}
.waitlist__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 var(--s-md);
  font-family: "Geist", sans-serif;
  font-size: 15px;
  color: var(--primary);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.waitlist__input::placeholder { color: var(--on-surface-subtle); }
.waitlist__input:focus-visible { outline: none; border-color: var(--primary); background: var(--surface); }
.waitlist__input.is-invalid { border-color: var(--error); }

.btn-primary {
  height: 40px;
  padding: 0 22px;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--r-sm);
  cursor: pointer;
  white-space: nowrap;
  align-self: center;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--primary-hover); }

.note {
  font-size: 12px;
  color: var(--on-surface-subtle);
  min-height: 16px;
}
.note.is-error { color: var(--error); }
.note.is-success { color: var(--vision-1); }

/* ============================================================
   Footer line
   ============================================================ */
.foot {
  display: flex;
  gap: var(--s-md);
  align-items: center;
  font-size: 12px;
  color: var(--secondary);
}
.foot span:first-child { padding-right: var(--s-md); border-right: 1px solid var(--border); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 560px) {
  .waitlist { flex-direction: column; align-items: stretch; }
  .waitlist__input { flex: none; width: 100%; font-size: 16px; }
  .btn-primary { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
