/* PovertyFinance theme — main stylesheet */
@font-face { font-family: "Inter PF"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta PF"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
	--pf-navy: #0e2a47;
	--pf-navy-2: #143a60;
	--pf-green: #0b8a5f;
	--pf-green-soft: #e3f4ec;
	--pf-bg: #ffffff;
	--pf-surface: #ffffff;
	--pf-surface-2: #f4f6f9;
	--pf-alt: #f7f9fb;
	--pf-line: #dde3ea;
	--pf-text: #1b2733;
	--pf-muted: #556372;
	--pf-warn: #9a4500;
	--pf-warn-soft: #fff3e6;
	--pf-danger: #b3261e;
	--pf-radius: 14px;
	--pf-shadow: 0 1px 2px rgba(14, 42, 71, .05), 0 18px 40px -24px rgba(14, 42, 71, .25);
	--pf-font: "Inter PF", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--pf-font-display: "Jakarta PF", "Inter PF", system-ui, sans-serif;
	--pf-max: 1200px;
	color-scheme: light;
}
[data-theme="dark"] {
	--pf-navy: #cfe0f5;
	--pf-navy-2: #9fbde0;
	--pf-green: #3cc994;
	--pf-green-soft: rgba(60, 201, 148, .12);
	--pf-bg: #0b1521;
	--pf-surface: #111f2f;
	--pf-surface-2: #0e1a28;
	--pf-alt: #0d1825;
	--pf-line: #23364b;
	--pf-text: #e4ecf5;
	--pf-muted: #9aabbd;
	--pf-warn: #ffb36b;
	--pf-warn-soft: rgba(255, 179, 107, .1);
	--pf-danger: #ff8a80;
	--pf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--pf-font); font-size: 1.0625rem; line-height: 1.6; color: var(--pf-text); background: var(--pf-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--pf-green); text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--pf-green) 80%, var(--pf-text)); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pf-green) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--pf-font-display); color: var(--pf-navy); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.pf-container { width: 100%; max-width: var(--pf-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.pf-narrow { max-width: 820px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.pf-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--pf-navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.pf-skip:focus { top: 12px; color: #fff; }
.site-main:focus { outline: none; }

/* buttons (shared with plugin) */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.pf-btn:active { transform: translateY(1px); }
.pf-btn-primary { background: var(--pf-green); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--pf-green) 80%, transparent); }
[data-theme="dark"] .pf-btn-primary { color: #06261a; }
.pf-btn-primary:hover { background: color-mix(in srgb, var(--pf-green) 86%, #000); color: #fff; }
[data-theme="dark"] .pf-btn-primary:hover { color: #06261a; background: color-mix(in srgb, var(--pf-green) 88%, #fff); }
.pf-btn-ghost { background: var(--pf-surface); border-color: var(--pf-line); color: var(--pf-navy); }
.pf-btn-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.pf-btn-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.pf-btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.04rem; border-radius: 13px; }

/* top bar + header */
.pf-topbar { background: #0a1f36; color: #cfe0f5; font-size: .85rem; }
.pf-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.pf-topbar .pf-icon { width: 15px; height: 15px; vertical-align: -2px; color: #3cc994; }
.pf-topbar-urgent { color: #ffd29a; font-weight: 600; text-decoration: none; }
.pf-topbar-urgent:hover { color: #fff; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--pf-bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--pf-line); }
.pf-header-inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.pf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pf-navy); flex: none; }
.pf-logo-mark { color: var(--pf-navy); display: inline-flex; }
[data-theme="dark"] .pf-logo-mark svg rect { fill: #1d4f80; }
.pf-logo-text { font-family: var(--pf-font-display); font-size: 1.28rem; font-weight: 500; letter-spacing: -.02em; color: var(--pf-navy); }
.pf-logo-text strong { font-weight: 800; color: var(--pf-green); }
.pf-logo-img { max-height: 44px; width: auto; }
.pf-nav { margin-left: auto; }
.pf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.pf-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--pf-text); text-decoration: none; font-size: .9rem; font-weight: 550; white-space: nowrap; }
.pf-nav a:hover { background: var(--pf-surface-2); color: var(--pf-navy); }
.pf-nav a.is-current { color: var(--pf-green); background: var(--pf-green-soft); }
.pf-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pf-theme-toggle, .pf-menu-toggle { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--pf-line); background: var(--pf-surface); color: var(--pf-navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pf-theme-toggle .pf-moon { display: none; }
[data-theme="dark"] .pf-theme-toggle .pf-sun { display: none; }
[data-theme="dark"] .pf-theme-toggle .pf-moon { display: block; }
.pf-menu-toggle { display: none; }
.pf-burger, .pf-burger::before, .pf-burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.pf-burger::before, .pf-burger::after { content: ""; position: absolute; left: 0; }
.pf-burger::before { top: -6px; } .pf-burger::after { top: 6px; }
.pf-menu-toggle[aria-expanded="true"] .pf-burger { background: transparent; }
.pf-menu-toggle[aria-expanded="true"] .pf-burger::before { transform: translateY(6px) rotate(45deg); }
.pf-menu-toggle[aria-expanded="true"] .pf-burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1340px) {
	.pf-menu-toggle { display: inline-flex; }
	.pf-nav { position: fixed; inset: 108px 0 auto 0; background: var(--pf-bg); border-bottom: 1px solid var(--pf-line); box-shadow: var(--pf-shadow); padding: 12px 16px 20px; display: none; max-height: calc(100vh - 108px); overflow-y: auto; margin: 0; }
	.pf-nav.is-open { display: block; }
	.pf-nav ul { flex-direction: column; }
	.pf-nav a { padding: 14px 12px; font-size: 1.02rem; }
	.pf-header-actions { margin-left: auto; }
}
@media (max-width: 560px) { .pf-cta { display: none; } .pf-topbar-inner > span { font-size: .78rem; } }

/* hero */
.pf-hero { position: relative; background: radial-gradient(1200px 520px at 85% -10%, rgba(60, 201, 148, .22), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(106, 167, 216, .18), transparent 55%), linear-gradient(160deg, #0e2a47 0%, #0b2139 60%, #0a1c31 100%); color: #e6eef7; overflow: hidden; }
.pf-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); pointer-events: none; }
.pf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 112px); }
.pf-hero h1 { color: #fff; }
.pf-hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: #c8d7e8; max-width: 36em; }
.pf-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.pf-hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: #c8d7e8; }
.pf-hero-trust .pf-icon { width: 18px; height: 18px; color: #3cc994; vertical-align: -4px; }
.pf-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-green); margin: 0 0 10px; }
.pf-eyebrow-light { color: #6fe0b4; }
@media (max-width: 900px) { .pf-hero-grid { grid-template-columns: 1fr; } .pf-hero-visual { max-width: 520px; } }

/* dashboard preview */
.pf-dash { margin: 0; animation: pf-float 7s ease-in-out infinite; }
@keyframes pf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pf-dash-window { background: rgba(255, 255, 255, .97); color: #1b2733; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; }
.pf-dash-bar { display: flex; gap: 6px; padding: 12px 16px; background: #eef2f6; }
.pf-dash-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9d3de; }
.pf-dash-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pf-dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-dash-row:nth-child(2) { grid-template-columns: 1fr; }
.pf-dash-card { background: #f4f6f9; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pf-dash-good { background: #e3f4ec; }
.pf-dash-good .pf-dash-num { color: #0b8a5f; }
.pf-dash-label { font-size: .78rem; color: #556372; font-weight: 600; }
.pf-dash-num { font-family: var(--pf-font-display); font-size: 1.7rem; color: #0e2a47; letter-spacing: -.02em; }
.pf-dash-sub { font-size: .76rem; color: #6b7a8a; }
.pf-dash-chart { flex-direction: row; align-items: center; gap: 18px; }
.pf-dash-legend { list-style: none; margin: 0; padding: 0; font-size: .85rem; display: flex; flex-direction: column; gap: 6px; }
.pf-dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.pf-dash-bills ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-dash-bills li { display: grid; grid-template-columns: 1fr auto 5em; gap: 8px; font-size: .88rem; background: #fff; padding: 8px 10px; border-radius: 9px; }
.pf-dash-bills li span:nth-child(2) { color: #6b7a8a; }
.pf-dash-bills b { text-align: right; color: #0e2a47; }
.pf-dash-bills li.is-in b { color: #0b8a5f; }
.pf-dash-caption { font-size: .78rem; color: #9fb4ca; text-align: center; margin-top: 12px; }

/* tools index */
.pf-tools-index { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.pf-center { text-align: center; margin-left: auto; margin-right: auto; }
.pf-tool-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pf-tool-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); background: var(--pf-surface); color: var(--pf-text); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; transition: border-color .15s, box-shadow .15s, transform .15s; height: 100%; }
.pf-tool-card:hover { border-color: var(--pf-green); box-shadow: var(--pf-shadow); transform: translateY(-2px); color: var(--pf-navy); }
.pf-tool-card-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--pf-green-soft); color: var(--pf-green); display: inline-flex; align-items: center; justify-content: center; }
.pf-tool-card.is-urgent { border-color: color-mix(in srgb, var(--pf-warn) 45%, transparent); background: var(--pf-warn-soft); }
.pf-tool-card.is-urgent .pf-tool-card-icon { background: color-mix(in srgb, var(--pf-warn) 15%, transparent); color: var(--pf-warn); }

.pf-privacy-strip { padding: 0 0 clamp(24px, 4vw, 40px); }

/* sections */
.pf-section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--pf-line); }
.pf-alt { background: var(--pf-alt); }
.pf-section-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 36px); }
.pf-section-intro { font-size: 1.1rem; color: var(--pf-muted); margin: 0; }
.pf-section-urgent { background: linear-gradient(180deg, var(--pf-warn-soft), transparent 70%); border-top: 4px solid var(--pf-warn); }
.pf-section-urgent .pf-eyebrow { color: var(--pf-warn); }
.pf-urgent-call { font-weight: 700; color: var(--pf-warn); }
.pf-about { margin-top: 18px; background: var(--pf-surface); border: 1px solid var(--pf-line); border-radius: var(--pf-radius); }
.pf-about summary { cursor: pointer; padding: 16px 20px; font-weight: 650; color: var(--pf-navy); list-style: none; display: flex; align-items: center; gap: 10px; }
.pf-about summary::-webkit-details-marker { display: none; }
.pf-about summary::before { content: "+"; display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--pf-green-soft); color: var(--pf-green); align-items: center; justify-content: center; font-weight: 700; flex: none; }
.pf-about[open] summary::before { content: "−"; }
.pf-about-list { margin: 0; padding: 0 20px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.pf-about-list dt { font-weight: 700; color: var(--pf-navy); font-size: .95rem; margin-bottom: 4px; }
.pf-about-list dd { margin: 0; color: var(--pf-muted); font-size: .95rem; }
.pf-review-strip { padding: 28px 0; background: var(--pf-surface-2); }
.pf-review-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; color: var(--pf-muted); }
.pf-review-inner p { margin: 0; }
.pf-note { padding: 12px 14px; border-radius: 12px; border-left: 4px solid var(--pf-navy); background: var(--pf-surface); }
.pf-note-warn { border-left-color: var(--pf-warn); background: var(--pf-warn-soft); }

/* prose / pages */
.pf-page-head { padding: clamp(40px, 6vw, 72px) 0 24px; background: var(--pf-surface-2); border-bottom: 1px solid var(--pf-line); margin-bottom: 36px; }
.pf-breadcrumb { font-size: .88rem; color: var(--pf-muted); }
.pf-breadcrumb a { color: var(--pf-muted); }
.pf-updated { font-size: .88rem; color: var(--pf-muted); margin: 0; }
.pf-prose { padding-bottom: 64px; }
.pf-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.pf-prose ul, .pf-prose ol { padding-left: 1.3em; }
.pf-prose li { margin-bottom: .4em; }
.pf-list-item { padding: 20px 0; border-bottom: 1px solid var(--pf-line); }

/* footer */
.site-footer { background: #0a1c31; color: #b8c9db; padding: 64px 0 28px; font-size: .94rem; }
.site-footer a { color: #dbe7f3; text-decoration: none; }
.site-footer a:hover { color: #6fe0b4; text-decoration: underline; }
.pf-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.pf-footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-footer-h { font-family: var(--pf-font); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa6bf; margin: 0 0 14px; font-weight: 700; }
.pf-footer-logo { color: #fff; margin-bottom: 6px; }
.pf-footer-logo strong { color: #3cc994; }
.pf-footer-tag { color: #6fe0b4; font-weight: 600; }
.pf-footer-disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: #93a8be; }
.pf-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; font-size: .85rem; color: #8fa6bf; }
.pf-footer-bottom p { margin: 0; }
@media (max-width: 960px) { .pf-footer-grid { grid-template-columns: 1fr 1fr; } .pf-footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .pf-footer-grid { grid-template-columns: 1fr; } }

/* scroll reveal (progressive; content visible without JS) */
.pf-js .pf-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.pf-js .pf-reveal.is-in { opacity: 1; transform: none; }

/* WordPress core alignment helpers */
.alignwide { max-width: 1100px; } .alignfull { width: 100%; }
.wp-block-image img { border-radius: var(--pf-radius); }

@media print {
	.pf-topbar, .site-header, .site-footer, .pf-hero-visual, .pf-tools-index, .pf-privacy-strip, .pf-ad { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.pf-section { padding: 16px 0; border: 0; break-inside: avoid-page; }
	.pf-about { display: none; }
	a { color: #000; }
}
