/*
 * Freddy, The Happiest Penguin - pre-order landing page.
 * Loaded only on this page (inc/freddy.php). Layout comes from
 * templates/page-freddy-the-happiest-penguin.html and the freddy-* patterns.
 * No global header or footer.
 *
 * Desktop values follow the 1440px "Desktop - Home V2" Figma frame
 * (content width 1296px). Illustrations are pre-composited (watercolor
 * texture + character) into single WebPs at 1x and 2x.
 *
 * Fonts: headlines use Maku from the Adobe Fonts kit whm3kzx (enqueued
 * in inc/freddy.php; Medium = 500, Bold = 600). The self-hosted Mali below is only
 * a fallback in case the kit fails to load.
 */

@font-face {
	font-family: "Mali";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/freddy/mali-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Mali";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/freddy/mali-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/freddy/poppins-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/freddy/poppins-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/freddy/poppins-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/freddy/poppins-500-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/freddy/poppins-600-normal.woff2") format("woff2");
}

:root {
	--fp-display: "maku", "Mali", "Comic Sans MS", system-ui, sans-serif;
	--fp-text: "Poppins", system-ui, sans-serif;
	--fp-blue: #007faa;
	--fp-ink: #282845;
	--fp-content-width: 1296px;
	--fp-gutter: 72px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	/* The full-bleed gifts illustration is sized against the viewport; clip any scrollbar-width overhang */
	overflow-x: clip;
	font-family: var(--fp-text);
	font-size: 21px;
	line-height: 32px;
	color: var(--fp-ink);
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
	padding: 0;
}

strong {
	font-weight: 600;
}

/* Undo the theme's block-gap margins and heading styles inside this page.
   Zero specificity past .fp-page, so the section rules below still win. */
.fp-page :where(main, footer, h1, h2, h3, p, ul, picture, img, a, div, section) {
	margin-block: 0;
}

.fp-page :where(h1, h2, h3) {
	font-family: inherit;
	letter-spacing: normal;
	color: inherit;
}

/* Text for screen readers only */
.fp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fp-container {
	width: 100%;
	max-width: calc(var(--fp-content-width) + var(--fp-gutter) * 2);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--fp-gutter);
	padding-right: var(--fp-gutter);
}

.fp-blue {
	color: var(--fp-blue);
}

/* Type */
.fp-heading {
	font-family: var(--fp-display);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--fp-blue);
}

.fp-plain {
	font-style: normal;
}

.fp-body {
	font-size: 21px;
	line-height: 32px;
}

/* Buttons */
.fp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 48px;
	border: 2px solid var(--fp-blue);
	border-radius: 1000px;
	background-color: var(--fp-blue);
	font-family: var(--fp-text);
	font-size: 20px;
	font-weight: 500;
	line-height: 26px;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
}

.fp-button--outline {
	background-color: transparent;
	color: var(--fp-blue);
}

.fp-button:hover,
.fp-button:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

.fp-button--outline:hover,
.fp-button--outline:focus-visible {
	color: var(--fp-blue);
}

.fp-button:focus-visible {
	outline: 2px solid var(--fp-ink);
	outline-offset: 3px;
}

/* Hover (Figma "Variant2"): a cart icon slides in 10px before the label */
.fp-button::before {
	content: "";
	flex: none;
	width: 0;
	height: 21px;
	margin-right: 0;
	opacity: 0;
	background: url("../images/freddy/cart-white.svg") left center / 23px 21px no-repeat;
	transition: width 0.25s ease, margin-right 0.25s ease, opacity 0.25s ease;
}

.fp-button--outline::before {
	background-image: url("../images/freddy/cart-blue.svg");
}

.fp-button:hover::before,
.fp-button:focus-visible::before {
	width: 23px;
	margin-right: 10px;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.fp-button::before {
		transition: none;
	}
}

/* Header (sits over the hero image) */
.fp-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	/* Same width as .fp-container, so the logo lines up with the hero copy */
	max-width: calc(var(--fp-content-width) + var(--fp-gutter) * 2);
	margin: 0 auto;
	padding: 32px var(--fp-gutter) 0;
}

.fp-logo {
	width: 600px;
	min-width: 0;
}

/* Hero */
/* Scales with the viewport like the 1440x736 Figma frame, so the whole
   background (book, shelf and the white wave) always shows */
.fp-hero {
	position: relative;
	aspect-ratio: 1440 / 736;
	min-height: 600px;
	padding-top: max(150px, 15.97%);
}

.fp-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* When the hero has to crop (narrow screens), keep the book and the wave */
	object-position: right bottom;
}

.fp-hero__content {
	position: relative;
	z-index: 1;
}

.fp-hero__title {
	font-family: var(--fp-display);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--fp-blue);
}

.fp-hero__lead {
	margin-top: 24px;
	font-size: 24px;
	line-height: 36px;
}

.fp-hero__content .fp-button {
	margin-top: 32px;
}

/* Two-column text + illustration sections */
/* Text columns are 650px; the illustration column takes the rest of the row */
.fp-split {
	display: grid;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.fp-split__text > * + * {
	margin-top: 16px;
}

.fp-split__text > .fp-button {
	margin-top: 32px;
}

.fp-split--intro {
	grid-template-columns: minmax(0, 650px) minmax(0, 1fr);
	margin-top: 32px;
	padding-left: calc(var(--fp-gutter) + 24px);
}

.fp-split--idea {
	grid-template-columns: minmax(0, 1fr) minmax(0, 650px);
	margin-top: 96px;
	padding-right: calc(var(--fp-gutter) + 24px);
}

.fp-split--mission {
	grid-template-columns: minmax(0, 650px) minmax(0, 1fr);
	margin-top: 72px;
	padding-left: calc(var(--fp-gutter) + 24px);
}

.fp-split--world {
	grid-template-columns: minmax(0, 650px) minmax(0, 1fr);
	margin-top: 24px;
	padding-left: calc(var(--fp-gutter) + 24px);
}

.fp-split--start {
	grid-template-columns: minmax(0, 1fr) minmax(0, 650px);
	margin-top: 96px;
}

/* Gifts */
.fp-gifts {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 545px);
	gap: 32px;
	margin-top: 96px;
}

/* Keeps the list ~70px clear of the CTA band, which overlaps this section by 26px */
.fp-gifts__text {
	padding-bottom: 96px;
}

.fp-gifts__title {
	font-size: 40px;
}

.fp-gifts__list {
	margin-top: 48px;
	list-style: none;
}

.fp-gift {
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr);
	column-gap: 16px;
}

.fp-gift + .fp-gift {
	margin-top: 48px;
}

.fp-gift__icon {
	grid-row: 1;
	justify-self: center;
	margin-top: 7px;
}

.fp-gift__name {
	font-size: 28px;
	font-weight: 500;
	line-height: 42px;
}

.fp-gift__desc {
	grid-column: 2;
	margin-top: 8px;
	font-size: 21px;
	line-height: 32px;
}

/* The illustration is pinned to the right edge of the window and the bottom
   of the section, so its base tucks under the CTA band's wavy edge (the band
   overlaps this section by 26px). The section is never shorter than the
   illustration plus the design's 72px above it. */
.fp-gifts {
	position: relative;
	min-height: calc(min(712px, 50vw) * 594 / 712 + 72px);
}

.fp-gifts__art {
	position: absolute;
	right: calc(50% - 50vw);
	bottom: 0;
	width: min(712px, 50vw);
}

/* CTA band: wavy watercolor strip that overlaps the bottom of the gifts illustration */
.fp-cta {
	position: relative;
	z-index: 1;
	margin-top: -26px;
	aspect-ratio: 1440 / 502;
	min-height: 360px;
	display: flex;
	justify-content: center;
}

.fp-cta__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fp-cta__content {
	position: relative;
	align-self: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 48px 0;
	text-align: center;
}

/* Soft white glow behind the CTA heading */
.fp-cta__content::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	z-index: -1;
	width: 672px;
	max-width: 100vw;
	height: 184px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	-webkit-backdrop-filter: blur(2.5px);
	backdrop-filter: blur(2.5px);
}

.fp-cta__title {
	font-family: var(--fp-display);
	font-size: 40px;
	font-weight: 500;
	line-height: 1.3;
}

.fp-cta__content .fp-button {
	margin-top: 48px;
}

/* One step further */
.fp-lesson {
	position: relative;
	min-height: 688px;
	margin-top: 72px;
	padding-top: 30px;
}

.fp-lesson__art {
	position: absolute;
	top: 0;
	left: 0;
	width: min(820px, 57vw);
}

.fp-lesson__wave {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 72px;
}

.fp-lesson__content {
	position: relative;
	width: 650px;
	max-width: 55%;
	margin-left: auto;
}

.fp-lesson__content > .fp-body {
	margin-top: 16px;
}

.fp-lesson__list {
	margin-top: 48px;
	padding-left: 122px;
	list-style: none;
	font-style: italic;
}

.fp-lesson__list li + li {
	margin-top: 12px;
}

/* Checklist */
.fp-checklist {
	list-style: none;
	font-weight: 600;
}

/* Hand-drawn tick (decorative, so it isn't announced) */
.fp-checklist li::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 10px;
	background: url("../images/freddy/check.svg") center / contain no-repeat;
}

/* One last question: copy beside the video card, whose watercolor starts 29px higher */
.fp-split--question {
	grid-template-columns: minmax(0, 563px) minmax(0, 640px);
	align-items: start;
	margin-top: 96px;
	padding-left: calc(var(--fp-gutter) + 24px);
}

.fp-video {
	position: relative;
	margin-top: -29px;
}

.fp-video__ink {
	width: 100%;
}

/* Sizes and offsets are the design's px over the 640x427 watercolor */
.fp-video__frame {
	position: absolute;
	top: 18.97%;
	left: 13.28%;
	width: 73.6%;
	aspect-ratio: 471 / 265;
}

.fp-video__link {
	position: relative;
	display: block;
	border-radius: 20px;
}

.fp-video__link:focus-visible {
	outline: 2px solid var(--fp-ink);
	outline-offset: 3px;
}

.fp-video__poster {
	width: 100%;
}

.fp-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16%;
	transform: translate(-50%, -50%);
	transition: scale 0.2s ease;
}

.fp-video__link:hover .fp-video__play {
	scale: 1.08;
}

/* Replaces the link once someone hits play */
.fp-video__player {
	display: block;
	width: 100%;
	height: 100%;
	border: 2px solid var(--fp-blue);
	border-radius: 20px;
	background: #000000;
}

@media (prefers-reduced-motion: reduce) {
	.fp-video__play {
		transition: none;
	}
}

/* Footer */
/* The background keeps its 1440x1134 proportions and sits at the bottom. Its
   top half is white, so it blends into the page above when the content needs
   more room. The bottom padding (the design's 439px) keeps the form above
   the logo and the water at any width. */
.fp-footer {
	position: relative;
	margin-top: 48px;
	/* Never shorter than the image itself, so it can't spill over the section above */
	min-height: 78.75vw;
	padding-top: 48px;
	padding-bottom: 30.49%;
}

.fp-footer__bg {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
}

/* Desktop: the leaves sit on their own layers over the background (Figma
   node 205:366 and 205:388), bleeding past both window edges, so the footer
   clips them. Sizes are the design's px over its 1440px width. Mobile uses
   the flattened artwork, which already has the leaves. */
.fp-footer {
	overflow: clip;
}

.fp-footer__leaves {
	position: absolute;
	bottom: 0;
}

.fp-footer__leaves--left {
	left: -5.417vw;
	width: 30.903vw;
}

.fp-footer__leaves--right {
	right: -3.403vw;
	width: 23.958vw;
}

/* How to claim */
.fp-claim {
	position: relative;
	/* Pre-order buttons land here, with a little room above the heading */
	scroll-margin-top: 32px;
	display: grid;
	grid-template-columns: minmax(0, 400px) minmax(0, 608px);
	justify-content: space-between;
	gap: 48px 32px;
	padding-left: calc(var(--fp-gutter) + 72px);
	padding-right: calc(var(--fp-gutter) + 72px);
}

.fp-claim__title {
	grid-column: 1 / -1;
	margin-bottom: 24px;
	text-align: center;
}

.fp-claim__step > * + * {
	margin-top: 16px;
}

.fp-retailers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 8px;
	list-style: none;
}

.fp-retailer {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 96px;
	padding: 0 16px;
	border: 2px solid var(--fp-blue);
	border-radius: 20px;
	background-color: #ffffff;
	transition: background-color 0.2s ease;
}

.fp-retailer:hover {
	background-color: #eaf6fa;
}

.fp-retailer:focus-visible {
	outline: 2px solid var(--fp-ink);
	outline-offset: 3px;
}

/* Stand-in form */
.fp-form {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fp-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.fp-form__label {
	display: block;
	margin: 0 0 8px 12px;
	font-family: var(--fp-display);
	font-size: 21px;
	font-weight: 500;
	line-height: 26px;
	color: var(--fp-blue);
}

.fp-form__input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 12px;
	border: 1px solid var(--fp-blue);
	border-radius: 10px;
	background: #ffffff;
	font-family: var(--fp-text);
	font-size: 16px;
	color: var(--fp-ink);
}

.fp-form__input::placeholder {
	opacity: 1;
	color: rgba(40, 40, 69, 0.75);
}

.fp-form__footer {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.fp-form .fp-button {
	background-color: transparent;
}

/* Gravity Forms version of the same design. !important matches the theme's
   other forms: Gravity's own stylesheets load after this one and set most of these. */
.fp-claim__form .gform_wrapper {
	--gf-form-gap-y: 16px;
	--gf-form-gap-x: 16px;
	margin: 0 !important;
	padding: 0 !important;
}

.fp-claim__form .gform_heading,
.fp-claim__form .gform_required_legend,
.fp-claim__form .gfield_required {
	display: none !important;
}

.fp-claim__form .gform_fields {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Flex so error messages can sit under the input (see order below) */
.fp-claim__form .gfield {
	display: flex !important;
	flex-direction: column;
	grid-column: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.fp-claim__form .gfield--type-name {
	grid-column: 1 / -1 !important;
	border: 0;
}

.fp-claim__form .ginput_container--name {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px !important;
	margin: 0 !important;
}

.fp-claim__form .ginput_container--name > span {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.fp-claim__form .gfield.hidden_label > .gfield_label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.fp-claim__form .gform-field-label {
	display: block !important;
	margin: 0 0 8px 12px !important;
	font-family: var(--fp-display) !important;
	font-size: 21px !important;
	font-weight: 500 !important;
	line-height: 26px !important;
	color: var(--fp-blue) !important;
}

.fp-claim__form .gform_wrapper input:not([type="submit"]):not([type="hidden"]) {
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--fp-blue) !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	background: #ffffff !important;
	font-family: var(--fp-text) !important;
	font-size: 16px !important;
	line-height: 16px !important;
	color: var(--fp-ink) !important;
}

.fp-claim__form .gform_wrapper input::placeholder {
	opacity: 1;
	color: rgba(40, 40, 69, 0.75) !important;
}

.fp-claim__form .gform_wrapper input:not([type="submit"]):focus {
	outline: 2px solid var(--fp-blue) !important;
	outline-offset: 1px !important;
}

.fp-claim__form .gform-footer {
	display: flex !important;
	justify-content: center !important;
	margin: 32px 0 0 !important;
	padding: 0 !important;
}

/* Same look as .fp-button--outline */
.fp-claim__form .gform_wrapper .gform_button.button {
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 16px 48px !important;
	border: 2px solid var(--fp-blue) !important;
	border-radius: 1000px !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: var(--fp-text) !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 26px !important;
	color: var(--fp-blue) !important;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.fp-claim__form .gform_wrapper .gform_button.button:hover,
.fp-claim__form .gform_wrapper .gform_button.button:focus-visible {
	background: #eaf6fa !important;
}

.fp-claim__form .gform_wrapper .gform_button.button:focus-visible {
	outline: 2px solid var(--fp-ink) !important;
	outline-offset: 3px !important;
}

.fp-claim__form .gform_validation_errors {
	margin: 0 0 16px !important;
	padding: 12px 16px !important;
	border: 1px solid #b3261e !important;
	border-radius: 10px !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: #fdf0ef !important;
}

.fp-claim__form .gform_validation_errors :is(h2, ol, li, a, span) {
	font-family: var(--fp-text) !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: #b3261e !important;
}

.fp-claim__form .gfield_validation_message {
	order: 1;
	margin: 6px 0 0 12px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: var(--fp-text) !important;
	font-size: 14px !important;
	color: #b3261e !important;
}

.fp-claim__form .gform_confirmation_message {
	font-family: var(--fp-text);
	font-size: 21px;
	line-height: 32px;
	color: var(--fp-ink);
	text-align: center;
}

.fp-footer__brand {
	position: absolute;
	left: 50%;
	bottom: 9.17vw;
	width: 600px;
	max-width: calc(100% - 32px);
	transform: translateX(-50%);
}

.fp-footer__glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 800px;
	max-width: 100vw;
	height: 108px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(162, 223, 237, 0.9);
	filter: blur(50px);
}

.fp-footer__brand .fp-logo {
	position: relative;
	width: 100%;
}

/* <picture> wrappers only pick the image source; layout styles target the <img> */
picture {
	display: contents;
}

/* Otherwise the empty <source> becomes an invisible flex item and pushes the
   header logo off the left edge */
picture > source {
	display: none;
}

/* Line breaks that only apply on mobile */
@media (min-width: 783px) {
	.fp-br-mobile {
		display: none;
	}
}

/* Line breaks that only apply on desktop */
@media (max-width: 1100px) {
	.fp-br-desktop {
		display: none;
	}
}

/* Tablet */
@media (max-width: 1280px) {
	:root {
		--fp-gutter: 40px;
	}

	.fp-logo {
		width: 420px;
	}

	.fp-lesson__list {
		padding-left: 48px;
	}
}

/* The claim steps stack once the two columns get tight */
@media (max-width: 1000px) {
	.fp-claim {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-left: var(--fp-gutter);
		padding-right: var(--fp-gutter);
	}

	.fp-claim__title {
		margin-bottom: 0;
	}

	.fp-retailers,
	.fp-claim__form {
		margin-bottom: 24px;
	}
}

/* Mobile - follows the 393px "Mobile - Home" Figma frame (node 133:17):
   art above copy in every section, 32px between art and heading, 48px
   between sections. The hero, CTA band and footer swap to mobile artwork
   via <picture>, and the logo to a two-line version. */
@media (max-width: 782px) {
	:root {
		--fp-gutter: 24px;
	}

	body,
	.fp-body {
		font-size: 16px;
		line-height: 24px;
	}

	/* The theme hides every line break in headings and forces their size on
	   mobile, but this page sets its own */
	.fp-page .wp-block-heading br:not(.fp-br-desktop) {
		display: inline;
	}

	.fp-page .fp-heading {
		font-size: 28px !important;
	}

	.fp-page .fp-gifts__title,
	.fp-page .fp-cta__title {
		font-size: 32px !important;
	}

	.fp-header {
		justify-content: center;
		padding: 72px 16px 0;
	}

	.fp-header__cta {
		display: none;
	}

	.fp-logo {
		width: 289px;
		max-width: 100%;
	}

	/* The artwork keeps its 393x767 proportions and sits at the bottom; its
	   top is a flat colour, matched by the section background, so the copy
	   can run longer on narrow phones without hitting the book */
	.fp-hero {
		aspect-ratio: auto;
		min-height: calc(100vw * 767 / 393);
		padding-top: 176px;
		padding-bottom: calc(100vw * 265 / 393);
		background-color: #f8f8f2;
		text-align: center;
	}

	.fp-hero__image {
		top: auto;
		height: auto;
	}

	.fp-hero__content {
		padding-left: 16px;
		padding-right: 16px;
	}

	.fp-page .fp-hero__title {
		font-size: 36px !important;
	}

	.fp-hero__lead {
		margin-top: 16px;
		font-size: 18px;
		line-height: 27px;
	}

	.fp-split,
	.fp-split--intro,
	.fp-split--idea,
	.fp-split--mission,
	.fp-split--world,
	.fp-split--start,
	.fp-split--question,
	.fp-gifts {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		margin-top: 48px;
		padding-left: var(--fp-gutter);
		padding-right: var(--fp-gutter);
	}

	.fp-split--intro {
		margin-top: 32px;
	}

	/* Clears the wave under the lesson illustration */
	.fp-split--world {
		margin-top: 36px;
	}

	.fp-split__art {
		order: -1;
		justify-self: center;
	}

	/* Gifts */
	.fp-gifts {
		min-height: 0;
	}

	.fp-gifts__text {
		padding-bottom: 0;
	}

	.fp-gifts__list {
		margin-top: 32px;
	}

	.fp-gift {
		grid-template-columns: 21px minmax(0, 1fr);
	}

	.fp-gift + .fp-gift {
		margin-top: 24px;
	}

	.fp-gift__icon {
		width: auto;
		max-width: none;
		height: 24px;
		margin-top: 3px;
	}

	.fp-gift__name {
		font-size: 24px;
		font-style: italic;
		line-height: 30px;
	}

	.fp-gift__desc {
		font-size: 18px;
		line-height: 27px;
	}

	/* 32px in from the left, flush with the right edge of the screen */
	.fp-gifts__art {
		position: static;
		width: calc(100% + var(--fp-gutter) - 8px);
		max-width: none;
		margin-left: 8px;
	}

	/* CTA band: the mobile artwork has the wavy edges and the white glow built in */
	.fp-cta {
		margin-top: -15px;
		aspect-ratio: 393 / 380;
		min-height: 360px;
	}

	.fp-cta__content {
		padding: 0 24px;
	}

	.fp-cta__content::before {
		display: none;
	}

	.fp-cta__content .fp-button {
		margin-top: 32px;
	}

	/* One step further: copy, then the illustration (flush left) and the wave */
	.fp-lesson {
		display: flex;
		flex-direction: column;
		min-height: 0;
		margin-top: 48px;
		padding-top: 0;
		overflow-x: clip;
	}

	.fp-lesson__content {
		width: auto;
		max-width: none;
	}

	.fp-lesson__list {
		margin-top: 24px;
		padding-left: 16px;
		font-size: 18px;
		line-height: 27px;
	}

	.fp-lesson__art {
		order: 2;
		position: static;
		width: calc(100% - 32px);
	}

	/* Beats the theme's margin reset on a first child */
	.fp-page .fp-lesson__art {
		margin-top: 8px;
	}

	.fp-lesson__wave {
		order: 3;
		position: relative;
		width: 634px;
		max-width: none;
		height: 32px;
		margin-top: -20px;
	}

	/* Checklist: tick in its own column so wrapped lines stay aligned */
	.fp-split__text > .fp-checklist {
		margin-top: 24px;
	}

	.fp-checklist {
		font-size: 18px;
		line-height: 27px;
	}

	.fp-checklist li {
		display: grid;
		grid-template-columns: 15px minmax(0, 1fr);
		column-gap: 12px;
	}

	/* Centred on the first line (27px) */
	.fp-checklist li::before {
		margin-top: 6px;
		margin-right: 0;
	}

	.fp-checklist li + li {
		margin-top: 16px;
	}

	/* One last question: art above copy, like the other sections */
	.fp-video {
		order: -1;
		margin-top: 0;
	}

	/* Footer: not in the mobile Figma frame yet, so adapted from desktop. The
	   393x598 artwork stays anchored at the bottom; the steps sit above it and
	   the bottom padding keeps the form above the water */
	.fp-footer {
		margin-top: 48px;
		min-height: calc(100vw * 598 / 393);
		padding-top: 16px;
		padding-bottom: calc(100vw * 144 / 393);
	}

	.fp-retailer {
		height: 72px;
		padding: 0 12px;
		border-radius: 16px;
	}

	.fp-retailer img {
		max-height: 32px;
		width: auto;
	}

	.fp-form__label {
		font-size: 18px;
	}

	.fp-claim__form .gform-field-label {
		font-size: 18px !important;
	}

	.fp-footer__leaves {
		display: none;
	}

	.fp-footer__brand {
		bottom: calc(100vw * 29 / 393);
		width: 186px;
	}

	.fp-footer__glow {
		width: 205px;
		height: 54px;
		filter: blur(25px);
	}
}

/* Very narrow phones (320px) */
@media (max-width: 359px) {
	.fp-button {
		padding-left: 28px;
		padding-right: 28px;
	}
}

/* Scroll-in animations, from the Figma motion frame (node 205:211). Figma
   previews them on a 2s loop; here each one plays once, when script.js adds
   .is-visible. Until then the images are hidden with visibility (not moved),
   so the observer sees where they will land. Images stay visible without JS
   or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	.fp-js .fp-split__art,
	.fp-js .fp-gifts__art,
	.fp-js .fp-lesson__art,
	.fp-js .fp-footer__leaves {
		visibility: hidden;
	}

	.fp-js .fp-split__art.is-visible,
	.fp-js .fp-gifts__art.is-visible,
	.fp-js .fp-lesson__art.is-visible,
	.fp-js .fp-footer__leaves.is-visible {
		visibility: visible;
	}

	/* Side illustrations: fade in and grow from 60% */
	.fp-js .fp-split__art.is-visible {
		animation:
			fp-fade-in 0.4s cubic-bezier(0.09, 0.55, 0.5, 1),
			fp-grow-in 0.78s cubic-bezier(0.15, 0.52, 0.5, 1);
	}

	/* Ocean friends rise 600px from below; the section clips them so they
	   come up out of the CTA band rather than over the next section. */
	.fp-js .fp-gifts {
		overflow-y: clip;
	}

	.fp-js .fp-gifts__art.is-visible {
		animation: fp-rise-in 0.8s ease-in;
	}

	/* Crab sign slides in 832px from the left */
	.fp-js .fp-lesson__art.is-visible {
		animation: fp-slide-in 0.8s ease-out;
	}

	/* Footer leaves grow from nothing while rising 698px, both together */
	.fp-js .fp-footer__leaves.is-visible {
		animation:
			fp-leaves-grow 1s cubic-bezier(0.05, 0.4, 0.5, 1),
			fp-leaves-rise 1s linear;
	}
}

@keyframes fp-fade-in {
	from { opacity: 0; }
}

@keyframes fp-grow-in {
	from { scale: 0.6; }
}

@keyframes fp-rise-in {
	from { translate: 0 600px; }
}

@keyframes fp-slide-in {
	from { translate: -832px 0; }
}

@keyframes fp-leaves-grow {
	from { scale: 0; }
}

/* Figma's sampled rise curve */
@keyframes fp-leaves-rise {
	0% { translate: 0 698px; }
	10% { translate: 0 598.794px; }
	20% { translate: 0 497.866px; }
	30% { translate: 0 392.515px; }
	40% { translate: 0 292.195px; }
	50% { translate: 0 203.367px; }
	60% { translate: 0 129.53px; }
	70% { translate: 0 72.193px; }
	80% { translate: 0 31.709px; }
	90% { translate: 0 7.824px; }
	100% { translate: none; }
}
