:root {
  color-scheme: dark;
  --bg-app: #000;
  --bg-sidebar: #0d0d0d;
  --bg-card: #171717;
  --bg-card-soft: #111;
  --border: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 255, 255, 0.14);
  --text: #ececec;
  --muted: #a5a5a5;
  --white: #fff;
  --accent: #ab47bc;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg-app); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -16%, rgba(255,255,255,.055), transparent 34rem),
    var(--bg-app);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
button, a { font: inherit; }

.pricing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.test-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 11px;
}
.test-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}
.ghost-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-card-soft);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease;
}
.ghost-button:hover {
  transform: translateY(-1px);
  background: #191919;
  border-color: var(--border-active);
}
.close-pricing-button {
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}
.hidden { display: none !important; }

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0 64px;
}
.hero {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}
.eyebrow, .plan-label {
  color: #858585;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
h1 {
  margin: 14px 0 18px;
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-size: clamp(44px, 7vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.audience-switch {
  position: relative;
  display: inline-flex;
  gap: 3px;
  margin-top: 30px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-sidebar);
}
.audience-indicator {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 5.5px);
  border-radius: 8px;
  background: #262626;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .32s var(--ease);
}
.audience-switch.business-active .audience-indicator { transform: translateX(calc(100% + 3px)); }
.audience-tab {
  position: relative;
  z-index: 1;
  min-width: 112px;
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s var(--ease), color .2s ease, background .2s ease;
}
.audience-tab.active {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.pricing-carousel-controls { display: none; }
.status-banner {
  max-width: 760px;
  margin: -28px auto 28px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-sidebar);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.business-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 750px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  min-height: 490px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #151515, #101010);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s ease, background .28s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  background: linear-gradient(180deg, #191919, #111);
}
.price-card.featured {
  border-color: rgba(171,71,188,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(171,71,188,.8), transparent);
}
.popular {
  position: absolute;
  top: 17px;
  right: 18px;
  color: #c989d4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}
h2 {
  margin: 9px 0 11px;
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-size: 25px;
  letter-spacing: -.025em;
}
.plan-copy {
  min-height: 66px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 28px 0 22px;
}
.price strong {
  color: var(--white);
  font-family: "Outfit", sans-serif;
  font-size: 45px;
  letter-spacing: -.045em;
}
.price span { color: #777; font-size: 12px; }
ul {
  list-style: none;
  padding: 18px 0 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--border);
  color: #bdbdbd;
  font-size: 13px;
  line-height: 2.05;
}
li::before { content: "✓"; color: #777; margin-right: 9px; font-size: 11px; }
.plan-button {
  margin-top: auto;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: #050505;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, opacity .2s ease;
}
.plan-button:hover { transform: translateY(-2px); background: #e7e7e7; }
.plan-button.secondary {
  background: #232323;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.plan-button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.billing-note {
  margin: 24px auto 0;
  color: #646464;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 820px) {
  .pricing-nav { padding: 12px 16px; }
  .test-badge { display: none; }
  .nav-actions { gap: 6px; }
  .ghost-button { padding: 0 10px; font-size: 12px; }
  main { padding-top: 56px; }
  .hero { margin-bottom: 38px; }
  .pricing-grid, .business-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .price-card { min-height: 445px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 768px) {
  main {
    width: min(100% - 28px, 540px);
    padding-top: 46px;
  }
  .hero { margin-bottom: 34px; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .pricing-grid,
  .business-grid {
    display: block;
    position: relative;
    min-height: 530px;
    max-width: none;
  }
  .pricing-grid.hidden { display: none !important; }
  .price-card {
    display: none;
    min-height: 510px;
    width: 100%;
  }
  .price-card.carousel-active {
    display: flex;
    animation: plan-card-enter .38s cubic-bezier(.22,1,.36,1) both;
  }
  .price-card.carousel-active.from-left { animation-name: plan-card-enter-left; }
  .pricing-carousel-controls {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 530px;
    margin: -530px 8px 0;
    padding-top: 168px;
    pointer-events: none;
  }
  .pricing-carousel-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.64);
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .2s cubic-bezier(.22,1,.36,1), color .2s ease;
  }
  .pricing-carousel-controls button:hover { color: #fff; }
  .pricing-carousel-controls button:active { transform: scale(.82); color: #fff; }
  .pricing-carousel-controls button span { display: block; font-size: 36px; font-weight: 200; line-height: 1; transform: translateY(-2px); }
  .plan-content-out { animation: plan-content-out .17s cubic-bezier(.4,0,1,1) both !important; }
  .plan-content-in h2 { animation: plan-title-in .38s cubic-bezier(.22,1,.36,1) both; }
}

@keyframes plan-card-enter {
  from { opacity: 0; transform: translateX(34px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes plan-card-enter-left {
  from { opacity: 0; transform: translateX(-34px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes plan-content-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.965); }
}
@keyframes plan-content-in {
  from { opacity: 0; transform: scale(.965); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes plan-title-in {
  0% { opacity: 0; transform: translateY(7px) scale(.92); }
  68% { opacity: 1; transform: translateY(0) scale(1.025); }
  100% { opacity: 1; transform: none; }
}
