/* SiteGalaxy sales page (/sitegalaxy/). Loaded only on that page via
   jsrg_sitegalaxy_styles() in functions.php. Uses the shared design tokens
   from style.css; no new brand colors. Selectors are doubled where needed
   to beat the legacy Bootstrap h1-h6 / a color rules. */

.jsrg-sg-hero,
.jsrg-sg-problem,
.jsrg-sg-who,
.jsrg-sg-how,
.jsrg-sg-compare,
.jsrg-sg-faq,
.jsrg-sg-cta {
	font-family: var(--font-body);
	color: var(--color-navy);
}

.jsrg-sg-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 88px 24px;
}
.jsrg-sg-inner.is-narrow { max-width: 860px; }

.jsrg-sg-eyebrow.jsrg-sg-eyebrow {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--eyebrow-color);
	margin: 0 0 12px;
}

.jsrg-sg-hero h1,
.jsrg-sg-hero h2,
.jsrg-sg-problem h2,
.jsrg-sg-who h2,
.jsrg-sg-who h3,
.jsrg-sg-how h2,
.jsrg-sg-how h3,
.jsrg-sg-compare h2,
.jsrg-sg-faq h2,
.jsrg-sg-faq h3,
.jsrg-sg-cta h2 {
	font-family: var(--font-heading);
	color: inherit;
	margin: 0;
}
.jsrg-sg-hero em,
.jsrg-sg-problem h2 em,
.jsrg-sg-who h2 em,
.jsrg-sg-how h2 em,
.jsrg-sg-compare h2 em,
.jsrg-sg-faq h2 em,
.jsrg-sg-cta h2 em {
	font-style: italic;
	color: var(--heading-accent-color);
}

.jsrg-sg-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.jsrg-sg-heading h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; }
.jsrg-sg-heading > p:not(.jsrg-sg-eyebrow) { margin: 20px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted-text-color); }

/* Buttons */
.jsrg-sg-btn.jsrg-sg-btn {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	padding: 15px 28px;
	border-radius: 8px;
	border: 2px solid transparent;
	text-decoration: none;
	text-align: center;
	transition: background-color .2s, color .2s, border-color .2s;
}
.jsrg-sg-btn.is-small { font-size: 14px; padding: 11px 18px; }
.jsrg-sg-btn.is-gold,
.jsrg-sg-btn.is-gold:visited { background: var(--color-gold); color: var(--color-navy); border-color: var(--color-gold); }
.jsrg-sg-btn.is-gold:hover,
.jsrg-sg-btn.is-gold:focus { background: var(--color-bg-white); color: var(--color-navy); border-color: var(--color-gold); }
.jsrg-sg-btn.is-ghost,
.jsrg-sg-btn.is-ghost:visited { background: transparent; color: var(--color-bg-white); border-color: rgba(255,255,255,.6); }
.jsrg-sg-btn.is-ghost:hover,
.jsrg-sg-btn.is-ghost:focus { border-color: var(--color-gold); color: var(--color-gold); }
.jsrg-sg-btn.is-navy,
.jsrg-sg-btn.is-navy:visited { background: var(--color-navy); color: var(--color-bg-white); border-color: var(--color-navy); }
.jsrg-sg-btn.is-navy:hover,
.jsrg-sg-btn.is-navy:focus { background: var(--color-teal-dark); border-color: var(--color-teal-dark); color: var(--color-bg-white); }
.jsrg-sg-btn.is-outline,
.jsrg-sg-btn.is-outline:visited { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.jsrg-sg-btn.is-outline:hover,
.jsrg-sg-btn.is-outline:focus { background: var(--color-navy); color: var(--color-bg-white); }

/* Navy sections: switch the accent variables back to the brand accents */
.jsrg-sg-hero,
.jsrg-sg-cta {
	--eyebrow-color: var(--color-gold);
	--heading-accent-color: var(--color-emphasis);
	--muted-text-color: rgba(255,255,255,.82);
	background-color: var(--color-navy);
	color: var(--color-bg-white);
}

/* Hero */
.jsrg-sg-hero-inner {
	max-width: 920px;
	margin: 0 auto;
	padding: 112px 24px 104px;
	text-align: center;
}
.jsrg-sg-hero-title.jsrg-sg-hero-title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; font-weight: 700; color: var(--color-bg-white); }
.jsrg-sg-hero-copy { margin: 24px auto 0; max-width: 760px; font-size: 19px; line-height: 1.7; color: var(--muted-text-color); }
.jsrg-sg-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.jsrg-sg-hero-media { margin: 0; }
.jsrg-sg-hero-media img,
.jsrg-sg-step-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(95,194,180,.35);
	box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

/* Problem */
.jsrg-sg-problem { background: var(--color-bg-white); }
.jsrg-sg-prose { max-width: 760px; margin: 0 auto; }
.jsrg-sg-prose p { font-size: 18px; line-height: 1.75; margin: 0 0 18px; color: var(--color-navy); }
.jsrg-sg-icon-row {
	list-style: none;
	margin: 48px auto 0;
	padding: 0;
	max-width: 960px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.jsrg-sg-icon-row li {
	background: var(--color-bg-light);
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.jsrg-sg-icon-row strong { font-family: var(--font-heading); font-size: 18px; }
.jsrg-sg-icon-row li > span:last-child { color: var(--muted-text-color); font-size: 15px; }
.jsrg-sg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--color-teal-dark);
	color: var(--color-bg-white);
	margin-bottom: 6px;
}

/* Who */
.jsrg-sg-who { background: var(--color-bg-light); }
.jsrg-sg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.jsrg-sg-card { background: var(--color-bg-white); border-radius: 12px; padding: 32px 28px; border-top: 4px solid var(--color-teal); }
.jsrg-sg-card h3 { font-size: 21px; font-weight: 600; margin: 8px 0 10px; }
.jsrg-sg-card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted-text-color); }

/* How it works */
.jsrg-sg-how { background: var(--color-bg-white); }
.jsrg-sg-step {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 56px;
	align-items: center;
	margin-bottom: 72px;
}
.jsrg-sg-step:last-child { margin-bottom: 0; }
.jsrg-sg-step.is-flipped .jsrg-sg-step-media { order: 2; }
.jsrg-sg-step-media { margin: 0; }
.jsrg-sg-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-navy);
	color: var(--color-gold);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 16px;
}
.jsrg-sg-step-text h3 { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.jsrg-sg-step-text p { margin: 0; font-size: 17px; line-height: 1.75; }

.jsrg-sg-plan {
	background: var(--color-navy);
	color: var(--color-bg-white);
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.jsrg-sg-plan-title { font-family: var(--font-heading); font-weight: 600; color: var(--color-gold); margin: 0 0 18px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.jsrg-sg-plan ol { margin: 0; padding: 0; list-style: none; counter-reset: sgplan; }
.jsrg-sg-plan li {
	counter-increment: sgplan;
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 14px 0;
	border-top: 1px solid rgba(255,255,255,.12);
	font-size: 16px;
}
.jsrg-sg-plan li::before { content: counter(sgplan) "."; color: var(--color-emphasis); font-weight: 700; }
.jsrg-sg-plan li span { font-weight: 700; color: var(--color-emphasis); }

/* Compare */
.jsrg-sg-compare { background: var(--color-bg-light); }
.jsrg-sg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jsrg-sg-table {
	width: 100%;
	min-width: 640px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--color-bg-white);
	border-radius: 12px;
	overflow: hidden;
	font-size: 16px;
}
.jsrg-sg-table th,
.jsrg-sg-table td { padding: 15px 18px; border-bottom: 1px solid rgba(11,43,60,.1); text-align: center; vertical-align: middle; }
.jsrg-sg-table tbody th { text-align: left; font-weight: 500; color: var(--color-navy); }
.jsrg-sg-table thead th {
	background: var(--color-navy);
	color: var(--color-bg-white);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 600;
	border-bottom: 0;
}
.jsrg-sg-table thead th.is-featured { background: var(--color-teal-dark); }
.jsrg-sg-table td.is-featured { background: rgba(27,124,116,.07); }
.jsrg-sg-table tr.is-price td { font-family: var(--font-heading); font-weight: 700; font-size: 20px; }
.jsrg-sg-table tfoot th,
.jsrg-sg-table tfoot td { border-bottom: 0; padding: 22px 12px; }
.jsrg-sg-check { color: var(--color-teal-dark); vertical-align: middle; }
.jsrg-sg-no { color: rgba(11,43,60,.35); }

/* FAQ */
.jsrg-sg-faq { background: var(--color-bg-white); }
.jsrg-sg-faq.is-alt { background: var(--color-bg-light); }
.jsrg-sg-accordion { border-top: 1px solid rgba(11,43,60,.15); }
.jsrg-sg-faq-item { border-bottom: 1px solid rgba(11,43,60,.15); }
.jsrg-sg-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 44px 22px 0;
	position: relative;
}
.jsrg-sg-faq-item summary::-webkit-details-marker { display: none; }
.jsrg-sg-faq-item summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-heading);
	font-size: 26px;
	font-weight: 500;
	color: var(--color-teal-dark);
}
.jsrg-sg-faq-item[open] summary::after { content: "\2212"; }
.jsrg-sg-faq-item summary h3 { display: inline; font-size: 18px; font-weight: 600; line-height: 1.45; }
.jsrg-sg-faq-item summary:focus-visible { outline: 2px solid var(--color-teal-dark); outline-offset: 4px; }
.jsrg-sg-faq-item p { margin: 0 0 24px; font-size: 16.5px; line-height: 1.75; color: var(--color-navy); }

/* Talk to Sales */
.jsrg-sg-cta { text-align: center; }
.jsrg-sg-cta h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; color: var(--color-bg-white); }
.jsrg-sg-cta p:not(.jsrg-sg-eyebrow) { margin: 20px auto 32px; max-width: 640px; font-size: 18px; line-height: 1.7; color: var(--muted-text-color); }
.jsrg-sg-cta p a,
.jsrg-sg-cta p a:visited { color: var(--color-emphasis); text-decoration: underline; }
.jsrg-sg-cta p a:hover { color: var(--color-gold); }

/* Anchor targets clear the sticky header */
#top, #how-it-works, #compare, #faq, #talk-to-sales { scroll-margin-top: 90px; }

.jsrg-sg-cta-free[hidden],
.jsrg-sg-cta-cart[hidden] { display: none !important; }

/* SiteGalaxy header (header-sitegalaxy.php) */
.jsrg-sg-brand { display: flex; align-items: center; gap: 14px; }
.jsrg-sg-wordmark.jsrg-sg-wordmark { display: inline-flex; align-items: center; line-height: 0; }
.jsrg-sg-wordmark img,
.jsrg-sg-footer-name img { display: block; height: 26px; width: auto; max-width: none; }
.jsrg-sg-byline.jsrg-sg-byline,
.jsrg-sg-byline:visited {
	font-family: var(--font-body);
	font-size: 12px;
	color: rgba(255,255,255,.7);
	text-decoration: none;
	padding-left: 14px;
	border-left: 1px solid rgba(255,255,255,.25);
	white-space: nowrap;
}
.jsrg-sg-byline:hover { color: var(--color-gold); }

/* SiteGalaxy footer (footer-sitegalaxy.php) */
.jsrg-sg-footer { background: var(--color-navy); color: rgba(255,255,255,.82); font-family: var(--font-body); }
.jsrg-sg-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 64px 24px 32px;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}
.jsrg-sg-footer-name { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--color-bg-white); margin: 0 0 10px; }
.jsrg-sg-footer-brand p:not(.jsrg-sg-footer-name) { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.7; }
.jsrg-sg-footer-heading { font-family: var(--font-heading); font-weight: 600; color: var(--color-emphasis); margin: 0 0 12px; font-size: 16px; }
.jsrg-sg-footer ul { list-style: none; margin: 0; padding: 0; }
.jsrg-sg-footer li { margin: 0 0 10px; }
.jsrg-sg-footer a,
.jsrg-sg-footer a:visited { color: var(--color-bg-light); text-decoration: none; font-size: 15px; }
.jsrg-sg-footer-brand a,
.jsrg-sg-footer-brand a:visited { color: var(--color-emphasis); text-decoration: underline; }
.jsrg-sg-footer a:hover,
.jsrg-sg-footer a:focus { color: var(--color-gold); }
.jsrg-sg-footer-copyright { margin: 0; padding: 20px 24px 28px; text-align: center; font-size: 13px; color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.1); }

/* Responsive */
@media (max-width: 960px) {
	.jsrg-sg-hero-inner,
	.jsrg-sg-step { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.jsrg-sg-step.is-flipped .jsrg-sg-step-media { order: 0; }
	.jsrg-sg-cards,
	.jsrg-sg-icon-row { grid-template-columns: minmax(0, 1fr); }
	.jsrg-sg-inner { padding: 64px 20px; }
	.jsrg-sg-hero-inner { padding: 64px 20px; }
	.jsrg-sg-step { margin-bottom: 56px; }
	.jsrg-sg-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 20px 24px; }
	.jsrg-sg-byline { display: none; }
}
@media (max-width: 560px) {
	.jsrg-sg-wordmark img { height: 20px; }
	.jsrg-sg-hero-actions .jsrg-sg-btn { width: 100%; }
	.jsrg-sg-table th,
	.jsrg-sg-table td { padding: 12px 10px; font-size: 15px; }
}
