/* === BASE === */
:root {
  --bg: #F8F6F2;
  --bg-alt: #F0EDE7;
  --fg: #141414;
  --fg-secondary: #6B6B6B;
  --accent: #C1121F;
  --accent-hover: #9B0E18;
  --border: #E2DDD6;
  --white: #FFFFFF;
  --mockup-bg: #1A1A1A;
  --mockup-surface: #252525;
  --mockup-text: #E8E6E1;
  --mockup-dim: #888;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; }
.section-headline { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; }

/* === NAV === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  padding: 5rem 2rem 4rem;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--fg-secondary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--fg); border-bottom-color: var(--fg); }
.btn-large { padding: 0.9rem 2.5rem; font-size: 1rem; }

/* === EMAIL MOCKUP === */
.email-mockup {
  background: var(--mockup-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.12);
  font-size: 0.82rem;
}
.mockup-topbar {
  background: var(--mockup-surface);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dots { display: flex; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }
.mockup-title { color: var(--mockup-dim); font-size: 0.75rem; }
.mockup-field {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem;
}
.field-label { color: var(--mockup-dim); min-width: 45px; }
.field-value { color: var(--mockup-text); }
.mockup-body {
  padding: 1rem;
  color: var(--mockup-text);
  line-height: 1.6;
  font-size: 0.78rem;
}
.mockup-body p { margin-bottom: 0.5rem; }
.mockup-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  background: rgba(193, 18, 31, 0.15);
  font-size: 0.72rem;
  color: #FF8080;
}
.ai-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

/* === DEMO SECTION === */
.demo-section {
  padding: 5rem 2rem 4rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-inner { max-width: 780px; margin: 0 auto; }

.demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.demo-inputs { display: flex; flex-direction: column; gap: 1rem; }
.demo-field { display: flex; flex-direction: column; gap: 0.4rem; }
.demo-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.02em;
}
.demo-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193,18,31,0.1);
}
.demo-input::placeholder { color: #aaa; }

.btn-demo-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}
.btn-demo-generate:disabled { opacity: 0.65; cursor: not-allowed; }

.demo-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.demo-rate-note {
  font-size: 0.75rem;
  color: var(--fg-secondary);
  text-align: center;
  margin-top: 0.25rem;
}

.demo-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(193,18,31,0.08);
  border: 1px solid rgba(193,18,31,0.2);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.88rem;
}

.demo-result { margin-top: 2rem; }
.demo-result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.demo-email-card {
  background: var(--mockup-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin-bottom: 1rem;
}
.demo-email-field {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-email-label {
  font-size: 0.72rem;
  color: var(--mockup-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 50px;
  flex-shrink: 0;
}
.demo-email-subject {
  color: var(--mockup-text);
  font-size: 0.85rem;
  font-weight: 500;
}
.demo-email-body-wrap {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  gap: 0.75rem;
}
.demo-email-body {
  color: var(--mockup-text);
  font-size: 0.82rem;
  line-height: 1.65;
  min-height: 4em;
}

.demo-why {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.demo-why-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  user-select: none;
}
.demo-why-toggle::-webkit-details-marker { display: none; }
.demo-why-toggle:hover { background: var(--bg-alt); }
.demo-why-icon { font-size: 0.7rem; color: var(--fg-secondary); }
.demo-why-content { padding: 0 1rem 1rem; }
.demo-why-section { margin-bottom: 1rem; }
.demo-why-section:last-child { margin-bottom: 0; }
.demo-why-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.demo-why-section p { font-size: 0.88rem; color: var(--fg); line-height: 1.6; }
.demo-hooks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.demo-hooks-list li {
  font-size: 0.85rem;
  color: var(--fg);
  padding-left: 1rem;
  position: relative;
}
.demo-hooks-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.demo-research-notes { font-size: 0.85rem; color: var(--fg); line-height: 1.8; }

.demo-cta-block {
  background: var(--fg);
  border-radius: 8px;
  padding: 1.75rem;
  text-align: center;
}
.demo-cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}
.demo-cta-sub { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; }
.demo-waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.demo-waitlist-input { flex: 1; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: #fff; }
.demo-waitlist-input::placeholder { color: rgba(255,255,255,0.4); }
.demo-waitlist-input:focus { border-color: rgba(193,18,31,0.6); box-shadow: 0 0 0 3px rgba(193,18,31,0.15); }
.demo-waitlist-success { font-size: 0.95rem; color: #6bcf8f; font-weight: 500; }
.demo-waitlist-err { font-size: 0.85rem; color: #FF8080; }

@media (max-width: 600px) {
  .demo-waitlist-form { flex-direction: column; }
  .demo-card { padding: 1.25rem; }
}

/* === PROOF === */
.proof {
  background: var(--fg);
  padding: 2.5rem 2rem;
}
.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.proof-stat {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
}
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.proof-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-sub {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--fg-secondary);
}

/* === HOW === */
.how { padding: 6rem 2rem; background: var(--white); }
.how-inner { max-width: 860px; margin: 0 auto; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
}
.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.step-content p { color: var(--fg-secondary); font-size: 0.95rem; line-height: 1.65; }

/* === FEATURES === */
.features { padding: 6rem 2rem; background: var(--bg); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--fg-secondary); font-size: 0.88rem; line-height: 1.6; }

/* === PRICING === */
.pricing { padding: 6rem 2rem; background: var(--bg-alt); }
.pricing-inner { max-width: 1100px; margin: 0 auto; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}
.plan-price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.5rem; }
.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}
.price-period { font-size: 0.9rem; color: var(--fg-secondary); }
.plan-desc { font-size: 0.85rem; color: var(--fg-secondary); margin-bottom: 1.5rem; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 1.75rem; }
.plan-features li {
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.plan-features li::before {
  content: '';
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2 6 5 9 10 3' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.btn-plan {
  display: block;
  text-align: center;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.btn-plan:hover { background: var(--fg); color: #fff; }
.btn-plan-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-plan-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* === CLOSING === */
.closing { padding: 7rem 2rem; background: var(--fg); text-align: center; }
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.12;
}
.closing-sub { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 2.5rem; }

/* === FOOTER === */
.footer { padding: 2.5rem 2rem; border-top: 1px solid var(--border); text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.footer-sub { font-size: 0.82rem; color: var(--fg-secondary); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .proof-inner { flex-direction: column; gap: 1.5rem; }
  .proof-divider { width: 60px; height: 1px; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.25rem; }
  .nav-tagline { display: none; }
  .step { grid-template-columns: 40px 1fr; }
}
