/*
Theme Name:   Free Site Guys (Astra Child)
Description:  Child theme of Astra for Free Site Guys
Template:     astra
Version:      1.1.0
Text Domain:  freesite
*/

/* ==========================================================
   Brand tokens (from brand-assets/Free Site Guys Brand Board)
   ========================================================== */
:root {
	--chambray: #344A86;
	--chambray-dk: #283a6b;
	--harbour: #407794;
	--tussock: #C2964B;
	--tussock-lt: #d6ae6b;
	--silver: #E1DDD6;
	--silver-lt: #F3F1ED;
	--charred: #4B4945;
	--ink: #2b2a28;
	--white: #fff;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(43, 42, 40, .06), 0 8px 24px rgba(43, 42, 40, .08);
	--shadow-lg: 0 2px 4px rgba(43, 42, 40, .06), 0 24px 60px rgba(52, 74, 134, .18);
	--wrap: 1160px;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.fsg {
	margin: 0;
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--charred);
	background: var(--silver-lt);
	-webkit-font-smoothing: antialiased;
}
.fsg img { max-width: 100%; height: auto; display: block; }
.fsg a { color: var(--chambray); text-underline-offset: 3px; }
.fsg a:hover { color: var(--harbour); }
.fsg h1, .fsg h2, .fsg h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
.fsg h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.fsg h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.fsg h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.fsg p { margin: 0 0 1em; }
.fsg code { background: var(--silver); padding: .1em .4em; border-radius: 5px; font-size: .9em; }
.fsg :focus-visible { outline: 3px solid var(--tussock); outline-offset: 2px; }

.fsg-wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fsg-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.fsg-skip:focus { left: 8px; }

.fsg-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--harbour); margin-bottom: 14px !important;
}
.fsg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tussock); box-shadow: 0 0 0 4px rgba(194, 150, 75, .25); animation: fsg-pulse 2s infinite; }
@keyframes fsg-pulse { 50% { box-shadow: 0 0 0 8px rgba(194, 150, 75, 0); } }
.fsg-accent { color: var(--chambray); }
.fsg-lead { font-size: 1.15rem; color: var(--charred); max-width: 38em; }

/* Buttons */
.fsg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
	padding: 17px 28px; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.fsg-btn:hover { transform: translateY(-1px); }
.fsg-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.fsg-btn--gold { background: var(--tussock); color: var(--ink) !important; box-shadow: 0 6px 18px rgba(194, 150, 75, .35); }
.fsg-btn--gold:hover { background: var(--tussock-lt); }
.fsg-btn--blue { background: var(--chambray); color: var(--white) !important; box-shadow: 0 6px 18px rgba(52, 74, 134, .3); }
.fsg-btn--blue:hover { background: var(--chambray-dk); }
.fsg-btn--ghost { background: transparent; color: var(--chambray) !important; border-color: rgba(52, 74, 134, .3); }
.fsg-btn--ghost:hover { border-color: var(--chambray); background: rgba(52, 74, 134, .05); }
.fsg-btn--sm { padding: 11px 20px; font-size: .92rem; }
.fsg-link { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--chambray); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   Header
   ========================================================== */
.fsg-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 241, 237, .88);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid rgba(75, 73, 69, .08);
}
.admin-bar .fsg-header { top: 32px; }
.fsg-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.fsg-brand img { height: 44px; width: auto; }
.fsg-nav { display: flex; align-items: center; gap: 28px; }
.fsg-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.fsg-nav__list a { color: var(--charred); font-weight: 600; font-size: .95rem; text-decoration: none; }
.fsg-nav__list a:hover { color: var(--chambray); }
.fsg-nav-toggle { display: none; }

@media (max-width: 900px) {
	.fsg-brand img { height: 36px; }
	.fsg-nav-toggle {
		display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px;
		background: var(--white); box-shadow: var(--shadow); cursor: pointer;
	}
	.fsg-nav-toggle__bar, .fsg-nav-toggle__bar::before, .fsg-nav-toggle__bar::after {
		display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .2s;
	}
	.fsg-nav-toggle__bar::before, .fsg-nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.fsg-nav-toggle__bar::before { top: -6px; }
	.fsg-nav-toggle__bar::after { top: 6px; }
	[aria-expanded="true"] .fsg-nav-toggle__bar { background: transparent; }
	[aria-expanded="true"] .fsg-nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
	[aria-expanded="true"] .fsg-nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

	.fsg-nav {
		position: absolute; left: 12px; right: 12px; top: 76px;
		flex-direction: column; align-items: stretch; gap: 8px; padding: 14px;
		background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
	}
	.fsg-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.fsg-nav__list { flex-direction: column; gap: 0; }
	.fsg-nav__list a { display: block; padding: 12px 10px; border-radius: 8px; }
	.fsg-nav__list a:hover { background: var(--silver-lt); }
}
@media (max-width: 782px) { .admin-bar .fsg-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .fsg-header { top: 0; } }

/* ==========================================================
   Hero
   ========================================================== */
.fsg-hero {
	position: relative; overflow: hidden;
	padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px);
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(64, 119, 148, .16), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(194, 150, 75, .14), transparent 60%),
		var(--silver-lt);
}
.fsg-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.fsg-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.fsg-hero__ctas--center { justify-content: center; margin-bottom: 0; }

.fsg-countdown {
	display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 12px 18px 12px 20px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow);
}
.fsg-countdown[hidden] { display: none; }
.fsg-countdown__label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--harbour); }
.fsg-countdown__time { display: flex; gap: 12px; font-size: .85rem; color: var(--charred); }
.fsg-countdown__time b { font-size: 1.35rem; font-weight: 800; color: var(--chambray); margin-right: 2px; font-variant-numeric: tabular-nums; }

/* Mock browser illustration */
.fsg-hero__art { position: relative; }
.fsg-mock {
	position: relative; z-index: 1;
	background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	overflow: hidden; transform: rotate(-1.5deg);
}
.fsg-mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--silver); }
.fsg-mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c4bb; }
.fsg-mock__bar i:first-child { background: var(--tussock); }
.fsg-mock__bar span { margin-left: 14px; flex: 1; background: var(--silver-lt); border-radius: 6px; padding: 3px 12px; font-size: .75rem; color: #8a867f; }
.fsg-mock__body { padding: 22px; }
.fsg-mock__nav { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.fsg-mock__nav b { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--tussock), var(--harbour)); margin-right: auto; }
.fsg-mock__nav span { width: 46px; height: 8px; border-radius: 4px; background: var(--silver); }
.fsg-mock__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; margin-bottom: 20px; }
.fsg-mock__hero em { display: block; height: 14px; border-radius: 6px; background: var(--ink); margin-bottom: 10px; }
.fsg-mock__hero em.short { width: 60%; background: var(--silver); height: 10px; }
.fsg-mock__hero strong { display: block; width: 52%; height: 30px; border-radius: 999px; background: var(--chambray); margin-top: 16px; }
.fsg-mock__img {
	aspect-ratio: 4/3; border-radius: 12px;
	background:
		linear-gradient(180deg, transparent 55%, rgba(52, 74, 134, .9) 55%),
		radial-gradient(circle at 70% 35%, var(--tussock) 0 18%, transparent 19%),
		linear-gradient(180deg, #9ab9c9, #d7e3e8);
}
.fsg-mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fsg-mock__cards div { height: 70px; border-radius: 10px; background: var(--silver-lt); border: 1px solid var(--silver); }
.fsg-mock__cards div:nth-child(2) { background: rgba(64, 119, 148, .14); }

.fsg-badge {
	position: absolute; z-index: 2; left: -28px; bottom: 36px;
	display: grid; place-items: center; text-align: center;
	width: 118px; height: 118px; border-radius: 50%;
	background: var(--tussock); color: var(--ink); box-shadow: var(--shadow-lg);
	transform: rotate(-10deg);
}
.fsg-badge strong { font-size: 2.2rem; font-weight: 800; line-height: 1; display: block; }
.fsg-badge span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-top: -24px; }
.fsg-swatches {
	position: absolute; z-index: 2; right: -14px; top: -22px;
	display: flex; gap: 6px; padding: 10px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow);
	transform: rotate(4deg);
}
.fsg-swatches i { width: 26px; height: 26px; border-radius: 7px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

@media (max-width: 900px) {
	.fsg-hero__grid { grid-template-columns: 1fr; gap: 56px; }
	.fsg-hero__art { max-width: 520px; margin: 0 auto 0 10px; }
	.fsg-badge { width: 96px; height: 96px; left: -10px; }
	.fsg-badge strong { font-size: 1.8rem; }
	.fsg-badge span { margin-top: -18px; }
}

/* Strip */
.fsg-strip { background: var(--chambray); color: var(--white); padding: 30px 0; }
.fsg-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.fsg-strip strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--tussock-lt); line-height: 1.1; }
.fsg-strip span { font-size: .92rem; opacity: .9; }
@media (max-width: 700px) { .fsg-strip__grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================
   Sections
   ========================================================== */
.fsg-section { padding: clamp(64px, 9vw, 112px) 0; }
.fsg-section--tint { background: var(--silver); }
.fsg-section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }

/* Steps */
.fsg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.fsg-steps li {
	position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 36px 30px 30px;
	box-shadow: var(--shadow); border-top: 4px solid var(--harbour);
}
.fsg-steps li:nth-child(2) { border-top-color: var(--tussock); }
.fsg-steps li:nth-child(3) { border-top-color: var(--chambray); }
.fsg-steps__num {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
	background: var(--silver-lt); color: var(--chambray); font-weight: 800; font-size: 1.2rem;
}
.fsg-steps p { font-size: .98rem; }
.fsg-steps a { font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .fsg-steps { grid-template-columns: 1fr; } }

/* Split / features */
.fsg-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.fsg-split h2 em { font-style: normal; color: var(--chambray); }
.fsg-split .fsg-btn { margin-top: 10px; }
.fsg-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fsg-features li { display: flex; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.fsg-features p { margin: 0; font-size: .94rem; }
.fsg-features h3 { margin-bottom: .3em; }
.fsg-ico {
	flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
	background: rgba(64, 119, 148, .12); color: var(--harbour); font-size: 1.2rem;
}
.fsg-features li:nth-child(2) .fsg-ico { background: rgba(194, 150, 75, .16); color: #9a7330; }
.fsg-features li:nth-child(3) .fsg-ico { background: rgba(52, 74, 134, .12); color: var(--chambray); }
@media (max-width: 900px) { .fsg-split { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .fsg-features { grid-template-columns: 1fr; } }

/* Ready list */
.fsg-ready { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--silver); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.fsg-ready li { background: var(--white); padding: 30px; }
.fsg-ready b { display: block; font-size: .8rem; color: var(--tussock); letter-spacing: .12em; margin-bottom: 8px; }
.fsg-ready p { margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .fsg-ready { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fsg-ready { grid-template-columns: 1fr; } }

/* FAQ */
.fsg-faq { max-width: 820px; }
.fsg-faq details { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.fsg-faq summary {
	list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative;
	font-weight: 700; color: var(--ink); font-size: 1.05rem;
}
.fsg-faq summary::-webkit-details-marker { display: none; }
.fsg-faq summary::after {
	content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	background: var(--silver-lt); color: var(--chambray); font-size: 1.3rem; font-weight: 400; transition: .2s;
}
.fsg-faq details[open] summary::after { content: "–"; background: var(--chambray); color: var(--white); }
.fsg-faq details p { padding: 0 26px 22px; margin: 0; }

/* CTA band */
.fsg-cta {
	padding: clamp(64px, 9vw, 100px) 0; text-align: center; color: var(--white);
	background:
		radial-gradient(600px 300px at 50% 0%, rgba(64, 119, 148, .6), transparent 70%),
		var(--chambray);
}
.fsg-cta__inner { max-width: 640px; }
.fsg-cta img { margin: 0 auto 22px; width: 88px; background: var(--silver-lt); border-radius: 22px; padding: 10px; }
.fsg-cta h2 { color: var(--white); }
.fsg-cta p { opacity: .9; margin-bottom: 28px; font-size: 1.1rem; }

/* Generic page */
.fsg-pagehead { padding: 64px 0 24px; background: var(--silver-lt); }
.fsg-pagehead + .fsg-section { padding-top: 24px; }
.fsg-prose { max-width: 760px; }
.fsg-prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* ==========================================================
   Footer
   ========================================================== */
.fsg-footer { background: var(--ink); color: #cfcac2; padding: 54px 0 28px; font-size: .95rem; }
.fsg-footer a { color: #e9e5de; text-decoration: none; }
.fsg-footer a:hover { color: var(--tussock-lt); }
.fsg-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fsg-footer__brand { display: flex; align-items: center; gap: 14px; }
.fsg-footer__brand img { width: 56px; background: var(--silver-lt); border-radius: 14px; padding: 6px; }
.fsg-footer__brand strong { display: block; color: var(--white); font-size: 1.1rem; }
.fsg-footer__brand span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.fsg-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; font-weight: 600; }
.fsg-footer__legal { padding-top: 22px; font-size: .8rem; opacity: .7; }

/* ==========================================================
   Apply page / multi-step form
   ========================================================== */
.fsg-apply {
	padding: clamp(40px, 6vw, 80px) 0 100px;
	background:
		radial-gradient(800px 400px at 100% 0%, rgba(64, 119, 148, .12), transparent 60%),
		radial-gradient(600px 400px at 0% 100%, rgba(194, 150, 75, .12), transparent 60%),
		var(--silver-lt);
}
.fsg-apply__wrap { max-width: 760px; }
.fsg-apply__head { text-align: center; margin-bottom: 32px; }
.fsg-apply__head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.fsg-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.fsg-form-card { padding: clamp(24px, 4.5vw, 48px); scroll-margin-top: 100px; }
.fsg-alert { background: #fbeaea; color: #8a2a2a; border-left: 4px solid #c0392b; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }

/* Progress */
.fsg-progress { margin-bottom: 34px; display: none; }
.fsg-js .fsg-progress { display: block; }
.fsg-progress__bar { height: 6px; background: var(--silver); border-radius: 99px; overflow: hidden; }
.fsg-progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--harbour), var(--chambray)); border-radius: 99px; transition: width .35s ease; }
.fsg-progress__labels { list-style: none; margin: 12px 0 0; padding: 0; display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; color: #a29e97; }
.fsg-progress__labels li.is-done { color: var(--harbour); }
.fsg-progress__labels li.is-current { color: var(--chambray); }
@media (max-width: 560px) {
	.fsg-progress__labels li { display: none; }
	.fsg-progress__labels li.is-current { display: block; margin: 0 auto; }
}

/* Steps */
.fsg-step { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.fsg-form.is-stepped .fsg-step { display: none; margin: 0; }
.fsg-form.is-stepped .fsg-step.is-active { display: block; animation: fsg-in .3s ease; }
@keyframes fsg-in { from { opacity: 0; transform: translateX(14px); } }
.fsg-step legend { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; padding: 0; margin-bottom: 8px; }
.fsg-step__num { display: block; font-size: .75rem; font-weight: 700; color: var(--tussock); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.fsg-help { color: #6f6b65; font-size: .97rem; margin-bottom: 22px !important; }
.fsg-hp { position: absolute; left: -9999px; }

/* Inputs */
.fsg-form input[type=text], .fsg-form input[type=email], .fsg-form textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--silver-lt);
	border: 2px solid transparent; border-radius: 12px; padding: 14px 16px; transition: border-color .15s, background .15s;
}
.fsg-form textarea { resize: vertical; min-height: 180px; line-height: 1.55; }
.fsg-form input:focus, .fsg-form textarea:focus { outline: none; border-color: var(--harbour); background: var(--white); }
.fsg-form ::placeholder { color: #a8a49d; }
.fsg-counter { text-align: right; font-size: .78rem; color: #a29e97; margin-top: 6px; }

.fsg-input-prefix { display: flex; align-items: stretch; background: var(--silver-lt); border-radius: 12px; border: 2px solid transparent; transition: .15s; }
.fsg-input-prefix:focus-within { border-color: var(--harbour); background: var(--white); }
.fsg-input-prefix span { display: flex; align-items: center; padding-left: 16px; color: #8f8a83; font-weight: 600; }
.fsg-form .fsg-input-prefix input { border: 0 !important; background: transparent !important; padding-left: 4px; font-size: 1.1rem; }
.fsg-input-prefix.is-disabled { opacity: .45; }

.fsg-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; cursor: pointer; font-size: .97rem; }
.fsg-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--chambray); flex: none; }

.fsg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 6px; }
.fsg-field span { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 560px) { .fsg-row { grid-template-columns: 1fr; } }

/* Colors */
.fsg-palette-preview { display: flex; height: 96px; border-radius: 14px; overflow: hidden; margin-bottom: 20px; background: var(--silver-lt); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.fsg-palette-preview p { margin: auto !important; color: #a29e97; font-size: .9rem; }
.fsg-palette-preview span { flex: 1; display: flex; align-items: flex-end; padding: 8px; transition: flex .2s; }
.fsg-palette-preview em { font-style: normal; font: 600 .72rem ui-monospace, monospace; background: rgba(255, 255, 255, .85); color: var(--ink); padding: 2px 6px; border-radius: 5px; }
.fsg-colors { display: grid; gap: 10px; margin-bottom: 16px; }
.fsg-color { display: flex; align-items: center; gap: 10px; }
.fsg-color input[type=color] {
	flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 12px; cursor: pointer; background: none;
}
.fsg-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.fsg-color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.fsg-color input[type=color]::-moz-color-swatch { border: 0; border-radius: 12px; }
.fsg-color.is-empty input[type=color] { opacity: .35; }
.fsg-form .fsg-color input[type=text] { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; max-width: 220px; }
.fsg-color.is-invalid input[type=text] { border-color: #d98080; }
.fsg-color__remove { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #a29e97; font-size: 1.4rem; cursor: pointer; visibility: hidden; }
.fsg-colors.can-remove .fsg-color__remove { visibility: visible; }
.fsg-color__remove:hover { background: var(--silver-lt); color: #c0392b; }

/* Dropzones */
.fsg-drop {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 40px 20px; border: 2px dashed #cdc8bf; border-radius: 16px; background: var(--silver-lt);
	text-align: center; cursor: pointer; transition: .15s;
}
.fsg-drop:hover, .fsg-drop.is-over { border-color: var(--harbour); background: rgba(64, 119, 148, .07); }
.fsg-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fsg-form:not(.is-stepped) .fsg-drop input[type=file] { position: static; opacity: 1; }
.fsg-drop__icon { font-size: 1.8rem; color: var(--harbour); line-height: 1; }
.fsg-drop__text { color: #6f6b65; }
.fsg-drop__text strong { color: var(--chambray); }
.fsg-drop.is-disabled { opacity: .45; pointer-events: none; }
.fsg-drop[hidden] { display: none; }

.fsg-logo-preview { display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 16px; background: var(--silver-lt); }
.fsg-logo-preview[hidden] { display: none; }
.fsg-logo-preview img { width: 140px; height: 100px; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(#eceae5 0 25%, #fff 0 50%) 0 0/16px 16px; padding: 8px; }
.fsg-logo-preview strong { display: block; color: var(--ink); word-break: break-all; }
.fsg-logo-preview span { display: block; font-size: .85rem; color: #8f8a83; margin-bottom: 4px; }

.fsg-photo-count { font-size: .85rem; font-weight: 600; color: #8f8a83; margin: 10px 0 !important; }
.fsg-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.fsg-thumbs li { position: relative; border-radius: 12px; overflow: hidden; background: var(--silver-lt); }
.fsg-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fsg-thumbs span { display: block; font-size: .7rem; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6f6b65; }
.fsg-thumbs button {
	position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0;
	background: rgba(43, 42, 40, .75); color: var(--white); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.fsg-thumbs button:hover { background: #c0392b; }

/* Review */
.fsg-review { margin: 0; display: grid; gap: 2px; border-radius: 14px; overflow: hidden; }
.fsg-review > div { background: var(--silver-lt); padding: 16px 20px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.fsg-review dt { font-weight: 700; color: var(--ink); font-size: .9rem; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.fsg-review dd { margin: 0; min-width: 0; font-size: .95rem; }
.fsg-review__vision { white-space: pre-wrap; margin: 0 !important; max-height: 180px; overflow: auto; }
.fsg-review__logo { max-width: 160px; max-height: 90px; object-fit: contain; }
.fsg-review__photos { display: flex; flex-wrap: wrap; gap: 6px; }
.fsg-review__photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.fsg-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 10px 6px 0; font: 600 .82rem ui-monospace, monospace; }
.fsg-chip i { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
@media (max-width: 560px) { .fsg-review > div { grid-template-columns: 1fr; gap: 6px; } .fsg-review dt { flex-direction: row; gap: 10px; } }

/* Nav + errors */
.fsg-step-error { display: none; margin: 22px 0 0 !important; padding: 12px 16px; border-radius: 10px; background: #fbeaea; color: #8a2a2a; font-size: .93rem; }
.fsg-step-error.is-visible { display: block; }
.fsg-form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--silver); }
.fsg-form__nav [data-next], .fsg-form__nav [data-submit] { margin-left: auto; }
.fsg-form__nav [hidden] { display: none; }
.fsg-form:not(.is-stepped) [data-prev], .fsg-form:not(.is-stepped) [data-next] { display: none; }
.fsg-form:not(.is-stepped) [data-submit] { display: inline-flex !important; }
.fsg-form:not(.is-stepped) .fsg-step[data-step="review"] { display: none; }
.fsg-uploading { margin-top: 20px; text-align: center; font-size: .92rem; }
.fsg-uploading[hidden] { display: none; }
.fsg-uploading p { margin-top: 8px !important; }

/* Thank-you */
.fsg-done { text-align: center; padding: clamp(36px, 6vw, 64px); }
.fsg-done .fsg-lead { margin-inline: auto; }
.fsg-done__check {
	width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%;
	display: grid; place-items: center; font-size: 2.4rem; font-weight: 800;
	background: var(--tussock); color: var(--ink); box-shadow: 0 10px 30px rgba(194, 150, 75, .45);
	animation: fsg-pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes fsg-pop { from { transform: scale(.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
.fsg-note { background: #fff6e3; border-left: 4px solid var(--tussock); padding: 14px 18px; border-radius: 10px; }
@media (max-width: 560px) {
	.fsg-countdown { border-radius: 18px; gap: 6px 16px; }
	.fsg-hero__ctas .fsg-btn { width: 100%; }
}

/* ==========================================================
   Block-editor markup (Home page and Apply intro are built from blocks)
   ========================================================== */
.fsg-blocks .wp-block-group > :last-child,
.fsg-apply__head > :last-child { margin-bottom: 0; }
.fsg-blocks mark.has-inline-color { background: none; }

/* Buttons: pick Gold / Blue / Outline in the block's Styles panel */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.fsg .wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
	padding: 17px 28px; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
	background: var(--chambray); color: var(--white);
}
.fsg .wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.fsg .wp-block-button.is-style-gold .wp-block-button__link { background: var(--tussock); color: var(--ink); box-shadow: 0 6px 18px rgba(194, 150, 75, .35); }
.fsg .wp-block-button.is-style-gold .wp-block-button__link:hover { background: var(--tussock-lt); }
.fsg .wp-block-button.is-style-blue .wp-block-button__link { background: var(--chambray); color: var(--white); box-shadow: 0 6px 18px rgba(52, 74, 134, .3); }
.fsg .wp-block-button.is-style-blue .wp-block-button__link:hover { background: var(--chambray-dk); }
.fsg .wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--chambray); border-color: rgba(52, 74, 134, .3); box-shadow: none; }
.fsg .wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--chambray); background: rgba(52, 74, 134, .05); }
.fsg-cta .wp-block-buttons { justify-content: center; }

/* Hero */
.fsg-hero__copy .wp-block-buttons { margin: 30px 0 34px; }
.fsg-eyebrow--live::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tussock);
	box-shadow: 0 0 0 4px rgba(194, 150, 75, .25); animation: fsg-pulse 2s infinite;
}
@media (max-width: 560px) { .fsg-hero__copy .wp-block-button { width: 100%; } .fsg-hero__copy .wp-block-button__link { width: 100%; } }

/* Stats strip */
.fsg-stat { margin: 0 !important; font-size: .92rem; opacity: .95; }
.fsg-strip .fsg-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--tussock-lt); line-height: 1.1; }

/* How it works cards */
.fsg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fsg-step-card {
	background: var(--white); border-radius: var(--radius-lg); padding: 36px 30px 30px;
	box-shadow: var(--shadow); border-top: 4px solid var(--harbour);
}
.fsg-step-card:nth-child(2) { border-top-color: var(--tussock); }
.fsg-step-card:nth-child(3) { border-top-color: var(--chambray); }
.fsg-step-card p { font-size: .98rem; }
p.fsg-steps__num {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
	background: var(--silver-lt); color: var(--chambray); font-weight: 800; font-size: 1.2rem;
}
.fsg-steps__link a { font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .fsg-steps { grid-template-columns: 1fr; } }

/* What you get */
.fsg-feature {
	display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; align-content: start;
	background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.fsg-feature > * { grid-column: 2; }
.fsg-feature h3 { margin-bottom: .3em; }
.fsg-feature p { font-size: .94rem; margin: 0; }
.fsg-feature p.fsg-ico {
	grid-column: 1; grid-row: 1 / span 2;
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
	background: rgba(64, 119, 148, .12); color: var(--harbour); font-size: 1.2rem;
}
.fsg-feature:nth-child(2) p.fsg-ico { background: rgba(194, 150, 75, .16); color: #9a7330; }
.fsg-feature:nth-child(3) p.fsg-ico { background: rgba(52, 74, 134, .12); color: var(--chambray); }
.fsg-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .fsg-features { grid-template-columns: 1fr; } }

/* Have these ready */
.fsg-ready { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--silver); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.fsg-ready__item { background: var(--white); padding: 30px; }
.fsg-ready__item p { margin: 0; font-size: .95rem; }
.fsg-ready__item p.fsg-num { font-size: .8rem; font-weight: 700; color: var(--tussock); letter-spacing: .12em; margin-bottom: 8px; }
@media (max-width: 860px) { .fsg-ready { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fsg-ready { grid-template-columns: 1fr; } }

/* CTA */
.fsg-cta .fsg-logo-mark { margin: 0 auto 22px; width: 88px; background: var(--silver-lt); border-radius: 22px; padding: 10px; }
.fsg-cta p { opacity: .9; font-size: 1.1rem; }
.fsg-cta .wp-block-buttons { margin-top: 28px; }

/* Apply page intro */
.fsg-apply__head h1 { margin-bottom: .3em; }
/* Cancel WordPress's automatic "space between blocks" so the theme controls spacing. */
.fsg-blocks .wp-block-group > *,
.fsg-apply__head > * { margin-block-start: 0; }
.fsg-faq .wp-block-details { margin-block: 0 12px; }
.fsg-blocks .fsg-hero__copy > .wp-block-buttons { margin: 30px 0 34px; }
/* Thank-you page share buttons */
.fsg-share-hint { margin: 18px auto 0 !important; max-width: 30em; font-size: .92rem; color: var(--harbour); font-weight: 600; }
.fsg-share-hint[hidden] { display: none; }
.fsg-done__home { margin: 22px 0 0 !important; font-size: .92rem; }
/* Drawing: new business / non-profit choice */
.fsg-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.fsg-choice__opt { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--silver-lt); border: 2px solid transparent; cursor: pointer; transition: .15s; }
.fsg-choice__opt:has(input:checked) { border-color: var(--chambray); background: var(--white); }
.fsg-choice__opt input { margin-top: 4px; accent-color: var(--chambray); width: 18px; height: 18px; flex: none; }
.fsg-choice__opt strong { display: block; color: var(--ink); }
.fsg-choice__opt span { font-size: .9rem; color: #6f6b65; }
@media (max-width: 560px) { .fsg-choice { grid-template-columns: 1fr; } }
