/* ==========================================================================
   My Records United — stealth placeholder (dark theme)
   Deliberately minimal: a single centered hero (no scroll needed to see it),
   one button, one form below the fold. Theme follows v3's dark/technical
   register; the verified badge and its caption follow v10. Centered layout
   follows v9's hero convention. No product detail, no FAQ, no nav.

   NOTE FOR GO-LIVE: this is a stealth-mode placeholder. When the team is
   ready to come out of stealth, switch the palette below from dark to
   light — see the "LIGHT MODE" block at the end of this file for the
   swap-in values. Nothing else needs to change.
   ========================================================================== */

:root {
  --bg:      #0B0E14;
  --surface: #11161F;
  --ink:     #E6EDF3;
  --ink-soft:#9BA3B4;
  --ink-faint:#666F85;
  --line:    rgba(255,255,255,0.1);
  --cyan:    #3FE0C5;
  --cyan-dark:#22B89E;

  --radius-sm: 10px;
  --radius-md: 18px;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.4em; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--cyan); }
img, svg { display: block; max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: -999px; top: 0; background: var(--cyan); color: #06110E; padding: 0.75em 1.25em; z-index: 1000; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.link-btn { background: none; border: none; padding: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---- Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; padding: 0.85em 1.8em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: #06110E; }
.btn-primary:hover { background: var(--cyan-dark); box-shadow: 0 0 0 1px rgba(63,224,197,0.35), 0 0 28px rgba(63,224,197,0.18); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 0.6em 1.2em; font-size: 0.85rem; }
.btn-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(6,17,14,0.35); border-top-color: #06110E; display: none; animation: spin 0.7s linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Hero: single centered viewport, no scroll needed --------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 2.5rem 1.5rem; overflow: hidden;
}
.grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 15%, transparent 72%);
}

.mark { position: relative; z-index: 1; margin-bottom: 1.4rem; opacity: 0.9; }

.eyebrow { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9em; }
.title { position: relative; z-index: 1; font-size: clamp(2rem, 5.2vw, 3.3rem); letter-spacing: -0.01em; }
.accent { color: var(--cyan); text-shadow: 0 0 26px rgba(63,224,197,0.4); }
.lede { position: relative; z-index: 1; font-size: clamp(0.98rem, 1.6vw, 1.1rem); max-width: 42ch; margin-inline: auto; }

.badge { position: relative; z-index: 1; margin: 1.1rem auto 1.5rem; }
.badge svg { width: min(128px, 30vw); height: auto; margin-inline: auto; }
.badge__ring { animation: ringspin 16s linear infinite; transform-origin: 80px 80px; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.badge__caption { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: 0.6em 0 0; white-space: nowrap; }

.hero .btn { position: relative; z-index: 1; }

/* ---- Reveal-on-load fade-in, staggered ------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); animation: revealIn 0.7s var(--ease) forwards; }
.eyebrow.reveal { animation-delay: 0.05s; }
.title.reveal { animation-delay: 0.15s; }
.lede.reveal { animation-delay: 0.28s; }
.badge.reveal { animation-delay: 0.4s; }
.hero > a.reveal { animation-delay: 0.52s; }
@keyframes revealIn { to { opacity: 1; transform: translateY(0); } }

/* ---- Join section: the only other screen on the page ----------------------- */
.join { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 4rem 1.5rem 2rem; scroll-margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); }
.join__inner { width: min(460px, 100%); margin-inline: auto; text-align: center; }
.join h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.join__lede { font-size: 0.95rem; margin-bottom: 1.6rem; }

#joinForm { text-align: left; }
.field-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.input { font-family: var(--font-body); font-size: 0.95rem; padding: 0.85em 1.1em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--ink); flex: 1 1 220px; min-width: 0; }
.input::placeholder { color: var(--ink-faint); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63,224,197,0.15); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 0.6em; margin-top: 1.1rem; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 0.2em; accent-color: var(--cyan); flex-shrink: 0; }

.data-note { margin-top: 0.9rem; }
.data-note summary { cursor: pointer; font-size: 0.82rem; color: var(--ink-faint); text-decoration: underline; list-style: none; }
.data-note summary::-webkit-details-marker { display: none; }
.data-note p { font-size: 0.82rem; margin: 0.6rem 0 0; }

.recaptcha-mount { margin-top: 1rem; display: flex; justify-content: center; min-height: 0; }
.recaptcha-mount:empty { margin-top: 0; }
.consent-gate { margin-top: 0.8rem; font-size: 0.82rem; color: var(--ink-faint); text-align: center; }

.form-status { margin-top: 0.9rem; font-size: 0.88rem; min-height: 1.3em; text-align: center; }
.form-status[data-state="success"] { color: var(--cyan); }
.form-status[data-state="error"] { color: #FF8B7A; }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { margin-top: 2.5rem; text-align: center; }
.footer-copy { color: var(--ink-faint); font-size: 0.8rem; margin: 0; }
.footer-links { color: var(--ink-faint); font-size: 0.8rem; margin: 0.4rem 0 0; display: inline-flex; gap: 0.5em; align-items: center; }
.footer-links a { color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-links .link-btn { color: var(--ink-faint); font-size: 0.8rem; }
.footer-links .link-btn:hover { color: var(--cyan); }

/* ---- Cookie banner ------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 1.1rem 1.3rem; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); flex: 1 1 260px; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* ---- Responsive ----------------------------------------------------------------- */
@media (max-width: 480px) {
  .field-row { flex-direction: column; align-items: stretch; }
  .input { width: 100%; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner p { flex: none; }
  .cookie-banner__actions { justify-content: center; }
}

/* ==========================================================================
   LIGHT MODE (for go-live — swap the :root block above for this one)
   --bg:      #FBFAF6;
   --surface: #F2EFE6;
   --ink:     #14181F;
   --ink-soft:#475569;
   --ink-faint:#8695A7;
   --line:    rgba(20,24,31,0.12);
   --cyan:    #1F6F5C;
   --cyan-dark:#175646;
   (btn-primary color flips too: on light mode .btn-primary should use
   color:#fff instead of #06110E, since --cyan is now a darker, deeper
   teal rather than a bright mint — check contrast after swapping.)
   ========================================================================== */
