/*
 * Free guide: /guide/, /guide/thank-you/ and the [spf_guide] box.
 * Loaded only where they appear (inc/guide.php). Tokens follow styleguide.css.
 */

.guide-page,
.guide-promo {
	--g-ink: #333333;
	--g-muted: #666666;
	--g-soft: #91959d;
	--g-line: #e3e4e6;
	--g-panel: #f5f5f5;
	--g-accent: #ff6b00;
	--g-accent-text: #b84a00;
	--g-accent-wash: #fff3ea;
	--g-font: "Neue Montreal", Helvetica, Arial, sans-serif;
	color: var(--g-ink);
	font-family: var(--g-font);
}

.guide-page *,
.guide-promo * {
	box-sizing: border-box;
}

.guide-page h1,
.guide-page h2,
.guide-page h3,
.guide-page p,
.guide-page ul,
.guide-page ol,
.guide-page figure,
.guide-promo p,
.guide-promo fieldset {
	margin: 0;
	padding: 0;
}

.guide-page ul,
.guide-page ol {
	list-style: none;
}

.guide-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Hero --------------------------------------------------------------------- */

.guide-hero {
	padding: 32px 80px 24px;
}

.guide-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 64px;
	align-items: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 64px;
	border-radius: 20px;
	background: var(--g-panel);
	overflow: hidden;
}

.guide-hero__text {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.guide-page .guide-kicker,
.guide-promo .guide-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 7px 14px;
	border-radius: 32px;
	background: #fff;
	color: var(--g-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.guide-kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--g-accent);
}

.guide-kicker--done::before {
	background: #1f9d55;
}

.guide-page .guide-hero__title {
	color: var(--g-ink);
	font-family: var(--g-font);
	font-size: 60px;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.guide-hero__sub {
	max-width: 560px;
	color: var(--g-muted);
	font-size: 18px;
	line-height: 1.5;
}

.guide-page .guide-hero__points {
	display: grid;
	gap: 10px;
}

.guide-hero__points li {
	position: relative;
	padding-left: 32px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.guide-hero__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--g-accent) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.guide-hero__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 6px;
	padding: 22px;
	border-radius: 20px;
	background: #fff;
	scroll-margin-top: 120px;
}

.guide-page .guide-fine,
.guide-promo .guide-fine {
	color: var(--g-muted);
	font-size: 13px;
	line-height: 1.5;
}

.guide-fine a {
	color: inherit;
	text-decoration: underline;
}

.guide-page .guide-notice {
	padding: 10px 14px;
	border-radius: 12px;
	background: #fff4ec;
	color: #8a3a00;
	font-size: 14px;
	line-height: 1.4;
}

.guide-page .guide-notice--error {
	background: #fdecec;
	color: #a61b1b;
}

.guide-hero__cover {
	position: relative;
	display: flex;
	justify-content: center;
}

.guide-hero__cover::before {
	content: "";
	position: absolute;
	inset: 12% -10% -40% 8%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 107, 0, 0.18), rgba(255, 107, 0, 0));
}

.guide-hero__cover img {
	position: relative;
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.16);
	transform: rotate(2deg);
	transition: transform 0.4s ease;
}

.guide-hero__cover:hover img {
	transform: rotate(0deg) translateY(-4px);
}

/* Form ---------------------------------------------------------------------- */

.guide-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.guide-page .guide-form__chips,
.guide-promo .guide-form__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.guide-form__legend {
	float: left;
	margin-right: 4px;
	padding: 0;
	color: var(--g-muted);
	font-size: 14px;
	font-weight: 500;
}

.guide-form__chip {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.guide-form__chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.guide-form__chip span {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--g-line);
	border-radius: 32px;
	background: #fff;
	color: var(--g-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.guide-form__chip:hover span {
	border-color: var(--g-soft);
}

.guide-form__chip input:checked + span {
	border-color: var(--g-ink);
	background: var(--g-ink);
	color: #fff;
}

.guide-form__chip input:focus-visible + span {
	outline: 2px solid var(--g-accent);
	outline-offset: 2px;
}

.guide-form__row {
	display: flex;
	gap: 8px;
}

.guide-page .guide-form__input,
.guide-promo .guide-form__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 40px;
	background: var(--g-panel);
	color: var(--g-ink);
	font-family: var(--g-font);
	font-size: 16px;
	box-shadow: none;
}

.guide-form__input::placeholder {
	color: var(--g-soft);
}

.guide-form__input:focus {
	border-color: var(--g-ink);
	outline: none;
}

.guide-page .guide-form__button,
.guide-promo .guide-form__button {
	flex: none;
	height: 52px;
	margin: 0;
	padding: 0 26px;
	border: 0;
	border-radius: 32px;
	background: var(--g-ink);
	color: #fff;
	font-family: var(--g-font);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.guide-form__button:hover {
	background: #000;
}

.guide-form__button:focus-visible {
	outline: 2px solid var(--g-ink);
	outline-offset: 2px;
}

.guide-form.is-busy .guide-form__button {
	opacity: 0.7;
	cursor: progress;
}

.guide-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.guide-form__status:empty {
	display: none;
}

.guide-form__status {
	font-size: 14px;
	line-height: 1.4;
}

.guide-form__status.is-error {
	color: #a61b1b;
}

/* Buttons ------------------------------------------------------------------- */

.guide-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.guide-page .guide-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 32px;
	background: var(--g-ink);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s ease;
}

.guide-page .guide-button:hover {
	background: #000;
	color: #fff;
}

.guide-page .guide-button--light {
	background: var(--g-panel);
	color: var(--g-ink);
}

.guide-page .guide-button--light:hover {
	background: #ebebeb;
	color: var(--g-ink);
}

.guide-page .guide-button--large {
	min-height: 56px;
	padding: 14px 30px;
	font-size: 17px;
}

/* What's inside -------------------------------------------------------------- */

.guide-inside {
	padding: 56px 80px 88px;
}

.guide-inside__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.guide-page .guide-inside__title {
	color: var(--g-ink);
	font-family: var(--g-font);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.guide-page .guide-chapters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 48px;
	margin-top: 28px;
	counter-reset: none;
}

.guide-chapters li {
	display: grid;
	align-content: start;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 16px;
	padding: 20px 0;
	border-top: 1px solid var(--g-line);
}

.guide-chapters__num {
	grid-row: 1 / span 2;
	align-self: start;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--g-accent-wash);
	color: var(--g-accent-text);
	font-size: 18px;
	font-weight: 700;
}

.guide-page .guide-chapters h3 {
	color: var(--g-ink);
	font-family: var(--g-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.guide-chapters p {
	margin-top: 4px;
	color: var(--g-muted);
	font-size: 15px;
	line-height: 1.45;
}

.guide-page .guide-related {
	margin-top: 20px;
	color: var(--g-muted);
	font-size: 15px;
}

.guide-related a {
	color: var(--g-ink);
	font-weight: 500;
	text-decoration: underline;
}

/* Thank-you page -------------------------------------------------------------- */

.guide-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

.guide-thanks__meta {
	color: var(--g-muted);
	font-size: 14px;
}

.guide-page .guide-lede {
	margin-top: 8px;
	color: var(--g-muted);
	font-size: 16px;
}

.guide-deals {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.guide-deal {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px;
	border-radius: 20px;
	background: var(--g-panel);
}

.guide-page .guide-deal__name {
	font-family: var(--g-font);
	font-size: 18px;
	font-weight: 700;
}

.guide-deal__label {
	color: var(--g-muted);
	font-size: 15px;
}

.guide-deal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}

.guide-page .guide-deal__code {
	padding: 8px 14px;
	border: 1px dashed var(--g-accent);
	border-radius: 10px;
	background: #fff;
	color: var(--g-accent-text);
	font-family: var(--g-font);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: copy;
}

.guide-deal__code.is-copied {
	border-style: solid;
	background: var(--g-accent-wash);
}

.guide-deal__link {
	color: var(--g-ink);
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
}

/* [spf_guide] box in articles ------------------------------------------------ */

.guide-promo {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin: 32px 0;
	padding: 28px;
	border-radius: 20px;
	background: var(--g-panel);
}

.guide-promo__cover {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
	transform: rotate(-2deg);
}

.guide-promo__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.guide-promo .guide-promo__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.guide-promo .guide-promo__text {
	color: var(--g-muted);
	font-size: 16px;
	line-height: 1.5;
}

.guide-promo .guide-form__input {
	background: #fff;
}

.guide-promo .guide-form__chip span {
	padding: 6px 12px;
	font-size: 13px;
}

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 1100px) {
	.guide-hero__inner {
		gap: 40px;
		padding: 48px;
	}

	.guide-page .guide-hero__title {
		font-size: 50px;
	}
}

@media (max-width: 900px) {
	.guide-hero {
		padding: 16px 16px 8px;
	}

	.guide-hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 32px 20px;
	}

	/* The form comes straight after the introduction on small screens. */
	.guide-hero__form {
		order: 4;
	}

	.guide-hero__points {
		order: 5;
	}

	.guide-hero__cover img {
		max-width: 260px;
	}

	.guide-page .guide-hero__title {
		font-size: 42px;
	}

	.guide-hero__sub {
		font-size: 17px;
	}

	.guide-inside {
		padding: 40px 16px 64px;
	}

	.guide-page .guide-inside__title {
		font-size: 32px;
	}

	.guide-page .guide-chapters {
		grid-template-columns: 1fr;
	}

	.guide-deals {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.guide-hero__form {
		padding: 16px;
	}

	.guide-form__row {
		flex-direction: column;
	}

	.guide-page .guide-form__button,
	.guide-promo .guide-form__button {
		width: 100%;
	}

	.guide-page .guide-hero__title {
		font-size: 36px;
	}

	.guide-promo {
		grid-template-columns: 1fr;
		padding: 20px;
	}

	.guide-promo__cover {
		width: 120px;
	}

	.guide-actions .guide-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.guide-hero__cover img,
	.guide-hero__cover:hover img {
		transform: none;
		transition: none;
	}
}
