/**
 * Script Generator landing page.
 *
 * Only what service.css does not already provide. Sections, bands, steps and
 * buttons all come from there so this page matches the rest of the site by
 * construction rather than by being restyled to look similar.
 */

/* ---------------- hero ---------------- */

.sg-hero {
	padding-top: clamp(1.25rem, 3vw, 2rem);
	background:
		radial-gradient(58rem 28rem at 80% 0%, #E056FD14, transparent 60%),
		linear-gradient(180deg, var(--paper-2, #FBF7FD), var(--paper, #F5ECFA));
}

/* Centred as a column rather than line-by-line, so the measure stays readable
 * while the block sits over the tool it introduces. */
.sg-hero-copy {
	max-width: 44rem;
	margin-inline: auto;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	text-align: center;
}

.sg-hero-copy .breadcrumbs,
.sg-hero-copy .eyebrow {
	justify-content: center;
}

.sg-h1 {
	margin: .35rem 0 0;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	font-weight: 800;
	line-height: 1.06;
	color: var(--ink, #1E1233);
}

/* Semi-bold and tight to the H1: it reads as one statement rather than as a
 * heading followed by unrelated body copy. */
.sg-lede {
	margin: .85rem auto 0;
	max-width: 38rem;
	font-size: clamp(1.02rem, 1.8vw, 1.18rem);
	font-weight: 550;
	line-height: 1.55;
	color: var(--ink-2, #4C3D66);
}

.sg-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin: 1.15rem 0 0;
	padding: 0;
	list-style: none;
}

.sg-chips li {
	padding: .38rem .78rem;
	border-radius: 999px;
	background: var(--surface, #fff);
	border: 1px solid var(--hairline, #E7D8F2);
	font-size: .84rem;
	font-weight: 600;
	color: var(--ink-2, #4C3D66);
}

/* ---------------- lessons ---------------- */

.sg-lessons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
}

.sg-lesson {
	padding: clamp(1.15rem, 2.5vw, 1.5rem);
	background: var(--surface, #fff);
	border: 1px solid var(--hairline, #E7D8F2);
	border-radius: var(--r, 16px);
	box-shadow: var(--sh-sm, 0 1px 2px #1E123310, 0 2px 6px #1E12330A);
}

.sg-lesson-stat {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	font-weight: 800;
	line-height: 1.05;
	background: var(--grad, linear-gradient(120deg, #E056FD 0%, #E530B5 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.svc-page .sg-lesson-title {
	margin: .1rem 0 .6rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink, #1E1233);
}

.sg-lesson-body {
	margin: 0;
	font-size: .93rem;
	line-height: 1.6;
	color: var(--ink-2, #4C3D66);
}

/* ---------------- goals ---------------- */

.sg-goals-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
}

.sg-goal-card {
	padding: clamp(1.1rem, 2.5vw, 1.4rem);
	background: var(--surface, #fff);
	border: 1px solid var(--hairline, #E7D8F2);
	border-radius: var(--r, 16px);
}

.svc-page .sg-goal-card-title {
	margin: 0 0 .45rem;
	font-size: 1.08rem;
	font-weight: 750;
	color: var(--ink, #1E1233);
}

.sg-goal-card-body {
	margin: 0;
	font-size: .92rem;
	line-height: 1.6;
	color: var(--ink-2, #4C3D66);
}

/* ---------------- plans ---------------- */

.sg-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
	align-items: start;
}

.sg-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(1.25rem, 2.5vw, 1.65rem);
	background: var(--surface, #fff);
	border: 1px solid var(--hairline, #E7D8F2);
	border-radius: var(--r, 16px);
	box-shadow: var(--sh-sm, 0 1px 2px #1E123310, 0 2px 6px #1E12330A);
}

.sg-plan.is-featured {
	border-color: var(--violet, #9B23D4);
	box-shadow: var(--sh-md, 0 2px 6px #1E123312, 0 14px 34px -10px #1E123326);
}

.sg-plan-flag {
	position: absolute;
	top: -.7rem;
	left: clamp(1.25rem, 2.5vw, 1.65rem);
	padding: .2rem .6rem;
	border-radius: 999px;
	background: var(--grad, linear-gradient(120deg, #E056FD 0%, #E530B5 100%));
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.svc-page .sg-plan-name {
	margin: 0 0 .3rem;
	font-size: 1.15rem;
	font-weight: 750;
	color: var(--ink, #1E1233);
}

.sg-plan-price {
	display: flex;
	align-items: baseline;
	gap: .35rem;
	margin: 0 0 .55rem;
}

.sg-plan-amount {
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 800;
	line-height: 1;
	color: var(--ink, #1E1233);
}

/* WooCommerce wraps prices in its own markup; keep it from inheriting a
 * smaller size than the surrounding number. */
.sg-plan-amount .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.sg-plan-period {
	font-size: .86rem;
	color: var(--muted, #7C6B94);
}

.sg-plan-blurb {
	margin: 0 0 1rem;
	font-size: .9rem;
	line-height: 1.55;
	color: var(--ink-2, #4C3D66);
}

.sg-plan-features {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	font-size: .91rem;
	line-height: 1.5;
	color: var(--ink-2, #4C3D66);
}

.sg-plan-features li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: .45rem;
}

.sg-plan-features li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
}

.sg-plan-features .is-yes::before {
	content: "\2713";
	color: #1a7f4b;
}

.sg-plan-features .is-no {
	color: var(--muted, #7C6B94);
}

.sg-plan-features .is-no::before {
	content: "\2013";
	color: var(--muted, #7C6B94);
}

.sg-plan-cta {
	margin-top: auto;
	align-self: flex-start;
}

.sg-plan-soon {
	margin-top: auto;
	font-size: .88rem;
	font-weight: 600;
	color: var(--muted, #7C6B94);
}

/* ---------------- long-form ---------------- */

.sg-detail {
	display: grid;
	grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.sg-detail-aside {
	position: sticky;
	top: 5.5rem;
}

.sg-detail-pull {
	margin: .5rem 0 0;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink, #1E1233);
}

.sg-detail-body > h2:first-child {
	margin-top: 0;
}

.sg-honest p {
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--ink-2, #4C3D66);
}

.sg-honest p + p {
	margin-top: 1rem;
}

/* ---------------- narrow ---------------- */

@media (max-width: 900px) {
	.sg-detail {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg-detail-aside {
		position: static;
	}
}
