/*
  HiFi temporary site — placeholder styling.
  Intentionally minimal and brand-neutral. Replace with real brand
  design (colors, type, logo) when assets are ready.
*/

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #555555;
  --accent: #000000;
  --accent-fg: #ffffff;
  --border: #cccccc;
  --radius: 0;
  --maxw: 640px;
  --font-mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- HiFi Hotline — centered at the top, always present ---------- */
.hotline {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  gap: 0.1rem;
  z-index: 30;
}
.hotline-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.hotline-vanity {
  font-size: 1.3rem;
  font-weight: 600;
}
.hotline-number {
  font-size: 0.9rem;
  color: var(--muted);
}
.hotline:hover .hotline-vanity,
.hotline:focus-visible .hotline-vanity { text-decoration: underline; }

/* ---------- Layout: centered block, left-justified text ---------- */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 3rem; /* top clearance for the fixed hotline */
}
.content {
  width: 100%;
  max-width: var(--maxw);
  text-align: left;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
h2 { font-size: 1.4rem; margin: 0 0 1rem; }

.body { font-size: 1.05rem; }
.body p { margin: 0 0 1rem; }
.view[hidden] { display: none; }

.feature { margin-bottom: 2rem; }
.feature:last-child { margin-bottom: 0; }
.feature h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.feature p { margin: 0 0 0.5rem; }
.feature ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.feature li { margin-bottom: 0.25rem; }
.feature-note { color: var(--muted); font-style: italic; }

.steps {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.05rem;
  margin: 0;
}
.steps li { padding-left: 0.25rem; }

/* ---------- Buttons (square corners) ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* White buttons (What is HiFi / How HiFi works) */
.btn-outline {
  background: #ffffff;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { opacity: 1; border-color: var(--accent); }
.btn-outline[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* ---------- Waitlist modal ---------- */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal-card {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 26rem;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Form ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
label {
  font-size: 0.85rem;
  color: var(--muted);
}
input[type="text"],
input[type="email"] {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-mono);
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Honeypot — visually hidden but present in the DOM for bots to fill */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.status.success { color: #16a34a; }
.status.error { color: #dc2626; }

/* Give the hotline room on small screens so it never overlaps content */
@media (max-width: 600px) {
  .page { padding-top: 8rem; }
}
