/**
 * Site-wide Concept C (Decision Atlas) patterns for Home, Guides, About,
 * thank-you and legal pages. Product landing keeps product-adhd.css.
 */

@keyframes sg-borderflow {
	to {
		background-position: 300% 0;
	}
}

.sg-main {
	position: relative;
}

.sg-main::before {
	content: "";
	position: fixed;
	inset: auto -15% -20% -15%;
	height: 45vh;
	background:
		radial-gradient(ellipse 50% 60% at 20% 80%, rgba(155, 123, 184, 0.14), transparent 70%),
		radial-gradient(ellipse 45% 50% at 85% 70%, rgba(0, 114, 200, 0.1), transparent 65%);
	pointer-events: none;
	z-index: 0;
}

.sg-main > * {
	position: relative;
	z-index: 1;
}

body.sg-product-adhd-page .sg-main::before,
body.sg-lead-magnet-page .sg-main::before {
	display: none;
}

/* Kickers & paint */

.sg-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin: 0 0 1rem;
}

.sg-kicker i {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--blue), var(--purple));
	display: inline-block;
}

.sg-paint {
	background: linear-gradient(120deg, var(--blue), var(--purple));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Page shells */

.sg-page-hero {
	padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}

.sg-page-hero h1 {
	font-family: var(--font-body);
	font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0 0 1rem;
	max-width: 18ch;
}

.sg-page-hero__support {
	margin: 0;
	font-size: clamp(1.1rem, 1.05rem + 0.35vw, 1.3rem);
	color: var(--ink-soft);
	line-height: 1.55;
	max-width: 40rem;
}

.sg-section {
	padding: clamp(3rem, 2.5rem + 3vw, 5rem) 0;
}

.sg-band {
	background:
		radial-gradient(ellipse 70% 80% at 10% 0%, rgba(0, 114, 200, 0.06), transparent 55%),
		radial-gradient(ellipse 60% 70% at 90% 100%, rgba(155, 123, 184, 0.08), transparent 50%),
		var(--mist);
}

.sg-section h2 {
	font-family: var(--font-body);
	font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 0.75rem;
}

.sg-support {
	margin: 0 0 1.5rem;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	color: var(--ink-soft);
	line-height: 1.55;
}

/* Concept C primary CTA */

.sg-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.6rem;
	font-family: var(--font-body);
	font-weight: 800;
	text-decoration: none;
	border-radius: 999px;
	color: white;
	isolation: isolate;
	overflow: hidden;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.sg-btn:hover {
	transform: translateY(-2px) scale(1.01);
	filter: brightness(1.06);
	color: white;
}

.sg-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	background: linear-gradient(120deg, var(--blue), var(--purple), var(--blue-deep), var(--purple-soft));
	background-size: 300% 300%;
	animation: sg-borderflow 5s linear infinite;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	z-index: -1;
}

.sg-btn::after {
	content: "";
	position: absolute;
	inset: 2px;
	background: linear-gradient(135deg, var(--blue-deep), var(--blue) 40%, var(--purple-deep));
	border-radius: inherit;
	z-index: -1;
}

.sg-btn--ghost {
	background: transparent;
	color: var(--blue-deep);
	border: 2px solid var(--line);
	padding: 0.9rem 1.45rem;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.sg-btn--ghost:hover {
	border-color: var(--blue);
	color: var(--blue-deep);
}

.sg-btn--ghost::before,
.sg-btn--ghost::after {
	display: none;
}

.sg-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
	margin-top: 1.5rem;
}

/* Home featured product */

.sg-feature-product {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 48rem) {
	.sg-feature-product {
		grid-template-columns: 1.15fr 0.85fr;
		gap: 2.5rem;
	}
}

.sg-feature-product__meta {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--purple-deep);
}

.sg-feature-product__cover {
	margin: 0;
	justify-self: center;
}

.sg-feature-product__cover img {
	width: min(100%, 18rem);
	height: auto;
	display: block;
	margin-inline: auto;
}

@media (min-width: 48rem) {
	.sg-feature-product__cover {
		justify-self: end;
	}

	.sg-feature-product__cover img {
		width: min(100%, 20rem);
	}
}

/* Guides index */

.sg-guide-list {
	display: grid;
	gap: 1rem;
	margin-top: 0.5rem;
}

.sg-guide-card {
	padding: 1.35rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--paper);
}

.sg-guide-card--soon {
	background: transparent;
	opacity: 0.9;
}

.sg-guide-card__meta {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--purple-deep);
}

.sg-guide-card h2 {
	font-family: var(--font-body);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.sg-guide-card h2 a {
	color: var(--ink);
	text-decoration: none;
}

.sg-guide-card h2 a:hover {
	color: var(--blue-deep);
}

.sg-guide-card p {
	margin: 0 0 1rem;
	color: var(--ink-soft);
	line-height: 1.55;
}

.sg-guide-card p:last-child {
	margin-bottom: 0;
}

.sg-guide-card--free {
	border-color: rgba(0, 114, 200, 0.28);
	background:
		radial-gradient(ellipse 70% 80% at 0% 0%, rgba(0, 114, 200, 0.07), transparent 55%),
		radial-gradient(ellipse 50% 70% at 100% 100%, rgba(155, 123, 184, 0.1), transparent 50%),
		var(--paper);
}

/* Reusable quiz CTA */

.sg-lead-cta {
	padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0;
}

.sg-lead-cta h2 {
	font-family: var(--font-body);
	font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0 0 0.75rem;
}

.sg-lead-cta .sg-support {
	max-width: 40rem;
}

.sg-lead-cta--inline {
	margin-top: 1rem;
}

.sg-lead-form--quiet {
	padding-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.sg-lead-form--quiet h2 {
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
}

/* About */

.sg-about-grid {
	display: grid;
	gap: 2rem;
	align-items: center;
	margin-top: 1rem;
}

@media (min-width: 48rem) {
	.sg-about-grid {
		grid-template-columns: 1.15fr 0.85fr;
		gap: 2.5rem;
	}
}

.sg-about-grid__photo {
	position: relative;
	justify-self: center;
	width: min(100%, 18rem);
	aspect-ratio: 1;
	margin: 0;
}

@media (min-width: 48rem) {
	.sg-about-grid__photo {
		width: min(100%, 20rem);
		justify-self: end;
	}
}

.sg-about-grid__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 1rem;
	display: block;
}

.sg-creds {
	font-weight: 800;
	font-size: 1.2rem;
	margin: 0 0 0.25rem;
	letter-spacing: -0.02em;
}

.sg-role {
	color: var(--purple-deep);
	font-weight: 700;
	margin: 0 0 1rem;
}

.sg-split-cards {
	display: grid;
	gap: 0.85rem;
	margin-top: 1.5rem;
}

@media (min-width: 40rem) {
	.sg-split-cards {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}

.sg-split-card {
	padding: 1.25rem 1.3rem;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	background: var(--paper);
}

.sg-split-card h3 {
	font-family: var(--font-body);
	font-size: 1.1rem;
	font-weight: 800;
	margin: 0 0 0.45rem;
	color: var(--blue-deep);
}

.sg-split-card p {
	margin: 0;
	color: var(--ink-soft);
	line-height: 1.55;
}

/* Legal / default pages */

.sg-legal {
	padding-bottom: var(--space-section);
}

.sg-legal .sg-page-hero {
	padding-bottom: 1.25rem;
}

.sg-legal .sg-page-hero h1 {
	max-width: 22ch;
}

.sg-legal-body {
	max-width: 48rem;
}

.sg-legal-body h2 {
	font-family: var(--font-body);
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 2.25rem 0 0.75rem;
	color: var(--ink);
}

.sg-legal-body h3 {
	font-family: var(--font-body);
	font-size: 1.1rem;
	font-weight: 700;
	margin: 1.5rem 0 0.5rem;
}

.sg-legal-body p,
.sg-legal-body li {
	color: var(--ink-soft);
	line-height: 1.65;
}

.sg-legal-body ul,
.sg-legal-body ol {
	margin: 0 0 1rem;
	padding-left: 1.35rem;
}

.sg-legal-body li + li {
	margin-top: 0.45rem;
}

.sg-legal-note {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	border-left: 4px solid var(--purple);
	background: linear-gradient(135deg, #eaf3fb, #f3ecf8);
	border-radius: 0 0.75rem 0.75rem 0;
	font-size: 0.98rem;
	color: var(--ink-soft);
}

.sg-legal-meta {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink-soft);
}

/* Thank-you */

.sg-thanks {
	padding: clamp(3rem, 2.5rem + 4vw, 6rem) 0;
}

.sg-thanks-card {
	max-width: 36rem;
	padding: 2rem 1.75rem;
	border-radius: 1.25rem;
	background:
		radial-gradient(ellipse 60% 80% at 100% 0%, rgba(155, 123, 184, 0.2), transparent 55%),
		radial-gradient(ellipse 50% 70% at 0% 100%, rgba(0, 114, 200, 0.14), transparent 50%),
		var(--mist);
}

.sg-thanks-card h1 {
	font-family: var(--font-body);
	font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.85rem;
}

.sg-thanks-card p {
	margin: 0 0 1rem;
	color: var(--ink-soft);
	line-height: 1.55;
}

.sg-thanks-card p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.sg-btn::before {
		animation: none;
	}

	.sg-btn:hover {
		transform: none;
	}
}
