/* Page-specific styles for Pricing */

/* Hero */
#hero {
  padding: 160px 24px 90px;
  text-align: center;
  background: transparent;
  display: block;
  min-height: 0;
  height: auto;
}

#hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#hero h1 {
  font-family: var(--sans);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

#hero .sub {
  font-size: 1.2rem;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 24px;
}

#hero p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}

/* Plan cards */
#plans {
  padding: 80px 24px 100px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
}

.plan-card:hover {
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
  z-index: 10;
}

.plan-card.featured {
  border-color: rgba(var(--accent-raw),0.4);
  background: linear-gradient(160deg, rgba(var(--accent-raw),0.07) 0%, var(--bg-card) 55%);
  box-shadow: 0 0 40px rgba(var(--accent-raw),0.08);
}

.plan-card.featured:hover {
  border-color: rgba(var(--accent-raw),0.6);
}

.plan-card.muted-card {
  border-color: rgba(255,255,255,0.06);
}

.plan-card.muted-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.plan-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 18px;
  width: fit-content;
}

.plan-badge.badge-free {
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.plan-badge.badge-popular {
  background: var(--gold);
  color: #fff;
}

.plan-badge.badge-custom {
  background: rgba(var(--accent-raw),0.1);
  color: var(--gold);
}

.plan-name {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.plan-price {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 4px;
}

.plan-price sup {
  font-size: 1.3rem;
  vertical-align: super;
  margin-right: 1px;
}

.plan-price .per {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.plan-annual {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.plan-capacity {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
}

.plan-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0 0 20px;
}

.plan-best-for {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.plan-features li .fi {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.plan-features li .fi.yes {
  color: var(--gold);
}

.plan-features li .fi.no {
  color: rgba(125,125,125,0.4);
}

.plan-features li.feat-yes {
  color: var(--cream);
}

.plan-cta {
  margin-top: auto;
}

.plan-cta .btn-primary,
.plan-cta .btn-secondary,
.plan-cta .btn-outline {
  width: 100%;
  text-align: center;
}

.plan-note {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.6;
}

.plan-overspend {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.plan-overspend-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.plan-overspend p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(var(--accent-raw),0.35);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  background: rgba(var(--accent-raw),0.08);
  border-color: var(--gold);
}

/* Comparison table */
#comparison {
  padding: 80px 24px 100px;
}

#comparison .section-head h1 {
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.comp-table th,
.comp-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.83rem;
}

.comp-table thead th {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-transform: uppercase;
  background: rgba(255,255,255,0.03);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.comp-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.comp-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.comp-table thead th.featured-col {
  color: var(--gold);
}

.comp-table tbody td:first-child {
  color: var(--muted);
  font-weight: 500;
  background: rgba(255,255,255,0.01);
}

.comp-table tbody td {
  color: var(--muted);
  vertical-align: middle;
}

.comp-table tbody td.featured-col {
  background: rgba(var(--accent-raw),0.04);
}

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

.comp-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.comp-table tbody tr:hover td.featured-col {
  background: rgba(var(--accent-raw),0.06);
}

.check {
  color: var(--gold);
  font-weight: 600;
}

.cross {
  color: rgba(125,125,125,0.35);
}

.dash {
  color: rgba(125,125,125,0.25);
}

.tag-val {
  font-size: 0.75rem;
  color: var(--cream);
}

.tag-note {
  font-size: 0.72rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Overspend */
#overspend {
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--accent-raw),0.04) 50%, transparent 100%);
}

.overspend-inner {
  max-width: 720px;
  margin: 0 auto;
}

#overspend .section-label {
  text-align: center;
  display: block;
  margin-bottom: 16px;
}

#overspend h1 {
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  margin-bottom: 28px;
}

#overspend .lead {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.overspend-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.overspend-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.overspend-card-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.overspend-card-limit {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 10px;
}

.overspend-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

.overspend-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overspend-rules li {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.overspend-rules li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

/* FAQ */
#faq {
  padding: 80px 24px 100px;
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

#faq .section-head h1 {
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(255,255,255,0.06);
}

details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.2s;
  user-select: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary:hover {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  transition: all 0.2s;
}

details[open] > summary .faq-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 0 22px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}

.faq-body p + p {
  margin-top: 12px;
}

/* Pricing CTA */
#cta {
  padding: 100px 24px 120px;
  text-align: center;
  position: relative;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(var(--accent-raw),0.09) 0%, transparent 70%);
  pointer-events: none;
}

#cta h1 {
  font-family: var(--sans);
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

#cta .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 20px;
}

#cta p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .overspend-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.75rem;
  }
}
