:root {
  --card-radius: 1.5rem;
}

/* Page background similar to Cluely */
body {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 55%),
    radial-gradient(circle at top right, rgba(96,165,250,0.12), transparent 60%),
    #e5edff;
}

/* HEADER / NAV – blend into page like Cluely */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(226, 232, 240, 0.95),
    rgba(226, 232, 240, 0.9),
    rgba(226, 232, 240, 0.75),
    transparent
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo.big {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: #475569;
  padding: 0.15rem 0;
  transition: color 0.15s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
  color: #111827;
}

.site-nav a[aria-current="page"] {
  color: #1d4ed8;
  font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .header-inner {
    padding-block: 0.6rem;
  }
  .site-nav {
    gap: 1rem;
  }
}

/* HERO */

.subscriptions-hero {
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
}

.subscriptions-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.subscriptions-hero p {
  max-width: 640px;
  margin: 0.4rem auto 1.7rem;
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.6;
}

/* Billing toggle */

.billing-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.billing-label {
  font-size: 0.88rem;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.billing-label.active {
  opacity: 1;
  font-weight: 600;
}

.billing-switch {
  position: relative;
  width: 46px;
  height: 24px;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: #cbd5f5;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.billing-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease;
}

.billing-switch input:checked + .billing-slider {
  background-color: #a5b4fc;
}

.billing-switch input:checked + .billing-slider::before {
  transform: translateX(22px);
}

/* Pricing cards */

.pricing-section {
  padding: 0 0 4.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 1.75rem 0;
  max-width: 1120px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

.plan-card {
  position: relative;
  border-radius: var(--card-radius);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 2rem 1.9rem 2.1rem;
  background: #f9fafb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 0.98rem;
  --plan-offset: 0px;
  transform: translateY(var(--plan-offset));
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(calc(var(--plan-offset) - 4px));
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.2);
}

/* Progressive styling */
.plan-card--free {
  opacity: 0.93;
}

.plan-card--core {
  --plan-offset: -8px;
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.65);
}

.plan-card--pro {
  --plan-offset: -16px;
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  border-color: transparent;
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.45);
}

.plan-card--pro::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 200deg,
    #22c55e,
    #0ea5e9,
    #6366f1,
    #22c55e
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 960px) {
  .plan-card,
  .plan-card--core,
  .plan-card--pro {
    --plan-offset: 0px;
  }
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.plan-badge--popular {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.plan-badge--best {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.plan-name-top {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.plan-title-main {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.plan-tagline {
  font-size: 0.92rem;
  opacity: 0.8;
  margin-bottom: 1.1rem;
}

.plan-price {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price span.interval {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.7;
}

.plan-billing-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 1.2rem;
}

.plan-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.6);
  margin: 1.1rem 0;
}

.plan-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 0.45rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.98rem;
}

.plan-list li span.value {
  font-weight: 650;
  margin-left: 0.5rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.96rem;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.feature-icon.check {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.feature-icon.x {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.plan-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-actions .hint {
  font-size: 0.78rem;
  opacity: 0.7;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.button-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.button-primary:hover {
  filter: brightness(1.05);
}

.button-outline {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.9);
  color: #0f172a;
}

.button-outline:disabled {
  opacity: 0.7;
  cursor: default;
}

/* Comparison table */

.features-table-section {
  max-width: 1120px;
  margin: 3.5rem auto 0;
  padding: 0 1.75rem;
}

.features-table-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.features-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.features-table thead {
  background: #f9fafb;
}

.features-table th,
.features-table td {
  padding: 0.8rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.features-table th {
  font-weight: 600;
  font-size: 0.9rem;
}

.features-table th.plan-col,
.features-table td.plan-col {
  text-align: center;
  width: 20%;
}

.features-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 800px) {
  .features-table {
    display: none; /* hide table on small screens to keep it simple */
  }
}

/* Only affect the subscriptions page */
.subscriptions-page .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: 0.75rem;
}

.subscriptions-page .brand {
  flex-shrink: 0;
}

/* Center the pill nav in the header like on index.html */
.subscriptions-page .main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
