/* ── Variables ──────────────────────────────────────────────── */
:root {
  --gradient-start: #5B4FCF;
  --gradient-end: #7C6FE0;
  --surface: #FFFFFF;
  --surface-variant: #F3F4F6;
  --on-surface: #1C1B1F;
  --on-surface-variant: #6B7280;
  --primary: #5B4FCF;
  --income: #22C55E;
  --border: #E5E7EB;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  font-size: 1rem;
}

a { text-decoration: none; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav__links a {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--primary); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #FFFFFF;
  text-align: center;
  padding: 5rem 2.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ── Buttons & Badges ───────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--btn-bg, #FFFFFF);
  color: var(--btn-color, var(--primary));
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.9; }

.btn-primary--dark {
  --btn-bg: var(--primary);
  --btn-color: #FFFFFF;
}

.badge-muted {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

/* ── Sections ───────────────────────────────────────────────── */
.section-wrap { padding: 4rem 0; }
.section-wrap--alt { background: var(--surface-variant); }

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section__heading {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ── Feature Grid ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.feature-card__icon { font-size: 1.75rem; margin-bottom: 0.75rem; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
}

/* ── Pricing Grid ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--highlight { border: 2px solid var(--primary); }

.pricing-card__badge {
  display: inline-block;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.pricing-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pricing-card__price {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pricing-card__price-unit { font-size: 1rem; font-weight: 400; }

.pricing-card__price-suffix {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  margin-bottom: 1.25rem;
}

.pricing-card__features { list-style: none; flex: 1; }

.pricing-card__features li {
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--income);
  font-weight: 700;
}

.pricing__cta { text-align: center; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--on-surface);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer__links a:hover { color: #FFFFFF; }
.footer__copy { font-size: 0.8rem; margin-bottom: 0.25rem; }
.footer__contact { font-size: 0.8rem; }
.footer__contact a { color: rgba(255, 255, 255, 0.7); }
.footer__contact a:hover { color: #FFFFFF; }

/* ── Legal Pages ────────────────────────────────────────────── */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  line-height: 1.8;
}

.legal-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }

.legal-updated {
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  display: block;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content p { margin-bottom: 1rem; color: var(--on-surface-variant); }

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--on-surface-variant);
}

.legal-content ul li { margin-bottom: 0.25rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 3.5rem 1.5rem; }
  .hero h1 { font-size: 1.875rem; }
  .section { padding: 0 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .legal-content { padding: 2rem 1.5rem; }
}

/* ── Accessibility ──────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
