/*
 * The TesseraLMS company website.
 *
 * Colours, type and shapes follow the brand style guide: teal for action, navy
 * for dark grounds, one amber spark, mosaic tiles with corners a quarter of
 * their side, and Plus Jakarta Sans throughout. One file, no framework: a
 * small page is a fast page.
 */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* Arial, stretched to Jakarta's proportions, so text barely moves when the real font arrives. */
@font-face {
	font-family: "Jakarta Fallback";
	src: local("Arial");
	size-adjust: 104%;
	ascent-override: 100%;
	descent-override: 21%;
	line-gap-override: 0%;
}

:root {
	--teal: #0d7c78;
	--teal-strong: #0a6360;
	--teal-soft: #e7f2f2;
	--teal-light: #5cc8c2;
	--tint: #d6edeb;
	--navy: #0b1f2a;
	--amber: #f4a21c;
	--bg: #f5f6f8;
	--surface: #fff;
	--ink: #1a1e24;
	--muted: #5c6674;
	--line: #e2e5ea;
	--line-strong: #cfd4db;
	--done: #177245;
	--done-soft: #e7f4ec;
	--danger: #b42318;
	--danger-soft: #fdeceb;

	--font: "Plus Jakarta Sans", "Jakarta Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--gutter: 24px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
	--shadow-lg: 0 30px 60px -28px rgba(11, 31, 42, .38), 0 8px 20px -12px rgba(11, 31, 42, .18);
	--header: 72px;
}

/* --- Base ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }

body {
	margin: 0;
	font: 400 1.0625rem/1.65 var(--font);
	color: var(--ink);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-strong); }

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

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font-weight: 700; }
.skip:focus { top: 16px; color: #fff; }

.icon { flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 800px; }

/* --- Type ---------------------------------------------------------------- */

.eyebrow { margin-bottom: 12px; font-size: .8rem; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }

.h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.022em; color: var(--navy); text-wrap: balance; }
.h3 { margin-bottom: 8px; font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }

.lead { max-width: 62ch; font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); color: var(--muted); }
.lead + .lead { margin-top: 16px; }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 22px;
	border: 1.5px solid transparent; border-radius: var(--radius-sm);
	font: 700 1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.btn--large { min-height: 56px; padding: 14px 28px; font-size: 1.06rem; }
.btn--small { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

.demo-form { margin: 0; }

/* --- Header -------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header); }

.logo { display: block; flex: none; }
.logo img { width: 180px; height: 32px; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__list { display: flex; gap: 4px; list-style: none; padding: 0; }
.nav__list a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; }
.nav__list a:hover { color: var(--teal); }
.nav__list a[aria-current] { color: var(--teal-strong); background: var(--teal-soft); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--navy); cursor: pointer; }

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

.section { position: relative; padding-block: clamp(64px, 40px + 5vw, 112px); }
.section--tint { background: var(--bg); }
.section--flush { padding-top: 56px; }
.section--features { padding-block: 0 clamp(40px, 20px + 4vw, 72px); }
.section__head { max-width: 780px; margin-bottom: 48px; }

.section--navy { overflow: hidden; background: var(--navy); color: #fff; }
.section--navy .h2,
.section--navy .h3 { color: #fff; }
.section--navy .eyebrow { color: var(--teal-light); }
.section--navy .lead { color: rgba(255, 255, 255, .78); }
.section--navy :focus-visible { outline-color: var(--teal-light); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }

/* --- Mosaic tiles (decoration) ------------------------------------------- */

.tiles { position: absolute; pointer-events: none; }
.tiles .t-teal { fill: var(--teal); }
.tiles .t-tint { fill: var(--tint); }
.tiles .t-light { fill: var(--teal-light); }
.tiles .t-navy { fill: var(--navy); }
.tiles .t-amber { fill: var(--amber); }

/* --- Hero (home) --------------------------------------------------------- */

.hero { overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); padding-block: clamp(40px, 20px + 4vw, 80px) clamp(56px, 30px + 4vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }

.hero__title { margin-bottom: 20px; font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.2rem); line-height: 1.03; font-weight: 800; letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.chip { display: block; width: fit-content; margin-bottom: 20px; padding: 6px 13px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-strong); font-size: .8rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.hero__note .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--teal); }

.hero__visual { position: relative; padding: 28px 0 56px 44px; }
.hero__visual .frame { position: relative; z-index: 1; }
.tiles--hero { z-index: 0; top: -6px; right: -34px; width: 210px; }

.frame { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
.frame__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f1f3f5; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.frame img { width: 100%; }

.phone { position: absolute; z-index: 2; left: 0; bottom: 0; width: 25%; overflow: hidden; border: 6px solid var(--navy); border-radius: 24px; background: var(--navy); box-shadow: var(--shadow-lg); }
.phone img { width: 100%; border-radius: 18px; }

/* --- Facts strip --------------------------------------------------------- */

.facts { border-block: 1px solid var(--line); }
.facts__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; list-style: none; padding-block: 22px; }
.facts__list li { display: flex; align-items: center; gap: 9px; color: var(--navy); font-size: .93rem; font-weight: 600; }
.facts__list .icon { width: 22px; height: 22px; color: var(--teal); }

/* --- Cards --------------------------------------------------------------- */

.cards { display: grid; gap: 24px; list-style: none; padding: 0; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.card p { color: var(--muted); }
.card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal-strong); }
.card--row { display: flex; align-items: flex-start; gap: 20px; }
.card--row .card__icon { flex: none; margin: 0; }

/* --- Feature rows -------------------------------------------------------- */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; padding-block: clamp(32px, 16px + 3vw, 56px); }
.feature--flip .feature__text { order: 2; }

.checks { display: grid; gap: 10px; margin-top: 22px; list-style: none; padding: 0; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--teal); }

/* --- The demo's four seats ------------------------------------------------ */

.tiles--band { top: 40px; right: 5%; width: 200px; opacity: .55; }

.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; list-style: none; padding: 0; }
.role { display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-md); background: rgba(255, 255, 255, .06); }
.role__icon { margin-bottom: 12px; color: var(--teal-light); }
.role__who { margin-bottom: 10px; color: var(--teal-light); font-size: .92rem; font-weight: 600; }
.role__text { flex: 1 1 auto; margin-bottom: 20px; color: rgba(255, 255, 255, .8); font-size: 1rem; }
.roles__note { margin-top: 28px; color: rgba(255, 255, 255, .72); font-size: .98rem; }
.roles__note a { color: var(--teal-light); font-weight: 600; }

/* --- Steps --------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; list-style: none; padding: 0; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.steps__item p { color: var(--muted); }
/* A tile, like the mark's: corners a quarter of its side. The last one is the amber tile being set. */
.steps__num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 11px; background: var(--navy); color: #fff; font-weight: 800; }
.steps__item:last-child .steps__num { background: var(--amber); color: var(--navy); }

/* --- Questions ----------------------------------------------------------- */

.faq { display: grid; gap: 12px; margin-top: 32px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--teal); transform: rotate(90deg); transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(-90deg); }
.faq__q { margin: 0; color: var(--navy); font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.faq__a { max-width: 68ch; padding: 0 24px 22px; color: var(--muted); }

/* --- Closing call -------------------------------------------------------- */

.cta { padding-block: clamp(56px, 30px + 4vw, 96px); }
.cta__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; padding: clamp(32px, 20px + 3vw, 56px); border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.cta__text { position: relative; z-index: 1; }
.cta .h2 { color: #fff; }
.cta .lead { color: rgba(255, 255, 255, .78); }
.cta__actions { position: relative; z-index: 1; display: flex; flex: none; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }
.cta :focus-visible { outline-color: var(--teal-light); }
.tiles--cta { top: -34px; right: -26px; width: 132px; opacity: .5; }

/* --- Inner pages --------------------------------------------------------- */

.page-hero { position: relative; overflow: hidden; background: var(--bg); padding-block: clamp(40px, 24px + 3vw, 64px) clamp(48px, 28px + 3vw, 72px); }
.page-hero--plain { padding-bottom: clamp(32px, 20px + 2vw, 48px); }
.page-hero__title { max-width: 18em; margin-bottom: 18px; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem); line-height: 1.06; font-weight: 800; letter-spacing: -.028em; color: var(--navy); text-wrap: balance; }
.tiles--page { top: 50%; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); width: 150px; transform: translateY(-50%); }

.crumbs { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.crumbs a { color: inherit; }

[id] { scroll-margin-top: calc(var(--header) + 16px); }

/* Services */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: .95rem; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--teal); color: var(--teal-strong); }
.jump .icon { width: 20px; height: 20px; color: var(--teal); }

.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 48px; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service__bring { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: var(--teal-soft); font-size: .98rem; }
.service__includes .eyebrow { margin-bottom: 4px; }
.service__includes .checks { margin-top: 14px; }

/* About */
.about-mark { display: grid; place-items: center; min-height: 320px; padding: 48px; border-radius: var(--radius-lg); background: var(--bg); }
.tiles--mark { position: static; width: min(240px, 70%); }

.numbers { background: var(--navy); color: #fff; }
.numbers__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding-block: 44px; }
.numbers__list strong { display: block; margin-bottom: 6px; color: var(--teal-light); font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers__list span { color: rgba(255, 255, 255, .78); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact__form { padding: clamp(22px, 14px + 2vw, 36px); }

.form { display: grid; gap: 18px; margin-top: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { color: var(--muted); font-size: .92rem; }

.field label { display: block; margin-bottom: 6px; font-size: .98rem; font-weight: 600; }
.field__optional { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); outline: none; }
.field--error input,
.field--error textarea { border-color: var(--danger); }
.field__error { margin-top: 6px; color: var(--danger); font-size: .92rem; }

.notice { padding: 16px 18px; border-radius: 10px; }
.notice--error { margin-top: 14px; background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.notice--done { display: grid; gap: 12px; justify-items: start; background: var(--done-soft); }
.notice--done .h3 { margin: 0; color: var(--done); }

.contact__block { padding-block: 24px; border-top: 1px solid var(--line); }
.contact__block:first-child { padding-top: 0; border-top: 0; }
.contact__block p { margin-bottom: 14px; color: var(--muted); }
.contact__list { display: grid; gap: 12px; list-style: none; padding: 0; }
.contact__list li { display: flex; align-items: flex-start; gap: 12px; }
.contact__list .icon { margin-top: 2px; color: var(--teal); }
.contact__next { display: grid; gap: 8px; padding-left: 22px; color: var(--muted); }

/* Written pages (the privacy policy, blog articles) */
.prose { padding-block: 48px 96px; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; color: var(--navy); font-size: 1.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -.018em; }
.prose h3 { margin-top: 1.6em; color: var(--navy); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius-md); }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--tint); color: var(--muted); }
.article__date { color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.post-card { overflow: hidden; padding: 0; }
.post-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card__date { margin-bottom: 8px; font-size: .9rem; }
.post-card .h3 a { color: var(--navy); text-decoration: none; }
.post-card .h3 a:hover { color: var(--teal); }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.nav-links .current { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-strong); font-weight: 700; }

.notfound__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: .98rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.5fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.site-footer__brand img { width: 180px; height: 32px; }
.site-footer__brand p { max-width: 34ch; margin-top: 14px; }
.site-footer__brand .site-footer__tagline { margin-top: 18px; color: #fff; font-weight: 700; }
.site-footer__title { margin-bottom: 14px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; list-style: none; padding: 0; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--teal-light); }
.site-footer__social { display: flex !important; flex-wrap: wrap; gap: 16px !important; margin-top: 18px; }
.site-footer__address { color: rgba(255, 255, 255, .6); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

/* --- Asking before counting visits --------------------------------------- */

.consent { position: fixed; z-index: 60; left: 16px; bottom: 16px; display: grid; gap: 14px; width: min(420px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-lg); font-size: .95rem; }
.consent[hidden] { display: none; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Smaller screens ----------------------------------------------------- */

@media (max-width: 1020px) {
	.hero__grid,
	.feature,
	.split,
	.contact,
	.service { grid-template-columns: minmax(0, 1fr); }
	.hero__grid { gap: 40px; }
	.feature { gap: 32px; }
	.feature--flip .feature__text { order: 0; }
	.service { gap: 24px; }
	.hero__visual { max-width: 720px; }
	.cards--3,
	.roles,
	.steps,
	.posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta__in { flex-direction: column; align-items: flex-start; }
	.tiles--page,
	.tiles--band { display: none; }
}

@media (max-width: 860px) {
	/* The links fold away behind a button. Without JavaScript (no .js on <html>) they stay in view. */
	.js .nav-toggle { display: inline-flex; }
	.js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 20px 30px -20px rgba(11, 31, 42, .25); }
	.js .nav.is-open { display: flex; }
	.js .nav__list { flex-direction: column; gap: 2px; }
	.js .nav__list a { padding: 14px 12px; font-size: 1.05rem; }
	html:not(.js) .site-header__in { flex-wrap: wrap; padding-block: 10px; }
	html:not(.js) .nav { flex-wrap: wrap; }
}

@media (max-width: 640px) {
	:root { --gutter: 20px; --header: 64px; }
	.logo img { width: 158px; height: 28px; }
	.cards--3,
	.cards--2,
	.roles,
	.steps,
	.steps--3,
	.posts,
	.form__row,
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.numbers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__actions .btn,
	.cta__actions .btn { flex: 1 1 100%; }
	.cta__actions { width: 100%; }
	.hero__visual { padding: 16px 0 40px 28px; }
	.tiles--hero { right: -20px; width: 150px; }
	.phone { width: 28%; border-width: 4px; border-radius: 16px; }
	.phone img { border-radius: 12px; }
	.card--row { flex-direction: column; gap: 14px; }
	.facts__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.about-mark { min-height: 220px; padding: 32px; }
	.section__head { margin-bottom: 32px; }
	.faq__item summary { padding: 16px 18px; }
	.faq__a { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header,
	.site-footer,
	.cta,
	.consent,
	.nav-toggle { display: none; }
}

/* --- The client questionnaire ---------------------------------------------- */

.qintro { margin-bottom: 22px; color: var(--muted); font-size: 1.02rem; }
.qform { gap: 22px; margin-top: 0; }
.qsection { padding: clamp(20px, 12px + 2vw, 32px); }
.qsection .h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 1.3rem; }
.qsection__n { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-strong); font-size: .95rem; font-weight: 800; }
.qsection__lead { margin-bottom: 4px; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 18px; }
.qgrid .field--wide { grid-column: 1 / -1; }
/* Two fields side by side line up at the foot, whichever has the longer question. */
.qgrid .field:not(.field--wide) { align-self: end; }
.qgrid .field textarea { min-height: 0; }
.qgrid fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.qgrid legend { padding: 0; margin-bottom: 8px; font-size: .98rem; font-weight: 600; }
.field__about { margin: -4px 0 8px; color: var(--muted); font-size: .95rem; }
.field__options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; display: inline-flex; cursor: pointer; }
.field .option input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.option span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font-size: .96rem; line-height: 1.3; }
.option input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); font-weight: 600; }
.option input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
/* An extra: its name and what it is on the left, the three answers on the right. */
.qgrid .field--extra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.qgrid .field--extra:first-child { padding-top: 0; border-top: 0; }
.field--extra legend { float: left; grid-column: 1; margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.field--extra .field__about { grid-column: 1; margin: 0; }
.field--extra .field__options { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
.qtable { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.qtable__head { color: var(--muted); font-size: .88rem; font-weight: 600; }
.qsend { display: grid; gap: 12px; justify-items: start; }

@media (max-width: 700px) {
	.qgrid { grid-template-columns: minmax(0, 1fr); }
	.qgrid .field--extra { grid-template-columns: minmax(0, 1fr); }
	.field--extra .field__options { grid-column: 1; grid-row: auto; margin-top: 8px; }
	.qtable { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.qtable__head { display: none; }
	.qtable input:nth-of-type(3n + 1) { margin-top: 10px; }
}
