/*
 * Adapter between core-block markup and the reference landing stylesheet (theme assets/css/landing.css,
 * restored from 6c05998). No new design: it maps WordPress block wrappers onto the existing classes.
 * Loaded on block-built funnel pages and in the editor canvas.
 */

/* Group blocks may get an inner container in classic themes: keep the reference flex layout. */
.wf-landing .wp-block-group__inner-container { display: contents; }
/*
 * Neutralise WordPress's flow-layout spacing (`:where(body .is-layout-flow) > * { margin-block-start: 24px }`)
 * with the same zero specificity, so the reference stylesheet's own margins (carousel, caption, checkout
 * heading, footer) still apply. E1: the C1 version reset them with higher specificity and shifted every section.
 */
:where(.wf-landing .is-layout-flow, .wf-landing .is-layout-constrained) > * { margin-block: 0; }

/* Sections whose content lived in the reference ".wf-offer" box keep its 18px inset. */
.wf-offer-cta { display: flex; flex-direction: column; gap: var(--wf-gap, 20px); padding: 18px 18px 0; }
.wf-inner > .wf-checkout-heading, .wf-inner > .wf-footer, .wf-inner > .wf-payment-terms, .wf-inner > .wf-faq { margin-inline: 18px; }

/* The reference order form is 80% of the 18px-inset offer box. */
.wf-inner > .wp-block-wf-checkout.wf-checkout-box { width: calc((100% - 36px) * 0.8); }

/* Core Button → reference CTA button (the reference styles the link itself). */
:is(.wf-landing, .editor-styles-wrapper) .wp-block-buttons.wf-btn-row { display: flex; justify-content: center; gap: 0; margin-block: 0; }
:is(.wf-landing, .editor-styles-wrapper) .wp-block-button.wf-btn { background: none; padding: 0; border-radius: 0; display: block; transform: none; font-size: inherit; }
:is(.wf-landing, .editor-styles-wrapper) .wf-btn > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--wf-teal, #00736c);
	color: var(--wf-ice, #f3fcff);
	font-family: var(--wf-font-display, sans-serif);
	font-weight: 600;
	font-size: 26px;
	line-height: 1;
	padding: 15px 18px;
	border-radius: 9px;
	text-decoration: none;
	transition: transform 0.3s;
	text-align: center;
}
:is(.wf-landing, .editor-styles-wrapper) .wf-btn > .wp-block-button__link::after {
	content: "";
	width: 0.875em;
	height: 1em;
	flex: 0 0 auto;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wf-landing .wf-btn > .wp-block-button__link:hover, .wf-landing .wf-btn > .wp-block-button__link:focus-visible { transform: scale(1.1); color: var(--wf-ice); }
.wf-landing .wf-btn > .wp-block-button__link:focus-visible { outline: 3px solid var(--wf-ink); outline-offset: 3px; }

/*
 * D5 (Founder-approved intentional difference from the reference): the offer heading's orange (#ff7400,
 * 2.3–2.6:1 on this background) is darkened to meet WCAG 2.2 AA for large text (≥3:1; 3.9–4.3:1 here).
 */
:is(.wf-landing, .editor-styles-wrapper) .wf-offer-heading { color: #c45500; }

/* Optional reusable sections (D6): FAQ and payment terms. */
.wf-faq { display: flex; flex-direction: column; gap: 12px; }
.wf-faq-item { background: var(--wf-ice, #f3fcff); border: 2px solid var(--wf-teal, #00736c); border-radius: 12px; padding: 12px 16px; font-family: var(--wf-font-body, sans-serif); font-size: 18px; color: var(--wf-ink, #001620); }
.wf-faq-item summary { font-family: var(--wf-font-display, sans-serif); font-weight: 600; cursor: pointer; }
.wf-faq-item p { margin: 8px 0 0; }
.wf-payment-terms { display: flex; flex-direction: column; gap: 12px; }
.wf-terms-list { margin: 0; padding: 14px 18px 14px 36px; background: var(--wf-ice, #f3fcff); border-radius: 12px; font-family: var(--wf-font-body, sans-serif); font-size: 19px; color: var(--wf-ink, #001620); }

@media (max-width: 767px) {
	.wf-offer-cta { padding: 0; }
	.wf-inner > .wp-block-wf-checkout.wf-checkout-box { width: 95%; }
	.wf-inner > .wf-checkout-heading, .wf-inner > .wf-footer, .wf-inner > .wf-payment-terms, .wf-inner > .wf-faq { margin-inline: 0; }
	.wf-landing .wf-btn > .wp-block-button__link { font-size: 24px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.wf-landing .wf-btn > .wp-block-button__link { transition: none; }
	.wf-landing .wf-btn > .wp-block-button__link:hover { transform: none; }
}

/* ---- editor canvas only ---- */
.editor-styles-wrapper:has(.wf-hero, .wp-block-wf-checkout) { background-image: linear-gradient(180deg, #f3fcff 0%, rgba(255, 222, 89, 0.302) 100%); }
.editor-styles-wrapper .is-root-container:has(> .wf-hero, > .wp-block-wf-checkout) { max-width: 1003px; margin-inline: auto; }
.editor-styles-wrapper .wf-hero, .editor-styles-wrapper .wf-testimonials { display: flex; flex-direction: column; gap: 20px; }
.wf-checkout-placeholder { border: 2px dashed var(--wf-teal, #00736c) !important; border-top-width: 8px !important; background: var(--wf-ice, #f3fcff); border-radius: 20px; padding: 20px 26px; width: 80%; margin-inline: auto; font-family: var(--wf-font-body, sans-serif); color: var(--wf-ink, #001620); }
.wf-checkout-placeholder-title { font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.wf-checkout-placeholder-heading { font-weight: 600; margin: 0 0 6px; }
.wf-block-notice { padding: 12px 16px; border: 1px dashed #8c8f94; border-radius: 8px; background: #fff; font-size: 14px; }
.editor-styles-wrapper .wf-banner, .editor-styles-wrapper .wf-banner-dark { color: var(--wf-ice, #f3fcff); }
.editor-styles-wrapper .wf-banner-dark { color: #fff; }

/* ---- waitlist (coming-soon) funnel mode ---- */
.wf-wl-form-section { max-width: 560px; margin-inline: auto; padding: 24px 16px 8px; }
.wf-wl-form { text-align: left; }
.wf-wl-form .wf-wl-row { margin: 0 0 16px; }
.wf-wl-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.wf-wl-form input[type="text"], .wf-wl-form input[type="tel"], .wf-wl-form select {
	width: 100%; padding: 12px 14px; border: 1px solid rgba(22, 33, 58, 0.25);
	border-radius: 12px; background: #fff; font-size: 16px; color: #16213A; box-sizing: border-box;
}
.wf-wl-form input:focus, .wf-wl-form select:focus { outline: 2px solid #E8890C; outline-offset: 1px; border-color: #E8890C; }
.wf-wl-error { color: #b3261e; font-size: 14px; margin: 6px 0 0; }
.wf-wl-error-top { text-align: center; font-weight: 600; margin-bottom: 14px; }
.wf-wl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wf-wl-submit { width: 100%; }
.wf-wl-badge { display: inline-block; background: #E8890C; color: #16213A; font-weight: 700; border-radius: 999px; padding: 3px 14px; font-size: 14px; }
.wf-wl-teaser-name { margin-bottom: 4px; }
.wf-wl-thanks { text-align: center; padding: 40px 16px; }
.wf-wl-thanks-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.wf-wl-thanks-sub { margin: 0 0 20px; }
.wf-wl-closed { text-align: center; padding: 32px 16px; font-weight: 600; }

/* ---- waitlist design system B+ — "The Mirror, edited" (scoped to waitlist funnel pages) ----
   Bone ground, deep plum ink, one brass hairline. Left-aligned editorial, sharp corners,
   generous space. Rank (eyebrow) -> praise (headline) -> proof (trust strip).
   Direction and copy: RSF-01-SENTIA-COMING-SOON-DESIGN §13. Engine untouched. */

/* Noto Serif Bengali 600, self-hosted (SIL OFL 1.1) — the display face. */
@font-face {
	font-family: 'Noto Serif Bengali';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/noto-serif-bengali-600-bengali.woff2') format('woff2');
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0-1CD2, U+1CD4-1CD5, U+1CD7-1CD8, U+1CDA-1CDB, U+1CDD-1CDE, U+1CDF, U+1CF2-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
@font-face {
	font-family: 'Noto Serif Bengali';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/noto-serif-bengali-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bengali step numerals, so the routine reads "ধাপ ১" and not "ধাপ 1". */
@counter-style bp-step {
	system: fixed;
	symbols: '১' '২' '৩' '৪' '৫' '৬' '৭' '৮' '৯';
	suffix: ' ';
}

body.wf-waitlist-canvas {
	--bp-ground: #F7F1EA;
	--bp-band: #F4EBE2;
	--bp-ink: #3A1F26;
	--bp-body: #6B4A50;
	--bp-label: #75584E;
	--bp-brass: #A0803C;
	--bp-brass-text: #7E6229;
	--bp-rule: #E6D8CB;
	--bp-rule-strong: #D8C6B8;
	--bp-card: rgba(255, 255, 255, .55);
	--bp-serif: 'Noto Serif Bengali', 'Hind Siliguri', serif;
	/* The shared landing stylesheet puts the school-bag palette on :root. Remap it here, so no
	   school-bag colour survives on a brand page even in rules this stylesheet does not override. */
	--wf-teal: #3A1F26;
	--wf-ice: #F7F1EA;
	--wf-ink: #3A1F26;
	--wf-orange: #A0803C;
	--wf-yellow: #E6D8CB;
	--wf-yellow-30: rgba(230, 216, 203, .3);
	--wf-neon: #A0803C;
	background: var(--bp-ground);
	overflow-x: clip;
	color: var(--bp-ink);
}
body.wf-waitlist-canvas .wf-page {
	max-width: none;
	padding: 0;
	background: var(--bp-ground);
	background-image: none;
}
body.wf-waitlist-canvas .wf-inner {
	max-width: 640px;
	margin-inline: auto;
	padding-inline: 24px;
	gap: 0;
}

/* --- hero: rank eyebrow, then the line, then the support --- */
body.wf-waitlist-canvas .wf-hero {
	display: block;
	padding: 52px 0 0;
	text-align: left;
}
body.wf-waitlist-canvas .wf-wl-eyebrow {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 20px;
	font-family: var(--wf-font-body, sans-serif);
	font-size: 13px;
	font-weight: 700;
	color: var(--bp-label);
}
body.wf-waitlist-canvas .wf-wl-eyebrow::before {
	content: '';
	flex: none;
	width: 26px;
	height: 1px;
	background: var(--bp-brass);
}
body.wf-waitlist-canvas .wf-banner-hero {
	background: none;
	color: var(--bp-ink);
	font-family: var(--bp-serif);
	font-weight: 600;
	font-size: clamp(30px, 8vw, 44px);
	line-height: 1.34;
	text-align: left;
	border-radius: 0;
	padding: 0;
	width: auto;
}
body.wf-waitlist-canvas .wf-hero-caption {
	background: none;
	color: var(--bp-body);
	font-family: var(--wf-font-body, sans-serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.7;
	text-align: left;
	border-radius: 0;
	padding: 18px 0 0;
	width: auto;
	max-width: 46ch;
}

/* --- proof: the trust strip (rank of the facts, not of adjectives) --- */
body.wf-waitlist-canvas .wf-wl-trust {
	margin: 40px 0 0;
	padding: 0;
}
body.wf-waitlist-canvas .wf-wl-trust-list {
	margin: 0;
	border-top: 1px solid var(--bp-rule-strong);
}
body.wf-waitlist-canvas .wf-wl-trust-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 13px 2px;
	border-bottom: 1px solid var(--bp-rule);
	font-family: var(--wf-font-body, sans-serif);
	font-size: 14px;
}
body.wf-waitlist-canvas .wf-wl-trust-k {
	color: var(--bp-label);
	font-size: 13px;
}
body.wf-waitlist-canvas .wf-wl-trust-v {
	font-weight: 700;
	color: var(--bp-ink);
	text-align: right;
}
body.wf-waitlist-canvas .wf-wl-trust-mark {
	font-family: var(--latin, 'Hind Siliguri'), sans-serif;
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--bp-brass-text);
}

/* --- section bands: the same bone, one step deeper --- */
body.wf-waitlist-canvas .wf-wl-story,
body.wf-waitlist-canvas .wf-wl-education,
body.wf-waitlist-canvas .wf-wl-teasers {
	margin-inline: calc(50% - 50vw);
	padding-inline: calc(50vw - 50%);
	padding-block: 44px;
	background: var(--bp-band);
	color: var(--bp-ink);
}
body.wf-waitlist-canvas .wf-wl-story .wp-block-heading,
body.wf-waitlist-canvas .wf-wl-education .wp-block-heading {
	background: none;
	color: var(--bp-ink);
	font-family: var(--bp-serif);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	text-align: left;
	border-radius: 0;
	padding: 0;
	margin: 0 0 16px;
}
body.wf-waitlist-canvas .wf-wl-story p {
	color: var(--bp-body);
	font-family: var(--wf-font-body, sans-serif);
	font-size: 15px;
	line-height: 1.72;
	max-width: 46ch;
}

/* --- routine: the three steps, numbered in Bengali --- */
body.wf-waitlist-canvas .wf-wl-education .wf-terms-list {
	margin-block: 0;
	counter-reset: bpstep;
	list-style: none;
	padding-left: 0;
}
body.wf-waitlist-canvas .wf-wl-education .wf-terms-list li {
	position: relative;
	padding: 12px 0 12px 70px;
	border-bottom: 1px solid var(--bp-rule);
	font-family: var(--wf-font-body, sans-serif);
	font-size: 15px;
	color: var(--bp-body);
	counter-increment: bpstep;
}
body.wf-waitlist-canvas .wf-wl-education .wf-terms-list li:last-child {
	border-bottom: none;
}
body.wf-waitlist-canvas .wf-wl-education .wf-terms-list li::before {
	content: 'ধাপ ' counter(bpstep, bp-step);
	position: absolute;
	left: 0;
	top: 12px;
	font-family: var(--bp-serif);
	font-size: 14px;
	color: var(--bp-brass-text);
}

/* --- teaser cards: sharp, hairline, no shadow --- */
body.wf-waitlist-canvas .wf-wl-teasers .wp-block-columns {
	gap: 16px;
	margin: 0;
}
body.wf-waitlist-canvas .wf-wl-teasers .wp-block-column {
	background: var(--bp-card);
	border: 1px solid var(--bp-rule);
	border-radius: 2px;
	padding: 22px 20px;
	box-shadow: none;
	text-align: left;
	margin: 0;
}
body.wf-waitlist-canvas .wf-wl-teaser-name {
	font-family: var(--latin, 'Hind Siliguri'), sans-serif;
	font-size: 13px;
	letter-spacing: .1em;
	font-weight: 400;
	color: var(--bp-ink);
	margin: 0 0 10px;
}
body.wf-waitlist-canvas .wf-wl-teaser-line {
	font-family: var(--wf-font-body, sans-serif);
	font-size: 14px;
	color: var(--bp-body);
	margin: 0 0 14px;
}
body.wf-waitlist-canvas .wf-wl-badge {
	display: inline-block;
	background: none;
	color: var(--bp-brass-text);
	border: 1px solid var(--bp-brass);
	font-family: var(--wf-font-body, sans-serif);
	font-weight: 700;
	border-radius: 2px;
	padding: 3px 12px;
	font-size: 13px;
}

/* --- the form: a white card on bone, hairline fields --- */
body.wf-waitlist-canvas .wf-checkout-heading {
	background: none;
	background-image: none;
	border: 0;
	border-radius: 0;
	color: var(--bp-ink);
	font-family: var(--bp-serif);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	text-align: left;
	padding: 0;
	margin: 52px 0 0;
}
body.wf-waitlist-canvas .wf-wl-form-section {
	background: var(--bp-card);
	border: 1px solid var(--bp-rule);
	border-radius: 2px;
	box-shadow: none;
	padding: 28px 22px;
	margin-block: 20px 0;
	max-width: none;
}
body.wf-waitlist-canvas .wf-wl-form label {
	display: block;
	font-family: var(--wf-font-body, sans-serif);
	font-weight: 600;
	font-size: 13px;
	color: var(--bp-label);
	margin-bottom: 6px;
}
body.wf-waitlist-canvas .wf-wl-form input[type="text"],
body.wf-waitlist-canvas .wf-wl-form input[type="tel"],
body.wf-waitlist-canvas .wf-wl-form select {
	width: 100%;
	padding: 12px 2px;
	border: none;
	border-bottom: 1px solid var(--bp-rule-strong);
	border-radius: 0;
	background: transparent;
	font-family: var(--wf-font-body, sans-serif);
	font-size: 16px;
	color: var(--bp-ink);
	box-sizing: border-box;
}
body.wf-waitlist-canvas .wf-wl-form input:focus,
body.wf-waitlist-canvas .wf-wl-form select:focus {
	outline: none;
	border-bottom-color: var(--bp-brass);
	box-shadow: none;
}
body.wf-waitlist-canvas .wf-wl-form select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--bp-label) 50%),
		linear-gradient(135deg, var(--bp-label) 50%, transparent 50%);
	background-position: right 6px top 52%, right 1px top 52%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 22px;
}
body.wf-waitlist-canvas .wf-wl-error {
	color: #8E1F16;
	font-size: 14px;
}
body.wf-waitlist-canvas .wf-wl-submit {
	width: 100%;
	background: var(--bp-ink);
	color: #F7F1EA;
	font-family: var(--wf-font-body, sans-serif);
	font-weight: 700;
	font-size: 17px;
	border: none;
	border-radius: 2px;
	padding: 15px 24px;
	cursor: pointer;
	box-shadow: none;
}
body.wf-waitlist-canvas .wf-wl-submit:hover {
	background: #241117;
}
body.wf-waitlist-canvas .wf-wl-submit:focus-visible {
	outline: 2px solid var(--bp-brass);
	outline-offset: 2px;
}

/* --- FAQ: hairlines, plum questions. The core details block brings its own
       border, radius and a themed marker — all of it is replaced here. --- */
body.wf-waitlist-canvas .wf-faq {
	margin-inline: calc(50% - 50vw);
	padding-inline: calc(50vw - 50%);
	padding-block: 44px;
	background: var(--bp-band);
}
body.wf-waitlist-canvas .wf-faq .wp-block-heading {
	background: none;
	color: var(--bp-ink);
	font-family: var(--bp-serif);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.3;
	text-align: left;
	border-radius: 0;
	padding: 0;
	margin: 0 0 14px;
}
body.wf-waitlist-canvas .wf-faq-item,
body.wf-waitlist-canvas .wp-block-details {
	background: none;
	border: 0;
	border-top: 1px solid var(--bp-rule-strong);
	border-radius: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	color: inherit;
}
body.wf-waitlist-canvas .wf-faq-item:last-of-type,
body.wf-waitlist-canvas .wp-block-details:last-of-type {
	border-bottom: 1px solid var(--bp-rule-strong);
}
body.wf-waitlist-canvas .wf-faq-item summary,
body.wf-waitlist-canvas .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	list-style: none;
	font-family: var(--bp-serif);
	font-weight: 600;
	font-size: 16px;
	color: var(--bp-ink);
	padding: 15px 0;
	cursor: pointer;
}
body.wf-waitlist-canvas .wf-faq-item summary::-webkit-details-marker,
body.wf-waitlist-canvas .wp-block-details summary::-webkit-details-marker {
	display: none;
}
body.wf-waitlist-canvas .wf-faq-item summary::marker,
body.wf-waitlist-canvas .wp-block-details summary::marker {
	content: '';
}
body.wf-waitlist-canvas .wf-faq-item summary::after,
body.wf-waitlist-canvas .wp-block-details summary::after {
	content: '+';
	color: var(--bp-brass);
	font-family: var(--wf-font-body, sans-serif);
	font-weight: 400;
	font-size: 18px;
	line-height: 1;
}
body.wf-waitlist-canvas .wf-faq-item[open] summary::after,
body.wf-waitlist-canvas .wp-block-details[open] summary::after {
	content: '–';
}
body.wf-waitlist-canvas .wf-faq-item p,
body.wf-waitlist-canvas .wp-block-details p {
	font-family: var(--wf-font-body, sans-serif);
	font-size: 14px;
	line-height: 1.7;
	color: var(--bp-body);
	margin: 0 0 16px;
	max-width: 48ch;
}

/* --- thank-you / closed states --- */
body.wf-waitlist-canvas .wf-wl-thanks-title {
	font-family: var(--bp-serif);
	font-weight: 600;
	color: var(--bp-ink);
}
body.wf-waitlist-canvas .wf-wl-thanks-sub,
body.wf-waitlist-canvas .wf-wl-closed {
	color: var(--bp-body);
}

/* --- footer --- */
body.wf-waitlist-canvas .wf-footer {
	background: none;
	background-image: none;
	border: 0;
	border-radius: 0;
	color: var(--bp-label);
	font-family: var(--wf-font-body, sans-serif);
	font-weight: 400;
	font-size: 13px;
	text-align: left;
	padding: 30px 0 40px;
}
