:root {
  /* Editorial / journal palette — warm paper neutrals + dusty violet */
  --bg: #F8F7F4;
  --bg-soft: #F1EEE8;
  --card: #FCFBF8;
  --text-primary: #1C1C1C;
  --text-secondary: #6B6B6B;
  --accent: #6D6AA6;          /* dusty violet — grounded, editorial */
  --accent-deep: #5B5A8A;      /* muted indigo for hover/depth */
  --accent-soft: rgba(109, 106, 166, 0.10);
  --border: rgba(28, 28, 28, 0.07);
  --shadow: 0 1px 2px rgba(0,0,0,0.03), 0 12px 32px rgba(0,0,0,0.035);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1080px;
  --max-narrow: 720px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--max-narrow); }
.center { text-align: center; }

/* Navigation */
.nav {
  padding: 22px 0;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(248, 247, 244, 0.72);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.brand-mark {
  color: var(--accent);
  font-size: 18px;
}
.brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
.btn-text {
  color: var(--accent) !important;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin: 0 0 24px;
  color: var(--text-primary);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: white !important;
  box-shadow: 0 2px 10px rgba(91, 90, 138, 0.20);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 90, 138, 0.26);
  opacity: 1;
}
.btn-secondary {
  background: var(--card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  opacity: 1;
}
.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}
.btn-link {
  color: var(--text-secondary);
  font-size: 15px;
  padding: 14px 8px;
  border-bottom: 1px solid transparent;
}
.btn-link:hover { border-bottom-color: var(--text-secondary); opacity: 1; }

/* Quote carousel — a floating thought, not a card */
.quote-carousel {
  padding: 80px 0 96px;
  background: var(--bg);
}
.quote-card {
  position: relative;
  background: transparent;
  padding: 40px 20px 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(252,251,248,0.95) 0%, rgba(248,247,244,0) 75%);
  z-index: -1;
  pointer-events: none;
}
.quote-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.55;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  margin: 0 0 36px;
  min-height: 110px;
  transition: opacity 0.9s ease;
}
.quote-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease;
}
.quote-dot.active {
  background: var(--accent);
}

/* Problem section */
.problem {
  padding: 80px 0;
  background: var(--bg);
}
.section-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.6px;
  text-align: center;
  margin: 0 0 40px;
  color: var(--text-primary);
}
.problem-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.problem-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.5;
}
.problem-list li::before {
  content: "—";
  color: var(--accent);
  margin-right: 14px;
}
.problem-close {
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-top: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* How it works */
.how {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.how-step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.how-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}
.how-step h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}
.how-step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-size: 16px;
  color: var(--text-primary);
}
.feature-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Pricing */
.pricing {
  padding: 80px 0;
  background: var(--bg-soft);
}
.pricing-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  margin: -20px 0 48px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.plan {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--accent);
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.plan-price {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--text-primary);
  letter-spacing: -1.2px;
}
.plan-period {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  flex: 1;
}
.plan-features li {
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.5;
}
.plan-features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

/* Email capture form */
.email-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.email-form-hero {
  margin-top: 8px;
  margin-bottom: 12px;
}
.email-input {
  flex: 1;
  min-width: 220px;
  padding: 15px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.email-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.email-form .btn-primary {
  flex-shrink: 0;
}
.email-thanks {
  display: none;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  margin: 0;
  padding: 14px 0;
  animation: fadeUp 0.8s ease-out;
}
.email-thanks.show { display: block; }
.email-form.hide { display: none; }
.email-note {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-align: center;
  margin: 14px 0 0;
  opacity: 0.85;
}

/* CTA */
.cta {
  padding: 96px 0;
  background: var(--bg);
}
.cta-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 0 36px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cta-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
.footer {
  padding: 56px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-brand .brand-mark,
.footer-brand .brand-name {
  display: inline;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.footer-tag {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 6px 0 0;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-links a:hover { color: var(--accent); }
.footer-fine {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.7;
}

/* Mobile */
@media (max-width: 720px) {
  .nav-links a:not(.btn-text) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-link { width: 100%; }
  .plan-featured { transform: none; }
  .quote-card { padding: 40px 28px 28px; }
}

/* Subtle entrance animation */
.hero-title, .quote-text {
  animation: fadeUp 0.9s ease-out;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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