/**
 * Green theme: the site's gold accents, re-coloured green on every page.
 *
 * Loaded last on every page (see inc/enqueue.php), so it wins over the gold
 * defined in main.css and the page stylesheets. To go back to gold, delete
 * this file and its enqueue block. Nothing else depends on it.
 */

body {
	--cpf-green: #16a34a;
	--cpf-green-hover: #15803d;
	--cpf-green-light: #22c55e;
	--cpf-green-shadow: 0 8px 22px rgba(22, 163, 74, 0.28);

	/* Every gold token the theme uses, remapped to green. */
	--gold: #16a34a !important;
	--gold-dark: #15803d !important;
	--gold-deep: #166534 !important;
	--gold-button: #16a34a !important;
	--gold-hover: #15803d !important;
	--gold-soft: #16a34a !important;
	--gold-tint: #ecfdf3 !important;
	--gold-hi: #22c55e !important;
	--gold-lo: #15803d !important;
	--gold2: #16a34a !important;
	--accent: #16a34a !important;
	--accent-hover: #15803d !important;
	--cpp-gold: #16a34a !important;
	--cpp-gold-ink: #166534 !important;
	--cpp-cream: #ecfdf3 !important;
	--shadow-cta: 0 16px 34px rgba(22, 163, 74, 0.27), 0 3px 8px rgba(22, 163, 74, 0.16) !important;
}

/* Pages that define their own gold on <main>: a value set on <body> cannot
   reach past them, so they are remapped where they are defined. */
body.cpf-p-filingguard main {
	--gold: #16a34a !important;
	--gold-hi: #22c55e !important;
	--gold-lo: #15803d !important;
	--gold-hover: #15803d !important;
	--amber: #15803d !important;
	--amber-light: #e3f6ea !important;
}

body.cpf-p-contact main {
	--gold: #16a34a !important;
	--gold2: #16a34a !important;
}

body .btn-gold,
body .nav-cta,
body .mobile-menu a.mm-cta,
body .mega-fbtn,
body .mega-col a.mega-fbtn,
body .hiw-cta,
body .cpp-btn--gold,
body .fg-cta,
body .cp-chat-form button {
	background: var(--cpf-green) !important;
	border-color: var(--cpf-green) !important;
	color: #fff !important;
	box-shadow: var(--cpf-green-shadow) !important;
}

body .btn-gold {
	background: linear-gradient(135deg, var(--cpf-green), var(--cpf-green-light)) !important;
}

body .btn-gold:hover,
body .btn-gold:focus-visible,
body .nav-cta:hover,
body .nav-cta:focus-visible,
body .mobile-menu a.mm-cta:hover,
body .mega-fbtn:hover,
body .mega-col a.mega-fbtn:hover,
body .hiw-cta:hover,
body .hiw-cta:focus-visible,
body .cpp-btn--gold:hover,
body .cpp-btn--gold:focus-visible,
body .fg-cta:hover,
body .fg-cta:focus-visible,
body .cp-chat-form button:hover {
	background: var(--cpf-green-hover) !important;
	border-color: var(--cpf-green-hover) !important;
	color: #fff !important;
}

body .btn-gold *,
body .nav-cta *,
body .hiw-cta *,
body .cpp-btn--gold *,
body .fg-cta *,
body .cp-chat-form button * {
	color: inherit !important;
}

/* ---------------------------------------------------------------------------
 * Hard-coded gold (not driven by a variable): text, borders, icons, glows.
 * ------------------------------------------------------------------------ */

/* Logo dot. */
body #cp-brand-icon circle[fill="#D6A11F"] {
	fill: #22c55e !important;
}

/* Hero background glows. */
body header.hero {
	background: radial-gradient(900px 420px at 88% -8%, rgba(22, 163, 74, 0.16), transparent 62%), radial-gradient(640px 300px at 6% 16%, rgba(14, 27, 46, 0.055), transparent 58%), linear-gradient(180deg, #fafbfd 0%, #f6f8fb 58%, #eaf0f6 100%) !important;
}

body header.hero::before {
	background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, transparent 70%) !important;
}

body header.hero::after {
	background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, transparent 70%) !important;
}

/* Hero eyebrow pill. */
body .eyebrow {
	background: linear-gradient(100deg, #166534 0%, #15803d 60%, #166534 100%) !important;
	box-shadow: 0 2px 8px rgba(22, 101, 52, 0.28) !important;
}

body .hero-trust-line {
	border-color: rgba(22, 163, 74, 0.22) !important;
}

/* Quiz progress bar. */
body .hero-quiz-progress-fill {
	background: linear-gradient(90deg, #166534, #16a34a, #22c55e) !important;
}

/* Navy hero panel and final CTA band: gold glow becomes green glow. */
body .hero-dashboard-panel {
	background: radial-gradient(280px 210px at 65% 30%, rgba(22, 163, 74, 0.28), transparent 66%), linear-gradient(150deg, #0e1b2e 0%, #183557 58%, #254666 100%) !important;
}

body section.final {
	background: radial-gradient(650px 300px at 80% 0%, rgba(22, 163, 74, 0.18), transparent 62%), linear-gradient(150deg, #0e1b2e 0%, #163251 58%, #0f2840 100%) !important;
}

/* Section background glows. */
body section.pricing {
	background: radial-gradient(760px 360px at 16% 0%, rgba(22, 163, 74, 0.14), transparent 58%), linear-gradient(180deg, #fff 0%, #fafbfd 100%) !important;
}

body footer {
	background: radial-gradient(720px 300px at 85% 0%, rgba(22, 163, 74, 0.08), transparent 60%), linear-gradient(180deg, #fafbfd 0%, #f2f5f9 100%) !important;
}

/* Icon tiles. */
body .cp-ico {
	color: #15803d !important;
	background: #dcfce7 !important;
}

body .hiw-ico {
	background: linear-gradient(150deg, #ecfdf3, #dcfce7) !important;
	color: #15803d !important;
}

body .contact-card-icon.chat,
body .contact-card-icon.cal {
	background: rgba(22, 163, 74, 0.13) !important;
	color: #15803d !important;
}

/* Numbered steps, badges, status dots. */
body .bank-num {
	border-color: rgba(22, 163, 74, 0.45) !important;
	background: #ecfdf3 !important;
}

body .cmpx-badge {
	color: #166534 !important;
	background: #bbf7d0 !important;
}

body .fg-dot {
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.22) !important;
}

body .fg-badge.fg-warn {
	background: rgba(22, 163, 74, 0.2) !important;
	color: #166534 !important;
}

/* Footer accents. */
body footer h4::after,
body .foot-contact-heading::after {
	background: linear-gradient(90deg, #16a34a, #22c55e) !important;
}

body .foot-div::before {
	background: linear-gradient(90deg, transparent, #16a34a) !important;
}

body .foot-div::after {
	background: linear-gradient(90deg, #16a34a, transparent) !important;
}

body .foot-div span {
	background: #16a34a !important;
}

body .foot-chip {
	border-color: rgba(22, 163, 74, 0.28) !important;
}

body .foot-chip-tag {
	color: #166534 !important;
}

/* Light cream / beige tints and warm card borders. */
body th.fcol {
	background: #ecfdf3 !important;
}

body td.fcol {
	background: linear-gradient(180deg, #f3fdf6, #e8f9ee) !important;
}

body .foot-chip {
	background: #f0fdf4 !important;
}

body .hero-split,
body .plan,
body .contact-card,
body .contact-form-wrap,
body .foot-grid > div,
body .foot-legal {
	border-color: rgba(187, 225, 200, 0.92) !important;
}

/* Remaining warm borders: nav, every card type, plus hover/focus states. */
body .nav {
	border-bottom-color: rgba(187, 225, 200, 0.9) !important;
}

body .pcard,
body .tool-card,
body .compare-card,
body .price-card,
body .hiw-card,
body .hero-quiz-option {
	border-color: rgba(187, 225, 200, 0.92) !important;
}

body .pcard:hover,
body .tool-card:hover,
body .compare-card:hover,
body .contact-card:hover,
body .hiw-card:hover,
body .hero-quiz-option:hover,
body .plan:hover {
	border-color: #16a34a !important;
}

body .form input:focus,
body .form select:focus,
body .form textarea:focus {
	border-color: #16a34a !important;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

body .btn-gold:not(:disabled),
body .hero-quiz-next:not(:disabled),
body .hiw-cta:hover,
body .fg-cta:hover {
	box-shadow: 0 8px 22px rgba(22, 163, 74, 0.3) !important;
}

/* ---------------------------------------------------------------------------
 * Plan names (U.S. Starter / Growth / Premium and the Canada cards) shown as a
 * centred green pill, styled like the buttons.
 * ------------------------------------------------------------------------ */
body .cpp-plan-titlerow {
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

body .plan-titlerow {
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
}

body .cpp-plan-name,
body .plan-titlerow h3 {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: center;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 8px 26px !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, var(--cpf-green), var(--cpf-green-light)) !important;
	color: #fff !important;
	font-size: 20px !important;
	line-height: 1.2 !important;
	box-shadow: var(--cpf-green-shadow) !important;
}

body .plan {
	display: flex;
	flex-direction: column;
}

body .plan-titlerow h3 {
	width: fit-content;
}

/* "Most popular" / "Recommended" badge: small corner pill, like "Save $79". */
body .cpp-plan {
	position: relative !important;
}

body .cpp-plan .cpp-badge,
body .plan.plan--spotlight .plan-titlerow .tag {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	background: #1d9e4a !important;
	color: #fff !important;
	font-family: var(--ui);
	font-size: 0.66rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	padding: 4px 9px !important;
	border-radius: 999px !important;
	line-height: 1.3 !important;
}

/* Full-width form button ("Send My Request"): centre the label. */
body .btn.form-full {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
}

/* Spotlight Canada card: same green button as the U.S. featured card. */
body .plan.plan--spotlight .btn-gold {
	color: #fff !important;
}

/* Room between the corner badge ("Most popular", "Save $99") and the title
   pill. Applied to every pricing card so the titles stay level in a row. */
body .plan-titlerow,
body .cpp-plan-titlerow {
	margin-top: 22px !important;
}

body .plan .save-corner,
body .cpp-plan .cpp-badge,
body .plan.plan--spotlight .plan-titlerow .tag {
	top: 12px !important;
	right: 12px !important;
}

/* Taller pills: more padding above and below the plan names and the corner
   badges. */
body .cpp-plan-name,
body .plan-titlerow h3 {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

body .plan .save-corner,
body .cpp-plan .cpp-badge,
body .plan.plan--spotlight .plan-titlerow .tag {
	padding-top: 6px !important;
	padding-bottom: 6px !important;
}

/* Keep the gap under the now-taller badges. */
body .plan-titlerow,
body .cpp-plan-titlerow {
	margin-top: 28px !important;
}

/* ---------------------------------------------------------------------------
 * Gold written as inline styles in templates and scripts, which the green
 * stylesheet copies cannot reach: the FilingGuard "coming soon" note, the
 * wizard's name-check note and its "pending" status line.
 * ------------------------------------------------------------------------ */
[style*="#FEF6E7"],
[style*="254, 246, 231"] {
	background: #ecfdf3 !important;
	border-color: #bbf7d0 !important;
	color: #166534 !important;
}

.rok[style*="C5962B"],
.rok[style*="197, 150, 43"] {
	color: #15803d !important;
}

/* Setup wizard: elements that sit on the (now green) gold background keep
   navy text in start.css. White reads better on green, as everywhere else. */
body .opt .oic.oic-action,
body .opt.opt-action:hover .oic,
body .pcol-cta.pay,
body .pcol-badge.b-premium,
body .pcol-badge.b-epremium,
body .pcol-badge.hot,
body .cpx-in button {
	color: #fff !important;
}

/* Every element with a solid green background gets white text. These kept the
   navy / dark-gold text they had on gold. */
body .ctc-btn,
body .ctc-btn:hover,
body .fgp-btn-gold,
body .fgp-btn-gold:hover,
body .fgp-btn-gold:focus-visible,
body .cpf-btn--primary,
body .cpf-btn--primary:hover,
body .cpf-btn--primary:focus-visible,
body .cpf-mega-badge,
body .fg-soon,
body .ush-pill,
body .ca-eyebrow,
body .cmp-eyebrow,
body .ca-sec .tag,
body .cpf-p-canada .tag,
body .plan .tag {
	color: #fff !important;
}

body .ctc-btn *,
body .fgp-btn-gold *,
body .cpf-btn--primary *,
body .ca-eyebrow *,
body .cmp-eyebrow * {
	color: inherit !important;
}
/* main.css forces navy text on .btn-gold:visited / :hover / :focus with
   !important, which outranks a plain .btn-gold rule. Links that were already
   visited (or just clicked) showed navy text on green. Cover every state. */
body .btn-gold,
body .btn-gold:link,
body .btn-gold:visited,
body .btn-gold:hover,
body .btn-gold:focus,
body .btn-gold:focus-visible,
body .btn-gold:active,
body a.btn-gold:visited:hover,
body .nav-cta:visited,
body .nav-cta:focus,
body .mm-cta:visited,
body .mega-fbtn:visited,
body .hiw-cta:visited,
body .hiw-cta:focus,
body .cpp-btn--gold:visited,
body .cpp-btn--gold:focus,
body .fg-cta:visited,
body .fg-cta:focus,
body .fgp-btn-gold:visited,
body .fgp-btn-gold:active,
body .pcol-cta.pay:visited,
body .pcol-cta.pay:hover,
body .pcol-cta.pay:focus {
	color: #fff !important;
}
