/* ============================================================
   KubekBio — Pricing Page
   Requires: /main.css, /css/design-system.css
   No :root block — all tokens inherited from above.
   ============================================================ */

/* ── Local aliases — gold variant slightly brighter than global for pricing emphasis ── */
:root {
  --gold:        #ffd700;
  --gold-dim:    rgba(255, 215, 0, 0.12);
  --gold-border: rgba(255, 215, 0, 0.28);
}

/* ── Page base ── */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(7, 7, 16, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo i {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--text);
}
.premium-link {
  color: var(--gold) !important;
}

/* ── Shared button base ── */
.btn {
  padding: 0.65rem 1.3rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  transition: background 0.2s var(--smooth), border-color 0.2s, transform 0.2s var(--smooth);
}

/* White CTA — primary action */
.btn-primary {
  background: #ffffff;
  color: #000000;
}
.btn-primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
}

/* Gold bordered variant */
.btn-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.btn-gold:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ── Page container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 130px 1.5rem 80px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s var(--smooth) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.crown-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 0.875rem;
  display: block;
}

.hero h1 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.875rem;
  line-height: 1.15;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Pricing grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

/* ── Pricing card base ── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--smooth);
  animation: fadeInUp 0.6s var(--smooth) both;
}
.pricing-card:nth-child(1) { animation-delay: 0.05s; }
.pricing-card:nth-child(2) { animation-delay: 0.12s; }
.pricing-card:nth-child(3) { animation-delay: 0.19s; }

.pricing-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-2);
  transform: translateY(-3px);
}

/* Premium card — distinguished with brighter border, no gradient bg */
.pricing-card.premium {
  border-color: var(--border-bright);
  position: relative;
  overflow: hidden;
}
.pricing-card.premium:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

/* "Most Popular" ribbon on premium card */
.pricing-card.premium::before {
  content: 'Most Popular';
  position: absolute;
  top: 18px;
  right: -28px;
  background: var(--text);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 36px;
  transform: rotate(45deg);
}

/* ── Plan typography ── */
.plan-name {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.plan-name i {
  color: var(--gold);
  margin-right: 0.3rem;
}

.plan-price {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1;
}
.plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Gold price color for premium card */
.pricing-card.premium .plan-price {
  color: var(--gold);
}
.pricing-card.premium .plan-price span {
  color: var(--gold);
  opacity: 0.75;
}

.plan-period {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 1.75rem;
}

/* ── Features list ── */
.features-list {
  list-style: none;
  margin: 0 0 2rem;
  flex: 1;
}
.features-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}
.features-list li:last-child {
  border-bottom: none;
}

/* Green checkmark */
.features-list .check {
  color: var(--success);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Muted cross */
.features-list .cross {
  color: var(--text-secondary);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Gold premium feature icon */
.features-list .premium-feature {
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── CTA buttons inside cards ── */
.premium-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── Section headings ── */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s var(--smooth) 0.2s both;
}
.section-title h2 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Effects showcase ── */
.effects-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s var(--smooth) 0.25s both;
}

.effect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: border-color 0.2s, background 0.2s;
}
.effect-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-2);
}

.effect-preview {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* Individual effect previews — subtle, no glow */
.effect-neon {
  background: var(--bg);
  border: 2px solid var(--primary);
}
.effect-links {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}
.effect-links::before,
.effect-links::after {
  content: '';
  height: 8px;
  border-radius: 999px;
  background: var(--border-bright);
}
.effect-cursor {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.effect-cursor::after {
  content: '✨';
  font-size: 1.5rem;
}
.effect-click {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.effect-click::after {
  content: '💫';
  font-size: 1.5rem;
}

.effect-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.effect-info h3 i {
  color: var(--gold);
  margin-right: 0.3rem;
}
.effect-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.7rem;
}

.effect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.effect-tags span {
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ── Comparison table ── */
.comparison-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  overflow-x: auto;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s var(--smooth) 0.3s both;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table thead th {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 1rem;
}

.comparison-table .check {
  color: var(--success);
}
.comparison-table .cross {
  color: var(--text-secondary);
}
.comparison-table .gold {
  color: var(--gold);
  font-weight: 600;
}

/* ── CTA section ── */
.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 1rem;
  animation: fadeInUp 0.6s var(--smooth) 0.35s both;
}
.cta-section:hover {
  border-color: var(--border-bright);
}
.cta-section h2 {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .effects-showcase { grid-template-columns: 1fr; }
  nav a:not(.btn):not(.premium-link) { display: none; }
  .comparison-table { padding: 1rem; }
  .comparison-table table { min-width: 420px; }
  .container { padding: 100px 1rem 60px; }
  .section-title h2 { font-size: 1.625rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.92rem; }
  header { padding: 0.875rem 1rem; }
  .logo { font-size: 1.15rem; }
  nav { gap: 0.75rem; }
  .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .pricing-card { padding: 1.5rem 1.1rem; }
  .plan-price { font-size: 2rem; }
  .cta-section { padding: 2rem 1rem; }
  .cta-section h2 { font-size: 1.5rem; }
  .effect-preview { width: 52px; height: 52px; }
  .container { padding: 85px 0.75rem 40px; }
}
