/*
 * Launch landing pages: /fondateurs/, /fondateurs/merci/, /pre-lancement1-3/.
 *
 * No mock exists for these (the client asked for "simple, on brand"), so the
 * home page's vocabulary is reused rather than measured: navy #00172e,
 * orange #ff2d16, Oswald 600 uppercase titles with an orange rule on the last
 * words, Work Sans body, square Oswald 700 buttons. Plain px/clamp sizing.
 */

.dh-lp-hero,
.dh-lp-section,
.dh-lp-final,
.dh-lp-video-hero {
	--dh-navy: #00172e;
	--dh-orange: #ff2d16;
	--dh-sand: #f1f0ee;

	width: 100%;
	max-width: none !important;
	margin-block: 0 !important;
	box-sizing: border-box;
}

.dh-lp-hero *,
.dh-lp-section *,
.dh-lp-final *,
.dh-lp-video-hero * {
	box-sizing: border-box;
}

.dh-lp-wide {
	max-width: 1140px;
	margin: 0 auto;
}

.dh-lp-narrow {
	max-width: 780px;
	margin: 0 auto;
}

.dh-lp-center {
	text-align: center;
}

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

.dh-lp-eyebrow {
	margin: 0 0 14px;
	font-family: Oswald, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dh-orange);
}

.dh-lp-rule {
	text-decoration: underline;
	text-decoration-color: var(--dh-orange);
	text-decoration-skip-ink: none;
	text-decoration-thickness: 4px;
	text-underline-offset: 6px;
}

.dh-lp-title {
	margin: 0 0 20px;
	font-family: Oswald, sans-serif;
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 600;
	line-height: 1.12;
	text-transform: uppercase;
	color: var(--dh-navy);
}

.dh-lp-lead {
	margin: 0 0 28px;
	font-size: 18px;
	line-height: 1.55;
}

.dh-lp-section p,
.dh-lp-hero p {
	font-size: 17px;
	line-height: 1.6;
}

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

.dh-lp-button {
	display: inline-flex;
	min-height: 60px;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border: 0;
	border-radius: 0;
	background: var(--dh-orange);
	color: #fff !important;
	font-family: Oswald, sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.dh-lp-button:hover,
.dh-lp-button:focus-visible {
	background: var(--dh-navy);
	color: #fff;
}

.dh-lp-button--block {
	width: 100%;
}

.dh-lp-button--navy {
	background: var(--dh-navy);
}

.dh-lp-button--navy:hover,
.dh-lp-button--navy:focus-visible {
	background: #fff;
	color: var(--dh-navy) !important;
}

/* --- Hero (navy, copy left, form right) ---------------------------------- */

.dh-lp-hero {
	padding: 72px 24px 80px;
	background: var(--dh-navy);
	color: #fff;
}

.dh-lp-hero__inner {
	display: grid;
	max-width: 1140px;
	margin: 0 auto;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 64px;
	align-items: center;
}

.dh-lp-hero__inner--center {
	display: block;
	max-width: 760px;
	text-align: center;
}

.dh-lp-hero__title {
	margin: 0;
	font-family: Oswald, sans-serif;
	font-size: clamp(34px, 4.4vw, 58px);
	font-weight: 600;
	line-height: 1.08;
	text-transform: uppercase;
	color: #fff;
}

.dh-lp-hero__lead {
	margin: 28px 0 0;
	font-size: 20px !important;
	line-height: 1.5;
	color: #e3e6ea;
}

.dh-lp-hero--thanks {
	padding-block: 96px 104px;
}

.dh-lp-hero--thanks .dh-lp-hero__lead {
	margin-bottom: 36px;
}

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

.dh-lp-form-card {
	padding: 32px 30px 26px;
	background: #fff;
	color: var(--dh-navy);
	border-top: 6px solid var(--dh-orange);
	scroll-margin-top: 80px;
}

.dh-lp-form-card__title {
	margin: 0 0 20px;
	font-family: Oswald, sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--dh-navy);
}

.dh-lp-field {
	display: block;
	margin: 0 0 14px;
}

.dh-lp-field__label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.dh-lp-field input {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1px solid #b0afaf;
	border-radius: 0;
	background: #fff;
	color: var(--dh-navy);
	font: inherit;
	font-size: 16px; /* 16px keeps iOS from zooming on focus */
}

.dh-lp-field input:focus {
	outline: 2px solid var(--dh-navy);
	outline-offset: 0;
	border-color: var(--dh-navy);
}

.dh-lp-field input[aria-invalid="true"] {
	border-color: #c4200d;
}

.dh-lp-form .dh-lp-button {
	margin-top: 8px;
}

.dh-lp-form__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.dh-lp-form__error {
	margin: 0 0 14px;
	padding: 10px 12px;
	background: #fdeceb;
	border-left: 4px solid #c4200d;
	color: #8a1608;
	font-size: 15px !important;
}

.dh-lp-form__note {
	margin: 14px 0 6px;
	font-size: 15px !important;
	text-align: center;
}

.dh-lp-form__consent {
	margin: 0;
	font-size: 12.5px !important;
	line-height: 1.45 !important;
	color: #5a6470;
}

.dh-lp-form__consent a {
	color: inherit;
}

/* --- Sections ----------------------------------------------------------- */

.dh-lp-section {
	padding: 80px 24px;
	background: #fff;
	color: var(--dh-navy);
}

.dh-lp-intro {
	background: var(--dh-sand);
}

.dh-lp-intro__punch {
	margin-top: 24px;
	font-family: Oswald, sans-serif;
	font-size: clamp(24px, 2.6vw, 32px) !important;
	font-weight: 600;
	line-height: 1.2 !important;
	text-transform: uppercase;
}

.dh-lp-episodes .dh-lp-title,
.dh-lp-episodes .dh-lp-lead {
	max-width: 780px;
	margin-inline: auto;
	text-align: center;
}

.dh-lp-episodes__list {
	display: grid;
	margin: 12px 0 48px;
	padding: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
}

.dh-lp-episode {
	margin: 0;
	padding: 28px 26px 30px;
	background: var(--dh-sand);
	border-top: 6px solid var(--dh-navy);
}

.dh-lp-episode:first-child {
	border-top-color: var(--dh-orange);
}

.dh-lp-episode p {
	margin: 0 0 12px;
	font-size: 16px;
}

.dh-lp-episode__num {
	font-family: Oswald, sans-serif;
	font-size: 14px !important;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dh-orange);
}

.dh-lp-episode__name {
	margin: 0 0 14px;
	font-family: Oswald, sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--dh-navy);
}

.dh-lp-episode__hook {
	font-weight: 600;
}

.dh-lp-audience {
	background: var(--dh-sand);
}

.dh-lp-checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dh-lp-checks li {
	position: relative;
	margin: 0;
	padding: 14px 0 14px 40px;
	border-top: 1px dashed #b0afaf;
	font-size: 18px;
	line-height: 1.45;
}

.dh-lp-checks li:last-child {
	border-bottom: 1px dashed #b0afaf;
}

.dh-lp-checks li::before {
	content: "";
	position: absolute;
	top: 19px;
	left: 4px;
	width: 18px;
	height: 10px;
	border-left: 4px solid var(--dh-orange);
	border-bottom: 4px solid var(--dh-orange);
	transform: rotate(-45deg);
}

.dh-lp-section p {
	margin: 0;
}

.dh-lp-section p + p {
	margin-top: 16px;
}

/* --- Final band (navy: the site footer under it is orange) -------------- */

.dh-lp-final {
	padding: 80px 24px 88px;
	background: var(--dh-navy);
	color: #fff;
	text-align: center;
}

.dh-lp-final__title {
	max-width: 900px;
	margin: 0 auto 32px;
	font-family: Oswald, sans-serif;
	font-size: clamp(26px, 3.2vw, 42px);
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff;
}

.dh-lp-final__lead {
	max-width: 640px;
	margin: -12px auto 28px;
	font-size: 18px;
	line-height: 1.5;
}

.dh-lp-final__back {
	margin: 28px 0 0;
	font-size: 16px;
}

.dh-lp-final__back a {
	color: #fff;
	font-weight: 600;
}

/* --- Video page --------------------------------------------------------- */

.dh-lp-video-hero {
	padding: 64px 24px 72px;
	background: var(--dh-navy);
	color: #fff;
	text-align: center;
}

.dh-lp-video-hero__title {
	max-width: 960px;
	margin: 0 auto;
	font-family: Oswald, sans-serif;
	font-size: clamp(30px, 3.8vw, 50px);
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
	color: #fff;
}

.dh-lp-video-hero__lead {
	max-width: 760px;
	margin: 22px auto 36px;
	font-size: 19px;
	line-height: 1.55;
	color: #e3e6ea;
}

/* Click-to-play: a thumbnail and a button until the visitor asks for the video,
   then the youtube-nocookie player. Nothing from YouTube runs before that. */
.dh-lp-video {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: #000;
}

.dh-lp-video iframe,
.dh-lp-video__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dh-lp-video__play {
	padding: 0;
	background: #000 center / cover no-repeat;
	cursor: pointer;
}

.dh-lp-video__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 92px;
	height: 92px;
	margin: -46px 0 0 -46px;
	border-radius: 50%;
	background: var(--dh-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 46px no-repeat;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
	transition: transform 150ms ease;
}

.dh-lp-video__play:hover::after,
.dh-lp-video__play:focus-visible::after {
	transform: scale(1.08);
}

.dh-lp-video--soon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	border: 2px dashed rgba(255, 255, 255, 0.4);
	background: transparent;
	font-family: Oswald, sans-serif;
	font-size: 24px;
	text-transform: uppercase;
}

/* --- Phone -------------------------------------------------------------- */

@media (max-width: 900px) {
	.dh-lp-hero {
		padding: 36px 16px 48px;
	}

	.dh-lp-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.dh-lp-hero__lead {
		margin-top: 18px;
		font-size: 17px !important;
	}

	.dh-lp-form-card {
		padding: 24px 18px 20px;
	}

	.dh-lp-form-card__title {
		font-size: 24px;
	}

	.dh-lp-section {
		padding: 56px 16px;
	}

	.dh-lp-episodes__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		margin-bottom: 36px;
	}

	.dh-lp-checks li {
		font-size: 16px;
	}

	.dh-lp-final {
		padding: 56px 16px 64px;
	}

	.dh-lp-button {
		width: 100%;
		font-size: 17px;
	}

	.dh-lp-video-hero {
		padding: 40px 16px 48px;
	}

	.dh-lp-video-hero__lead {
		font-size: 17px;
	}

	.dh-lp-video {
		margin-inline: -16px;
	}

	.dh-lp-video__play::after {
		width: 72px;
		height: 72px;
		margin: -36px 0 0 -36px;
		background-size: 36px;
	}

	.dh-lp-rule {
		text-decoration-thickness: 3px;
		text-underline-offset: 5px;
	}
}

/* Orange on the navy band; hovering must not turn it navy-on-navy. */
.dh-lp-final .dh-lp-button:hover,
.dh-lp-final .dh-lp-button:focus-visible,
.dh-lp-hero .dh-lp-hero__inner--center .dh-lp-button:hover,
.dh-lp-hero .dh-lp-hero__inner--center .dh-lp-button:focus-visible {
	background: #fff;
	color: var(--dh-navy) !important;
}

.dh-lp-about .dh-lp-title,
.dh-lp-audience .dh-lp-title {
	text-align: center;
}

/* Short pages (the thank-you page): the page is at least one screen tall and
   the main area takes up the slack, so the footer sits at the bottom. */
body.dh-landing .wp-site-blocks {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	flex-direction: column;
}

body.admin-bar.dh-landing .wp-site-blocks {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 32px));
}

body.dh-landing .wp-site-blocks > main {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
}

/* The thank-you hero stretches into that slack, content centred in it. */
.dh-lp-hero--thanks {
	display: flex;
	flex: 1 0 auto;
	align-items: center;
}

.dh-lp-hero--thanks .dh-lp-hero__inner {
	width: 100%;
}

/* --- Episode page: several lead paragraphs, then the video ---------------- */

.dh-lp-video-hero .dh-lp-video-hero__lead {
	margin: 16px auto 0;
}

.dh-lp-video-hero .dh-lp-video {
	margin-top: 36px;
}

/* --- Open cart: offer above the video and a band below it ----------------- */

.dh-lp-offer {
	max-width: 960px;
	margin: 36px auto 0;
	padding: 24px 28px 28px;
	border: 3px solid var(--dh-orange);
	text-align: center;
}

.dh-lp-offer p {
	max-width: 720px;
	margin: 0 auto 18px;
	font-size: 17px;
	line-height: 1.5;
	color: #e3e6ea;
}

.dh-lp-offer .dh-lp-offer__title {
	margin-bottom: 10px;
	font-family: Oswald, sans-serif;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff;
}

.dh-lp-offer .dh-lp-button:hover,
.dh-lp-offer .dh-lp-button:focus-visible {
	background: #fff;
	color: var(--dh-navy) !important;
}

.dh-lp-offer-band {
	background: var(--dh-sand);
}

.dh-lp-offer-band .dh-lp-offer-band__cta {
	margin-top: 28px;
}

.dh-lp-offer-band .dh-lp-offer-band__deadline {
	margin-top: 14px;
	font-family: Oswald, sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--dh-orange);
}

.dh-lp-final .dh-lp-eyebrow {
	margin-bottom: 14px;
}

@media (max-width: 900px) {
	.dh-lp-offer {
		padding: 20px 16px 22px;
	}
}

/* The hidden attribute (release times, "already signed up" switches) must win
   over the display rules of buttons and blocks. */
body.dh-landing [hidden] {
	display: none !important;
}

/* An episode that is not out yet: same button, inert. */
.dh-lp-button.is-soon,
.dh-lp-button.is-soon:hover {
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: rgba(255, 255, 255, 0.75) !important;
	cursor: default;
}

/* Episode page: "what you'll learn" cards, numbered. */
.dh-lp-learn .dh-lp-title {
	text-align: center;
}

.dh-lp-learn .dh-lp-episodes__list {
	margin-bottom: 0;
}

.dh-lp-learn .dh-lp-episode:first-child {
	border-top-color: var(--dh-navy);
}

.dh-lp-learn .dh-lp-episode__name {
	font-size: 24px;
}

/* Episode page: link back to the previous episode. */
.dh-lp-missed {
	background: var(--dh-sand);
}

.dh-lp-missed .dh-lp-title {
	margin-bottom: 12px;
}

.dh-lp-missed .dh-lp-button {
	margin-top: 28px;
}

.dh-lp-thanks__more {
	margin: 16px 0 0;
}

.dh-lp-missed .dh-lp-title.dh-lp-missed__next {
	margin-top: 56px;
}

/* Episode 3: five steps as a numbered list, one per row (a 3-column card grid
   leaves a gap after the fifth card and uneven card heights). */
.dh-lp-learn .dh-lp-steps {
	max-width: 880px;
	margin: 32px auto 0;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.dh-lp-learn .dh-lp-steps .dh-lp-episode,
.dh-lp-learn .dh-lp-steps .dh-lp-episode:first-child {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	column-gap: 28px;
	padding: 32px 0;
	background: none;
	border-top: 1px solid rgba(0, 23, 46, 0.15);
}

.dh-lp-learn .dh-lp-steps .dh-lp-episode:last-child {
	border-bottom: 1px solid rgba(0, 23, 46, 0.15);
}

.dh-lp-steps .dh-lp-episode > * {
	grid-column: 2;
}

.dh-lp-steps .dh-lp-episode__num {
	grid-column: 1;
	grid-row: 1 / span 3;
	margin: 0 !important;
	font-family: Oswald, sans-serif;
	font-size: 56px !important;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	color: var(--dh-orange);
}

.dh-lp-learn .dh-lp-steps .dh-lp-episode__name {
	margin: 4px 0 12px;
}

.dh-lp-steps .dh-lp-episode p:last-child {
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.dh-lp-learn .dh-lp-steps .dh-lp-episode,
	.dh-lp-learn .dh-lp-steps .dh-lp-episode:first-child {
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 16px;
		padding: 24px 0;
	}

	.dh-lp-steps .dh-lp-episode__num {
		font-size: 36px !important;
	}

	.dh-lp-learn .dh-lp-steps .dh-lp-episode__name {
		font-size: 20px;
	}
}

/* --- /gmcanada/ ---------------------------------------------------------- */

/* Longer copy than the series page: tighter paragraphs, form beside them. */
.dh-lp-hero--gm .dh-lp-hero__inner {
	align-items: start;
}

.dh-lp-hero--gm .dh-lp-hero__title {
	font-size: clamp(32px, 3.8vw, 50px);
}

.dh-lp-hero--gm .dh-lp-hero__lead {
	margin-top: 16px;
	font-size: 17px !important;
}

.dh-lp-hero--gm .dh-lp-hero__lead:first-of-type {
	margin-top: 24px;
}

.dh-lp-form-card__intro {
	margin: -8px 0 20px;
	font-size: 15px;
	line-height: 1.5;
}

.dh-lp-form-card__alt {
	margin: 18px 0 0;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.dh-lp-form-card__alt a {
	color: var(--dh-navy);
}

.dh-lp-final__note {
	margin: 32px auto 0;
	font-size: 16px;
}

@media (max-width: 900px) {
	.dh-lp-hero--gm .dh-lp-hero__lead {
		font-size: 16px !important;
	}
}

.dh-lp-form-card__more {
	margin: -6px 0 22px;
	font-size: 15px;
	font-weight: 700;
}

.dh-lp-form-card__more a {
	color: var(--dh-orange);
}

.dh-lp-final .dh-lp-final__lead + .dh-lp-final__lead {
	margin-top: 0;
}

.dh-lp-hero__title + .dh-lp-thanks__more {
	margin-top: 40px;
}
