/* Pricing Page */
.pricing-page .pricing-hero {
  position: relative;
  background: var(--bg);
  z-index: 1;
}

.pricing-intro {
  text-align: center;
}

.pricing-intro h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.pricing-page .section-title.gradient-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  line-height: 1.1;
  text-align: center;
  margin-top: 80px;
}

@media (max-width: 768px) {
  .pricing-intro h1,
  .pricing-page .section-title.gradient-title {
    font-size: 42px;
  }
}

.pricing-page .pricing-intro .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.billing-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 20px;
  margin-top: 32px;
  gap: 8px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: linear-gradient(90deg, #6B66FF 0%, #7B5CFF 40%, #FF5CA8 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(76,134,255,0.28);
}

.toggle-btn .save-badge {
  background: rgba(107, 255, 232, 0.18);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.pricing-grid {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  position: relative;
  background: var(--bg);
  z-index: 1;
  border-radius: 24px;
}

.pricing-panels {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, max-content);
  align-items: start;
  justify-content: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 24px 32px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(55, 104, 255, 0.18), 0 0 0 1px var(--line) inset;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 460px;
}

.panel.highlight {
  outline: 1px solid var(--primary-600);
  background: linear-gradient(180deg, rgba(55, 104, 255, 0.08), rgba(255, 255, 255, 0));
}

.pro-emphasis {
  background:
    linear-gradient(180deg, rgba(55,104,255,0.10), rgba(255,255,255,0)),
    radial-gradient(600px 240px at 80% -60px, rgba(107,255,232,0.10), transparent 70%);
  border: 1.5px solid rgba(76,134,255,0.35);
  box-shadow: 0 30px 90px rgba(55,104,255,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
}

.pro-emphasis.yearly-active {
  outline: 2px solid rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.28);
}

.badge-popular {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #0a0c14;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(76,134,255,0.35);
}

.badge-popular.save {
  top: -18px;
  right: 22px;
  background: linear-gradient(90deg, #6B66FF 0%, #7B5CFF 40%, #FF5CA8 100%);
  color: #ffffff;
}

.panel header h2 {
  margin: 0 0 4px;
  font-size: 36px;
  letter-spacing: -0.02em;
}

.panel .subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.panel header {
  text-align: center;
}

.big-price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.big-price .price-period {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
  color: var(--muted);
}

.panel-list li {
  position: relative;
  padding-left: 18px;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 12px;
  border-right: 2px solid #9EE19E;
  border-bottom: 2px solid #9EE19E;
  transform: rotate(45deg);
}

.panel a.btn {
  margin-top: auto;
  align-self: flex-start;
}

.btn-gradient {
  color: #ffffff;
  background: linear-gradient(90deg, #6B66FF 0%, #7B5CFF 40%, #FF5CA8 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 28px rgba(76,134,255,0.28);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(76,134,255,0.34);
}

@media (min-width: 768px) {
  .pricing-panels {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 28px;
  }
  .panel header h2 {
    font-size: 32px;
  }
  .big-price {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .pricing-panels {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
    justify-items: center;
  }
}

/* Comparison table under plans */
.pricing-compare {
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  overflow: visible;
}

.compare-sticky-head {
  position: sticky;
  top: 64px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  padding: 24px 28px;
  border-radius: 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 36px 90px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,255,255,0.05) inset;
  backdrop-filter: saturate(190%) blur(12px);
}

.compare-sticky-head.gradient {
  background:
    linear-gradient(180deg, rgba(14,18,28,0.98), rgba(14,18,28,0.94)),
    radial-gradient(900px 260px at 75% 20%, rgba(76,134,255,0.16), transparent 70%),
    radial-gradient(900px 260px at 25% 20%, rgba(107,255,232,0.10), transparent 70%),
    linear-gradient(90deg, rgba(107,102,255,0.22) 10%, rgba(123,92,255,0.20) 50%, rgba(255,92,168,0.18) 90%);
  box-shadow: inset 0 -8px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

.compare-sticky-head .col {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 17px;
}

.compare-sticky-head .col:first-child {
  color: #ffffff;
}

.compare-sticky-head .col:not(.first) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-sticky-head .col + .col { border-left: 1px solid rgba(255,255,255,0.06); }
.compare-sticky-head .col { position: relative; }
.compare-sticky-head .col:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 50%; transform: translateY(-50%);
  height: 40px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: inset 0 8px 18px rgba(0,0,0,0.28);
  z-index: -1;
}

.compare-sticky-head .col:nth-child(3) {
  background: linear-gradient(180deg, rgba(76,134,255,0.10), rgba(255,255,255,0.00));
  border-radius: 10px;
}

.compare-sticky-head .label-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 14px 32px rgba(0,0,0,0.26);
}

.compare-sticky-head .col:nth-child(2) .label-pill {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  color: #ffffff;
}

.compare-sticky-head .pill-gradient {
  background: linear-gradient(90deg, #6B66FF 0%, #7B5CFF 40%, #FF5CA8 100%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 36px rgba(76,134,255,0.28);
}

.compare-sticky-head .label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, #6B66FF 0%, #7B5CFF 40%, #FF5CA8 100%);
  box-shadow: 0 10px 24px rgba(76,134,255,0.24);
}

@media (max-width: 767px) {
  .compare-sticky-head { top: 88px; padding: 20px 22px; border-radius: 24px; }
}

.topic-grid .row .col:nth-child(2),
.topic-grid .row .col:nth-child(3) {
  background: transparent;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.topic-grid .row .col:nth-child(3) {
  background: linear-gradient(180deg, rgba(76,134,255,0.08), rgba(255,92,168,0.06));
  border-left: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
}

.topic-grid .row:nth-child(odd) .col:nth-child(3) {
  background: linear-gradient(180deg, rgba(76,134,255,0.06), rgba(255,92,168,0.05));
}

.topic-cards {
  display: grid;
  gap: 20px;
}

.topic-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  overflow: clip;
}

.topic-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.topic-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.topic-marker {
  width: 8px; height: 28px; border-radius: 8px;
  background: linear-gradient(180deg, #9EE19E 0%, #4C86FF 100%);
  box-shadow: 0 0 22px rgba(76,134,255,0.22);
}

.topic-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.topic-grid .col {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  min-height: 44px;
}

.topic-grid .row { display: contents; }
.topic-grid .col.head { display: none; }
.topic-grid .col.title { color: var(--muted); }
.topic-grid .row .col:nth-child(2),
.topic-grid .row .col:nth-child(3) { justify-content: center; }
.topic-grid .row:nth-child(odd) .col { background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)); }

@media (max-width: 767px) {
  .topic-grid .col.head { top: 56px; }
}

@media (min-width: 768px) {
  .topic-header h3 { font-size: 24px; }
}

.compare-row {
  display: contents;
}

.compare-cell {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  min-height: 44px;
}

.compare-section {
  display: contents;
}

.compare-group {
  display: contents;
  isolation: isolate;
}

.compare-group .section-label {
  font-size: 18px;
  letter-spacing: -0.01em;
  position: relative;
}

.compare-group .section-label::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
}

.compare-section .section-label {
  padding: 18px 18px 12px;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,0.06);
  grid-column: 1 / -1;
  color: var(--text);
  position: relative;
}

.compare-section .section-label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 28px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  box-shadow: 0 0 24px rgba(76,134,255,0.22);
}

.pricing-compare .compare-group:first-child .section-label { border-top-left-radius: 18px; border-top-right-radius: 18px; }
.pricing-compare .compare-group:last-child .section-label { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

@media (min-width: 768px) {
  .compare-section .section-label { font-size: 22px; }
}

.compare-row:nth-child(odd) .compare-cell {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
}

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.pricing-compare .compare-inner .compare-cell.head {
  border-top: none;
  border-bottom: 1px solid var(--line);
}

.compare-cell.head {
  font-weight: 700;
  color: var(--text);
}

.compare-cell.title {
  color: var(--muted);
  justify-content: flex-start;
}

.compare-cell:not(.title) {
  justify-content: center;
}

.check {
  display: block;
  position: relative;
  width: 18px;
  height: 18px;
}

.check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 12px;
  border-right: 2px solid #9EE19E;
  border-bottom: 2px solid #9EE19E;
  transform: translate(-50%, -50%) rotate(45deg);
}

.dash { color: var(--muted); }
