/* ── Foreclosure Decoded — Pricing Page ─────────────────────────────────────
   Page-specific styles. Global vars, resets, and typography live in styles.css.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Marketing header ─────────────────────────────────────────────────────── */
.pricing-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.pricing-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 640px) { .pricing-header__inner { padding: 0 16px; } }

.pricing-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.pricing-header__brand img {
  height: 36px;
  width: auto;
}
.pricing-header__wordmark {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.pricing-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pricing-header__signin {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.12s;
}
.pricing-header__signin:hover { color: var(--navy); }
.pricing-header__cta {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.12s;
  font-family: 'Inter', system-ui, sans-serif;
}
.pricing-header__cta:hover { background: #162038; }

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 32px 5rem;
}
@media (max-width: 1024px) { .pricing-page { padding: 2.5rem 24px 4rem; } }
@media (max-width: 640px)  { .pricing-page { padding: 2rem 16px 3rem; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.pricing-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
.pricing-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.pricing-hero h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.pricing-hero p {
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
}
@media (max-width: 640px) {
  .pricing-hero h1 { font-size: 1.65rem; }
}

/* ── Plan cards ───────────────────────────────────────────────────────────── */
.plans-grid-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  margin-bottom: 4rem;
}
@media (max-width: 900px) { .plans-grid-matrix { grid-template-columns: 1fr; gap: 1.5rem; } }

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.tier-card.popular-tier {
  border: 2px solid var(--navy);
  padding-top: 2.75rem;
}

.popular-badge-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Card head */
.tier-card__head .type {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.tier-card__head h2 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1rem;
}

/* Price */
.price-display-wrapper {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}
.price-display-wrapper .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  align-self: flex-start;
  margin-top: 2px;
}
.price-display-wrapper .amount {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.price-display-wrapper .interval {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}

.annual-price-disclaimer {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}
.discount-pill-tag {
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  text-transform: uppercase;
}

.tier-card__description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  min-height: 45px;
}

/* Feature list */
.tier-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  border-top: 1px solid var(--surface-alt);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tier-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.tier-feature-item.muted-item {
  color: #cbd5e1;
  text-decoration: line-through;
}
.tier-feature-item .check-icon {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.tier-feature-item .dash-icon {
  color: #e2e8f0;
  font-weight: 400;
  font-size: 0.9rem;
  flex-shrink: 0;
  padding-left: 2px;
}

/* CTA buttons */
.btn-tier-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}
.btn-tier-cta:hover { background: #162038; }
.btn-tier-cta.btn-teal { background: var(--teal); }
.btn-tier-cta.btn-teal:hover { background: #175c56; }

/* ── Free account notice ───────────────────────────────────────────────────── */
.free-account-notice-bar {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 5rem;
  font-weight: 500;
}
.free-account-notice-bar a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.free-account-notice-bar a:hover { text-decoration: underline; }

/* ── Comparison table ─────────────────────────────────────────────────────── */
.matrix-section-title {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.75rem;
}
.comparison-matrix-wrapper {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
  margin-bottom: 5rem;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--surface);
  min-width: 560px;
}
.matrix-table th,
.matrix-table td {
  padding: 12px 18px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}
.matrix-table th {
  background: var(--surface-alt);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-size: 0.64rem;
}
.matrix-table th:first-child {
  color: var(--navy);
  font-size: 0.72rem;
}
.matrix-table tr.category-divider-row td {
  background: #fafafa;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-size: 0.62rem;
}
.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table td.feature-label {
  font-weight: 600;
  color: var(--navy);
}
.matrix-table td.center-indicator {
  text-align: center;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.95rem;
  width: 14%;
}
.matrix-table td.center-indicator .blank-dash {
  color: #e2e8f0;
  font-weight: 400;
}

/* ── FAQ accordion ────────────────────────────────────────────────────────── */
.faq-section-container {
  max-width: 760px;
  margin: 0 auto;
}
.faq-accordion-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.faq-accordion-trigger {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  transition: background 0.12s;
}
.faq-accordion-trigger:hover { background: var(--surface-alt); }
.faq-accordion-trigger .chevron {
  color: var(--text-muted);
  transition: transform 0.15s ease-in-out;
  font-weight: 400;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}
.faq-accordion-content p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.faq-accordion-card.expanded-card .faq-accordion-content { max-height: 200px; }
.faq-accordion-card.expanded-card .faq-accordion-trigger .chevron {
  transform: rotate(180deg);
  color: var(--navy);
}
