/* a250 — pillars, thesis, pricing, footer */

/* Pillar grid (how we get you there) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.pillar-card {
  background: var(--surface-alt);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 0.875rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.pillar-card::before,
.pillar-card::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--border);
}

.pillar-card::before {
  top: 0;
  left: 0;
}

.pillar-card::after {
  bottom: 0;
  right: 0;
}

.pillar-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pillar-card:hover::before,
.pillar-card:hover::after {
  background: var(--accent);
}

.pillar-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Thesis (why it works) */
.thesis-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.thesis-item {
  padding: 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.thesis-item:hover {
  background: var(--surface-alt);
  border-color: var(--border);
}

.thesis-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thesis-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing CTA */
.section-cta {
  text-align: center;
  background: var(--surface-alt);
}

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.pricing-tier {
  text-align: left;
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.pricing-tier.active {
  border-color: var(--cta-bg);
  animation: tier-active-glow 2.5s ease-in-out infinite;
}

@keyframes tier-active-glow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(141, 200, 80, 0.25);
    border-color: var(--cta-bg);
  }
  50% {
    box-shadow: 0 0 24px rgba(86, 186, 152, 0.38);
    border-color: var(--cta-hover);
  }
}

.btn-manage {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.btn-manage:hover {
  border-bottom-color: var(--accent);
}

.tier-badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
}

.tier-badge-freeview {
  background: var(--brand-peach);
}

.pricing-tier-freeview {
  border-color: rgba(248, 189, 134, 0.45);
}

.btn-freeview {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
}

.tier-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.tier-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tier-availability {
  font-size: 0.85rem;
  color: var(--cta-hover);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tier-features {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tier-features li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-features li::before {
  content: "⚡";
  font-size: 0.7rem;
}

.bespoke-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.bespoke-note h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.sub-promo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.pricing-card {
  padding: 1.5rem 1rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.pricing-dollar {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.pricing-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cta-text);
  background: var(--cta-bg);
  padding: 0.8rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0px rgba(13, 101, 164, 0.25);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px rgba(36, 167, 171, 0.32);
}

.btn-primary:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0px rgba(13, 101, 164, 0.35);
}

.btn-primary:hover::after {
  content: "READY >";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cta-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: glitch 0.3s infinite;
  opacity: 0.8;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

/* Blurred pricing tiers */
.blurred-price {
  filter: blur(4px);
  user-select: none;
  transition: filter 0.3s ease;
}

.tier-blurred {
  opacity: 0.85;
}

/* btn-primary as button element */
button.btn-primary {
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 600px) {
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    gap: 0.5rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .pricing-grid {
    gap: 1rem;
  }

  .tier-price {
    font-size: 2rem;
  }

  .tier-features {
    font-size: 0.8rem;
  }
}