/*
Theme Name: TakeHomeNow
Description: Modern theme for TakeHomeNow take-home pay calculators and salary guides.
Version: 0.3.1
Requires PHP: 8.1
Text Domain: paycalc-theme
*/

/* ============================================================ tokens */
:root {
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

	--bg: #f6f8fb;
	--surface: #ffffff;
	--surface-2: #f1f5f9;
	--text: #0f172a;
	--text-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--primary: #059669;
	--primary-2: #10b981;
	--primary-soft: #ecfdf5;
	--primary-ink: #065f46;
	--accent: #6366f1;
	--warn-soft: #fffbeb;
	--info-soft: #eef2ff;

	--hero-bg: #0b1220;
	--hero-text: #e2e8f0;
	--hero-muted: #94a3b8;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -8px rgba(15, 23, 42, .12);
	--shadow-lg: 0 24px 60px -20px rgba(2, 6, 23, .45);
	--wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b1120;
		--surface: #111827;
		--surface-2: #1e293b;
		--text: #f1f5f9;
		--text-2: #cbd5e1;
		--muted: #94a3b8;
		--line: #1f2a3c;
		--primary: #34d399;
		--primary-2: #10b981;
		--primary-soft: rgba(16, 185, 129, .12);
		--primary-ink: #6ee7b7;
		--warn-soft: rgba(245, 158, 11, .1);
		--info-soft: rgba(99, 102, 241, .12);
		--hero-bg: #050914;
		--shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
	}
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16.5px/1.7 var(--font);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "cv11", "ss01";
}
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: .2em 0 .35em; font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 750; margin: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 650; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.pc-icon { flex: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* numbers */
.pc-table td, .pc-kpi__value, .pc-result__big, .pc-legend__value, .pc-bar__value, .pc-chip-stat strong { font-variant-numeric: tabular-nums; }

/* ============================================================ header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 18, 32, .82);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.28rem; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.site-logo:hover { color: #fff; }
.site-logo__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #34d399, #6366f1); color: #fff; box-shadow: 0 6px 18px -6px rgba(52, 211, 153, .7); }
.site-logo span.accent { color: #34d399; }
.site-nav { margin-left: auto; }
.mega { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.mega__item { position: relative; }
.mega__top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #cbd5e1; font-weight: 550; font-size: .94rem; }
.mega__top svg { opacity: .7; transition: transform .2s; }
.mega__item:hover .mega__top, .mega__item:focus-within .mega__top { color: #fff; background: rgba(148, 163, 184, .12); }
.mega__item:hover .mega__top svg, .mega__item:focus-within .mega__top svg { transform: rotate(180deg); }
.mega__panel {
	position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
	display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; width: 620px; padding: 18px;
	background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.mega__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.mega__panel--single { grid-template-columns: 1fr; width: 280px; }
.mega__item:nth-last-child(-n+2) .mega__panel { left: auto; right: 0; transform: translate(0, 6px); }
.mega__item:hover .mega__panel, .mega__item:focus-within .mega__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__item:nth-last-child(-n+2):hover .mega__panel, .mega__item:nth-last-child(-n+2):focus-within .mega__panel { transform: translate(0, 0); }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__col--guides { border-left: 1px solid var(--line); padding-left: 18px; }
.mega__title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 10px 8px; }
.mega__link { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); line-height: 1.35; }
.mega__link strong { font-size: .92rem; font-weight: 650; }
.mega__link small { font-size: .8rem; color: var(--muted); }
.mega__link:hover { background: var(--primary-soft); color: var(--primary-ink); }
.mega__link:hover small { color: var(--primary-ink); }
@media (max-width: 1180px) { .mega__top { padding: 10px 8px; font-size: .9rem; } }
.site-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #10b981; color: #04241a; font-weight: 700; font-size: .92rem; text-decoration: none; }
.site-cta:hover { background: #34d399; color: #04241a; }
.site-menu-toggle { display: none; }
@media (max-width: 900px) {
	.site-nav, .site-cta { display: none; }
	.site-menu-toggle { display: block; margin-left: auto; }
	.site-menu-toggle summary { list-style: none; cursor: pointer; color: #fff; padding: 8px; border-radius: 8px; }
	.site-menu-toggle summary::-webkit-details-marker { display: none; }
	.site-menu-toggle[open] .site-menu-panel { display: block; }
	.site-menu-panel { position: absolute; left: 0; right: 0; top: 68px; max-height: calc(100vh - 68px); overflow-y: auto; background: #0b1220; border-bottom: 1px solid rgba(148, 163, 184, .15); padding: 8px 16px 18px; }
	.m-menu, .m-menu ul { list-style: none; margin: 0; padding: 0; }
	.m-menu > li { border-bottom: 1px solid rgba(148, 163, 184, .12); }
	.m-menu summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 6px; color: #fff; font-weight: 700; cursor: pointer; }
	.m-menu summary::-webkit-details-marker { display: none; }
	.m-menu summary .pc-icon { transform: rotate(90deg); transition: transform .2s; opacity: .7; }
	.m-menu details[open] summary .pc-icon { transform: rotate(-90deg); }
	.m-menu details ul { padding: 0 0 12px 8px; }
	.m-menu a { display: block; padding: 9px 8px; color: #cbd5e1; text-decoration: none; font-weight: 500; border-radius: 8px; }
	.m-menu a:hover { background: rgba(148, 163, 184, .12); color: #fff; }
	.m-menu__title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #34d399; padding: 10px 8px 4px; }
}
@media (min-width: 901px) { .site-menu-panel { display: none; } }

/* ============================================================ hero */
.pc-hero, .home-hero, .page-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 480px at 8% -10%, rgba(16, 185, 129, .28), transparent 60%),
		radial-gradient(760px 420px at 95% 10%, rgba(99, 102, 241, .32), transparent 60%),
		linear-gradient(180deg, var(--hero-bg), #0f1a2e);
	color: var(--hero-text);
	padding: 28px 0 56px;
}
.pc-hero::after, .home-hero::after, .page-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 70%);
}
.pc-hero .wrap, .home-hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.pc-hero h1, .home-hero h1, .page-hero h1 { color: #fff; }
.pc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--hero-muted); margin-bottom: 22px; }
.pc-crumbs a { color: var(--hero-muted); text-decoration: none; }
.pc-crumbs a:hover { color: #fff; }
.pc-crumbs span[aria-hidden] { opacity: .5; }
.pc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
@media (max-width: 980px) { .pc-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 560px) {
	.pc-calc__grid { grid-template-columns: minmax(0, 1fr); }
	.pc-kpis { gap: 8px; }
	.pc-kpi { padding: 12px; }
	.pc-kpi__value { font-size: 1.2rem; }
	.pc-result__row { gap: 6px; }
	.pc-result__row div { padding: 8px; }
	.pc-table th, .pc-table td { padding: 10px; }
	.pc-legend li { grid-template-columns: 14px minmax(0, 1fr) auto; }
	.pc-legend__pct { display: none; }
}
html, body { overflow-x: clip; }
.pc-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #a7f3d0; background: rgba(16, 185, 129, .12); border: 1px solid rgba(52, 211, 153, .25); }
.pc-hero__lead { font-size: 1.14rem; color: #cbd5e1; max-width: 40em; }
.pc-hero__lead strong { color: #6ee7b7; }

.pc-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pc-kpi { position: relative; padding: 16px 16px 14px 16px; border-radius: 14px; background: rgba(15, 23, 42, .55); border: 1px solid rgba(148, 163, 184, .16); display: flex; flex-direction: column; gap: 2px; }
.pc-kpi .pc-icon { color: #34d399; margin-bottom: 6px; }
.pc-kpi__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hero-muted); font-weight: 600; }
.pc-kpi__value { font-family: var(--display); font-size: 1.45rem; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.pc-kpi__sub { font-size: .8rem; color: var(--hero-muted); }

/* ============================================================ calculator card */
.pc-calc-card { background: var(--surface); color: var(--text); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(148, 163, 184, .18); }
.pc-calc { padding: 22px 22px 18px; }
.pc-calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pc-field { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pc-field--wide { grid-column: 1 / -1; }
.pc-input { position: relative; display: block; }
.pc-input input, .pc-input select {
	width: 100%; font: 600 1rem/1.3 var(--font); color: var(--text); text-transform: none; letter-spacing: 0;
	background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px;
	transition: border-color .15s, background .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.pc-field--wide .pc-input input { font-size: 1.35rem; font-family: var(--display); font-weight: 750; padding: 14px 16px 14px 34px; }
.pc-input--money input { padding-left: 30px; }
.pc-input--money::before { content: attr(data-symbol); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.pc-field--wide .pc-input--money::before { font-size: 1.3rem; }
.pc-input--select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pc-input input:focus, .pc-input select:focus { outline: none; border-color: var(--primary-2); background: var(--surface); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: 0; border-radius: 12px; padding: 13px 20px; font: 700 1rem var(--font); cursor: pointer; box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .8); transition: transform .12s, box-shadow .12s; text-decoration: none; }
.pc-btn:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 12px 24px -8px rgba(5, 150, 105, .9); }
.pc-btn--block { width: 100%; }

.pc-result { padding: 22px; background: linear-gradient(180deg, var(--primary-soft), var(--surface)); border-top: 1px solid var(--line); transition: opacity .2s; }
.pc-result.is-loading { opacity: .5; }
.pc-result__label { font-size: .8rem; font-weight: 700; color: var(--primary-ink); text-transform: uppercase; letter-spacing: .06em; }
.pc-result__big { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem); letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 14px; }
.pc-result__big small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pc-result__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pc-result__row div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pc-result__row span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.pc-result__row strong { font-size: 1.08rem; font-family: var(--display); }
.pc-mini-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--text-2); }
.pc-mini-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pc-mini-legend b { color: var(--text); }

/* ============================================================ layout */
.pc-body { padding-top: 40px; }
.pc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 1080px) { .pc-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.pc-aside { display: none; }
@media (min-width: 1080px) { .pc-aside { display: block; } }
.pc-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }

.pc-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px; box-shadow: var(--shadow-sm); }
.pc-toc strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.pc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.pc-toc li { counter-increment: toc; }
.pc-toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.pc-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-size: .75rem; font-weight: 700; padding-top: 2px; }
.pc-toc a:hover, .pc-toc a.is-active { background: var(--primary-soft); color: var(--primary-ink); }

/* ============================================================ sections */
.pc-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .pc-section { padding: 20px 16px; } }
.pc-section--plain { background: transparent; border: 0; box-shadow: none; padding: 8px 0; }
.pc-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pc-section__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.pc-section > p, .pc-section p { color: var(--text-2); }
.pc-note { font-size: .85rem; color: var(--muted) !important; }
.pc-pos { color: var(--primary); }

/* tables */
.pc-table-wrap { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pc-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); padding: 11px 14px; font-weight: 700; white-space: nowrap; }
.pc-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--text-2); }
.pc-table tbody tr:hover td { background: var(--surface-2); }
.pc-table tr.is-active td { background: var(--primary-soft); color: var(--text); }
.pc-table tr.is-muted td { color: var(--muted); }
.pc-table tr.is-total td { background: var(--surface-2); }
.pc-table a { font-weight: 600; text-decoration: none; }
.pc-meter { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 99px; background: var(--line); margin-right: 10px; overflow: hidden; }
.pc-meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* donut + legend */
.pc-breakdown { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 12px; }
@media (max-width: 640px) { .pc-breakdown { grid-template-columns: 1fr; justify-items: center; } }
.pc-donut { position: relative; }
.pc-donut svg { width: 100%; height: 100%; }
.pc-donut circle { transition: stroke-width .15s; }
.pc-donut circle:hover { stroke-width: 30; }
.pc-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pc-donut__center span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.pc-donut__center strong { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; }
.pc-legend { list-style: none; margin: 0; padding: 0; width: 100%; }
.pc-legend li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 56px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.pc-legend li:first-child { font-weight: 700; }
.pc-legend__value { font-weight: 700; color: var(--text); }
.pc-legend__pct { color: var(--muted); text-align: right; font-size: .88rem; }
.pc-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; }
.pc-explain { margin: 16px 0 0; padding-left: 20px; color: var(--text-2); }
.pc-explain li { margin-bottom: 8px; }

/* stacked bar */
.pc-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--line); gap: 2px; }
.pc-section .pc-stack { height: 38px; border-radius: 12px; margin: 8px 0 18px; }
.pc-stack span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 700; }
.pc-chip-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pc-chip-stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pc-chip-stat strong { font-family: var(--display); font-size: 1.25rem; }
.pc-chip-stat span:last-child { font-size: .82rem; color: var(--muted); }

/* horizontal bars */
.pc-bars { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.pc-bar { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: .92rem; padding: 4px 6px; border-radius: 10px; }
@media (max-width: 560px) { .pc-bar { grid-template-columns: 1fr auto; } .pc-bar__track { grid-column: 1 / -1; order: 3; } }
.pc-bar.is-current { background: var(--primary-soft); }
.pc-bar__label a { color: var(--text); text-decoration: none; font-weight: 600; }
.pc-bar__label a:hover { color: var(--primary); }
.pc-bar__track { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.pc-bar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.pc-bar.is-current .pc-bar__fill { background: linear-gradient(90deg, #10b981, #34d399); }
.pc-bar__value { font-weight: 700; white-space: nowrap; }
.pc-rank { display: inline-block; min-width: 30px; font-size: .76rem; font-weight: 700; color: var(--muted); }

/* callouts */
.pc-callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin: 14px 0 4px; background: var(--info-soft); color: var(--text-2); font-size: .95rem; }
.pc-callout .pc-icon { color: var(--accent); margin-top: 2px; }
.pc-callout--success { background: var(--primary-soft); }
.pc-callout--success .pc-icon { color: var(--primary); }

/* budget */
.pc-budget { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
@media (max-width: 640px) { .pc-budget { grid-template-columns: 1fr; } }
.pc-budget__item { border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); }
.pc-budget__item span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 8px; }
.pc-budget__item strong { font-family: var(--display); font-size: 1.6rem; }
.pc-budget__item small { color: var(--muted); }
.pc-budget__item--needs .pc-icon { color: #6366f1; }
.pc-budget__item--wants .pc-icon { color: #f59e0b; }
.pc-budget__item--save .pc-icon { color: #10b981; }
.pc-checks { list-style: none; padding: 0; margin: 0; }
.pc-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: var(--text-2); }
.pc-checks .pc-icon { color: var(--primary); margin-top: 5px; }

/* states grid */
.pc-states { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pc-states a, .pc-states span:not([class]) { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--surface); transition: border-color .15s, transform .15s, box-shadow .15s; }
.pc-states a:hover { border-color: var(--primary-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.pc-states__abbr { grid-row: 1 / 3; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); font-weight: 800; font-size: .8rem; color: var(--text-2); }
.pc-states__name { font-weight: 650; font-size: .92rem; line-height: 1.3; }
.pc-badge { font-style: normal; font-size: .74rem; color: var(--muted); font-weight: 600; }
.pc-badge--green { color: var(--primary); }

/* steps */
.pc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .pc-steps { grid-template-columns: 1fr; } }
.pc-steps li { background: var(--surface-2); border-radius: 14px; padding: 18px; }
.pc-steps__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--primary); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.pc-steps strong { display: block; margin-bottom: 4px; }
.pc-steps p { margin: 0; font-size: .92rem; }

/* FAQ */
.pc-faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface); transition: border-color .15s; }
.pc-faq details[open] { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(16, 185, 129, .08); }
.pc-faq summary { list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 650; position: relative; }
.pc-faq summary::-webkit-details-marker { display: none; }
.pc-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.pc-faq details[open] summary::after { content: "–"; color: var(--primary); }
.pc-faq details p { padding: 0 18px 16px; margin: 0; color: var(--text-2); }

/* link cards */
.pc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pc-card-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.pc-card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-2); color: var(--text); }
.pc-card-link__icon { color: var(--primary); background: var(--primary-soft); padding: 8px; width: 38px; height: 38px; border-radius: 10px; }
.pc-card-link span { flex: 1; min-width: 0; line-height: 1.35; }
.pc-card-link strong { display: block; font-size: .93rem; }
.pc-card-link small { color: var(--muted); font-size: .82rem; }
.pc-card-link__arrow { color: var(--muted); }

.pc-method { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); font-size: .9rem; margin-top: 8px; }
.pc-method .pc-icon { color: var(--primary); }
.pc-method p { margin: 4px 0 0; }

/* ads */
.pc-ad { margin: 0 0 22px; display: flex; align-items: center; justify-content: center; }
.pc-ad--placeholder { border: 2px dashed var(--line); color: var(--muted); font-size: .82rem; border-radius: var(--radius); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(148, 163, 184, .06) 10px 20px); }

/* ============================================================ home */
.home-hero { padding: 64px 0 80px; }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .home-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .home-hero { padding: 40px 0 56px; } }
.home-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.home-hero h1 em { font-style: normal; background: linear-gradient(90deg, #34d399, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: #cbd5e1; font-size: .92rem; }
.home-trust span { display: inline-flex; align-items: center; gap: 8px; }
.home-trust .pc-icon { color: #34d399; }
.home-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.home-chips a { padding: 7px 13px; border-radius: 999px; font-size: .86rem; color: #e2e8f0; text-decoration: none; background: rgba(148, 163, 184, .12); border: 1px solid rgba(148, 163, 184, .18); }
.home-chips a:hover { background: rgba(16, 185, 129, .2); color: #fff; }

.home-section { padding: 64px 0 8px; }
.home-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.home-section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.home-section__head p { color: var(--muted); margin: 6px 0 0; max-width: 40em; }
.home-kicker { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 6px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-2); color: var(--text); }
.tool-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.tool-card h3 { margin: 6px 0 0; font-size: 1.15rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.tool-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); font-size: .92rem; }

.country-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .country-grid { grid-template-columns: 1fr; } }
.country-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-2); color: var(--text); }
.country-card__code { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.country-card h3 { margin: 8px 0 0; font-size: 1.2rem; }
.country-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.stat-band strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.stat-band span { color: var(--muted); font-size: .92rem; }

.cta-band { margin: 72px 0 0; border-radius: 26px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff;
	background: radial-gradient(600px 300px at 0% 0%, rgba(16, 185, 129, .45), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(99, 102, 241, .5), transparent 60%), #0b1220; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #cbd5e1; margin: 8px 0 0; }

/* ============================================================ blog */
.page-hero { padding: 44px 0 52px; }
.page-hero p { color: #cbd5e1; max-width: 42em; font-size: 1.08rem; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-pills a { padding: 7px 14px; border-radius: 999px; font-size: .88rem; color: #e2e8f0; text-decoration: none; background: rgba(148, 163, 184, .12); border: 1px solid rgba(148, 163, 184, .18); }
.cat-pills a.is-active, .cat-pills a:hover { background: #10b981; border-color: #10b981; color: #04241a; }

.post-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card__img { aspect-ratio: 1200 / 630; background: linear-gradient(135deg, #064e3b, #312e81); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: 8px; }
.post-chip { display: inline-block; align-self: flex-start; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin: 36px 0 0; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); }
.nav-links .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.post-hero .post-meta { color: #94a3b8; font-size: .9rem; margin-top: 14px; }
.post-hero .post-chip { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
.post-hero h1 { max-width: 22em; }
.post-feature { margin-top: -30px; position: relative; z-index: 2; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px clamp(20px, 4vw, 48px); font-size: 1.06rem; box-shadow: var(--shadow-sm); }
.entry > *:first-child { margin-top: 0; }
.entry h2 { margin: 1.8em 0 .6em; font-size: 1.55rem; }
.entry h3 { margin: 1.5em 0 .5em; }
.entry p, .entry li { color: var(--text-2); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0 1.4em; }
@media (max-width: 640px) { .entry table { display: block; overflow-x: auto; } }
.entry th { background: var(--surface-2); text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; }
.entry blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--primary-2); background: var(--primary-soft); border-radius: 0 12px 12px 0; }
.entry .pc-faq { margin-top: 10px; }
.entry img { max-width: 100%; height: auto; }
.entry .pc-figure { margin: 1.4em 0; }
.entry .pc-figure img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.home-text .entry, .blog-text { max-width: 860px; margin-left: auto; margin-right: auto; }
.blog-text { margin-top: 56px; margin-bottom: 24px; }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 20px; border-radius: var(--radius); background: var(--surface-2); }
.author-box img { border-radius: 50%; }
.author-box p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.side-cta { border-radius: var(--radius); padding: 22px; color: #fff; background: radial-gradient(300px 200px at 0% 0%, rgba(16, 185, 129, .5), transparent 70%), #0b1220; }
.side-cta h3 { color: #fff; margin: 8px 0 6px; }
.side-cta p { color: #cbd5e1; font-size: .92rem; }
.side-cta .pc-icon { color: #34d399; }

/* ============================================================ company pages */
.entry--page h2 { display: flex; align-items: center; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.entry--page > h2:first-of-type { border-top: 0; padding-top: 0; }
.entry--page h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #10b981, #6366f1); flex: none; }
.entry--page .lead { font-size: 1.15rem; color: var(--text); }
.company-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.company-nav strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.company-nav a { padding: 7px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .92rem; }
.company-nav a:hover, .company-nav a.is-active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.thn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.thn-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .thn-grid:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
.thn-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface-2); }
.thn-card strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; color: var(--text); }
.thn-card span { font-size: .92rem; color: var(--muted); }
.thn-stat strong { font-size: 1.8rem; letter-spacing: -.02em; }
.thn-box { border-radius: 14px; padding: 16px 20px; margin: 18px 0; background: var(--info-soft); border-left: 4px solid var(--accent); }
.thn-box--green { background: var(--primary-soft); border-left-color: var(--primary-2); }
.thn-box--warn { background: var(--warn-soft); border-left-color: #f59e0b; }
.thn-box p:last-child { margin-bottom: 0; }
.thn-form { display: grid; gap: 14px; margin: 18px 0; }
.thn-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 650; color: var(--muted); }
.thn-form input, .thn-form select, .thn-form textarea { font: 500 1rem var(--font); color: var(--text); background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; }
.thn-form input:focus, .thn-form select:focus, .thn-form textarea:focus { outline: none; border-color: var(--primary-2); background: var(--surface); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.thn-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .thn-form__row { grid-template-columns: 1fr; } }
.thn-form .thn-hp { position: absolute; left: -9999px; }
.thn-form .pc-btn { justify-self: start; margin-top: 0; }

/* ============================================================ footer */
.site-footer { margin-top: 80px; background: #0b1220; color: #94a3b8; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { margin-top: 14px; max-width: 26em; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #34d399; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(148, 163, 184, .14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

.error-hero { text-align: center; padding: 90px 0; }
.error-hero strong { display: block; font-family: var(--display); font-size: 6rem; line-height: 1; background: linear-gradient(90deg, #34d399, #818cf8); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
