*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: 245 247 250;
  --fg: 20 23 30;
  --card: 255 255 255;
  --card-alt: 244 245 249;
  --primary: 14 165 233;
  --primary-dim: 14 165 233 / .12;
  --accent: 99 102 241;
  --accent-dim: 99 102 241 / .12;
  --muted: 234 236 240;
  --muted-fg: 100 116 139;
  --border: 222 226 230;
  --danger: 239 68 68;
  --success: 34 197 94;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .04);
  --radius: .875rem
}

.dark {
  --bg: 14 17 22;
  --fg: 230 230 230;
  --card: 26 29 36;
  --card-alt: 19 22 32;
  --primary: 34 211 238;
  --primary-dim: 34 211 238 / .1;
  --accent: 129 140 248;
  --accent-dim: 129 140 248 / .1;
  --muted: 42 47 58;
  --muted-fg: 156 163 175;
  --border: 42 47 58;
  --danger: 252 100 100;
  --success: 52 211 153;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .6)
}

body {
  font-family: 'Inter', sans-serif;
  background-color: rgb(var(--bg));
  color: rgb(var(--fg));
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .2s;
  -webkit-font-smoothing: antialiased
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem
}

.logo-small {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--fg));
  text-decoration: none
}

.logo-small img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  display: block
}

.icon-btn {
  background: none;
  border: none;
  padding: .5rem;
  border-radius: .375rem;
  cursor: pointer;
  color: rgb(var(--fg));
  display: flex;
  align-items: center;
  transition: .2s
}

.icon-btn:hover {
  background-color: rgb(var(--muted))
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem
}

.page-heading {
  text-align: center;
  margin-bottom: 2.75rem
}

.page-heading h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.75px;
  line-height: 1.2;
  margin-bottom: .4rem
}

.page-heading p {
  font-size: .9rem;
  color: rgb(var(--muted-fg))
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch
}

.plan-card {
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

.plan-card.featured {
  border-width: 2px;
  border-color: rgb(var(--primary))
}

.plan-card.elite {
  border-width: 2px;
  border-color: rgb(var(--accent))
}

.plan-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .35rem .75rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.plan-badge.popular {
  background-color: rgb(var(--primary));
  color: #fff
}

.plan-badge.elite-badge {
  background-color: rgb(var(--accent));
  color: #fff
}

.plan-badge-placeholder {
  height: 28px
}

.plan-body {
  padding: 1.4rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: .2rem
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin-bottom: 1.2rem
}

.price-amount {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.7px;
  line-height: 1
}

.price-period {
  font-size: .8rem;
  color: rgb(var(--muted-fg));
  font-weight: 500
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
  flex: 1
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .82rem;
  line-height: 1.4
}

.feat-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: .05rem
}

.feat-icon.check {
  color: rgb(var(--success))
}

.feat-icon.cross {
  color: rgb(var(--danger))
}

.feat-label {
  color: rgb(var(--fg))
}

.feat-label.dim {
  color: rgb(var(--muted-fg))
}

.feat-divider {
  height: 1px;
  background-color: rgb(var(--border));
  margin: .3rem 0
}

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1rem;
  border-radius: .6rem;
  font-family: inherit;
  font-size: .855rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter .15s, transform .12s;
  width: 100%
}

.plan-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px)
}

.cta-primary {
  background-color: rgb(var(--primary));
  color: #fff
}

.cta-accent {
  background-color: rgb(var(--accent));
  color: #fff
}

.cta-outline {
  background-color: transparent;
  color: rgb(var(--fg));
  border: 1px solid rgb(var(--border))
}

.cta-outline:hover {
  background-color: rgb(var(--muted));
  filter: none
}

footer {
  border-top: 1px solid rgb(var(--border));
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgb(var(--muted-fg))
}

.footer-links {
  display: flex;
  gap: 1.5rem
}

.footer-links a {
  color: rgb(var(--muted-fg));
  text-decoration: none;
  transition: color .15s
}

.footer-links a:hover {
  color: rgb(var(--fg))
}

@media(max-width:860px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:520px) {
  .plans-grid {
    grid-template-columns: 1fr
  }

  .header {
    padding: .75rem 1.1rem
  }

  footer {
    flex-direction: column;
    gap: .7rem;
    text-align: center
  }
}
