/* Pedestal landing — dark, minimal, principle-led.
   Palette mirrors the appliance dashboard: neutral-950 bg, neutral-100 text. */

:root {
  --bg: #0a0a0a;          /* neutral-950 */
  --fg: #f5f5f5;          /* neutral-100 */
  --muted: #a3a3a3;       /* neutral-400 */
  --faint: #525252;       /* neutral-600 */
  --line: #262626;        /* neutral-800 */
  --accent: #e5e5e5;      /* neutral-200 */
  --maxw: 64rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A single faint glow so the page isn't flat. */
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60rem 40rem at 50% -10%, rgba(255,255,255,0.06), transparent 70%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 2rem) 2rem;
  flex: 1 0 auto;
}

/* Wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
}
.brand .mark { font-size: 1.35rem; line-height: 1; opacity: 0.95; }
.brand .word { }

/* Hero */
.hero { margin-top: clamp(3rem, 12vh, 8rem); max-width: 42rem; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.lede {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.375rem);
  color: var(--muted);
  max-width: 34rem;
}
.nowrap { white-space: nowrap; }

/* Principle beats */
.beats {
  margin-top: clamp(3rem, 10vh, 6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.beat h2 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.beat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

.rule {
  margin: clamp(3rem, 9vh, 5rem) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Call to action */
.cta { margin-top: 2.5rem; max-width: 34rem; }
.closer {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--fg);
}
.closer .soon { color: var(--faint); }

.notify {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.notify input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  color: var(--fg);
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.notify input::placeholder { color: var(--faint); }
.notify input:focus { border-color: #525252; }

.notify button {
  flex: 0 0 auto;
  padding: 0.8rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.notify button:hover { opacity: 0.9; }
.notify button:active { transform: translateY(1px); }
.notify button:disabled { opacity: 0.5; cursor: default; }

.status {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.925rem;
  color: var(--muted);
}
.status.ok { color: #86efac; }   /* green-300 */
.status.err { color: #fca5a5; }  /* red-300 */

/* Footer */
.foot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 5vw, 2rem);
  color: var(--faint);
  font-size: 0.85rem;
}
.foot .dot { opacity: 0.6; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .beats { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero, .beats, .cta { animation: rise 0.6s ease both; }
  .beats { animation-delay: 0.08s; }
  .cta { animation-delay: 0.16s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
