/* ══════════════════════════════════════════
   EmailBarista — Pricing Page
   ══════════════════════════════════════════ */

/* PAGE HERO OVERRIDE (centered variant) */
.page-hero { text-align: center; }
.page-hero h1 { margin-left: auto; margin-right: auto; }
.page-hero p { max-width: 560px; margin: 0 auto; }

/* BUTTON OVERRIDES */
.btn-primary { width: 100%; justify-content: center; }

/* PRICING SECTION */
.pricing-section { padding: 80px 64px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* PRICE CARD */
.price-card {
  background: var(--card-bg);
  border: 1px solid rgba(61,43,31,0.08);
  border-radius: 24px;
  padding: 40px 36px;
  transition: all 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(61,43,31,0.1);
}

/* Featured variant */
.price-card.featured { background: var(--brown); color: white; border-color: var(--brown); }
.price-card.featured .price-name   { color: white; }
.price-card.featured .price-amount  { color: white; }
.price-card.featured .price-desc    { color: rgba(255,255,255,0.6); }
.price-card.featured .price-feature { color: rgba(255,255,255,0.8); }
.price-card.featured .feat-check    { background: rgba(255,255,255,0.15); color: white; }
.price-card.featured .price-ideal   { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.1); }
.price-card.featured .price-ideal strong { color: white; }

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Card inner elements */
.price-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 4px;
}

.price-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.price-amount {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 4px;
}

.price-period { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }

.price-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.price-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.feat-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(217,48,37,0.1);
  color: var(--red);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.price-ideal {
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid rgba(61,43,31,0.08);
  margin-bottom: 24px;
}

.price-ideal strong { color: var(--brown); }

/* COMPARISON TABLE */
.compare-section { padding: 0 64px 80px; }
.compare-section h2 { text-align: center; margin-bottom: 48px; }

.compare-wrap {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(61,43,31,0.08);
  box-shadow: 0 4px 40px rgba(61,43,31,0.05);
}

.compare-table { width: 100%; border-collapse: collapse; }

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(61,43,31,0.06);
}

.compare-table thead th {
  background: var(--brown);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.compare-table thead th:first-child { border-radius: 0; }
.compare-table thead th:last-child  { border-radius: 0; }
.compare-table thead th.col-featured { background: var(--red); }
.compare-table tbody tr:hover { background: rgba(250,246,239,0.5); }
.compare-table td:first-child { font-weight: 600; color: var(--brown); }
.compare-table td { color: var(--muted); }

.check-yes { color: var(--red); font-weight: 700; font-size: 1rem; }
.check-no  { color: rgba(61,43,31,0.15); font-size: 1rem; }

.compare-table .cat-row td {
  background: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  padding: 12px 24px;
}

/* GUARANTEE */
.guarantee { padding: 0 64px 80px; }

.guarantee-card {
  background: white;
  border-radius: 24px;
  padding: 56px 64px;
  border: 1px solid rgba(61,43,31,0.07);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.guarantee-icon {
  width: 80px;
  height: 80px;
  background: rgba(217,48,37,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.guarantee-text h3 { font-size: 1.3rem; color: var(--brown); margin-bottom: 8px; }
.guarantee-text p  { font-size: 1.5rem; color: var(--muted); line-height: 1.7; max-width: 600px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .pricing-section,
  .compare-section,
  .guarantee { padding: 48px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .compare-wrap { overflow-x: auto; }
  .guarantee-card { grid-template-columns: 1fr; text-align: center; }
  .guarantee-icon { margin: 0 auto; }
}
