/* ---------- Page hero ---------- */
.page-hero {
  background:
    radial-gradient(900px 500px at 80% -20%, rgba(255,90,31,.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(29,78,216,.18), transparent 60%),
    var(--surface-2);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-hero p.lead {
  max-width: 60ch; margin: 0 auto 1.75rem; font-size: 1.05rem;
}

/* ---------- Billing toggle ---------- */
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.seg {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 0; background: transparent; cursor: pointer;
  padding: .55rem 1.1rem; border-radius: 999px;
  font: inherit; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s;
}
.seg small {
  font-size: .7rem; font-weight: 600; padding: 2px 6px;
  border-radius: 999px; background: rgba(255,90,31,.12); color: var(--primary);
}
.seg:hover { color: var(--text); }
.seg.is-active { background: var(--text); color: #fff; }
.seg.is-active small { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Plans ---------- */
.plans { align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.75rem; position: relative;
}
.plan header h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.plan header p { margin: 0; }
.plan-price {
  display: flex; align-items: baseline; gap: .35rem;
  padding: .25rem 0 .75rem; border-bottom: 1px solid var(--line);
}
.plan-price .amount { font-family: 'Poppins'; font-weight: 800; font-size: 2rem; letter-spacing: -.02em; }
.plan-price .period { color: var(--muted); font-weight: 500; }
.plan-feats { display: grid; gap: .55rem; flex: 1; }
.plan-feats li {
  position: relative; padding-left: 1.5rem; color: var(--text); font-size: .95rem;
}
.plan-feats li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,90,31,.12); color: var(--primary);
  font-weight: 700; font-size: .75rem;
}
.plan .btn-ghost {
  border-color: var(--line); color: var(--text);
}
.plan .btn-ghost:hover { background: var(--surface-2); }

.plan.is-featured {
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(14,19,48,.18);
  transform: translateY(-6px);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--primary), #ff8a3d) border-box;
  border: 2px solid transparent;
}
.ribbon {
  position: absolute; top: -12px; right: 1.5rem;
  background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.compare {
  width: 100%; border-collapse: collapse; background: #fff;
  min-width: 640px;
}
.compare th, .compare td {
  padding: 1rem 1.1rem; text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.compare thead th {
  background: var(--surface-2);
  font-family: 'Poppins'; font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--line);
}
.compare tbody th { font-weight: 600; color: var(--text); }
.compare tbody td { color: var(--muted); }
.compare .is-featured-col { color: var(--primary); }
.compare tbody tr:hover { background: var(--surface-2); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 600; font-family: 'Poppins';
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--primary);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .75rem 0 0; }

/* ---------- CTA centered variant ---------- */
.cta-center { grid-template-columns: 1fr; text-align: center; max-width: 720px; }
.cta-center .btn { margin-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .plan.is-featured { transform: none; }
  .billing-toggle { width: 100%; justify-content: stretch; }
  .seg { flex: 1; justify-content: center; }
}
