:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #111827;
  --gray: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

header nav a {
  color: var(--gray);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.15s;
}

header nav a:hover {
  color: var(--primary);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem;
}

footer nav {
  margin-bottom: 1rem;
}

footer nav a {
  color: var(--gray);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.15s;
}

footer nav a:hover {
  color: var(--primary);
}

footer p {
  color: #9ca3af;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--dark);
  margin-left: 1rem;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

/* ── Hero ── */
.hero {
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto 2.25rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ── Features ── */
.features {
  padding: 5rem 2rem;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

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

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}

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

.feature-card p {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── Pricing ── */
.pricing {
  padding: 5rem 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plan {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan.popular {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.plan-price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: super;
}

.plan-price .period {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray);
}

.plan-desc {
  color: var(--gray);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}

.plan-features li {
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.plan-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.plan-features li.disabled {
  color: #d1d5db;
}

.plan-features li.disabled::before {
  content: "–";
  color: #d1d5db;
}

.plan-features li.inherited {
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.35rem;
}

.plan-features li.inherited::before {
  content: "";
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.2s;
  margin-top: auto;
}

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

.plan.popular .plan-btn {
  background: var(--primary);
  color: white;
}

.plan.popular .plan-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ── Page content (terms / privacy / refund) ── */
.page-hero {
  padding: 3.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-hero .meta {
  color: var(--gray);
  font-size: 0.875rem;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  color: #374151;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.page-content ul li,
.page-content ol li {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.page-content a {
  color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  header {
    padding: 1rem;
  }

  header nav a {
    margin-left: 1rem;
    font-size: 0.82rem;
  }

  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  .features,
  .pricing {
    padding: 3.5rem 1.25rem;
  }

  .btn-outline {
    margin-left: 0;
  }
}