/* ═══════════════════════════════════════════════════════════════
   pricing.css  —  Styles for /pricing/index.html
   Layered on top of main.css (loaded after it).
   Reuses tokens and base rules already in main.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero extension ─────────────────────────────────────────────── */
.page-hero { padding-bottom: 80px; }

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

/* ── Billing toggle ─────────────────────────────────────────────── */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.billing-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 4px;
}

.billing-toggle button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.22s, color 0.22s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.billing-toggle button.active {
  background: var(--blue);
  color: #fff;
}

.save-badge {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}

.billing-hint {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
}

/* ── 4-column plan grid ─────────────────────────────────────────── */
.pc4 {
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: stretch;
}

/* Extend .pricing-card from main.css for 4-up layout */
.pc4 .pricing-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 30px;
  background: var(--surface);
}

.pc4 .pricing-card.featured {
  border: 1.5px solid var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 8px 32px rgba(22, 163, 74, 0.1);
}

.pc4 .pricing-card.featured:hover {
  box-shadow: 0 0 0 1px var(--green), 0 18px 48px rgba(22, 163, 74, 0.15);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Plan tier label + description */
.plan-tier-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.plan-tier-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 38px;
}

/* Price display */
.plan-big-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-big-price .pc-cur {
  font-size: 20px;
  font-weight: 700;
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.plan-big-price .pc-per {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.plan-ann-note {
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.plan-ann-save {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  min-height: 16px;
  margin-bottom: 16px;
}

/* CTA buttons */
.plan-btn {
  display: block;
  text-align: center;
  background: var(--blue);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.plan-btn:hover      { background: var(--blue-dark); transform: translateY(-1px); }
.plan-btn.green      { background: var(--green); }
.plan-btn.green:hover { background: #15803d; }

.plan-btn.outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.plan-btn.outline:hover { background: var(--blue-light); }

/* User / product limit tag */
.plan-limit-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Feature list — suppress main.css ::before checkmark, use inline marks */
.pc4 .pricing-card ul         { list-style: none; flex: 1; margin-bottom: 0; }
.pc4 .pricing-card ul li::before { display: none; }

.pc4 .pricing-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--text);
  padding: 5px 0;
}

.pc4 .pricing-card ul li .li-check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pc4 .pricing-card ul li .li-dash  { color: var(--border); font-weight: 700; flex-shrink: 0; }
.pc4 .pricing-card ul li.li-off    { color: var(--muted); }

/* Price fade animation */
.price-animate { transition: opacity 0.18s ease, transform 0.18s ease; }
.price-animate.fading { opacity: 0; transform: translateY(-5px); }

/* ── Stats banner ───────────────────────────────────────────────── */
.pc-stats {
  background: var(--blue-light);
  border-top: 1px solid var(--blue-muted);
  border-bottom: 1px solid var(--blue-muted);
  padding-block: 40px;
}

.pc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.pc-stat-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}

.pc-stat-lbl { font-size: 13px; color: var(--blue-dark); font-weight: 500; }

/* ── Feature comparison table ───────────────────────────────────── */
.pc-compare {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pc-section-header          { text-align: center; margin-bottom: 48px; }
.pc-section-header h2       { margin-bottom: 8px; }
.pc-section-header p        { font-size: 16px; color: var(--muted); margin: 0; }

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

.pc-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 14px;
}

.pc-table thead th {
  padding: 14px 14px 18px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.pc-table thead th:first-child { text-align: left; min-width: 210px; }

.pc-table thead th.col-pop {
  background: rgba(22, 163, 74, 0.04);
  position: relative;
  padding-top: 22px;
}

.pc-table thead th.col-pop::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.pc-table .cat-row td {
  background: var(--bg);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.pc-table tbody tr:not(.cat-row) td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.pc-table tbody tr:not(.cat-row):hover td { background: rgba(29, 78, 216, 0.025); }
.pc-table .col-pop                        { background: rgba(22, 163, 74, 0.03); }
.pc-table tbody td:first-child            { color: var(--text); font-weight: 500; }
.pc-table td:not(:first-child)            { text-align: center; }

.pc-check { color: var(--green); font-size: 16px; font-weight: 700; }
.pc-dash  { color: #d1ccc0; font-size: 16px; }

/* ── HaaS section ───────────────────────────────────────────────── */
.haas-section {
  background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  color: #fff;
}

.haas-section .section-label { background: rgba(255, 255, 255, 0.1); color: var(--blue-muted); }
.haas-section h2             { color: #fff; }
.haas-section .section-sub   { color: rgba(255, 255, 255, 0.62); max-width: 560px; margin-bottom: 48px; line-height: 1.7; }

.haas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.haas-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.haas-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

.haas-card.haas-featured {
  border-color: var(--blue);
  background: rgba(29, 78, 216, 0.14);
}

.haas-card.haas-featured:hover { box-shadow: 0 24px 56px rgba(29, 78, 216, 0.35); }

.haas-best-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.haas-tier-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 8px;
}

.haas-big-price {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 4px;
}

.haas-big-price .hc { font-size: 22px; font-weight: 700; vertical-align: top; margin-top: 8px; display: inline-block; }
.haas-big-price .hp { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }

.haas-contract { font-size: 12px; color: rgba(255, 255, 255, 0.40); margin-bottom: 3px; }
.haas-total    { font-size: 12px; color: rgba(255, 255, 255, 0.28); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.haas-divider  { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 20px; }

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

.haas-feats li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.haas-feats .hck { color: var(--blue-muted); font-weight: 700; font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.haas-btn {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s;
  font-family: inherit;
  cursor: pointer;
}

.haas-btn:hover                        { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); }
.haas-card.haas-featured .haas-btn     { background: var(--blue); border-color: var(--blue); }
.haas-card.haas-featured .haas-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.haas-footnote {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.30);
  line-height: 1.65;
}
.haas-footnote strong { color: rgba(255, 255, 255, 0.52); }

.haas-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.haas-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.30);
}

/* ── Payment methods ────────────────────────────────────────────── */
.pc-payment { background: var(--bg); }

.pc-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.pc-pay-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.pc-pay-card:hover {
  border-color: var(--blue-muted);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.08);
}

.pc-pay-icon { font-size: 32px; margin-bottom: 10px; }
.pc-pay-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pc-pay-desc { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pc4                { grid-template-columns: repeat(2, 1fr) !important; }
  .haas-grid          { grid-template-columns: 1fr 1fr; }
  .pc-stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .pc-pay-grid        { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 680px) {
  .pc4                { grid-template-columns: 1fr !important; }
  .pc-stats-grid      { grid-template-columns: 1fr 1fr; }
  .pc-pay-grid        { grid-template-columns: 1fr 1fr; }
  .billing-toggle button { padding: 8px 14px; font-size: 13px; }
}
