/* Molly & Stanley Adventures - Page 1
   Placeholder build. No final imagery yet, every image position is a labelled box. */

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

:root {
	--ms-cream: #FBF7F0;
	--ms-cream-deep: #F6EEE1;
	--ms-card: #FFFCF6;
	--ms-ink: #2B2118;
	--ms-body: #4A3C2E;
	--ms-muted: #8A7A66;
	--ms-terracotta: #C4552F;
	--ms-terracotta-dk: #A8431F;
	--ms-line: #E2D5C1;

	--ms-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--ms-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* One spacing scale for the whole page, so every band breathes the same. */
	--ms-band: 92px;
	--ms-gap: 56px;
	--ms-radius: 14px;
	--ms-shell: 1180px;
}

@media (max-width: 1024px) { :root { --ms-band: 72px; --ms-gap: 40px; } }
@media (max-width: 767px)  { :root { --ms-band: 56px; --ms-gap: 30px; } }

/* ---------- shell ---------- */

body.page-template-page-landing {
	background: var(--ms-cream);
	color: var(--ms-body);
	font-family: var(--ms-sans);
	overflow-x: hidden;
}

body.page-template-page-landing .site-content,
body.page-template-page-landing .content-area,
body.page-template-page-landing .site-main,
body.page-template-page-landing .entry-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

body.page-template-page-landing #page { background: var(--ms-cream); }

.ms-page { scroll-behavior: smooth; }

/* Core group blocks wrap their children in an extra div. Make that wrapper
   transparent so the layout classes below apply to the real children. */
.ms-page .wp-block-group__inner-container { display: contents; }

.ms-shell {
	width: 100%;
	max-width: var(--ms-shell);
	margin-inline: auto;
	padding-inline: 24px;
}

@media (max-width: 767px) { .ms-shell { padding-inline: 18px; } }

.ms-band { padding-block: var(--ms-band); }
.ms-band--tight { padding-block: calc(var(--ms-band) * 0.62); }
.ms-band--deep { background: var(--ms-cream-deep); }

/* ---------- type ---------- */

.ms-page h1, .ms-page h2, .ms-page h3 {
	font-family: var(--ms-serif);
	color: var(--ms-ink);
	font-weight: 700;
	margin-top: 0;
}

/* Sizes live here rather than in the theme's typography panel: this page has
   its own scale and should not shift if the theme defaults change. */
.ms-page h1 { font-size: 44px; line-height: 1.1; margin-bottom: 16px; }
.ms-page h2 { font-size: 38px; line-height: 1.16; margin-bottom: 16px; }
.ms-page h3 { font-size: 26px; line-height: 1.22; margin-bottom: 12px; }

@media (max-width: 1024px) {
	.ms-page h1 { font-size: 40px; }
	.ms-page h2 { font-size: 32px; }
	.ms-page h3 { font-size: 24px; }
}

.ms-page p { margin: 0 0 1.1em; }
.ms-page p:last-child { margin-bottom: 0; }

.ms-eyebrow {
	font-family: var(--ms-sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ms-terracotta);
	margin: 0 0 16px;
}

.ms-lead { font-size: 18.5px; line-height: 1.6; }
.ms-closer {
	font-family: var(--ms-serif);
	font-size: 22px;
	line-height: 1.4;
	color: var(--ms-ink);
	font-style: italic;
}

.ms-note { font-size: 14px; color: var(--ms-muted); }

/* ---------- brand bar ---------- */

.ms-brand {
	padding-block: 12px 0;
	text-align: center;
}

.ms-brand__home { display: inline-block; line-height: 0; }

.ms-brand__logo {
	display: inline-block;
	width: auto;
	height: 56px;
	max-width: 100%;
}

.ms-brand__name {
	font-family: var(--ms-serif);
	font-size: 25px;
	font-weight: 700;
	color: var(--ms-ink);
	line-height: 1.1;
	margin: 0;
}

.ms-brand__sub {
	font-size: 10.5px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: var(--ms-muted);
	margin: 5px 0 0;
}

/* ---------- placeholders ---------- */

.ms-ph {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	border: 2px dashed var(--ms-line);
	border-radius: var(--ms-radius);
	background: var(--ms-cream-deep);
	color: var(--ms-muted);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	line-height: 1.5;
}

.ms-ph--photo { background: #F0EDE6; }

.ms-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--ms-radius);
	background: var(--ms-cream-deep);
}

/* The cover is a book: exact A4 frame, a small corner and a soft lift so it
   reads as an object, not a flat picture. */
.ms-img--book {
	border-radius: 6px;
	box-shadow: 0 18px 34px -14px rgba(43, 33, 24, 0.45);
}
.ms-ph__ratio { display: block; margin-top: 7px; letter-spacing: 0.06em; opacity: 0.75; }

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

.ms-hero { padding-block: 24px var(--ms-band); }

.ms-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
	grid-template-areas:
		"intro media"
		"offer media";
	grid-template-rows: auto 1fr;
	column-gap: var(--ms-gap);
	align-items: start;
}

.ms-hero__intro { grid-area: intro; min-width: 0; }
.ms-hero__offer { grid-area: offer; min-width: 0; }

.ms-hero__media {
	grid-area: media;
	align-self: center;
}
.ms-hero h1 { margin-bottom: 20px; }
.ms-hero__sub { max-width: 40em; }

.ms-list { list-style: none; margin: 18px 0 22px; padding: 0; }

.ms-list li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 8px;
	line-height: 1.5;
}

.ms-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 8px;
	width: 13px;
	height: 8px;
	border-left: 2.5px solid var(--ms-terracotta);
	border-bottom: 2.5px solid var(--ms-terracotta);
	transform: rotate(-45deg);
}

.ms-hero__media { min-width: 0; display: flex; justify-content: center; }

.ms-hero__media .ms-media {
	aspect-ratio: 1054 / 1491; /* the real Volume 1 cover, A4 */
	width: 100%;
}

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

.ms-form,
.ms-contact-form {
	background: var(--ms-card);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
	padding: 24px;
	box-shadow: 0 14px 34px -26px rgba(43, 33, 24, 0.5);
	max-width: 460px;
}

.ms-form--wide { max-width: 520px; margin-inline: auto; }

.ms-field { margin-bottom: 15px; }

.ms-field label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	color: var(--ms-muted);
	margin-bottom: 6px;
}

.ms-field input,
.ms-field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	font: inherit;
	font-size: 16px;
	color: var(--ms-ink);
	background: var(--ms-cream);
	border: 1px solid var(--ms-line);
	border-radius: 9px;
}

.ms-field input::placeholder { color: #9A8C7A; opacity: 1; }
.ms-field textarea { min-height: 150px; resize: vertical; }

.ms-field input:focus,
.ms-field textarea:focus {
	outline: 3px solid rgba(196, 85, 47, 0.28);
	outline-offset: 1px;
	border-color: var(--ms-terracotta);
}

.ms-btn {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: 15px 26px;
	font-family: var(--ms-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: #FFF8EE;
	background: var(--ms-terracotta);
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ms-btn:hover, .ms-btn:focus { background: var(--ms-terracotta-dk); color: #FFF8EE; }
.ms-btn:disabled { opacity: 0.7; cursor: progress; }

/* Honeypot: off screen for people, still filled in by form bots. */
.ms-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ms-form { position: relative; }

.ms-form__msg {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ms-terracotta-dk);
}

.ms-form__msg.is-ok { color: #2F6B3A; }

.ms-btn--inline {
	display: inline-block;
	width: auto;
	min-width: 280px;
}

.ms-micro {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--ms-muted);
	text-align: center;
	line-height: 1.5;
}
.ms-micro a { color: inherit; text-decoration: underline; }

.ms-proof {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--ms-muted);
}

/* ---------- reassurance bar ---------- */

.ms-reassure {
	background: var(--ms-ink);
	color: #EFE4D2;
	padding-block: 15px;
}

.ms-reassure__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.075em;
	text-transform: uppercase;
	text-align: center;
}

.ms-reassure__item { display: inline-flex; align-items: center; }

.ms-reassure__item:not(:last-child)::after {
	content: "•";
	color: var(--ms-terracotta);
	margin-left: 26px;
}

/* ---------- product proof ---------- */

.ms-product__head {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: var(--ms-gap);
	align-items: center;
	margin-bottom: 44px;
}

.ms-gallery {
	display: grid;
	/* Column widths chosen so the A4 cover and the stack beside it end level. */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.48fr);
	grid-template-rows: auto auto;
	gap: 20px;
	align-items: start;
}

.ms-gallery__cover { grid-row: span 2; aspect-ratio: 1054 / 1491; }
.ms-gallery__wide { aspect-ratio: 16 / 9; }

.ms-gallery__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ms-gallery__pair .ms-media { aspect-ratio: 4 / 3; }

.ms-product__close {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--ms-gap);
	align-items: center;
	margin-top: 44px;
}

.ms-product__close h3 { margin-bottom: 10px; }

/* ---------- why free ---------- */

.ms-free__inner {
	background: var(--ms-terracotta);
	color: #FFF3E4;
	border-radius: 20px;
	padding: 52px;
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: var(--ms-gap);
	align-items: center;
}

.ms-free__inner h3 { color: #FFF8EE; margin: 0; font-size: 34px; }
.ms-free__inner p { color: #FFEEDC; }

/* ---------- meet the dogs ---------- */

.ms-meet__intro { max-width: 46em; margin-bottom: 40px; }

.ms-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ms-gap);
}

.ms-card {
	background: var(--ms-card);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
	padding: 22px;
}

.ms-card .ms-media { aspect-ratio: 1 / 1; margin-bottom: 20px; }
.ms-card h3 { font-size: 24px; margin-bottom: 10px; }

.ms-meet__closer { margin-top: 40px; text-align: center; }

/* ---------- who it is for ---------- */

.ms-who { text-align: center; }
.ms-who__inner { max-width: 48em; margin-inline: auto; }
.ms-who h2 { margin-bottom: 20px; }
.ms-who .ms-closer { margin-top: 26px; display: block; }

/* ---------- real story ---------- */

.ms-real__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
	gap: var(--ms-gap);
	align-items: center;
}

/* Portrait: every photo Lee has sent is a 3:4 phone shot, so asking for a
   landscape crop here would mean throwing away half the frame. */
.ms-real__grid .ms-media {
	aspect-ratio: 3 / 4;
	width: 100%;
	max-height: 560px;
}

/* ---------- how it works ---------- */

.ms-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ms-gap);
	margin-top: 40px;
}

.ms-step {
	padding-top: 20px;
	border-top: 2px solid var(--ms-line);
}

.ms-step__num {
	font-family: var(--ms-serif);
	font-size: 34px;
	line-height: 1;
	color: var(--ms-terracotta);
	margin: 0 0 10px;
}

.ms-step p { margin: 0; }

/* ---------- faq ---------- */

.ms-faq__inner { max-width: 780px; margin-inline: auto; }
.ms-faq h2 { text-align: center; margin-bottom: 36px; }

.ms-faq details {
	border-bottom: 1px solid var(--ms-line);
	padding: 4px 0;
}

.ms-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--ms-serif);
	font-size: 20px;
	font-weight: 600;
	color: var(--ms-ink);
}

.ms-faq summary::-webkit-details-marker { display: none; }

.ms-faq summary::after {
	content: "";
	flex: 0 0 auto;
	width: 11px;
	height: 11px;
	border-right: 2.5px solid var(--ms-terracotta);
	border-bottom: 2.5px solid var(--ms-terracotta);
	transform: rotate(45deg) translate(-3px, -3px);
	transition: transform 0.18s ease;
}

.ms-faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.ms-faq details p { padding: 0 0 22px; max-width: 62em; }

/* ---------- final cta ---------- */

.ms-final { background: var(--ms-cream-deep); text-align: center; }
.ms-final__inner { max-width: 640px; margin-inline: auto; }
.ms-final h2 { margin-bottom: 18px; }
.ms-final__body { margin-bottom: 32px; }
.ms-final__body p { margin-bottom: 0.5em; }

/* ---------- thank-you page ---------- */

.ms-ty { padding-block: 24px var(--ms-band); }

.ms-ty__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: var(--ms-gap);
	align-items: center;
}

.ms-ty__media .ms-media { aspect-ratio: 1054 / 1491; width: 100%; }

.ms-plans {
	display: grid;
	gap: 20px;
	max-width: 760px;
	margin: var(--ms-gap) auto 0;
	text-align: center;
}

.ms-plan {
	padding: 30px 32px;
	background: var(--ms-card);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
}

/* The annual plan is the one to pick, so it gets the frame and the badge.
   Monthly sits below it as the quieter second choice, as in the copy. */
.ms-plan--best {
	border: 2px solid var(--ms-terracotta);
	box-shadow: 0 18px 38px -26px rgba(43, 33, 24, 0.55);
}

.ms-plan--alt { background: transparent; }

.ms-plan__badge {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FFF8EE;
	background: var(--ms-terracotta);
	border-radius: 999px;
}

.ms-plan h3 { font-size: 24px; }
.ms-plan .ms-btn { display: inline-block; width: auto; min-width: 300px; margin-top: 6px; }
.ms-plan .ms-note { margin-top: 12px; }

.ms-btn--ghost { color: var(--ms-terracotta-dk); background: transparent; box-shadow: inset 0 0 0 2px var(--ms-terracotta); }

.ms-quotes { text-align: center; }

.ms-quotes__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	text-align: left;
}

.ms-quote {
	margin: 0;
	padding: 28px;
	background: var(--ms-card);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
}

/* GeneratePress gives blockquote its own border, padding and size. */
.ms-quote blockquote {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-family: var(--ms-serif);
	font-size: 21px;
	font-style: italic;
	line-height: 1.45;
	color: var(--ms-ink);
}

.ms-quote figcaption { font-size: 15px; font-weight: 700; color: var(--ms-terracotta-dk); }

/* The member photos Lee supplied are 80px originals, so they stay small. */
.ms-quote__photo {
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid var(--ms-card);
	box-shadow: 0 0 0 1px var(--ms-line);
}

.ms-videos-block { margin-top: var(--ms-gap); }

.ms-videos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	text-align: left;
}

.ms-video-card { margin: 0; }
.ms-video-card figcaption { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--ms-terracotta-dk); }

/* Members film themselves on a phone, so the frames are portrait: a 16:9
   frame left wide black bars either side of every video.
   A still image with a play button. The YouTube player only loads when it is
   pressed (assets/landing.js), so the page stays light and YouTube sets no
   cookies for visitors who never play a video. */
.ms-video,
.ms-video:hover,
.ms-video:focus {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	padding: 0;
	overflow: hidden;
	background: var(--ms-ink);
	border: 0;
	border-radius: var(--ms-radius);
	cursor: pointer;
}

.ms-video img { width: 100%; height: 100%; object-fit: cover; }

.ms-video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 68px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--ms-terracotta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF8EE' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat;
	box-shadow: 0 10px 24px -10px rgba(43, 33, 24, 0.7);
	transition: transform 0.15s ease;
}

.ms-video:hover::after,
.ms-video:focus-visible::after { transform: translate(-50%, -50%) scale(1.08); }

.ms-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-video--on::after { content: none; }

/* ---------- legal pages ---------- */

.ms-legal { max-width: 780px; }
.ms-legal .ms-note { margin-bottom: 2em; }
.ms-legal h2 { font-size: 26px; margin: 1.9em 0 0.6em; }
.ms-legal ul { margin: 0 0 1.1em 1.2em; padding: 0; }
.ms-legal li { margin-bottom: 0.45em; }
.ms-legal a { color: var(--ms-terracotta-dk); }

/* On a tablet the table scrolls inside its box, never the whole page. */
.ms-legal__table { overflow-x: auto; margin: 0 0 1.4em; }
.ms-legal table { width: 100%; min-width: 560px; border: 0; border-collapse: collapse; font-size: 15px; }
.ms-legal th,
.ms-legal td { padding: 10px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--ms-line); }
.ms-legal th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ms-muted); }

/* Phones: each row becomes a small card with labels, so nothing is cut off
   at the screen edge. Labels come from data-label on each cell. */
@media (max-width: 767px) {
	.ms-legal h2 { font-size: 22px; }
	.ms-legal table { min-width: 0; }
	.ms-legal thead { display: none; }
	.ms-legal tbody,
	.ms-legal tr,
	.ms-legal td { display: block; }
	.ms-legal tr { padding: 12px 0; border-bottom: 1px solid var(--ms-line); }
	.ms-legal td { padding: 2px 0; border: 0; }
	.ms-legal td:first-child { font-weight: 700; color: var(--ms-ink); }
	.ms-legal td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ms-muted); }
}

/* ---------- contact page ---------- */

.ms-contact { max-width: 960px; text-align: center; }

.ms-contact__cards {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 16px;
	margin: 36px 0 var(--ms-gap);
	padding: 0;
	list-style: none;
}

.ms-contact__cards li {
	padding: 22px 16px;
	font-size: 15px;
	background: var(--ms-card);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
}

.ms-contact__icon { display: block; margin-bottom: 8px; font-size: 26px; line-height: 1; }
.ms-contact__cards strong { display: block; margin-bottom: 6px; font-family: var(--ms-serif); font-size: 18px; color: var(--ms-ink); }
.ms-contact__cards a { color: var(--ms-terracotta-dk); }

.ms-contact-form { max-width: 620px; margin: 28px auto 0; text-align: left; }

@media (max-width: 1024px) { .ms-contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .ms-contact__cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */

.ms-footer {
	background: var(--ms-ink);
	color: #C9B79C;
	padding-block: 40px;
	text-align: center;
	font-size: 14px;
}

.ms-footer a { color: #E7DAC7; text-decoration: none; }
.ms-footer a:hover { color: #FFF8EE; text-decoration: underline; }
.ms-footer__links { margin: 10px 0; }
.ms-footer__links span { color: #6B5B47; padding-inline: 8px; }

/* Four links do not fit one line on a phone, and a separator left at the end
   of a wrapped line looks broken, so phones drop the separators for gaps. */
@media (max-width: 767px) {
	.ms-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
	.ms-footer__links span { display: none; }
}
.ms-footer__made { margin-top: 12px; font-style: italic; color: #8A7A66; }

/* ---------- sticky mobile cta ---------- */

.ms-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(251, 247, 240, 0.97);
	border-top: 1px solid var(--ms-line);
	box-shadow: 0 -8px 22px -18px rgba(43, 33, 24, 0.8);
	transform: translateY(120%);
	transition: transform 0.22s ease;
	display: none;
}

.ms-sticky.is-visible { transform: translateY(0); }
.ms-sticky .ms-btn { min-height: 50px; }

@media (max-width: 767px) { .ms-sticky { display: block; } }

/* ---------- cookie banner (assets/consent.js) ---------- */

.ms-cc {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100;
	width: min(400px, calc(100% - 48px));
	padding: 20px 22px;
	background: var(--ms-card);
	border: 1px solid var(--ms-line);
	border-radius: var(--ms-radius);
	box-shadow: 0 18px 40px -18px rgba(43, 33, 24, 0.55);
	font-family: var(--ms-sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ms-body);
}

/* The display rule above would otherwise override the hidden attribute. */
.ms-cc[hidden] { display: none; }

.ms-cc__text { margin: 0 0 14px; }
.ms-cc__text a { color: var(--ms-terracotta-dk); }

/* Accept and Reject look the same: UK guidance wants refusing to be as easy
   as agreeing, and neither should compete with the signup button. */
.ms-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ms-cc__btn,
.ms-cc__btn:focus {
	min-height: 44px;
	padding: 10px 16px;
	font: 700 14px/1 var(--ms-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ms-ink);
	background: var(--ms-cream);
	border: 1.5px solid var(--ms-ink);
	border-radius: 9px;
	cursor: pointer;
}

.ms-cc__btn:hover,
.ms-cc__btn:focus-visible { color: #FFF8EE; background: var(--ms-ink); }

/* Both sit at the bottom of a phone screen; the banner goes first. */
.ms-cc-open .ms-sticky { display: none; }

@media (max-width: 767px) {
	.ms-cc {
		right: 0;
		bottom: 0;
		width: 100%;
		padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
		border-width: 1px 0 0;
		border-radius: var(--ms-radius) var(--ms-radius) 0 0;
	}
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.ms-product__head,
	.ms-real__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ms-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "intro" "media" "offer";
		grid-template-rows: auto auto auto;
		row-gap: 22px;
	}

	.ms-hero__media { max-width: 420px; margin-inline: auto; }
	.ms-real__grid .ms-media { max-width: 380px; margin-inline: auto; }

	.ms-gallery { grid-template-columns: minmax(0, 1fr); }
	.ms-gallery__cover { grid-row: auto; max-width: 340px; }

	.ms-product__close { grid-template-columns: minmax(0, 1fr); }
	.ms-free__inner { grid-template-columns: minmax(0, 1fr); padding: 40px; }
	.ms-steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 767px) {
	.ms-hero { padding-block: 18px var(--ms-band); }

	/* The headline is long. At 34px it swallowed the whole first screen on a
	   375px phone, which pushed the offer out of sight. */
	.ms-page h1 { font-size: 28px; line-height: 1.14; }
	.ms-page h2 { font-size: 26px; }
	.ms-brand { padding-block: 18px 0; }
	.ms-brand__logo { height: auto; width: 100%; max-width: 346px; }
	.ms-eyebrow { font-size: 11.5px; margin-bottom: 12px; }
	.ms-lead { font-size: 17px; }
	.ms-hero__grid { row-gap: 20px; }
	.ms-list { margin: 16px 0 18px; }
	.ms-list li { margin-bottom: 10px; }
	/* A full-width 3:4 cover was 470px tall and pushed the form to the very edge
	   of the first screen and a half on an iPhone. Shown as a book, not a banner. */
	.ms-hero__media { max-width: 300px; margin-inline: auto; }
	/* Keep the book portrait on a phone too: a cover mock-up is portrait by
	   nature, and one asset beats asking Lee for a second landscape crop. */
	.ms-hero__media .ms-media { max-width: none; max-height: none; }
	.ms-real__grid .ms-media { max-height: none; }
	.ms-cards { grid-template-columns: minmax(0, 1fr); }
	.ms-free__inner { padding: 30px 24px; border-radius: 16px; }
	.ms-free__inner h3 { font-size: 27px; }
	.ms-form { padding: 20px; }
	.ms-btn--inline { display: block; width: 100%; min-width: 0; }
	.ms-ty { padding-block: 18px var(--ms-band); }
	.ms-ty__grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
	.ms-ty__media { width: 180px; margin-inline: auto; }
	.ms-quotes__grid { grid-template-columns: minmax(0, 1fr); }
	.ms-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.ms-plan,
	.ms-quote { padding: 22px; }
	.ms-plan .ms-btn { display: block; width: 100%; min-width: 0; }
	.ms-quote blockquote { font-size: 19px; }
	.ms-reassure__inner { flex-direction: column; gap: 9px; }

	/* Stacked on a phone, so the bullet separators have nothing to separate.
	   Same selector as the rule above, or that one wins on specificity. */
	.ms-reassure__item:not(:last-child)::after { content: none; }
	.ms-faq summary { font-size: 18px; }
	.ms-closer { font-size: 19px; }

	/* Room for the sticky bar so it never covers the last button. Only pages
	   that have the bar need it. */
	.ms-sticky ~ .ms-footer { padding-bottom: 96px; }
}

/* ---------- hero, desktop (approved option B, 11/09/2026) ----------
   Name and email side by side, and the form placed above the value bullets,
   so the button is visible without scrolling on a 1366x768 laptop. Phones
   keep the order from the brief. */

@media (min-width: 1025px) {
	.ms-hero__offer { display: flex; flex-direction: column; }
	.ms-hero__offer .ms-form { order: -2; margin-top: 8px; max-width: none; }
	.ms-hero__offer .ms-proof { order: -1; margin-bottom: 6px; }

	#ms-form-1 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
	}

	#ms-form-1 .ms-field { margin-bottom: 12px; }
	#ms-form-1 .ms-btn,
	#ms-form-1 .ms-micro,
	#ms-form-1 .ms-form__msg { grid-column: 1 / -1; }
}

/* ---------- sales page (/join) ----------
   Built on the same components as the free-book page. Everything new is
   scoped to the sales-only class names below. */

.ms-sales__head { max-width: 46em; margin-bottom: 40px; }
.ms-sales__head + .ms-steps { margin-top: 0; }
.ms-page .ms-sales__intro { max-width: 46em; margin: 0 auto 36px; }
.ms-page .ms-sales__after { max-width: 46em; margin-top: 32px; }
.ms-page .ms-sales__cta { margin-top: 36px; text-align: center; }

.ms-page .ms-price {
	font-family: var(--ms-serif);
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 18px;
}

.ms-price strong { font-size: 1.5em; color: var(--ms-terracotta-dk); }

.ms-who__photo { display: block; width: 180px; height: 180px; margin: 0 auto 24px; }

.ms-hero--sales .ms-hero__media .ms-media { aspect-ratio: 4 / 5; }

.ms-sales__badge { max-width: 520px; margin: 40px auto 0; background: none; mix-blend-mode: multiply; }
.ms-real__proof { margin-top: 28px; border: 1px solid var(--ms-line); }

/* Member films: 16:9 frames, three across on desktop, two on tablet, stacked
   on a phone. Same click-to-load player as the thank-you page. */
.ms-videos-block h3 { margin-bottom: 24px; }
.ms-videos--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ms-videos--wide .ms-video { aspect-ratio: 16 / 9; }

.ms-cards--values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ms-cards--values .ms-card { padding: 24px 22px; }
.ms-cards--values h3 { font-size: 22px; }
.ms-cards--values p { margin: 0; }

/* Volume covers: four across on desktop, two by two on tablet and phone so
   every cover is visible without having to find a hidden swipe row. */
.ms-covers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.ms-covers__item { min-width: 0; }
.ms-covers__item .ms-img { aspect-ratio: 1054 / 1491; margin-bottom: 16px; }
.ms-covers__item h3 { font-size: 20px; margin-bottom: 8px; }
.ms-covers__item p { font-size: 15.5px; margin: 0; }

@media (max-width: 1024px) {
	.ms-hero--sales .ms-hero__grid { grid-template-areas: "intro" "offer" "media"; }
	.ms-cards--values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ms-videos--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.ms-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 767px) {
	.ms-cards--values { grid-template-columns: minmax(0, 1fr); }
	.ms-videos--wide { grid-template-columns: minmax(0, 1fr); }
	.ms-sales__badge { margin-top: 28px; }
	.ms-hero--sales .ms-hero__media { max-width: none; }
	.ms-covers { gap: 28px 16px; }
	.ms-covers__item h3 { font-size: 17px; }
	.ms-covers__item p { font-size: 14.5px; }
	.ms-page .ms-price { font-size: 20px; margin-bottom: 14px; }

	/* Three paragraphs of supporting copy sit above the button, so they run
	   tighter than body text to keep the button near the first screen. */
	.ms-hero--sales .ms-hero__sub { font-size: 16px; line-height: 1.5; margin-bottom: 0.7em; }
	.ms-hero--sales h1 { margin-bottom: 14px; }
	.ms-hero--sales .ms-list { margin: 12px 0 14px; }
	.ms-hero--sales .ms-list li { margin-bottom: 6px; }
}
