/* ============================================
   Elitemail — luxury minimalist stylesheet
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --bg-card: #161616;
  --bg-soft: #1c1c1c;
  --line: rgba(201, 169, 97, 0.18);
  --line-strong: rgba(201, 169, 97, 0.35);
  --line-faint: rgba(255, 255, 255, 0.06);

  --text: #efe9d9;
  --text-dim: #a8a094;
  --text-faint: #6a6359;
  --text-strong: #f8f3e3;

  --gold: #c9a961;
  --gold-soft: #b8956a;
  --gold-faint: rgba(201, 169, 97, 0.08);

  --danger: #c97b6b;
  --success: #8aa67a;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 2px;
  --radius-lg: 4px;

  --container: 1180px;
  --container-narrow: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text-strong); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container.narrow { max-width: var(--container-narrow); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: 4rem; line-height: 1.05; }
h2 { font-size: 2.5rem; line-height: 1.15; }
h3 { font-size: 1.5rem; line-height: 1.25; }
h4 { font-size: 1rem; line-height: 1.3; font-family: var(--sans); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

p { margin: 0 0 1rem; }

em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 2rem;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-faint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
}

.brand:hover { color: var(--text-strong); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--text-strong); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: #0a0a0a;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--text-strong);
  border-color: var(--gold);
}

.btn-muted {
  color: var(--text-faint);
  border-color: var(--line-faint);
  background: var(--bg-soft);
  cursor: not-allowed;
}
.btn-muted:hover {
  color: var(--text-faint);
  border-color: var(--line-faint);
}

.btn-link {
  color: var(--gold);
  padding: 11px 0;
  border-color: transparent;
}
.btn-link:hover { color: var(--text-strong); }

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 8rem 0 6rem;
  border-bottom: 1px solid var(--line-faint);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 70%, transparent);
  pointer-events: none;
}

.hero-title {
  font-size: 5rem;
  line-height: 1;
  margin: 0 0 2rem;
  max-width: 900px;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 580px;
  color: var(--text-dim);
  margin: 0 0 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 3rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
  max-width: 480px;
  margin: 0;
  font-style: italic;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 6rem 0;
  position: relative;
}

.section-divider {
  border-top: 1px solid var(--line-faint);
}

.section-dark {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.section-title {
  font-size: 3rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.015em;
}

.section-title.centered,
.section-lede.centered {
  text-align: center;
}

.section-lede {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

.section-lede.centered { margin: 0 auto 4rem; }

/* ============================================
   Feature grid
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}

.feature {
  background: var(--bg);
  padding: 3rem 2rem;
}

.feature-num {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.feature h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.feature p {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Tier cards
   ============================================ */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 4rem;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--line-faint);
  padding: 3rem 2rem;
  position: relative;
  transition: border-color 0.3s ease;
}

.tier-card:hover {
  border-color: var(--line);
}

.tier-featured {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
}

.tier-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
}

.tier-name {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--gold);
}

.tier-tagline {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin: 0 0 2rem;
  font-style: italic;
}

.tier-price {
  font-family: var(--serif);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-faint);
}

.price-num {
  font-size: 2rem;
  color: var(--text-strong);
}

.price-unit {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-left: 6px;
  font-family: var(--sans);
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-list li {
  padding: 8px 0 8px 24px;
  font-size: 0.9375rem;
  color: var(--text-dim);
  position: relative;
  line-height: 1.55;
}

.tier-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============================================
   Waitlist
   ============================================ */

.section-waitlist {
  padding: 6rem 0 8rem;
  border-top: 1px solid var(--line-faint);
}

.waitlist-card {
  border: 1px solid var(--line);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at top, var(--gold-faint), transparent 60%),
    var(--bg-elev);
}

.waitlist-title {
  font-size: 2.75rem;
  margin: 0 0 1rem;
}

.waitlist-lede {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-strong);
  padding: 13px 18px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease;
  font-weight: 300;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-faint);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--gold);
}

.waitlist-status {
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
  min-height: 1.2em;
  color: var(--text-dim);
}

.waitlist-status.success { color: var(--success); }
.waitlist-status.error { color: var(--danger); }

.waitlist-fine {
  font-size: 0.75rem;
  color: var(--text-faint);
  max-width: 480px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: #050505;
  border-top: 1px solid var(--line-faint);
  padding: 5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line-faint);
}

.footer-brand .brand-mark {
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand-name,
.footer-brand .brand-mark {
  display: inline-flex;
}

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-faint);
  font-size: 1rem;
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.footer-bottom p {
  margin: 0;
}

/* ============================================
   Legal pages
   ============================================ */

.legal-page {
  padding: 5rem 0 6rem;
}

.legal-page h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.8125rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-faint);
}

.legal-page h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-strong);
}

.legal-page h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--gold);
}

.legal-page p,
.legal-page li {
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-toc {
  background: var(--bg-elev);
  border: 1px solid var(--line-faint);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.legal-toc h4 {
  margin: 0 0 1rem;
  color: var(--gold);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-toc li {
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.legal-toc a { color: var(--text-dim); }
.legal-toc a:hover { color: var(--gold); }

/* ============================================
   Login page
   ============================================ */

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--line-faint);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
}

.auth-card h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
  text-align: center;
}

.auth-card .eyebrow {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .auth-lede {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin: 0 0 2.5rem;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.auth-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-strong);
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease;
  font-weight: 300;
}

.auth-field input:focus {
  border-color: var(--gold);
}

.auth-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-actions .btn {
  width: 100%;
  padding: 13px 22px;
}

.auth-footer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-faint);
}

.auth-footer a { color: var(--gold); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-title { font-size: 3rem; }
  .hero { padding: 5rem 0 4rem; }
  .section { padding: 4rem 0; }
  .section-title { font-size: 2.25rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .waitlist-card { padding: 3rem 1.5rem; }
  .waitlist-form { flex-direction: column; }
  .container { padding: 0 20px; }
}

@media (max-width: 540px) {
  h1 { font-size: 2.5rem; }
  .hero-title { font-size: 2.5rem; }
  .header-actions .btn-muted { display: none; }
  .auth-card { padding: 2rem 1.5rem; }
  .legal-page h1 { font-size: 2.25rem; }
}
