/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --gray-bg: #f8fafc;
  --gray-border: #e2e8f0;
  --gray-muted: #64748b;
  --gray-light: #94a3b8;
  --white: #ffffff;
  --story-bg: #fdf8f0;
  --story-text: #3d2b1f;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}

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

.wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-muted);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-muted);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.lang-btn.active {
  color: var(--navy);
  font-weight: 700;
}

.lang-sep { color: var(--gray-border); }

.btn-nav {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-nav:hover { background: #1e293b; }

/* ── Shared ── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-headline {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 48px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
}

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

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

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--blue-dark); }

.link-secondary {
  font-size: 0.95rem;
  color: var(--gray-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 1px;
  transition: color 0.15s;
}

.link-secondary:hover { color: var(--navy); }

.social-proof {
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ── Problem ── */
.problem { background: var(--gray-bg); }

.problem-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  padding: 28px;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--gray-muted);
  line-height: 1.7;
}

/* ── Solution ── */
.solution { background: var(--white); }

.feature-card {
  background: var(--gray-bg);
  border-radius: 14px;
  padding: 28px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-muted);
  line-height: 1.65;
}

/* ── Pricing ── */
.pricing { background: var(--gray-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--blue);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.plan-price-period {
  font-size: 0.9rem;
  color: var(--gray-muted);
}

.plan-features {
  list-style: none;
  margin: 20px 0 28px;
  flex: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--gray-muted);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--gray-bg);
}

.plan-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  transition: all 0.15s;
}

.btn-plan:hover {
  background: var(--navy);
  color: var(--white);
}

.pricing-card.featured .btn-plan {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.pricing-card.featured .btn-plan:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-light);
  margin-bottom: 24px;
}

.addons-row {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 0.82rem;
  color: var(--gray-muted);
  text-align: center;
  line-height: 1.7;
}

/* ── Story ── */
.story {
  background: var(--story-bg);
  padding: 96px 24px;
}

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

.story h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--story-text);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}

.story p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #5c4033;
  line-height: 1.9;
  text-align: left;
}


/* ── Waitlist ── */
.waitlist {
  background: var(--navy);
  padding: 96px 24px;
  text-align: center;
}

.waitlist h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  line-height: 1.25;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-form input::placeholder { color: rgba(255,255,255,0.4); }
.waitlist-form input:focus { border-color: rgba(255,255,255,0.4); }

.btn-waitlist {
  background: var(--blue);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-waitlist:hover { background: var(--blue-dark); }
.btn-waitlist:disabled { opacity: 0.6; cursor: not-allowed; }

.waitlist-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0;
}

.waitlist-feedback {
  font-size: 0.9rem;
  margin-top: 12px;
  min-height: 22px;
}

.waitlist-feedback.success { color: #86efac; }
.waitlist-feedback.error { color: #fca5a5; }

/* ── Footer ── */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-inner a {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-inner a:hover { color: var(--white); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sep {
  color: rgba(255,255,255,0.2);
}

/* ── Mobile tweaks ── */
@media (max-width: 560px) {
  .nav-inner { padding: 0 16px; }
  .section { padding: 64px 16px; }
  .hero { padding: 72px 16px 64px; }
  .story { padding: 72px 16px; }
  .waitlist { padding: 72px 16px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input, .btn-waitlist { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Beta modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--gray-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--navy); }

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--gray-muted);
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.modal-form input:focus { border-color: var(--blue); }

.modal-form button {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-form button:hover { background: var(--blue-dark); }
.modal-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-feedback {
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: center;
  min-height: 20px;
}
.modal-feedback.success { color: #16a34a; }
.modal-feedback.error   { color: #dc2626; }
