/* Supreme Matchmaking — marketing site styles
   Brand tokens from CLAUDE.md, no build step. */

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

:root {
  --stage:         #181210;
  --stage-alt:     #20180F;
  --panel:         #231A12;
  --gold:          #A9791C;
  --gold-deep:     #7E5A12;
  --gold-bright:   #D9B45C;
  --gold-pale:     #EAD49A;
  --gold-soft:     #F6EBD2;
  --gold-ink:      #5A4214;
  --screen:        #FFFFFF;
  --screen-2:      #F6F1E8;
  --screen-3:      #EEE8DC;
  --ink:           #1A1611;
  --text-2:        #5C5447;
  --muted:         #938A7B;
  --faint:         #B7AE9E;
  --border:        #EBE4D6;
  --border-mid:    #DCD3C2;
  --ink-light:     #F3EAD8;
  --muted-light:   #B7A487;
  --faint-light:   #8B7A60;
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --radius:        16px;
  --radius-sm:     10px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--screen);
  color: var(--ink);
  line-height: 1.6;
}

body.body--centered {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--stage);
  padding: 24px 16px;
}

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Wordmark ── */
.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 18, 16, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(169, 121, 28, 0.2);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--gold-deep); }

/* ── Hero ── */
.hero {
  background: var(--stage);
  padding: 96px 24px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--ink-light);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-heading em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-body {
  font-size: 1.0625rem;
  color: var(--muted-light);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.hero-cta:hover { background: var(--gold-deep); }

/* ── Sections ── */
.section {
  padding: 80px 24px;
  background: var(--screen);
}

.section--dark {
  background: var(--stage-alt);
}

.section-inner {
  max-width: 920px;
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 560px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 48px;
  text-align: center;
}

.section-heading--light {
  color: var(--ink-light);
}

/* ── Steps ── */
.steps {
  list-style: none;
  display: grid;
  gap: 40px;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

.step {
  display: flex;
  gap: 20px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-pale);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.step-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-body {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Values ── */
.values {
  list-style: none;
  display: grid;
  gap: 32px;
}

@media (min-width: 640px) {
  .values { grid-template-columns: 1fr 1fr; }
}

.value-item {
  display: flex;
  gap: 16px;
  background: rgba(169, 121, 28, 0.08);
  border: 1px solid rgba(169, 121, 28, 0.2);
  border-radius: var(--radius);
  padding: 24px;
}

.value-icon {
  font-size: 0.75rem;
  color: var(--gold-bright);
  flex-shrink: 0;
  margin-top: 5px;
}

.value-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-light);
  margin-bottom: 8px;
}

.value-body {
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.6;
}

/* ── Early access form ── */
.form-preamble {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.65;
}

.ea-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.ea-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ea-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.ea-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--screen);
  border: 2px solid var(--border-mid);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
  appearance: none;
}

.ea-input:focus {
  outline: none;
  border-color: var(--gold);
}

.ea-input[aria-invalid="true"] {
  border-color: #A5514A;
}

.ea-hint {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ea-error {
  font-size: 0.875rem;
  color: #A5514A;
  font-weight: 500;
}

.ea-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
}

.ea-status--success {
  background: rgba(75, 122, 90, 0.1);
  border: 1px solid rgba(75, 122, 90, 0.3);
  color: #3a6048;
}

.ea-status--duplicate {
  background: rgba(185, 142, 60, 0.1);
  border: 1px solid rgba(185, 142, 60, 0.3);
  color: #7a5e1a;
}

.ea-status--error {
  background: rgba(165, 81, 74, 0.08);
  border: 1px solid rgba(165, 81, 74, 0.25);
  color: #7a3430;
}

.ea-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.ea-submit:hover:not(:disabled) { background: var(--gold-deep); }
.ea-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.ea-submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ea-small {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ── Footer ── */
.footer {
  background: var(--stage);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-light);
  text-decoration: none;
}
.footer-link:hover { color: var(--ink-light); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--faint-light);
}

/* ── Outcome pages (confirmed.html, unsubscribed.html) ── */
.outcome-page {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.outcome-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.outcome-wordmark {
  margin-bottom: 4px;
}

.outcome-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.outcome-icon--success {
  background: rgba(75, 122, 90, 0.15);
  color: #4B7A5A;
  border: 2px solid rgba(75, 122, 90, 0.4);
}

.outcome-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink-light);
  line-height: 1.25;
}

.outcome-body {
  font-size: 0.9375rem;
  color: var(--muted-light);
  line-height: 1.65;
  max-width: 380px;
}

.outcome-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.outcome-cta:hover { background: var(--gold-deep); }

.outcome-cta--destructive {
  background: #A5514A;
}
.outcome-cta--destructive:hover { background: #8a3e38; }

.outcome-link {
  color: var(--gold-bright);
  text-decoration: underline;
}

.outcome-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(169, 121, 28, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Terms / Privacy content pages ── */
.terms-header {
  background: var(--stage);
  padding: 64px 24px 52px;
  text-align: center;
}

.terms-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.terms-meta {
  font-size: 0.875rem;
  color: var(--muted-light);
}

.terms-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 88px;
}

.terms-toc {
  background: var(--screen-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 56px;
}

.terms-toc-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.terms-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-toc-link {
  font-size: 0.9375rem;
  color: var(--gold-deep);
  text-decoration: none;
}
.terms-toc-link:hover { color: var(--gold); text-decoration: underline; }

.terms-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.terms-section {
  scroll-margin-top: 80px;
}

.terms-section-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.terms-body p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 14px;
}

.terms-body p:last-child { margin-bottom: 0; }

.terms-body ul,
.terms-body ol {
  padding-left: 1.5em;
  margin-bottom: 14px;
}

.terms-body li {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 6px;
}

.terms-body li:last-child { margin-bottom: 0; }

.terms-body a {
  color: var(--gold-deep);
  text-decoration: underline;
}
.terms-body a:hover { color: var(--gold); }

.terms-body strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 480px) {
  .terms-toc { padding: 20px; }
  .terms-layout { padding-left: 16px; padding-right: 16px; }
}
