/* Funded Joe — styles theme.json can't express. Tokens come from theme.json. */

:root {
	--fj-radius-s: var(--wp--custom--radius--small, 8px);
	--fj-radius-m: var(--wp--custom--radius--medium, 14px);
	--fj-radius-l: var(--wp--custom--radius--large, 22px);
	--fj-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--accent-soft); }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Header ---------- */
.fj-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap
   the navigation block's fixed-position mobile overlay inside the header box. */
.fj-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.admin-bar .fj-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .fj-header { top: 0; } }
.fj-header.is-scrolled { border-bottom-color: var(--wp--preset--color--line); box-shadow: 0 6px 20px -16px rgba(14,33,64,.35); }

.fj-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--wp--preset--color--contrast); }
.fj-logo svg { width: 36px; height: 36px; flex: none; }
.fj-logo__word { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.fj-logo__word span { color: var(--wp--preset--color--primary); }
.fj-footer .fj-logo { color: var(--wp--preset--color--base); }
.fj-footer .fj-logo__word span { color: #8FB0EA; }

.fj-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.fj-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1rem, 4vw, 2rem); }
.fj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; padding-top: 3.5rem; }
.fj-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start; gap: 1.1rem; width: 100%;
	font-family: var(--wp--preset--font-family--heading); font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em;
}
.fj-header .wp-block-navigation__responsive-container.is-menu-open .fj-nav-mobile-only {
	margin-top: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); width: 100%;
	align-items: flex-start !important;
}
.fj-header .wp-block-navigation__responsive-container.is-menu-open .fj-nav-mobile-only a { color: var(--wp--preset--color--primary); }
.fj-header .wp-block-navigation__responsive-container:not(.is-menu-open) .fj-nav-mobile-only { display: none; }
@media (max-width: 781px) {
	.fj-header__login { display: none !important; }
}
@media (max-width: 420px) {
	.fj-header .wp-block-button__link { padding: .6rem 1rem !important; font-size: .9375rem !important; }
	.fj-logo__word { font-size: 1.1rem; }
	.fj-logo svg { width: 32px; height: 32px; }
}

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s, color .15s, transform .15s var(--fj-ease), box-shadow .15s; box-shadow: 0 1px 0 rgba(14,33,64,.12); }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(242,106,27,.7); }
.wp-block-button.is-style-secondary .wp-block-button__link { background: var(--wp--preset--color--primary); color: #fff; }
.wp-block-button.is-style-secondary .wp-block-button__link:hover { background: var(--wp--preset--color--primary-dark); box-shadow: 0 8px 18px -10px rgba(31,79,168,.7); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 1.5px solid var(--wp--preset--color--contrast); padding: calc(.8rem - 1.5px) calc(1.5rem - 1.5px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); box-shadow: none; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: inherit; box-shadow: none; padding-inline: .5rem; text-decoration: underline; text-underline-offset: 4px; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { transform: none; color: var(--wp--preset--color--accent-dark); }
.has-contrast-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--base); }
.has-contrast-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }

/* ---------- Typographic helpers ---------- */
.is-style-eyebrow, .fj-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.is-style-eyebrow::before, .fj-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--wp--preset--color--accent); }
.has-text-align-center.is-style-eyebrow { justify-content: center; display: flex; }
.has-contrast-background-color .is-style-eyebrow { color: #8FB0EA; }
.fj-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); line-height: 1.5; }
.has-contrast-background-color .fj-lead { color: #C9D3E6; }
.fj-hl { color: var(--wp--preset--color--primary); position: relative; white-space: nowrap; }
.fj-hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--wp--preset--color--accent); border-radius: 99px; opacity: .9; z-index: -1; }
.fj-hl { z-index: 0; isolation: isolate; }

/* ---------- Cards ---------- */
.wp-block-group.is-style-card, .fj-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--fj-radius-l);
	box-shadow: var(--wp--preset--shadow--card);
	padding: clamp(1.25rem, 3vw, 2rem);
}
.has-contrast-background-color .wp-block-group.is-style-card { background: rgba(255,255,255,.04); border-color: rgba(247,241,230,.14); box-shadow: none; }

.fj-icon {
	width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
	background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary);
	margin-bottom: .25rem;
}
.fj-icon svg { width: 24px; height: 24px; }
.fj-icon--orange { background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent-dark); }

/* Step numbers */
.fj-step {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.1rem;
}
.fj-steps > .wp-block-column { position: relative; }

/* Check list */
.wp-block-list.is-style-checks, .fj-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checks li, .fj-checks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.wp-block-list.is-style-checks li::before, .fj-checks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.fj-crosses li::before { background-color: var(--wp--preset--color--accent-dark); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }

/* ---------- Hero ---------- */
.fj-hero { position: relative; overflow: hidden; }
.fj-hero::before {
	content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
	background: radial-gradient(closest-side, rgba(31,79,168,.12), transparent 70%);
	pointer-events: none;
}
.fj-hero::after {
	content: ""; position: absolute; inset: -30% auto auto -15%; width: 45vw; height: 45vw; max-width: 600px; max-height: 600px;
	background: radial-gradient(closest-side, rgba(242,106,27,.11), transparent 70%);
	pointer-events: none;
}
.fj-hero > * { position: relative; z-index: 1; }
.fj-hero h1 { font-size: var(--wp--preset--font-size--huge); letter-spacing: -.035em; line-height: 1.02; }
.fj-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.fj-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.fj-trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--accent); }

/* Example account card (illustration, not live data) */
.fj-mock {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--fj-radius-l);
	box-shadow: var(--wp--preset--shadow--lift);
	padding: 1.5rem;
	max-width: 460px;
	margin-inline: auto;
	transform: rotate(-1.2deg);
	font-size: var(--wp--preset--font-size--small);
}
.fj-mock__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.fj-mock__name { font-weight: 650; }
.fj-mock__tag { font-size: .75rem; font-weight: 650; padding: .25rem .6rem; border-radius: 99px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); white-space: nowrap; }
.fj-mock__label { color: var(--wp--preset--color--muted); font-size: .8125rem; }
.fj-mock__balance { font-family: var(--wp--preset--font-family--heading); font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fj-mock__delta { color: #1B7A4B; font-weight: 650; font-size: .875rem; }
.fj-mock__chart { margin: .75rem 0 1rem; height: 70px; }
.fj-mock__chart svg { width: 100%; height: 100%; display: block; }
.fj-mock__row { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center; margin-top: .8rem; }
.fj-mock__bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--wp--preset--color--base-2); overflow: hidden; }
.fj-mock__bar i { display: block; height: 100%; border-radius: inherit; background: var(--wp--preset--color--primary); }
.fj-mock__bar--orange i { background: var(--wp--preset--color--accent); }
.fj-mock__val { font-weight: 650; font-variant-numeric: tabular-nums; }
.fj-mock__foot { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--wp--preset--color--line); display: flex; justify-content: space-between; color: var(--wp--preset--color--muted); font-size: .8125rem; }
.fj-mock__note { text-align: center; color: var(--wp--preset--color--muted); font-size: .75rem; margin-top: .9rem; }
@media (max-width: 781px) { .fj-mock { transform: none; } }

/* ---------- Highlights strip ---------- */
.fj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fj-stats > div { padding: .25rem 1.25rem; border-left: 1px solid var(--wp--preset--color--line); }
.fj-stats > div:first-child { border-left: 0; }
.fj-stats strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--wp--preset--color--contrast); }
.fj-stats span { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
@media (max-width: 781px) {
	.fj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
	.fj-stats > div:nth-child(3) { border-left: 0; }
}

/* ---------- Terminal illustration ---------- */
.fj-terminal {
	background: #0B1A33; color: #C9D3E6; border-radius: var(--fj-radius-l); overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lift); border: 1px solid rgba(255,255,255,.06);
	font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.fj-terminal__bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #0E2140; border-bottom: 1px solid rgba(255,255,255,.06); }
.fj-terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A3E62; }
.fj-terminal__bar b { margin-left: .5rem; font-weight: 600; color: #8FA3C4; font-size: .75rem; }
.fj-terminal__body { display: grid; grid-template-columns: 1fr 150px; min-height: 260px; }
.fj-terminal__chart { padding: 1rem; border-right: 1px solid rgba(255,255,255,.06); }
.fj-terminal__chart svg { width: 100%; height: 200px; display: block; }
.fj-terminal__side { padding: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.fj-terminal__sym { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.fj-terminal__up { color: #5FD39A; }
.fj-terminal__down { color: #FF8A5B; }
.fj-terminal__btns { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.fj-terminal__btns span { text-align: center; padding: .5rem 0; border-radius: 8px; font-weight: 700; color: #0E2140; }
.fj-terminal__btns span:first-child { background: #FF8A5B; }
.fj-terminal__btns span:last-child { background: #7EA6F2; }
@media (max-width: 600px) { .fj-terminal__body { grid-template-columns: 1fr; } .fj-terminal__side { border-top: 1px solid rgba(255,255,255,.06); } }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; list-style: none; font-weight: 650; font-size: var(--wp--preset--font-size--medium); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--wp--preset--color--base-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2140' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .2s var(--fj-ease), background-color .2s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); background-color: var(--wp--preset--color--accent-soft); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); margin-top: .75rem; }

/* ---------- Page hero (sub pages) ---------- */
.fj-page-hero { border-bottom: 1px solid var(--wp--preset--color--line); }
.fj-page-hero h1 { font-size: var(--wp--preset--font-size--xx-large); }

/* ---------- Tables (rules, legal) ---------- */
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-radius: var(--fj-radius-m); overflow: hidden; font-size: var(--wp--preset--font-size--small); }
.wp-block-table th, .wp-block-table td { padding: .85rem 1rem; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table thead th { background: var(--wp--preset--color--base-2); font-weight: 650; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-table figcaption { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); }
.wp-block-table { overflow-x: auto; }

/* ---------- Notices ---------- */
.fj-notice { border-radius: var(--fj-radius-m); padding: 1rem 1.25rem; background: var(--wp--preset--color--accent-soft); border: 1px solid #F5C3A0; font-size: var(--wp--preset--font-size--small); }

/* ---------- Footer ---------- */
.fj-footer a { color: #DCE3F0; text-decoration: none; }
.fj-footer a:hover { color: #fff; text-decoration: underline; }
.fj-footer h4 { color: #fff; font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--small); letter-spacing: .06em; text-transform: uppercase; font-weight: 650; }
.fj-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: var(--wp--preset--font-size--small); }
.fj-footer .fj-disclaimer { color: #9AA8C2; font-size: var(--wp--preset--font-size--x-small); line-height: 1.6; }

/* ---------- Blog ---------- */
.fj-post-card { height: 100%; }
.fj-post-card .wp-block-post-featured-image img { border-radius: var(--fj-radius-m); aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.fj-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--fj-ease), transform .6s var(--fj-ease); }
	.fj-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
