/* ---------------------------------------------------------------------------
   Sacral Compass — marketing site
   Every value here mirrors src/constants/brand.ts. If a colour is not in that
   file it does not belong on this page. Dark only, deliberately: the product is
   dark, and a light marketing skin would be a promise the app does not keep.
   --------------------------------------------------------------------------- */

:root {
  --bg:            #080706;
  --card:          #0E0C0A;
  --cream:         #F0E6D2;
  --cream-mid:     rgba(240, 230, 210, 0.65);
  --cream-dim:     rgba(240, 230, 210, 0.35);
  --cream-faint:   rgba(240, 230, 210, 0.12);
  --wash:          rgba(240, 230, 210, 0.06);
  --border:        rgba(248, 235, 200, 0.06);
  --border-accent: rgba(240, 230, 210, 0.18);
  --no:            #C45E6B;
  --yes:           #5BB898;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Space Grotesk', system-ui, sans-serif;
  --mono:  'Space Mono', ui-monospace, monospace;

  /* RADIUS in brand.ts is 4 at every step. There are no pills here. */
  --radius: 4px;

  --gutter: clamp(20px, 6vw, 64px);
  --section: clamp(72px, 12vh, 140px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The neutrino ocean: always present, never demanding attention. */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- shared -------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 20px;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--cream);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(44px, 9vw, 88px);
  line-height: 1.02;
  margin-bottom: 32px;
}

h2 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  margin-bottom: 28px;
  max-width: 18ch;
}

h3 {
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 12px;
}

p { margin: 0 0 20px; }

/* --- masthead ------------------------------------------------------------ */

.masthead {
  padding: 40px 0;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(40px, 10vh, 110px) 0 var(--section);
  max-width: 40rem;
}

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--cream-mid);
  max-width: 46ch;
}

.jump {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  padding-bottom: 6px;
  transition: border-color 240ms ease, color 240ms ease;
}

.jump:hover { border-color: var(--cream); }

/* --- depth --------------------------------------------------------------- */

.depth { padding-bottom: var(--section); }

.figures {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 56px;
}

figure { margin: 0; }

.frame {
  position: relative;
  aspect-ratio: 390 / 760;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Shown only when the screenshot has not been dropped in yet. Deliberately
   plain: a missing asset should look missing, not like a design choice. */
.pending {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cream-faint);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius);
}

.frame.missing img { display: none; }
.frame.missing .pending { display: flex; }

figcaption p {
  color: var(--cream-mid);
  font-size: 15.5px;
  margin: 0;
}

/* --- join ---------------------------------------------------------------- */

.join {
  padding-bottom: var(--section);
  border-top: 1px solid var(--border);
  padding-top: var(--section);
}

.offer {
  font-size: 18px;
  color: var(--cream-mid);
  max-width: 52ch;
}

.expectations { color: var(--cream-dim); font-size: 16px; }

form {
  margin-top: 44px;
  max-width: 26rem;
}

.field { margin-bottom: 28px; }

fieldset.field {
  border: 0;
  padding: 0;
  margin-inline: 0;
}

label, legend {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 12px;
  padding: 0;
}

input[type="email"] {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 240ms ease;
}

input[type="email"]::placeholder { color: var(--cream-faint); }

input[type="email"]:focus-visible,
button:focus-visible,
.choice:focus-within {
  outline: none;
  border-color: var(--cream);
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream-mid);
  transition: border-color 240ms ease, color 240ms ease;
}

.choice:hover { border-color: var(--border-accent); }

.choice:has(input:checked) {
  border-color: var(--border-accent);
  color: var(--cream);
  background: var(--wash);
}

.choice input {
  appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  flex: none;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  background: transparent;
}

.choice input:checked { background: var(--cream); border-color: var(--cream); }

button {
  width: 100%;
  background: var(--cream);
  color: var(--bg);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 15px 24px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 240ms ease;
}

button:hover { opacity: 0.88; }

button[disabled] { opacity: 0.4; cursor: default; }

.status {
  margin: 16px 0 0;
  font-size: 14.5px;
  min-height: 1.6em;
  color: var(--cream-mid);
}

.status.error { color: var(--no); }
.status.done  { color: var(--yes); }

.fineprint {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream-dim);
}

/* --- footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
}

footer nav { display: flex; gap: 24px; margin-left: auto; }

footer a, .copyright {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--cream-dim);
  text-decoration: none;
}

footer a:hover { color: var(--cream); }

@media (max-width: 640px) {
  footer nav { margin-left: 0; }
}

/* Nothing on this page needs to move for it to make sense. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
