/*
 * Finally Real — waitlist landing. Quiet-luxury editorial, dark ground with
 * porcelain type, typography-led. Palette echoes the app's brand tokens
 * (espresso ink, porcelain, antique/champagne gold, oxblood) inverted onto a
 * dark ground for a pre-launch teaser. No frameworks, no external fonts.
 */

:root {
  /* Grounds — warm espresso, layered */
  --bg: #14100b;
  --bg-raised: #1d1710;
  --bg-sunk: #100c08;

  /* Type — porcelain on dark */
  --ink: #f3ede1;
  --ink-soft: #cdc0a8;
  --ink-faint: #9a8e79;

  /* Accents — champagne gold reads AA on dark; oxblood as a quiet second */
  --gold: #d8b071;
  --gold-deep: #b08a4a;
  --oxblood: #8a4150;

  /* Lines / washes */
  --line: rgba(243, 237, 225, 0.1);
  --line-strong: rgba(243, 237, 225, 0.18);
  --gold-wash: rgba(216, 176, 113, 0.12);

  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua',
    Georgia, ui-serif, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --shell: 68rem;
  --pad-x: clamp(1.4rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 12vh, 8.5rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* A whisper of warmth from the top, so the ground is not a flat black. */
  background-image: radial-gradient(
    120% 70% at 50% -10%,
    rgba(216, 176, 113, 0.08) 0%,
    rgba(20, 16, 11, 0) 60%
  );
  background-repeat: no-repeat;
}

::selection {
  background: var(--gold-wash);
  color: var(--ink);
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 176, 113, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #e7c78f;
  border-color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-raised);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  z-index: 10;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Masthead ——— */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunk);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.masthead__note {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ——— Shared type ——— */
.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 5.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 1.4rem 0 0;
  max-width: 30ch;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}

/* ——— Hero ——— */
.hero {
  padding-top: clamp(3.5rem, 9vh, 6.5rem);
  padding-bottom: var(--section-y);
}
.hero__inner {
  max-width: 54rem;
}

.waitlist {
  margin-top: clamp(2.5rem, 6vh, 3.75rem);
  max-width: 34rem;
}

.form__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form__input {
  flex: 1 1 auto;
  width: 100%;
  background: var(--bg-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  padding: 0.95rem 1.05rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form__input::placeholder {
  color: var(--ink-faint);
}
.form__input:hover {
  border-color: rgba(243, 237, 225, 0.28);
}
.form__input:focus {
  border-color: var(--gold);
  outline: none;
  background: #0c0906;
}

.btn {
  flex: 0 0 auto;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a140c;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.btn:hover {
  background: #e7c78f;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.cf-turnstile {
  margin-top: 1.1rem;
  min-height: 65px;
}

.form__status {
  margin: 0.9rem 0 0;
  min-height: 1.3em;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.form__status[data-kind='error'] {
  color: #e6a08e;
}
.form__status[data-kind='pending'] {
  color: var(--ink-faint);
}

.confirm {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
}
.confirm__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.confirm__body {
  margin: 0;
  color: var(--ink-soft);
}

.reassure {
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

/* ——— Sections ——— */
.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  border-top: 1px solid var(--line);
}

.grid3 {
  margin-top: clamp(2.5rem, 6vh, 3.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.25rem);
}

.point__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.point__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
.point__body {
  margin: 0;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ——— Founding ——— */
.founding__inner {
  max-width: 44rem;
}
.founding__list {
  list-style: none;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.founding__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raised);
}
.founding__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.founding__tier {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.founding__note {
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__mark {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-soft);
}
.footer__meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer__meta a {
  color: var(--ink-soft);
  border-bottom-color: var(--line-strong);
}

/* ——— Reveal-on-load motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ——— Responsive ——— */
@media (min-width: 40rem) {
  .form__row {
    flex-direction: row;
    align-items: stretch;
  }
  .btn {
    white-space: nowrap;
  }
  .founding__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 60rem) {
  .grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}
