/* getrelyo.com — AutoLingo's editorial system in Relyo's colours.
   Newsreader (display) · Hanken Grotesk (interface) · IBM Plex Mono (data only).
   Every text colour meets WCAG 2.1 AA on its ground; no script, no third party. */

@import url("/fonts/fonts.css");

:root {
	/* Grounds: whites tinted toward the shield's blue */
	--bg: #f7f9fc;
	--bg-2: #eef3f8;
	--surface: #fff;

	/* Ink: the wordmark's navy, then two steps down */
	--ink: #0f234e;
	--ink-2: #34446a;   /* 9.6:1 on white */
	--muted: #56627c;   /* 6.0:1 on white, 5.7:1 on --bg */

	--line: #dbe3ee;
	--line-2: #e9eef5;

	/* Brand: the shield's teal-to-blue */
	--teal: #0b6f78;        /* text accent — 5.8:1 on white */
	--teal-bright: #11948b; /* marks and fills, never body text — 3.5:1 on --bg, 3.3:1 on --bg-2 (RGAA 3.3) */
	--teal-tint: #e3f3f2;
	--blue: #1c4f9c;

	/* States used by the scan */
	--fault: #b42318;
	--good: #0b6b3a;

	/* Night band and footer */
	--night: #0b1a3c;
	--night-ink: #e6edf7;
	--night-muted: #b7c4da;
	--night-accent: #7fd6cf;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--radius: 14px;
	--radius-sm: 9px;
	--radius-lg: 22px;
	--maxw: 1180px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow-sm: 0 1px 2px rgb(15 35 78 / 0.05), 0 2px 8px rgb(15 35 78 / 0.04);
	--shadow: 0 4px 14px rgb(15 35 78 / 0.07), 0 18px 50px rgb(15 35 78 / 0.08);
	--shadow-lg: 0 10px 30px rgb(15 35 78 / 0.1), 0 40px 90px rgb(28 79 156 / 0.14);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #b9c6d8 var(--bg); }

body {
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-2);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

::selection { background: var(--teal-tint); color: var(--ink); }

h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
p, li { text-wrap: pretty; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

.display {
	font-family: var(--serif);
	font-weight: 400;
	font-variation-settings: "opsz" 72;
	letter-spacing: -0.025em;
	line-height: 1.02;
}
.display em { font-style: italic; color: var(--teal); }

.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }

.skip-link {
	position: absolute; left: 16px; top: -120px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 249 252 / 0.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .mark-logo { height: 32px; width: auto; }
.brand .wordmark { height: 23px; width: auto; }
.nav-main { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang a, .lang span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang span { background: var(--ink); color: #fff; }
.menu { display: none; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font: 600 15px/1.2 var(--sans); padding: 14px 22px; border-radius: 11px;
	text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
	transition: transform 0.18s var(--ease), box-shadow 0.18s, background-color 0.18s, border-color 0.18s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-brand { color: #fff; background: linear-gradient(180deg, #0d7d84 0%, var(--teal) 100%); box-shadow: 0 6px 18px rgb(11 111 120 / 0.28); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgb(11 111 120 / 0.36); }
.btn-ink { color: #fff; background: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ink:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); transform: translateY(-2px); }
.btn-small { padding: 10px 16px; font-size: 14px; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 112px 0; }
.section-white { background: var(--surface); border-block: 1px solid var(--line-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2, .h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 72px 0 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 5rem); margin-bottom: 26px; }
.hero .lead { margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 24px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; }
.fine li { display: inline-flex; align-items: center; gap: 7px; }
.fine svg { width: 14px; height: 14px; color: var(--teal); }

/* Browser frame (shared by the scan and the screenshots) */
.frame { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), 0 0 0 1px rgb(15 35 78 / 0.06); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #fbfcfe; }
.frame-bar > span:not(.frame-url) { width: 10px; height: 10px; border-radius: 50%; background: #e3e7ee; }
.frame-url { margin-left: 10px; flex: 1; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 7px; padding: 5px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame img { width: 100%; }
figure.frame figcaption { padding: 12px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line-2); }

/* ── The scan: Relyo checks a product page, then fixes it ─ */
.scan { position: relative; }
.scan .frame { overflow: visible; }
.scan-page { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 30px 30px 40px; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.scan-photo { position: relative; border-radius: 12px; background: linear-gradient(160deg, #f2ede4, #e3dbcd); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.scan-photo img { width: 58%; }
.scan-info { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.scan-cat { font-size: 12px; color: var(--muted); }
.scan-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--ink); }
.scan-price { position: relative; font-size: 22px; font-weight: 600; min-height: 1.4em; }
.scan-price::after { content: attr(data-price); color: #c3c7cf; animation: to-ink 0.5s var(--ease) 2.95s both; }
.scan-lines span { display: block; height: 7px; border-radius: 4px; background: var(--line-2); margin-bottom: 8px; }
.scan-lines span:nth-child(2) { width: 86%; }
.scan-lines span:nth-child(3) { width: 64%; }
.scan-buy { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.scan-cart { flex: 1; text-align: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px; border-radius: 9px; }
.scan-heart { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); }
.scan-heart svg { width: 18px; }

.scan-sweep { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.scan-sweep::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgb(17 148 139 / 0) 72%, rgb(17 148 139 / 0.14) 92%, rgb(17 148 139 / 0.45));
	border-bottom: 2px solid var(--teal-bright);
	transform: translateY(-100%); opacity: 0;
	animation: sweep 1.8s linear 0.5s both;
}

/* A fault marker: it appears at --at, turns into a fix at --fix */
.mark {
	position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
	font: 600 12px/1 var(--sans); white-space: nowrap; padding: 5px 10px 5px 5px; border-radius: 999px;
	color: var(--fault); background: var(--surface); border: 1px solid #f3c6c1; box-shadow: var(--shadow);
	animation: mark-in 0.45s var(--ease) var(--at) both, mark-fix 0.45s var(--ease) var(--fix) both;
}
.mark .mark-code { font: 500 11px/1 var(--mono); color: #fff; background: var(--fault); border-radius: 999px; padding: 4px 7px; animation: badge-fix 0.45s var(--ease) var(--fix) both; }
.mark-label { display: grid; }
.mark-label > span { grid-area: 1 / 1; }
.mark-label .t-fault { animation: swap-out 0.25s ease var(--fix) both; }
.mark-label .t-ok { opacity: 0; animation: swap-in 0.35s var(--ease) calc(var(--fix) + 0.15s) both; }
.mark-1 { --at: 0.75s; --fix: 2.75s; left: 12px; top: 14px; }
.mark-2 { --at: 1.1s; --fix: 3s; left: 96px; top: -2px; }
.mark-3 { --at: 1.85s; --fix: 3.25s; right: 0; top: calc(100% + 10px); }

.alt-chip {
	position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
	font: 500 12px/1.4 var(--mono); color: var(--ink); background: rgb(255 255 255 / 0.95);
	border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px;
	animation: type 1.2s steps(30, end) 2.85s both;
}
.alt-chip span { color: var(--teal); }

.score {
	position: absolute; right: 22px; bottom: -30px; z-index: 3;
	display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
	background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(15 35 78 / 0.06);
}
.score-ring {
	--score: 71; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--teal-bright) calc(var(--score) * 1%), var(--line-2) 0);
	animation: score 1.3s var(--ease) 3.4s both;
}
.score-ring::after { counter-reset: s var(--score); content: counter(s); font: 600 17px/1 var(--sans); color: var(--ink); }
.score-label { font-size: 12px; line-height: 1.35; color: var(--muted); }
.score-label strong { display: block; font-size: 14px; color: var(--ink); }

@property --score { syntax: "<integer>"; inherits: true; initial-value: 71; }

@keyframes sweep {
	0% { transform: translateY(-100%); opacity: 0; }
	6% { opacity: 1; }
	92% { opacity: 1; }
	100% { transform: translateY(0); opacity: 0; }
}
@keyframes mark-in { from { opacity: 0; transform: translateY(6px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes mark-fix { to { color: var(--good); border-color: #b9e1c8; } }
@keyframes badge-fix { to { background: var(--good); } }
@keyframes swap-out { to { opacity: 0; visibility: hidden; } }
@keyframes swap-in { to { opacity: 1; } }
@keyframes to-ink { to { color: var(--ink); } }
@keyframes type { from { clip-path: inset(0 100% 0 0 round 9px); } to { clip-path: inset(0 0 0 0 round 9px); } }
@keyframes score { from { --score: 71; } to { --score: 98; } }

/* ── Standards strip ────────────────────────────────────── */
.strip { border-block: 1px solid var(--line-2); background: var(--surface); }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 36px; padding-block: 22px; font-size: 15px; color: var(--muted); }
.strip strong { color: var(--ink); font-weight: 600; }

/* ── Overlay comparison ─────────────────────────────────── */
.versus { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: 15px; }
.matrix thead tr > :first-child { border-top-left-radius: var(--radius); }
.matrix thead tr > :last-child { border-top-right-radius: var(--radius); }
.matrix tbody tr:last-child > :first-child { border-bottom-left-radius: var(--radius); }
.matrix tbody tr:last-child > :last-child { border-bottom-right-radius: var(--radius); }
.matrix caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted); padding: 14px 4px 0; }
.matrix th, .matrix td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th, .matrix thead td { font-size: 13px; font-weight: 600; color: var(--muted); background: #fbfcfe; }
.matrix thead th:last-child { color: var(--teal); }
.matrix tbody th { color: var(--ink); font-weight: 600; width: 28%; }
.matrix tbody td:last-child { color: var(--ink); background: rgb(227 243 242 / 0.5); }
.cell { display: flex; gap: 10px; align-items: flex-start; }
.cell svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.cell .no { color: var(--fault); }
.cell .yes { color: var(--good); }

/* ── Steps: check, understand, fix ──────────────────────── */
.steps { list-style: none; }
.step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.step + .step { margin-top: 112px; }
.step:nth-child(even) .step-text { order: 2; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 13px; height: 7px; border-left: 2.5px solid var(--teal-bright); border-bottom: 2.5px solid var(--teal-bright); transform: rotate(-45deg); }
.shot { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.shot:hover { transform: translateY(-4px); }

/* ── Criteria field: 106 squares, one per RGAA criterion ── */
.criteria { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.crit-field { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; padding: 26px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px rgb(15 35 78 / 0.06); }
.crit-field span { aspect-ratio: 1; border-radius: 5px; }
.c-auto { background: var(--teal-bright); }
.c-next { box-shadow: inset 0 0 0 2px var(--teal-bright); }
.c-human { background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 5px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.legend { list-style: none; display: grid; gap: 20px; margin-top: 34px; }
.legend li { display: grid; grid-template-columns: 20px 3.2rem 1fr; gap: 14px; align-items: baseline; }
.legend .swatch { width: 18px; height: 18px; border-radius: 5px; transform: translateY(2px); }
.legend strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--ink); }

/* ── Pricing ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 940px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 15px; font-weight: 600; color: var(--teal); }
.price { font-family: var(--serif); font-size: 3.6rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin: 14px 0 6px; }
.price small { display: inline-block; white-space: nowrap; font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); }
.plan .ticks { flex: 1; margin: 26px 0 32px; }
.plan .btn { width: 100%; }
.plan-pro { background: var(--night); border-color: var(--night); color: var(--night-ink); box-shadow: var(--shadow-lg); }
.plan-pro h3 { color: var(--night-accent); }
.plan-pro .price { color: #fff; }
.plan-pro .price small, .plan-pro .muted { color: var(--night-muted); }
.plan-pro .ticks li::before { border-color: var(--night-accent); }
.plan-badge { position: absolute; top: -13px; left: 36px; font-size: 12px; font-weight: 600; color: var(--night); background: var(--night-accent); padding: 5px 12px; border-radius: 999px; }
.plans-note { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.plan .btn + .btn { margin-top: 12px; }
/* The CMS choice on the home page: two plan cards named after their CMS */
.plan-cms h3 { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.plan-cms .cms-for { margin-top: 12px; color: var(--ink-2); }
.plan-more { margin-top: 16px; text-align: center; font-size: 15px; }

/* ── Article cards ──────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.post-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--night); }
.cover::after { content: ""; position: absolute; left: 50%; bottom: 22%; width: 44px; height: 3px; border-radius: 2px; background: var(--night-accent); transform: translateX(-50%); transition: width 0.45s var(--ease); }
.post-card:hover .cover::after { width: 96px; }
.cover span { transition: transform 0.45s var(--ease); }
.post-card:hover .cover span { transform: translateY(-4px); }
.cover span { position: relative; top: -6%; font-family: var(--serif); font-style: italic; font-size: 4rem; line-height: 1; color: #fff; letter-spacing: -0.03em; }
.cover-1 { background: #13244a; }
.cover-2 { background: #22304f; }
.cover-3 { background: #0c3b45; }
.cover-4 { background: #1b2350; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.post-meta > span:not(.dot), .post-meta > time { white-space: nowrap; }
.post-meta > :not(.dot):not(.read) + :not(.dot):not(.read)::before { content: "·"; margin-right: 8px; }
/* The reading time takes its own line: no separator can ever start a line */
.post-meta .read { flex-basis: 100%; padding-left: 15px; }
.article-head .post-meta .read { flex-basis: auto; padding-left: 0; }
.article-head .post-meta .read::before { content: "·"; margin-right: 8px; }
.post-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); }
.post-title { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.18; letter-spacing: -0.01em; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-title a:focus-visible { outline: none; }
.post-card:has(.post-title a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-feature { grid-column: 1 / -1; }
.post-feature .post-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.post-feature .cover { aspect-ratio: auto; min-height: 340px; }
.post-feature .cover span { font-size: 6rem; }
.post-feature .post-body { justify-content: center; padding: 44px; gap: 14px; }
.post-feature .post-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.faq details + details { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 28px; cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink); border-radius: var(--radius-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal); }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 28px 24px; max-width: 64ch; }

/* ── Night band ─────────────────────────────────────────── */
.night { background: var(--night); color: var(--night-ink); }
.night h2 { color: #fff; }
.night .lead, .night p { color: var(--night-muted); }
.night .display em { color: var(--night-accent); }
.night .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.35); }
.night .btn-ghost:hover { border-color: #fff; color: #fff; }
.closing { padding: 112px 0; text-align: center; }
.closing h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 18px; }
.closing .actions { justify-content: center; margin-top: 34px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--night); color: var(--night-muted); border-top: 1px solid rgb(255 255 255 / 0.08); padding: 64px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid .tagline { margin-top: 16px; max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--night-ink); }
.foot-grid h2 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 14px; }
.brand-night .wordmark { filter: brightness(0) invert(1); }

/* ── Page heads (blog, Pro, legal) ──────────────────────── */
.page-head { padding: 80px 0 56px; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: 20px; }

/* ── Article ────────────────────────────────────────────── */
.article-head { padding: 56px 0 40px; }
.article-head .post-meta { margin-bottom: 22px; }
.article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 22px; text-wrap: balance; }
.back { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; margin-bottom: 30px; }
.back svg { width: 16px; height: 16px; }
.prose { max-width: 68ch; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.15; letter-spacing: -0.015em; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { color: var(--ink); background: var(--bg-2); }
.prose .note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.prose .sources { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 3em; }
.prose .sources h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-top: 0; }
.cta-box { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 32px; border-radius: var(--radius-lg); background: var(--night); }
.cta-box p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: #fff; max-width: 24ch; margin: 0; }
.read-next { padding: 80px 0 112px; }
.read-next h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin-bottom: 28px; }

/* ── Plain pages ────────────────────────────────────────── */
.plain { padding: 0 0 112px; }
.plain .prose h2 { font-size: 1.6rem; }

/* ── Scroll-tied motion, only where the browser supports it ─ */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.crit-field span { animation: fill-in linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
		.crit-field span:nth-child(3n + 1) { animation-range: entry 10% cover 40%; }
		.crit-field span:nth-child(3n + 2) { animation-range: entry 15% cover 45%; }
		.shot { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
	}
}
@keyframes fill-in { from { transform: scale(0.55); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(56px) scale(0.96); } to { transform: none; } }

/* Reduced motion: the scan shows its result at once, fixes included */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
	.scan-sweep::before { display: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1020px) {
	.nav-links { gap: 20px; }
	.hero-grid, .versus, .criteria, .step, .post-feature .post-card { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.post-feature .post-card { gap: 0; }
	.step:nth-child(even) .step-text { order: 0; }
	.posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	body { font-size: 16px; }
	.wrap { padding: 0 20px; }
	.section, .closing { padding: 80px 0; }
	.hero { padding: 48px 0 88px; }
	.nav-main, .nav-tools .btn { display: none; }
	.menu { display: block; position: relative; }
	.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
	.menu summary::-webkit-details-marker { display: none; }
	.menu ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; }
	.menu a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
	.menu a:hover { background: var(--bg-2); }
	.nav-tools { margin-left: auto; }
	.scan-page { padding: 20px 20px 34px; gap: 16px; }
	.scan-title { font-size: 20px; }
	.score { right: 12px; }
	.posts, .plans { grid-template-columns: minmax(0, 1fr); }
	.crit-field { grid-template-columns: repeat(10, 1fr); padding: 18px; gap: 5px; }
	.matrix th, .matrix td { padding: 14px 12px; }
	.foot-grid { grid-template-columns: minmax(0, 1fr); }
	.post-feature .post-body { padding: 28px; }
	.prose { font-size: 17px; }
}
@media (max-width: 480px) {
	.scan-page { grid-template-columns: minmax(0, 1fr); padding-bottom: 58px; }
	.scan-photo { aspect-ratio: 1; align-content: start; padding-top: 44px; }
	.scan-photo img { width: 34%; }
	.alt-chip { font-size: 11px; padding: 6px 8px; }
	.score { position: relative; right: auto; bottom: auto; width: fit-content; margin: 14px 0 0 auto; }
	.mark { font-size: 11px; }
	.mark-2 { left: auto; right: 0; }
	.lang a, .lang span { padding: 5px 9px; }
	.brand .wordmark { height: 19px; }
	.brand .mark-logo { height: 28px; }
}

/* ── Small pieces used by the generator ─────────────────── */
.vs-more { margin-top: 22px; font-weight: 600; }
.more-link { margin-top: 36px; }
.blog-list { padding-bottom: 112px; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: flow; }
.flow .plan { counter-increment: flow; }
.flow .plan::before { content: counter(flow); font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--teal); margin-bottom: 18px; }
.flow-h { font-family: var(--serif); font-weight: 500; font-size: 1.5rem !important; color: var(--ink) !important; margin-bottom: 10px; }
.inc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: center; }
.inc .plan-pro .btn { margin-top: 26px; }
.inc .plan-pro .fine { margin-top: 18px; color: var(--night-muted); }
@media (max-width: 1020px) { .flow, .inc { grid-template-columns: minmax(0, 1fr); } }

.shot-pro { max-width: 560px; justify-self: end; }
@media (max-width: 1020px) { .shot-pro { justify-self: start; } }

/* On navy grounds, buttons sit on a neutral shadow, not a coloured glow */
.night .btn-brand, .plan-pro .btn-brand, .cta-box .btn-brand { box-shadow: 0 6px 18px rgb(0 0 0 / 0.3); }
.night .btn-brand:hover, .plan-pro .btn-brand:hover, .cta-box .btn-brand:hover { box-shadow: 0 10px 26px rgb(0 0 0 / 0.38); }
.btn-ink:hover, .btn-ink:focus-visible { color: #fff; background: #1a3570; }

/* Text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.prose caption { caption-side: top; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); padding-bottom: 10px; }

/* Reflow at 320 px (RGAA 10.11) and forced text spacing (10.12): nothing may push the page wider */
.frame, .shot-pro { min-width: 0; max-width: 100%; }
.shot-pro { width: 100%; }
.hero-grid > *, .step > *, .inc > *, .versus > *, .criteria > * { min-width: 0; }
.matrix, .prose table { table-layout: auto; }
.matrix th, .matrix td, .prose th, .prose td { overflow-wrap: anywhere; hyphens: auto; }
.prose code, .prose a { overflow-wrap: anywhere; }
@media (max-width: 480px) {
	.matrix { font-size: 14px; }
	.matrix th, .matrix td { padding: 12px 9px; }
	.prose table { font-size: 14px; }
	.prose th, .prose td { padding: 10px 8px; }
	.btn { white-space: normal; text-align: center; }
}

/* Long single words (e.g. "Confidentialité") may hyphenate rather than overflow at 320 px or with forced spacing */
.display, h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* Focus on navy grounds: the light accent keeps 10:1 (RGAA 10.7, 3.3) */
.night :focus-visible, .site-footer :focus-visible, .plan-pro :focus-visible, .cta-box :focus-visible { outline-color: var(--night-accent); }
.prose tbody th { color: var(--ink); font-weight: 600; background: none; }

/* Audit grid */
.prose table.audit { margin-top: 2em; font-size: 15px; }
.prose table.audit caption { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.prose table.audit tbody th { white-space: nowrap; font-family: var(--mono); font-size: 13px; font-weight: 500; }

/* ── Free test scan: form, home band, results ───────────── */
.scan-band { padding: 88px 0; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.scan-band-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.scan-form { margin-top: 28px; }
.scan-band .scan-form { margin-top: 0; padding: 28px; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px rgb(15 35 78 / 0.06); }
.field label, .checks legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field input[type="text"], .field input[type="email"], .field textarea {
	flex: 1 1 240px; min-width: 0; font: 400 17px/1.3 var(--sans); color: var(--ink); background: var(--surface);
	border: 1.5px solid #7d889c; border-radius: 11px; padding: 13px 15px;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--fault); }
.field-help { margin-top: 10px; font-size: 15px; color: var(--muted); }
.field-error { margin: 0 0 14px; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: #8f1d13; font-size: 15px; }
.hp { display: none; }
.checks { border: 0; margin: 18px 0 22px; }
.checks p { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.checks input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.privacy-link { margin-left: 14px; font-size: 15px; }
.contact-form { margin-top: 28px; padding: 28px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px rgb(15 35 78 / 0.06); }
.contact-form .field { margin-bottom: 22px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { display: block; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 10rem; line-height: 1.5; }
.contact-form .field-help { display: block; }
.contact-form .field-error { display: block; }
.contact-or { margin-top: 22px; color: var(--ink-2); }
.pro-thanks .field { margin-top: 28px; }
.pro-thanks .btn { margin-top: 20px; }
.pro-thanks h2 { margin-top: 44px; font-family: var(--serif); font-weight: 500; font-size: 1.8rem; }
.pro-steps { margin: 14px 0 28px; padding-left: 1.4em; display: grid; gap: 10px; }

.result-head { padding-bottom: 32px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.result-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin-top: 8px; font-size: 15px; }
.result-facts dt { color: var(--muted); }
.result-facts dd { color: var(--ink); font-weight: 600; min-width: 0; }
.result-facts .url { overflow-wrap: anywhere; }
.result-score { position: relative; width: 168px; height: 168px; }
.result-score svg { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--teal-bright); stroke-width: 10; stroke-linecap: round; }
.result-score span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 15px; color: var(--muted); }
.result-score strong { font-family: var(--serif); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--ink); }
.result-body { padding-bottom: 112px; }
.result-body > section { margin-top: 48px; }
.result-body h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin-bottom: 14px; }
.note-block { padding: 22px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm), 0 0 0 1px rgb(15 35 78 / 0.06); }
.note-block h2 { font-family: var(--sans) !important; font-size: 1rem !important; font-weight: 600 !important; margin-bottom: 6px !important; }
.note-block p { font-size: 15px; color: var(--ink-2); }
.problems { list-style: none; display: grid; gap: 16px; }
.problem { padding: 22px 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm), 0 0 0 1px rgb(15 35 78 / 0.06); }
.problem h3 { font-size: 1.15rem; margin-bottom: 6px; }
.problem-meta { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.problem .sev { font-weight: 600; }
.sev-critical .sev { color: var(--fault); }
.sev-serious .sev { color: #8a4b00; }
.problem-example { margin-top: 10px; font-size: 14px; }
.problem-example code { font-family: var(--mono); font-size: 13px; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.cms-block, .report-block { padding: 28px; border-radius: var(--radius-lg); }
.cms-block { background: var(--teal-tint); }
.report-block { background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px rgb(15 35 78 / 0.06); }
.cms-block .btn, .report-block .btn { margin-top: 8px; }
.again { margin-top: 40px; font-weight: 600; }

.share-block { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px rgb(15 35 78 / 0.06); }
.share-block .field { margin-top: 16px; }
.share-block input { width: 100%; font-family: var(--mono); font-size: 14px; color: var(--ink); }
.share-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* While the free test runs: the page arrives in two parts (no script here), this block first;
   it goes as soon as the answer is there. A loading indicator: its motion stops with reduced motion. */
.scan-wait { padding: 72px 0 112px; }
.wait-card { position: relative; padding: 32px 32px 28px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 0 1px rgb(15 35 78 / 0.06); }
.wait-title { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 2.8rem); line-height: 1.1; color: var(--ink); }
.wait-url { margin-top: 10px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.wait-steps { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.wait-steps li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.wait-steps li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal-bright); background: var(--surface); animation: step-on 0.4s ease forwards; }
.wait-steps li:nth-child(1)::before { animation-delay: 0.3s; }
.wait-steps li:nth-child(2)::before { animation-delay: 1.8s; }
.wait-steps li:nth-child(3)::before { animation-delay: 3.6s; }
.wait-bar { height: 4px; margin-top: 28px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.wait-bar::before { content: ""; display: block; width: 36%; height: 100%; border-radius: 4px; background: var(--teal-bright); animation: wait-slide 1.4s ease-in-out 20; }
body:has(.scan-done) .scan-wait { display: none; }
@keyframes step-on { to { background: var(--teal-bright); box-shadow: 0 0 0 4px var(--teal-tint); } }
@keyframes wait-slide { from { transform: translateX(-100%); } to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) { .wait-bar::before { width: 100%; opacity: 0.35; } }
@media (max-width: 1020px) { .scan-band-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 600px) { .result-grid { grid-template-columns: minmax(0, 1fr); } .result-score { width: 140px; height: 140px; } .field-row .btn { width: 100%; } }
