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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f6f7fb;
  color: #1a1f36;
  line-height: 1.6;
}

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eceef3;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; font-size: 1.25rem; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #5a6378;
  transition: color 0.15s;
}
.site-header nav a:hover { color: #1a1f36; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 64px 24px 24px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero p { color: #5a6378; margin-bottom: 28px; }

/* billing toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #eceef3;
  font-weight: 600;
}
.billing-toggle .label {
  font-size: 0.95rem;
  color: #5a6378;
  transition: color 0.2s;
}
.billing-toggle .label.active { color: #1a1f36; }

.toggle { position: relative; display: inline-block; width: 46px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: #d1d5e0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s;
}
.slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.toggle input:checked + .slider { background: #635bff; }
.toggle input:checked + .slider::before { transform: translateX(20px); }

.save-badge {
  display: none;
  background: #d1fae5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}
.save-badge.show { display: inline-block; animation: pop 0.3s ease; }

@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Pricing grid ===== */
.pricing-grid {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

.card-featured {
  border: 2px solid #635bff;
  box-shadow: 0 14px 36px rgba(99,91,255,0.18);
}

.ribbon {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: #635bff;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
}

.card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.card .desc { color: #5a6378; font-size: 0.9rem; margin-bottom: 18px; min-height: 40px; }

.price {
  display: flex;
  align-items: baseline;
  margin-bottom: 24px;
}
.price .currency { font-size: 1.2rem; font-weight: 700; }
.price .amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}
.price .per { color: #5a6378; font-size: 0.95rem; }

.features {
  list-style: none;
  margin-bottom: 28px;
}
.features li {
  padding: 7px 0;
  font-size: 0.94rem;
  border-bottom: 1px solid #f3f4f8;
}
.features li::before {
  content: '✓ ';
  color: #10b981;
  font-weight: 700;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5e0;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: #f6f7fb; }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: #635bff;
  color: #fff;
  border-color: #635bff;
}
.btn-primary:hover { background: #4f46e5; }

/* ===== FAQ ===== */
.faq {
  max-width: 720px;
  margin: 56px auto 80px;
  padding: 0 24px;
}
.faq h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.faq-item {
  background: #fff;
  border: 1px solid #eceef3;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #5a6378;
  transition: transform 0.2s;
}
.faq-item details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 20px 16px;
  color: #5a6378;
  font-size: 0.94rem;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 24px;
  color: #5a6378;
  font-size: 0.88rem;
  border-top: 1px solid #eceef3;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .hero h1 { font-size: 1.9rem; }
}
