/* =====================================================================
   pricing.css — Senior6 Thrive plans & compare page
   Loaded after platform.css + base.css. Reads brand tokens.
   ===================================================================== */
.pricing-hero { text-align: center; padding: 56px 0 8px; }
.pricing-hero h1 { font-family: var(--font-display); font-size: 2.6rem; color: var(--brand-primary); margin: 0 0 10px; }
.pricing-hero p { color: var(--text-muted); font-size: 1.12rem; max-width: 40em; margin: 0 auto; }
.pricing-hero .trial-note { display: inline-block; margin-top: 16px; background: var(--brand-accent-soft); color: var(--brand-accent-dark); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 20px; }
.bill-note { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 6px 0 30px; }

/* ---- plan cards ---- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; max-width: var(--maxw); margin: 0 auto; }
.price-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); position: relative; }
.price-card.featured { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.price-card .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand-primary); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.price-card .plan-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--brand-primary); }
.price-card .plan-sub { color: var(--text-muted); font-size: .84rem; min-height: 2.4em; margin: 4px 0 14px; }
.price-card .price { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--text); line-height: 1; }
.price-card .price small { font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: var(--text-muted); }
.price-card .price-unit { color: var(--text-muted); font-size: .8rem; margin: 4px 0 18px; }
.price-card .plan-cta { display: block; text-align: center; margin-bottom: 18px; }
.price-card ul.feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.price-card ul.feats li { position: relative; padding-left: 24px; font-size: .88rem; color: var(--text); line-height: 1.4; }
.price-card ul.feats li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--brand-accent-dark); font-weight: 800; }
.price-card ul.feats li.muted { color: var(--text-muted); }
.price-card ul.feats li.muted::before { content: '+'; color: var(--text-muted); }
.price-card .feats-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 4px; }

/* ---- big custom-content callout ---- */
.custom-callout { max-width: var(--maxw); margin: 56px auto 0; background: linear-gradient(150deg, var(--brand-primary), var(--brand-primary-dark)); color: #fff; border-radius: var(--radius); padding: 40px 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.custom-callout h2 { font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 10px; color: #fff; }
.custom-callout p { opacity: .92; margin: 0 0 8px; font-size: 1rem; }
.custom-callout .own { font-size: .86rem; opacity: .8; }
.custom-callout .cc-price { text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 24px; }
.custom-callout .cc-price .big { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.custom-callout .cc-price .per { opacity: .85; font-size: .9rem; margin: 4px 0 16px; }

/* ---- add-ons ---- */
.addons { max-width: var(--maxw); margin: 48px auto 0; text-align: center; }
.addons h2 { font-family: var(--font-display); font-size: 1.7rem; color: var(--brand-primary); margin: 0 0 6px; }
.addons > p { color: var(--text-muted); margin: 0 0 24px; }
.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.addon { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.addon .ico { font-size: 1.7rem; }
.addon h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--brand-primary); margin: 10px 0 6px; }
.addon p { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* ---- compare table ---- */
.compare-wrap { max-width: var(--maxw); margin: 56px auto 0; overflow-x: auto; }
.compare-wrap h2 { font-family: var(--font-display); font-size: 1.7rem; color: var(--brand-primary); text-align: center; margin: 0 0 22px; }
/* display:table guards against the generic `.compare` grid component in base.css,
   which otherwise turns this table into a grid and splits thead/tbody apart. */
table.compare { display: table; width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare th, table.compare td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border); font-size: .9rem; }
table.compare thead th { font-family: var(--font-head); color: var(--brand-primary); font-size: .98rem; }
table.compare tbody th { text-align: left; font-weight: 600; color: var(--text); }
table.compare td.yes { color: var(--brand-accent-dark); font-weight: 700; }
table.compare td.no { color: var(--text-muted); }
table.compare tr.group th { background: var(--surface-2); text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--text-muted); }

/* ---- faq / notes ---- */
.pricing-faq { max-width: var(--reading); margin: 52px auto 0; }
.pricing-faq h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-primary); text-align: center; margin: 0 0 18px; }
.pricing-faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; background: var(--surface); }
.pricing-faq summary { font-weight: 600; cursor: pointer; color: var(--text); }
.pricing-faq p { color: var(--text-muted); font-size: .92rem; margin: 10px 0 0; }
.pricing-legal { text-align: center; color: var(--text-muted); font-size: .8rem; margin: 28px auto 0; max-width: 48em; }

/* ---- certification ladder (pricing2) ---- */
.cert-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: var(--maxw); margin: 0 auto; align-items: stretch; }
.cert-step { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--brand-primary); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cert-step .tier-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cert-step .tier-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; flex: none; }
.cert-step .tier-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.cert-step h3 { font-family: var(--font-head); color: var(--text); font-size: 1.1rem; margin: 0 0 8px; }
.cert-step .who { font-size: .82rem; color: var(--brand-accent-dark); font-weight: 600; margin: 0 0 10px; }
.cert-step p { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.cert-step:nth-child(1) .tier-num { background: #7fb89a; }
.cert-step:nth-child(2) .tier-num { background: #4f9e78; }
.cert-step:nth-child(3) .tier-num { background: var(--brand-primary); }
.cert-step:nth-child(4) .tier-num { background: var(--brand-primary-dark); }

/* ---- how certification works ---- */
.cert-how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; max-width: 920px; margin: 0 auto; }
.cert-how .pt { display: flex; gap: 14px; align-items: flex-start; }
.cert-how .pt .ico { font-size: 1.5rem; line-height: 1; flex: none; }
.cert-how .pt strong { display: block; color: var(--text); font-family: var(--font-head); margin-bottom: 3px; }
.cert-how .pt span { color: var(--text-muted); font-size: .9rem; }
.bundle-banner { max-width: var(--maxw); margin: 32px auto 0; background: var(--brand-accent-soft); border: 1px solid var(--brand-accent); border-radius: var(--radius); padding: 22px 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; text-align: center; }
.bundle-banner .pct { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--brand-accent-dark); }
.bundle-banner .bb-text strong { color: var(--brand-primary); }
.bundle-banner .bb-text span { display: block; color: var(--text-muted); font-size: .9rem; }
.compare-switch { text-align: center; margin: 14px 0 0; }
.compare-switch a { font-size: .85rem; color: var(--brand-accent-dark); text-decoration: none; font-weight: 600; }
.compare-switch a:hover { text-decoration: underline; }

/* ---- pricing-model toggle (home page section) ---- */
.price-toggle { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 34px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.price-toggle .pt-btn { border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; color: var(--text-muted); padding: 10px 24px; border-radius: 999px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.price-toggle .pt-btn:hover { color: var(--text); }
.price-toggle .pt-btn.active { background: var(--brand-primary); color: #fff; box-shadow: var(--shadow); }
.price-model[hidden] { display: none; }

@media (max-width: 920px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-ladder { grid-template-columns: repeat(2, 1fr); }
  .cert-how { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .custom-callout { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .price-grid { grid-template-columns: 1fr; }
  .pricing-hero h1 { font-size: 2rem; }
}
