/* ═══════════════════════════════════════════════════════════════
   MonoAH — Editorial refined landing
   Aesthetic: serif display, generous whitespace, warm accent,
   subtle grain, type-led layout. Anti-AI-slop.
   ═══════════════════════════════════════════════════════════════ */

/* ───── Tokens ──────────────────────────────────────────────── */
:root {
  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Inter Tight', system-ui, sans-serif;

  /* Color — paper-like neutrals + warm accent */
  --bg:           #f6f1e8;     /* warm off-white, paper */
  --bg-elev:     #ffffff;
  --ink:          #1a1612;     /* near-black with warmth */
  --ink-mut:      #6e655a;
  --ink-soft:     #a99e8e;
  --rule:         #d9cfbe;
  --accent:       #c44528;     /* terracotta — energy */
  --accent-deep:  #8f2c14;
  --highlight:    #f4d75e;     /* warm yellow accent */

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 144px;

  /* Layout */
  --maxw:         1200px;
  --gutter:       max(24px, 4vw);

  /* Motion */
  --ease:         cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--accent); color: var(--bg); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'ss01', 'cv11', 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Subtle paper grain via repeating SVG */
  background-image:
    radial-gradient(circle at 25% 10%, rgba(196,69,40,.04) 0%, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(244,215,94,.05) 0%, transparent 40%);
}

a { color: var(--ink); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ───── Topbar ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-4) var(--gutter);
  background: rgba(246,241,232,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.brand-mark { display: inline-flex; color: var(--ink); }

.topnav {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.topnav a {
  color: var(--ink-mut);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s var(--ease);
}
.topnav a:hover { color: var(--ink); }
.topnav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.topnav a:hover::after { transform: scaleX(1); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-mut);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.locale-switch:hover { border-color: var(--ink-mut); color: var(--ink); }
.locale-switch .locale-on  { color: var(--ink); font-weight: 600; }
.locale-switch .locale-off { color: var(--ink-soft); margin-left: 4px; }
.locale-switch .locale-on::before  { content: '· '; color: var(--ink-soft); margin-right: 0; }

.cta-mini {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cta-mini:hover { background: var(--ink); color: var(--bg); }

/* ───── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--s-7) var(--gutter) var(--s-7);
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  margin-right: 12px;
}

.display {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
  margin-bottom: var(--s-5);
}
.display .line { display: block; }
.display .line-1 { color: var(--ink); }
.display .line-2 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--accent);
}
.display .dot { color: var(--accent); }
.display .line-3 {
  color: var(--ink-mut);
  font-style: italic;
  font-weight: 300;
}

.lede {
  position: relative;
  z-index: 1;
  max-width: 580px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-mut);
  margin-bottom: var(--s-5);
}

.hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.hero-meta {
  font-size: 13px;
  color: var(--ink-mut);
  letter-spacing: 0.02em;
}

.spec-strip {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spec-strip li { display: flex; gap: 6px; }
.spec-strip .spec-label { font-weight: 500; }
.spec-strip .spec-val   { color: var(--ink-mut); font-weight: 600; }

/* ───── Sections common ─────────────────────────────────────── */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: var(--s-6);
}
.section-num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144;
  max-width: 700px;
  margin-bottom: var(--s-3);
}
.section-sub {
  font-size: 17px;
  color: var(--ink-mut);
  max-width: 560px;
}

/* ───── How it works ────────────────────────────────────────── */
.how {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--rule);
}

.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.step {
  padding: var(--s-5) var(--s-5) var(--s-5) 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: none; }
.step:not(:first-child) { padding-left: var(--s-5); }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: var(--s-4);
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  font-variation-settings: 'opsz' 60;
}

.step p {
  font-size: 15.5px;
  color: var(--ink-mut);
  line-height: 1.55;
}

/* ───── Pricing ─────────────────────────────────────────────── */
.pricing {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--rule);
}

.plans {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.plan {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.plan:hover {
  transform: translateY(-2px);
  border-color: var(--ink-mut);
}

.plan-featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.plan-featured:hover { border-color: var(--accent); }
.plan-featured .price-original,
.plan-featured .price-note,
.plan-featured .plan-features li { color: var(--bg); }
.plan-featured .plan-features li::before { background: var(--accent); }

.plan-badge {
  position: absolute;
  top: -10px; right: var(--s-4);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.price-original {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.price .amount {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.03em;
}
.price .per { font-size: 14px; color: var(--ink-mut); }
.price-note {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mut);
  margin-bottom: var(--s-4);
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 14.5px;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.plan-featured .plan-features { border-top-color: rgba(255,255,255,0.15); }
.plan-features li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-mut);
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--ink-mut);
}

/* ───── Story ───────────────────────────────────────────────── */
.story {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--rule);
}
.story-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: 'opsz' 60;
}
.story-body p + p { margin-top: var(--s-4); }
.story-body strong {
  font-weight: 500;
  color: var(--accent);
}

/* ───── Join / Waitlist ─────────────────────────────────────── */
.join {
  padding: var(--s-7) var(--gutter);
  display: flex;
  justify-content: center;
}

.join-card {
  width: 100%;
  max-width: 560px;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-6) var(--s-5);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.join-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(196,69,40,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.join-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  position: relative;
}
.join-sub {
  color: rgba(246,241,232,0.7);
  font-size: 15px;
  margin-bottom: var(--s-5);
  position: relative;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(246,241,232,0.6);
  font-weight: 500;
}
.field input,
.field select {
  background: rgba(246,241,232,0.06);
  border: 1px solid rgba(246,241,232,0.18);
  color: var(--bg);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 4px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder { color: rgba(246,241,232,0.35); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(246,241,232,0.1);
}

#hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.btn-submit {
  margin-top: var(--s-3);
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  padding-top: 18px; padding-bottom: 18px;
}
.btn-submit:hover { background: var(--accent); color: var(--bg); }
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg);
  color: var(--ink);
}

.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading .btn-label { opacity: 0.5; }

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

.form-note {
  font-size: 12px;
  color: rgba(246,241,232,0.5);
  text-align: center;
  margin-top: var(--s-2);
}

.form-status {
  margin-top: var(--s-3);
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success {
  background: rgba(244,215,94,0.15);
  border: 1px solid rgba(244,215,94,0.3);
  color: var(--highlight);
}
.form-status.error {
  background: rgba(196,69,40,0.15);
  border: 1px solid rgba(196,69,40,0.4);
  color: #ff9a82;
}

/* ───── Footer ──────────────────────────────────────────────── */
.footer {
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-mut);
}
.footer-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.footer-row + .footer-row { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.footer-tag { color: var(--ink-soft); }
.footer-meta { gap: var(--s-3); flex-wrap: wrap; }
.footer-meta a { color: var(--ink-mut); }
.footer-meta a:hover { color: var(--ink); }

/* ───── Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
  .topnav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-left: 0 !important;
    padding-right: 0;
  }
  .step:last-child { border-bottom: none; }
  .plans { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .display { font-size: clamp(44px, 12vw, 72px); }
  .hero { padding-top: var(--s-6); padding-bottom: var(--s-6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ───── Reveal on load ──────────────────────────────────────── */
.display .line {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.8s var(--ease) forwards;
}
.display .line-1 { animation-delay: 0.05s; }
.display .line-2 { animation-delay: 0.18s; }
.display .line-3 { animation-delay: 0.32s; }

.lede     { opacity: 0; animation: fadein 0.8s var(--ease) 0.5s forwards; }
.hero-cta { opacity: 0; animation: fadein 0.8s var(--ease) 0.65s forwards; }
.eyebrow  { opacity: 0; animation: fadein 0.6s var(--ease) 0.1s forwards; }
.spec-strip { opacity: 0; animation: fadein 0.8s var(--ease) 0.85s forwards; }

@keyframes rise   { to { opacity: 1; transform: translateY(0); } }
@keyframes fadein { to { opacity: 1; } }
