/* Kenmeet UI Pricing CSS integration */
:root {
  --azure: #3B82F6;
  --azure-dim: #2563EB;
  --cyan: #7DD3FC;
  --radius: 16px;
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
}

body.dark-theme, html[data-theme="dark"] {
  --bg-0: #0A1526;
  --bg-1: #0F2444;
  --bg-2: #132C52;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 180, 255, 0.14);
  --text-0: #F3F7FF;
  --text-1: #B9C7E6;
  --text-2: #7C8CB0;
  --glow: rgba(59, 130, 246, 0.35);
}

body:not(.dark-theme), html[data-theme="light"] {
  --bg-0: #EEF4FF;
  --bg-1: #DCE9FF;
  --bg-2: #CFE0FF;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(37, 99, 235, 0.14);
  --text-0: #0B1830;
  --text-1: #3B4B6B;
  --text-2: #647089;
  --glow: rgba(59, 130, 246, 0.18);
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative;
  padding: 170px 0 40px;
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--glow), transparent 65%);
}

.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-0);
}

.page-hero h1 .grad {
  background: linear-gradient(100deg, var(--azure), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero p {
  color: var(--text-1);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* billing toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 40px auto 0;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.billing-toggle button {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .85rem;
  padding: 9px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-1);
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle button.active {
  background: linear-gradient(135deg, var(--azure), var(--azure-dim));
  color: #fff;
}

.billing-toggle .save-tag {
  font-family: var(--ff-mono);
  font-size: .65rem;
  background: rgba(125, 211, 252, .18);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 100px;
}

.billing-toggle button.active .save-tag {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

/* ---------- SECTION SHARED ---------- */
section {
  position: relative;
  padding: 70px 0 130px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--azure);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-0);
}

.section-desc {
  color: var(--text-1);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- PLANS ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Fits Free, Starter, Pro, and Enterprise side-by-side */
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--azure);
  box-shadow: 0 24px 44px -18px var(--glow);
}

.plan-card.featured {
  border-color: var(--azure);
  box-shadow: 0 24px 50px -18px var(--glow);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--azure), var(--cyan));
  padding: 5px 10px;
  border-radius: 100px;
}

.plan-head {
  padding: 32px 26px 24px;
  border-bottom: 1px solid var(--border);
}

.plan-card.featured .plan-head {
  background: linear-gradient(160deg, rgba(59, 130, 246, .16), transparent);
}

.plan-tag {
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}

.plan-card.featured .plan-tag {
  color: var(--cyan);
}

.plan-title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-0);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  min-height: 2.2rem;
  color: var(--text-0);
}

.plan-price .amt {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.plan-price .cur {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--text-2);
  font-weight: 600;
}

.plan-price.custom .amt {
  font-size: 1.7rem;
}

.plan-cycle {
  font-size: .8rem;
  color: var(--text-2);
  min-height: 1.2em;
}

.plan-desc {
  font-size: .86rem;
  color: var(--text-1);
  margin-top: 12px;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  padding: 26px 26px 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.plan-features li {
  font-size: .9rem;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li .ico {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  color: #fff;
  background: linear-gradient(135deg, var(--azure), var(--cyan));
}

.plan-features li.off {
  color: var(--text-2);
  text-decoration: line-through;
  opacity: .55;
}

.plan-features li.off .ico {
  background: var(--surface-strong);
  color: var(--text-2);
}

.plan-features li b {
  color: var(--text-0);
  font-weight: 700;
}

.plan-card.featured .plan-features li b {
  color: var(--cyan);
}

.plan-cta {
  padding: 8px 26px 30px;
}

.plan-cta .btn {
  width: 100%;
  padding: 13px;
  font-size: .9rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-0);
}

.faq-q .arrow {
  font-size: 1.2rem;
  color: var(--azure);
  transition: transform .3s ease;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--text-1);
  font-size: .92rem;
  line-height: 1.6;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 20, .6);
  backdrop-filter: blur(6px);
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px;
  position: relative;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
}

body:not(.dark-theme) .modal-box {
  background: var(--bg-0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.modal-close:hover {
  background: var(--surface-strong);
}

.modal-box h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-0);
}

.modal-box p.modal-sub {
  color: var(--text-1);
  font-size: .9rem;
  margin-bottom: 24px;
}

.modal-field {
  margin-bottom: 16px;
}

.modal-field label {
  display: block;
  font-size: .8rem;
  color: var(--text-1);
  margin-bottom: 6px;
}

.modal-field input, .modal-field textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: .92rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--text-0);
  outline: none;
  transition: border-color .2s ease;
  resize: vertical;
}

.modal-field input:focus, .modal-field textarea:focus {
  border-color: var(--azure);
}

.modal-box .btn {
  width: 100%;
  padding: 13px;
  margin-top: 6px;
}

.modal-success {
  text-align: center;
  padding: 20px 0;
}

.modal-success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azure), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 18px;
}

@media(max-width:960px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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