/* =========================================================================
   Pricing styles — shared by the homepage pricing section and /pricing so
   the two can never drift (loaded on both; see inc/setup.php). v3 credit model:
   four plan cards + Enterprise, then the included / credit explainer.
   ========================================================================= */

/* ---- Plan grid (4 tiers + Enterprise) ------------------------------------ */
.plan-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
	gap: 18px;
	align-items: stretch;
	margin-bottom: 20px;
}
@media (max-width: 1080px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .plan-grid { grid-template-columns: 1fr; } }

.plan { position: relative; padding: 32px 26px; display: flex; flex-direction: column; }
.plan.is-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-badge {
	position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
	background: var(--accent); color: var(--navy);
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 5px 12px; border-radius: 999px;
}
.plan-name { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }

/* Regular rate anchor — plain text, never a strikethrough (FTC). */
.plan-anchor { display: block; margin-top: 16px; font-size: 12.5px; color: var(--text2); }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
.plan-amt { font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.plan-amt.plan-contact { font-size: 26px; color: var(--mint); }
.plan-per { color: var(--text2); font-size: 15px; }
/* "Founding Member Rate" badge (a pill, not a strikethrough — FTC framing). */
.plan-found-label { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }

.plan-credits { display: block; margin: 20px 0; font-size: 21px; font-weight: 700; color: var(--mint); }
.plan-credits span { font-size: 12.5px; font-weight: 500; color: var(--text2); }

.plan-incl { list-style: none; margin: 0 0 24px; flex: 1; }
.plan-incl li { padding: 7px 0 7px 22px; font-size: 13.5px; color: var(--text2); position: relative; }
.plan-incl li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { display: block; margin-top: auto; }
.plan-enterprise { border-style: dashed; }

/* Non-featured plan buttons (Basic/Starter/Pro + Enterprise "Let's talk") sit
   on the dark --surface plan cards on BOTH pages, so btn-line's navy border +
   navy text is invisible. Give them a light outline + light text; only Growth
   (btn-solid) stays solid green. */
.plan .btn-line { border-color: rgba(244, 247, 255, .28); color: var(--text); background: transparent; }
.plan .btn-line:hover { background: var(--text); color: var(--navy); border-color: var(--text); }

/* ---- Included / never-charge-for + credit explainer ---------------------- */
.incl-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 56px auto 40px; }
@media (max-width: 700px) { .incl-wrap { grid-template-columns: 1fr; } }
.incl-col { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; color: var(--text); }
.incl-col .kicker { margin-bottom: 16px; }
.incl-list { list-style: none; }
.incl-list li { padding: 9px 0 9px 26px; font-size: 14.5px; position: relative; border-top: 1px solid var(--border); }
.incl-list li:first-child { border-top: 0; }
.incl-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.incl-never li { color: var(--text2); }
.incl-never li::before { content: "✕"; color: var(--text2); font-weight: 700; }

.founding-lock {
	max-width: 640px; margin: 0 auto 12px; text-align: center;
	font-size: 14px; line-height: 1.55; color: var(--text2);
	padding: 12px 18px; border: 1px solid var(--border); border-radius: 12px;
	background: color-mix(in srgb, var(--accent) 7%, transparent);
}
/* Precise-scope footnote — subscription vs. usage/credit pricing. */
.founding-foot { max-width: 640px; margin: 0 auto 30px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--text2); }

.credit-explainer { max-width: 660px; margin: 0 auto 26px; text-align: center; }
.credit-explainer .kicker { display: inline-block; margin-bottom: 14px; }
.credit-usage { font-size: 16.5px; color: var(--text); line-height: 1.55; margin: 0 auto; max-width: 620px; }
.credit-billing { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.credit-note { margin-top: 14px; font-size: 13.5px; color: var(--text2); }

/* ---- Shared note / CTA (used by the explainer and /pricing) --------------- */
.price-note { max-width: 640px; margin: 0 auto; text-align: center; color: var(--ink2); font-size: 14.5px; }
.price-cta { text-align: center; margin-top: 30px; }
.price-fine { margin-top: 16px; color: var(--ink2); font-size: 13px; }

/* ---- Dark-section (homepage pricing on navy) overrides --------------------
   Scoped to .sec-dark so the /pricing page (light) keeps the --ink2 defaults.
   Recolor the light-bg helper text and lift the include / credit panels. */
.sec-dark .price-note,
.sec-dark .price-fine { color: var(--text2); }
.sec-dark .price-note a { color: var(--mint); }
.sec-dark .incl-col { box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
/* Plan-card lift — defined here (not home.css) so /pricing gets it too. */
.sec-dark .plan { box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.sec-dark .plan.is-popular { box-shadow: 0 0 0 1px var(--accent), 0 14px 34px rgba(0, 0, 0, .28); }
