/*
 * L3 templates — L3-A Specialism, L3-B Packaged offer, L3-C Sector solution.
 * Source: Claude Design project "L3 Pages.dc.html" + "L3 Templates Spec.md"
 * (desktop 1440 / mobile 390 comps). Tokens only — no raw hex except the
 * two hairline tints the comps use inside tables/FAQ cards (--l3-rule-soft,
 * --l3-row-alt) and the hero-image overlay, defined once below.
 *
 * Breakpoints per spec §0: 1440+, 1024–1439 (even grids 2-up), 768–1023
 * (hero side panel stacks below), <768 (single column, full-width buttons).
 */

.l3-hero,
.l3-section,
.l3-related-section {
	--l3-rule-soft: #EFEDF0;
	--l3-row-alt: #FBFAFB;
	--l3-lead: #3E3A45;
}

/* ---------- Type ---------- */
.l3-h1 {
	font-size: clamp(2.375rem, 1.6rem + 2.4vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: var(--tracking-h1);
	max-width: 18ch;
	margin: 0;
}
/* issueslog.md #049 — every L3 section heading is an H2 on the
   design-reference scale (44 desktop / 30 mobile, --fs-h2); the --md / --sm
   modifiers now only adjust spacing and line-height, not size, so H2s no
   longer change size from one section to the next. */
.l3-h2 {
	font-size: var(--fs-h2);
	line-height: 1.06;
	letter-spacing: var(--tracking-h2);
	max-width: 18ch;
	margin: 0;
}
.l3-h2--md { line-height: 1.08; }
.l3-h2--sm { line-height: 1.08; margin-bottom: var(--space-5); }
.l3-h2--wide { max-width: 24ch; }
.l3-h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.l3-lead {
	margin: 22px 0 0;
	font-size: var(--fs-lead);
	line-height: 1.65;
	color: var(--l3-lead);
	max-width: 56ch;
}
.l3-intro {
	margin: 18px 0 32px;
	font-size: var(--fs-body);
	line-height: 1.7;
	color: var(--text-body-light);
	max-width: 56ch;
}
.l3-intro--gap { margin-bottom: 38px; max-width: 60ch; }
.l3-index {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	line-height: 1.8;
	color: var(--accent-deep);
}
.section--dark .l3-index { color: var(--accent); }
.l3-footnote { margin: 14px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--muted-light); } /* #050: 15px, design-reference body floor */

/* ---------- Sections ---------- */
.l3-section--flush-top { padding-top: 0; }
/* Flush-top only works under another light section; after a dark band (or when an
   optional light section between them is omitted) restore the top padding. */
.section--dark + .l3-section--flush-top,
.section--dark + .l3-related-section { padding-top: var(--section-pad-light); }
.l3-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-6);
	margin-bottom: 36px;
}
.l3-head .eyebrow { margin-bottom: 18px; }
.l3-head__note {
	margin: 0;
	max-width: 36ch;
	text-align: right;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--muted-light);
}
.section--dark .l3-head__note { color: var(--muted-dark); }

/* ---------- Breadcrumbs (4-level; back-link on mobile) ---------- */
.l3-crumbs { margin-bottom: 30px; }
.l3-crumbs .breadcrumbs { padding-block: 0; }
.l3-crumbs .breadcrumbs ol { font-size: 0.875rem; }
.l3-crumbs__back { display: none; font-size: 0.8125rem; color: var(--muted-light); min-height: 44px; align-items: center; }
.l3-hero--image .l3-crumbs .breadcrumbs ol,
.l3-hero--image .l3-crumbs .breadcrumbs li::after,
.l3-hero--image .l3-crumbs__back { color: var(--muted-dark); }
.l3-hero--image .l3-crumbs .breadcrumbs li:last-child { color: var(--paper); }
.l3-hero--image .l3-crumbs .breadcrumbs a:hover { color: var(--accent-light); }

/* ---------- Hero: light (L3-A, L3-B) ---------- */
.l3-hero--light { background: var(--paper); padding-block: 52px 48px; }
.l3-hero--offer { padding-bottom: 56px; }
.l3-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 72px;
	align-items: end;
}
.l3-hero__grid--wide-aside { grid-template-columns: minmax(0, 1fr) 460px; align-items: center; }
.l3-hero__copy .eyebrow { margin-bottom: 20px; }
.l3-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.l3-glance {
	background: var(--paper-soft);
	border-radius: var(--radius-inset);
	padding: 26px 28px;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}
.l3-glance__title,
.l3-keys__title {
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted-light);
}
.l3-glance dl { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.l3-glance__row { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 0.9375rem; line-height: 1.3; color: var(--text-body-light); }
.l3-glance__row dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* Dark key-numbers card (L3-B) */
.l3-keys { background: var(--ink); color: var(--paper); border-radius: var(--radius-card); padding: 32px 34px; }
.l3-keys__title { display: block; color: var(--accent-light); margin-bottom: 22px; }
.l3-keys__grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.l3-keys__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--line-dark); padding-top: var(--space-4); }
.l3-keys__item dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 2.5rem; line-height: 1; letter-spacing: -0.04em; }
.l3-keys__item dt { margin-top: var(--space-2); font-size: 0.875rem; line-height: 1.45; color: var(--muted-dark); }
.l3-keys__footnote { margin: 22px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted-dark); }

/* ---------- Hero: dark image (L3-C) ---------- */
.l3-hero--image {
	position: relative;
	overflow: hidden;
	background: var(--ink-soft);
	padding-block: 44px 56px;
}
.l3-hero__bg { position: absolute; inset: 0; }
.l3-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.l3-hero__bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(95deg, rgba(20,20,24,.95) 0%, rgba(20,20,24,.88) 45%, rgba(20,20,24,.55) 100%);
}
.l3-hero__inner { position: relative; }
.l3-hero--image .l3-crumbs { margin-bottom: 34px; }
.l3-hero__copy--narrow { max-width: 780px; }
.l3-hero--image .eyebrow { letter-spacing: 0.24em; margin-bottom: 22px; }
.l3-hero--image .l3-h1 { color: var(--paper); font-size: clamp(2.375rem, 1.6rem + 2.5vw, 3.875rem); line-height: 1.04; max-width: 20ch; }
.l3-hero--image .l3-lead { color: #D5D3D8; margin-top: var(--space-5); }
.l3-proof {
	margin: 56px 0 0;
	padding-top: 28px;
	border-top: 1px solid rgba(255,255,255,.2);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px;
}
.l3-proof__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.l3-proof__item dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; line-height: 1; letter-spacing: -0.04em; color: var(--paper); }
.l3-proof__item dt { margin-top: var(--space-2); font-size: 0.875rem; line-height: 1.45; color: var(--text-body-dark); }

/* ---------- Section nav (inherits .section-nav; adds right CTA) ---------- */
.l3-section-nav .l3-section-nav__inner { justify-content: space-between; overflow: visible; padding-block: var(--space-4); gap: var(--space-5); }
.l3-section-nav__links {
	display: flex;
	gap: 26px;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
	font-size: 0.9375rem;
}
.l3-section-nav__links::-webkit-scrollbar { display: none; }
/* issueslog.md #041 — links were 32–34px tall: 44px tap boxes. */
.l3-section-nav__links a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.l3-section-nav a.l3-section-nav__cta {
	flex-shrink: 0;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--line-light);
	padding: 12px 18px;
	min-height: 44px;
	border-bottom-width: 1px;
}
.l3-section-nav a.l3-section-nav__cta:hover { border-color: var(--ink); }

/* ---------- 04 Problems + image (L3-A) ---------- */
.l3-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.l3-numbered { counter-reset: none; }
.l3-numbered__item {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 18px;
	padding: 22px 0;
	border-top: 1px solid var(--line-light);
}
.l3-numbered__item:last-child { border-bottom: 1px solid var(--line-light); }
.l3-numbered__item p { margin: 6px 0 0; font-size: 1rem; line-height: 1.6; color: var(--text-body-light); }

.l3-media { border-radius: var(--radius-card); overflow: hidden; background: var(--ink-soft); position: relative; }
.l3-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.l3-media--tall { min-height: 520px; }
.l3-media--spotlight { min-height: 460px; }

/* ---------- Cards ---------- */
.l3-cards { display: grid; gap: 20px; }
.l3-cards--1 { grid-template-columns: minmax(0, 1fr); }
.l3-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.l3-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l3-card {
	background: var(--paper);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-card);
	padding: 30px 32px 34px;
	transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.l3-card .l3-index { line-height: 1; margin-bottom: var(--space-4); }
.l3-card__title { font-size: 1.375rem; line-height: 1.2; letter-spacing: var(--tracking-h3); margin: 0; }
.l3-card__body { margin: 10px 0 0; font-size: 1rem; line-height: 1.6; color: var(--text-body-light); }
.l3-card--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.l3-card--dark .l3-card__title { color: var(--paper); }
.l3-card--dark .l3-card__body { color: var(--text-body-dark); }
.l3-card--dark .l3-index { color: var(--accent); }
.l3-card--tint { background: var(--paper-soft); border-color: var(--paper-soft); padding: 32px 34px 36px; }
.l3-card--tint .l3-card__body { margin-top: var(--space-3); }
.section--dark .l3-card--outline { background: transparent; border-color: var(--line-dark); padding: 30px 32px; }
.section--dark .l3-card--outline .l3-card__title { margin-top: 14px; }
.section--dark .l3-card--outline.is-current .l3-card__title { color: var(--accent-light); }
.section--dark .l3-card--outline .l3-card__body { color: var(--muted-dark); margin-top: var(--space-2); }

/* ---------- 06 Method timeline (L3-A, dark) ---------- */
.l3-timeline { display: grid; grid-template-columns: repeat(var(--l3-steps, 4), minmax(0, 1fr)); }
.l3-timeline--3 { --l3-steps: 3; }
.l3-timeline--4 { --l3-steps: 4; }
.l3-timeline--5 { --l3-steps: 5; }
.l3-timeline__stage { padding: 26px 28px 0; border-top: 2px solid var(--line-dark); }
.l3-timeline__stage:first-child { padding-left: 0; }
.l3-timeline__stage:last-child { padding-right: 0; }
.l3-timeline__stage.is-current { border-top-color: var(--accent); }
.l3-timeline__duration {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	line-height: 1;
	text-transform: uppercase;
	color: var(--muted-dark);
}
.l3-timeline__stage.is-current .l3-timeline__duration,
.l3-card--outline.is-current .l3-timeline__duration { color: var(--accent); }
.l3-timeline__title { margin: 14px 0 0; font-size: 1.375rem; line-height: 1.2; letter-spacing: var(--tracking-h3); }
.section--dark .l3-timeline__stage.is-current .l3-timeline__title { color: var(--accent-light); }
.l3-timeline__stage p { margin: var(--space-2) 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted-dark); }

/* ---------- 07 Technical scope (L3-A) ---------- */
.l3-aside-split { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 72px; align-items: start; }
.l3-aside-split .l3-intro { margin-bottom: 0; }
.l3-spec { margin: 0; border: 1px solid var(--line-light); border-radius: var(--radius-card); overflow: hidden; }
.l3-spec__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-4); padding: 20px 28px; border-bottom: 1px solid var(--l3-rule-soft); font-size: 1rem; line-height: 1.5; }
.l3-spec__row:nth-child(even) { background: var(--l3-row-alt); }
.l3-spec__row:last-child { border-bottom: none; }
.l3-spec__row dt { font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.8; text-transform: uppercase; color: var(--muted-light); }
.l3-spec__row dd { margin: 0; }

/* ---------- 08 Featured case + quote (L3-A) ---------- */
.l3-work { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--card-gap); }
.l3-work--solo { grid-template-columns: minmax(0, 1fr); }
.l3-case-card { background: var(--paper-soft); border-radius: var(--radius-card); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.l3-case-card__media { position: relative; min-height: 300px; background: var(--ink-soft); }
.l3-case-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 40%; /* keep the left of featured-image panels (eyebrow, client name) in frame */ }
.l3-case-card__body { padding: 30px 32px 34px; }
.l3-case-card__body .eyebrow { letter-spacing: 0.14em; margin-bottom: 0; }
.l3-case-card__title { margin: 12px 0 0; font-size: 1.5625rem; line-height: 1.2; letter-spacing: var(--tracking-h3); max-width: none; }
.l3-case-card__title a { display: inline-flex; align-items: center; min-height: 44px; } /* #041 */
.l3-case-card__title a:hover { color: var(--accent-deep); }
.l3-case-card__body p { margin: 10px 0 0; font-size: 1rem; line-height: 1.6; color: var(--text-body-light); }

.l3-results { margin: 0; display: flex; flex-wrap: wrap; gap: 36px; }
.l3-results__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.l3-results dd { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.l3-results dt { margin-top: 6px; font-size: 0.8125rem; line-height: 1.3; color: var(--muted-light); }
.l3-results--card { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.l3-results--card dd { font-size: 1.875rem; }
.l3-results--band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.l3-results--band dd { font-size: 2.125rem; letter-spacing: -0.04em; }
.l3-results--band .is-lead dd { color: var(--accent-light); }
.l3-results--band dt { font-size: 0.875rem; line-height: 1.4; margin-top: var(--space-2); }

.l3-quote { margin: 0; background: var(--ink); border-radius: var(--radius-card); padding: 32px 34px; display: flex; flex-direction: column; justify-content: space-between; }
.l3-quote blockquote { margin: 0; }
.l3-quote blockquote p { margin: 0; font-size: var(--fs-lead); line-height: 1.65; color: var(--line-light); }
.l3-quote blockquote p::before { content: "\201C"; }
.l3-quote blockquote p::after { content: "\201D"; }
.l3-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: var(--space-5); padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.875rem; line-height: 1.3; color: var(--muted-dark); }
.l3-quote figcaption strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--paper); }
.l3-quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- FAQ + entry offer / form ---------- */
.l3-faq-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-7); align-items: start; }
.l3-faq-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l3-faq-split--solo { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.l3-faq__card { border: 1px solid var(--line-light); border-radius: var(--radius-card); padding: 8px 30px 12px; }
.l3-faq__card .accordion-item { border-bottom-color: var(--l3-rule-soft); }
.l3-faq__card .accordion-item:last-child { border-bottom: none; }
.l3-faq__q { margin: 0; font-size: inherit; }
.l3-faq__card .accordion-item__trigger { font-size: 1.125rem; line-height: 1.35; min-height: 44px; }
.l3-faq__card .accordion-item__panel-inner { font-size: 1rem; line-height: 1.7; max-width: 62ch; }
.l3-faq__card .accordion-item__panel-inner p { margin: 0 0 var(--space-3); }
.l3-faq__card .accordion-item__icon::before { content: "+"; font-family: var(--font-body); font-weight: 400; }
.l3-faq__card .accordion-item__trigger[aria-expanded="true"] .accordion-item__icon::before { content: "\2212"; }
.l3-faq-anchor { scroll-margin-top: calc(var(--header-height, 77px) + var(--section-nav-height, 0px) + var(--space-4)); }

.l3-offer {
	background: var(--paper-soft);
	border-radius: var(--radius-card);
	padding: 30px 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 64px;
}
.l3-offer .eyebrow { margin: 0; letter-spacing: 0.18em; }
.l3-offer p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-body-light); }
.l3-offer .l3-offer__title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: var(--tracking-h3); color: var(--ink); }
.l3-offer .btn { margin-top: 6px; justify-content: center; }

.l3-enquire { margin-top: 60px; scroll-margin-top: calc(var(--header-height, 77px) + var(--section-nav-height, 0px) + var(--space-4)); }
.l3-form { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius-card); padding: 32px 34px; }
.l3-form .form-grid { gap: var(--space-4); }
.l3-form__title { margin: 0 0 20px; font-size: 1.5rem; line-height: 1.2; letter-spacing: var(--tracking-h3); }
.l3-form .form-field label { color: var(--l3-lead); }
.l3-form__consent { flex-direction: row; align-items: flex-start; gap: var(--space-3); }
.l3-form__consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent-deep); }
.l3-form__consent label { font-weight: 400; font-size: 0.875rem; line-height: 1.5; }
.l3-form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.l3-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.l3-form__submit { justify-content: center; margin-top: 6px; }
.l3-form--fallback p { margin: 0 0 var(--space-5); color: var(--text-body-light); }
.l3-form__admin-note { margin-top: var(--space-4) !important; font-size: 0.8125rem; color: var(--accent-deep) !important; }
.l3-plan-flash { animation: l3-flash 900ms var(--ease-out); }
@keyframes l3-flash { 0% { box-shadow: 0 0 0 0 rgba(238,76,124,.55); } 100% { box-shadow: 0 0 0 10px rgba(238,76,124,0); } }

/* ---------- 10 Related / siblings band ---------- */
.l3-related-section { padding-top: 0; }
.l3-related-section--standalone { padding-top: var(--section-pad-light); }
.l3-related { background: var(--paper-soft); border-radius: var(--radius-card); padding: 34px 36px; }
.l3-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); margin-bottom: 22px; flex-wrap: wrap; }
/* issueslog.md #049(f) — on the H3 step of the scale (design-reference's
   related block heading is 24px), so this H2 is never smaller than the H3s
   beside it. */
.l3-related__title { margin: 0; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: var(--tracking-h3); }
.l3-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.l3-related__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.l3-related__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l3-related__grid--1 { grid-template-columns: minmax(0, 1fr); }
.l3-related__card {
	background: var(--paper);
	border-radius: var(--radius-inset);
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.l3-related__card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20,20,24,.08); }
.l3-related__card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.02em; }
.l3-related__card-body { font-size: 0.9375rem; line-height: 1.55; color: var(--text-body-light); }
.l3-related__label { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px; }
.l3-related__card--list ul { display: flex; flex-direction: column; }
.l3-related__card--list a { display: flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 1rem; line-height: 1.35; } /* #041: was 36px */
.l3-related__card--list a:hover { color: var(--accent-deep); }

/* ---------- 04 Plans (L3-B) ---------- */
.l3-billing { display: inline-flex; background: var(--paper-soft); border-radius: var(--radius-pill); padding: 5px; flex-shrink: 0; }
.l3-billing[hidden] { display: none; }
.l3-billing button {
	border: 0; background: none; cursor: pointer;
	font-weight: 600; font-size: 0.875rem; line-height: 1;
	padding: 12px 18px; min-height: 44px;
	border-radius: var(--radius-pill);
	color: var(--text-body-light);
	transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.l3-billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.l3-plans { display: grid; grid-template-columns: repeat(var(--l3-plans, 3), minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.l3-plans--2 { --l3-plans: 2; }
.l3-plans--3 { --l3-plans: 3; }
.l3-plans--4 { --l3-plans: 4; }
.l3-plan {
	position: relative;
	border: 1px solid var(--line-light);
	border-radius: var(--radius-card);
	padding: 34px 34px 36px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: var(--paper);
}
.l3-plan__name { margin: 0; font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.03em; }
.l3-plan__summary { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text-body-light); }
.l3-plan__headline { padding: 18px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); display: flex; flex-direction: column; gap: var(--space-2); }
.l3-plan__value { font-family: var(--font-display); font-weight: 600; font-size: 2.125rem; line-height: 1; letter-spacing: -0.04em; }
.l3-plan__note { font-size: 0.875rem; line-height: 1.3; color: var(--muted-light); }
.l3-plan__features { display: flex; flex-direction: column; gap: 11px; font-size: 0.9375rem; line-height: 1.45; color: var(--l3-lead); }
.l3-plan__features li::before { content: "\2713\00a0"; }
/* issueslog.md #043 — excluded features used two off-token greys (2.93:1 on
   white, 3.48:1 on ink), both under AA. They now use the muted tokens
   (5.48:1 on white, ~6.5:1 on ink); de-emphasis is carried by the "—"
   marker instead of low contrast. */
.l3-plan__features li.is-excluded { color: var(--muted-light); }
.l3-plan__features li.is-excluded::before { content: "\2014\00a0"; }
.l3-plan__cta { margin-top: auto; justify-content: center; }
.l3-plan--highlight { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.l3-plan--highlight .l3-plan__name { color: var(--paper); }
.l3-plan--highlight .l3-plan__summary { color: var(--text-body-dark); }
.l3-plan--highlight .l3-plan__headline { border-color: var(--line-dark); }
.l3-plan--highlight .l3-plan__value { color: var(--accent-light); }
.l3-plan--highlight .l3-plan__note { color: var(--muted-dark); }
.l3-plan--highlight .l3-plan__features { color: var(--line-light); }
.l3-plan--highlight .l3-plan__features li.is-excluded { color: var(--muted-dark); }
.l3-plan--highlight :focus-visible { outline-color: var(--accent-light); }
.l3-plan__badge {
	position: absolute;
	top: -13px; left: 34px;
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--accent);
	padding: 8px 12px;
	border-radius: var(--radius-pill);
}
.l3-plans__dots { display: none; }

/* ---------- 05 Comparison matrix (L3-B) ---------- */
.l3-matrix { margin-top: 28px; }
.l3-matrix__scroll { border: 1px solid var(--line-light); border-radius: var(--radius-card); overflow-x: auto; }
.l3-matrix table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; line-height: 1.4; color: var(--l3-lead); min-width: 640px; }
.l3-matrix th, .l3-matrix td { text-align: left; padding: 20px 28px; font-weight: 400; vertical-align: top; }
.l3-matrix thead th:first-child { width: 31%; }
.l3-matrix thead th {
	background: var(--paper-soft);
	padding-block: 18px;
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted-light);
}
.l3-matrix thead th.is-highlight { color: var(--ink); }
.l3-matrix tbody tr { border-top: 1px solid var(--l3-rule-soft); }
.l3-matrix tbody tr:nth-child(even) { background: var(--l3-row-alt); }
.l3-matrix td.is-highlight { font-weight: 600; color: var(--ink); }
.l3-matrix__code { font-family: var(--font-mono); font-weight: 500; color: var(--accent-deep); margin-right: 0.5em; }
.l3-matrix__switch { display: none; }

/* ---------- 06 Onboarding (L3-B, dark) ---------- */
.section--dark .l3-h2--wide { margin: 0 0 var(--space-7); }
.section--dark .eyebrow + .l3-h2 { margin-top: 6px; }

/* ---------- 07 Covered / scoped (L3-B), compliance (L3-C) ---------- */
.l3-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.l3-panel { border-radius: var(--radius-card); padding: 34px 36px; }
.l3-panel--tint { background: var(--paper-soft); }
.l3-panel--outline { background: var(--paper); border: 1px solid var(--line-light); }
.l3-panel .eyebrow { letter-spacing: 0.18em; margin-bottom: var(--space-4); }
.l3-panel__title { margin: 0 0 20px; font-size: 1.5rem; line-height: 1.2; letter-spacing: var(--tracking-h3); max-width: none; }
.l3-panel__title--lg { font-size: 1.625rem; }
.l3-checklist { display: flex; flex-direction: column; gap: var(--space-3); font-size: 1rem; line-height: 1.55; color: var(--l3-lead); }
.l3-checklist li { padding-left: 1.4em; text-indent: -1.4em; }
.l3-checklist li::before { content: "\2713"; display: inline-block; width: 1.4em; text-indent: 0; }
.l3-checklist--dash { color: var(--text-body-light); }
.l3-checklist--dash li::before { content: "\2014"; }
.l3-panel__note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-light); font-size: 0.9375rem; line-height: 1.55; color: var(--muted-light); }

/* ---------- 05 Flow diagram (L3-C) ---------- */
.l3-flow { display: grid; grid-template-columns: repeat(var(--l3-nodes, 5), minmax(0, 1fr)); position: relative; }
.l3-flow--3 { --l3-nodes: 3; }
.l3-flow--4 { --l3-nodes: 4; }
.l3-flow--5 { --l3-nodes: 5; }
.l3-flow--6 { --l3-nodes: 6; }
.l3-flow::before {
	content: "";
	position: absolute;
	top: 34px;
	left: calc(50% / var(--l3-nodes));
	right: calc(50% / var(--l3-nodes));
	height: 2px;
	background: var(--line-light);
}
.l3-flow__node { position: relative; padding: 0 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); }
.l3-flow__dot {
	width: 68px; height: 68px;
	border-radius: 50%;
	background: var(--paper);
	border: 2px solid var(--ink);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem;
	flex-shrink: 0;
}
.l3-flow__node.is-product .l3-flow__dot { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.l3-flow__node.is-final .l3-flow__dot { background: var(--ink); color: var(--accent); }
.l3-flow__title { margin: 0; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.02em; }
.l3-flow__node p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-body-light); }

/* ---------- 06 Case spotlight (L3-C, dark) ---------- */
.l3-spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.l3-spotlight .eyebrow { margin-bottom: 18px; }
.l3-spotlight .l3-intro { color: var(--text-body-dark); max-width: 50ch; margin-bottom: 0; }
.l3-spotlight__link { margin-top: 30px; color: var(--paper); }

/* ---------- 07 Product cards (L3-C) ---------- */
.l3-product { display: flex; flex-direction: column; gap: var(--space-3); padding: 32px 34px 36px; }
.l3-product .l3-card__title { font-size: 1.5rem; }
.l3-product .l3-card__body { margin: 0; }
.l3-product__tag { display: flex; align-items: center; gap: 10px; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.l3-product__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); }
.l3-product__mark.is-alt { background: var(--paper); }
.l3-product .btn--tertiary { margin-top: var(--space-2); align-self: flex-start; color: var(--paper); border-bottom-color: var(--accent-light); }
.l3-product :focus-visible { outline-color: var(--accent-light); }

/* ---------- Motion ---------- */
@media (hover: hover) {
	.l3-card:not(.l3-card--dark):not(.l3-card--outline):hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(20,20,24,.08); }
}
@media (prefers-reduced-motion: reduce) {
	.l3-plan-flash { animation: none; }
	.l3-card, .l3-related__card { transition: none; }
}

/* ======================================================================
   1024–1439: even grids go 2-up
   ====================================================================== */
@media (max-width: 1439px) {
	.l3-cards--3.l3-cards--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.l3-hero__grid { gap: var(--space-8); }
	.l3-aside-split { grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-7); }
	.l3-case-card { grid-template-columns: minmax(0, 1fr); }
	.l3-case-card__media { min-height: 220px; }
	.l3-plans--4 { --l3-plans: 2; }
	.l3-related__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ======================================================================
   768–1023: hero side panel stacks below; timelines turn vertical
   ====================================================================== */
@media (max-width: 1023px) {
	.l3-hero__grid,
	.l3-hero__grid--wide-aside { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
	.l3-glance, .l3-keys { max-width: 560px; }
	.l3-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
	.l3-split, .l3-spotlight { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
	.l3-media--tall, .l3-media--spotlight { min-height: 360px; }
	.l3-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.l3-cards--3:not(.l3-cards--even) { grid-template-columns: minmax(0, 1fr); }
	.l3-aside-split { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
	.l3-work { grid-template-columns: minmax(0, 1fr); }
	.l3-case-card { grid-template-columns: 1fr 1fr; }
	.l3-faq-split, .l3-faq-split--even { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
	.l3-offer, .l3-enquire { margin-top: 0; }
	.l3-plans { --l3-plans: 2; }
	.l3-plans--3 { --l3-plans: 3; gap: var(--space-3); }
	.l3-plans--3 .l3-plan { padding: 28px 24px 30px; }
	.l3-related__grid, .l3-related__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.l3-timeline { grid-template-columns: minmax(0, 1fr); }
	.l3-timeline__stage,
	.l3-timeline__stage:first-child,
	.l3-timeline__stage:last-child { padding: 16px 0 18px 20px; border-top: 0; border-left: 2px solid var(--line-dark); }
	.l3-timeline__stage.is-current { border-left-color: var(--accent); }
	.l3-timeline__title { margin-top: var(--space-2); }

	.l3-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.l3-flow::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
	.l3-flow__node { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-4); row-gap: 4px; align-items: center; text-align: left; padding: 10px 0; }
	.l3-flow__dot { width: 44px; height: 44px; font-size: 0.75rem; grid-row: span 2; align-self: start; }
	.l3-flow__node p { grid-column: 2; }
}

/* ======================================================================
   <768: single column, full-width buttons, mobile interactions
   ====================================================================== */
@media (max-width: 767px) {
	.l3-hero--light { padding-block: 26px 28px; }
	.l3-hero--image { padding-block: 24px 28px; }
	.l3-hero__bg::after { background: linear-gradient(180deg, rgba(20,20,24,.92) 0%, rgba(20,20,24,.88) 60%, rgba(20,20,24,.95) 100%); }
	.l3-crumbs { margin-bottom: 12px; }
	.l3-hero--image .l3-crumbs { margin-bottom: 10px; }
	.l3-crumbs .breadcrumbs { display: none; }
	.l3-crumbs__back { display: inline-flex; }
	.l3-lead { margin-top: var(--space-4); font-size: 1rem; line-height: 1.6; }
	.l3-hero__actions { margin-top: 22px; }
	.l3-hero__actions .btn--secondary { display: none; }
	.l3-hide-mobile { display: none !important; }
	.l3-glance { padding: 18px 20px; gap: var(--space-3); }
	.l3-glance__title { display: none; }
	.l3-glance dl { gap: var(--space-3); }
	.l3-glance__row { font-size: 0.9375rem; } /* #050: was 14px */
	.l3-keys { padding: 22px; border-radius: 14px; }
	.l3-keys__title, .l3-keys__footnote { display: none; }
	.l3-keys__grid { gap: 18px; }
	.l3-keys__item { border-top: 0; padding-top: 0; }
	.l3-keys__item dd { font-size: 1.75rem; }
	.l3-keys__item dt { font-size: 0.8125rem; margin-top: 6px; }
	.l3-proof { margin-top: var(--space-5); padding-top: 20px; gap: 18px; }
	.l3-proof__item dd { font-size: 1.75rem; }
	.l3-proof__item dt { font-size: 0.8125rem; }

	.l3-section-nav__links { gap: 20px; font-size: 0.875rem; }
	.l3-section-nav a.l3-section-nav__cta { display: none; }
	.l3-section-nav .l3-section-nav__inner { padding-block: var(--space-3); }

	.l3-head { flex-direction: column; align-items: flex-start; margin-bottom: var(--space-5); }
	.l3-head__note { text-align: left; }
	.l3-intro { margin: 12px 0 var(--space-5); font-size: 1rem; }
	.l3-media--tall, .l3-media--spotlight { min-height: 240px; }
	.l3-cards, .l3-cards--2, .l3-cards--3, .l3-cards--3.l3-cards--even { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.l3-card { padding: 20px 22px; border-radius: 14px; }
	.l3-card .l3-index { font-size: 0.6875rem; margin-bottom: 10px; }
	.l3-card__title { font-size: 1.1875rem; }
	.l3-spec__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 20px; }
	.l3-case-card { grid-template-columns: minmax(0, 1fr); }
	.l3-case-card__media { min-height: 200px; }
	.l3-case-card__body, .l3-quote, .l3-offer, .l3-form, .l3-panel, .l3-related { padding: 24px 22px; }
	.l3-results { gap: var(--space-5); }
	.l3-results--band { gap: var(--space-4); }
	.l3-results--band dd { font-size: 1.75rem; }
	.l3-faq__card { padding: 4px 20px 8px; }
	.l3-faq__card .accordion-item__trigger { font-size: 1.0625rem; padding-block: 18px; }
	.l3-pair { grid-template-columns: minmax(0, 1fr); }
	.l3-related__grid, .l3-related__grid--2, .l3-related__grid--4 { grid-template-columns: minmax(0, 1fr); }
	.l3-billing { align-self: stretch; }
	.l3-billing button { flex: 1; }

	/* Plans: horizontal snap carousel, opened on the highlighted plan (l3.js). */
	.l3-plans,
	.l3-plans--2, .l3-plans--3, .l3-plans--4 {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(var(--margin-mobile) * -1);
		padding: 16px var(--margin-mobile) 4px;
		scroll-padding-inline: var(--margin-mobile);
		scrollbar-width: none;
	}
	.l3-plans::-webkit-scrollbar { display: none; }
	.l3-plans .l3-plan,
	.l3-plans--3 .l3-plan { flex: 0 0 82%; scroll-snap-align: start; padding: 24px 24px 26px; gap: 12px; border-radius: 14px; }
	.l3-plan__name { font-size: 1.375rem; }
	.l3-plan__value { font-size: 1.75rem; }
	.l3-plan__badge { position: static; align-self: flex-start; font-size: 0.625rem; padding: 7px 10px; }
	.l3-plans__dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
	.l3-plans__dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-light); transition: width var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
	.l3-plans__dots span.is-active { width: 18px; background: var(--ink); }

	/* Matrix: single-plan view with a switcher, once l3.js enhances it. */
	.l3-matrix.is-enhanced .l3-matrix__switch {
		display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
		background: var(--paper-soft);
		border: 1px solid var(--line-light); border-bottom: 0;
		border-radius: 12px 12px 0 0;
		padding: 8px 8px 8px 16px;
		font-weight: 600; font-size: 0.875rem;
	}
	/* #038 / #050 — themed (appearance:none in base.css) and 16px, so iOS
	   doesn't zoom on focus. */
	.l3-matrix__switch select { border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; background-color: var(--paper); font-weight: 600; font-size: 1rem; color: var(--ink); }
	.l3-matrix.is-enhanced .l3-matrix__scroll { border-radius: 0 0 12px 12px; overflow: hidden; }
	.l3-matrix.is-enhanced table { min-width: 0; font-size: 0.9375rem; } /* #050: was 14px */
	.l3-matrix.is-enhanced thead { display: none; }
	.l3-matrix.is-enhanced [data-col] { display: none; }
	.l3-matrix.is-enhanced [data-col].is-shown { display: table-cell; text-align: right; font-weight: 700; color: var(--ink); }
	.l3-matrix.is-enhanced th[scope="row"] { width: 60%; }
	.l3-matrix th, .l3-matrix td { padding: 14px 16px; }
	.l3-matrix tbody tr:nth-child(even) { background: none; }
}
.l3-form__consent { flex-wrap: wrap; }
.l3-form__consent label { flex: 1 1 0; }
.l3-form__consent .form-field__error { flex-basis: 100%; }
