/* ==========================================================================
   Naked Video Call - design system
   Palette: Lavender Haze  |  Direction: thin line-art minimal
   Edges: friendly layered radii, shadows kept for lift only
   Accent strategy: tinted section panels (the accent is never body text)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   --accent is for fills and the CTA. --link is the text-safe pair: the raw
   accent measures 4.42 on the gate tint in light and 3.65 on the dark base,
   so it never carries small text in either theme.
   -------------------------------------------------------------------------- */

:root {
	--bg: #F7F5FC;
	--surface: #FFFFFF;
	--text: #241F3D;
	--muted: #5D5878;
	--accent: #6D5BD0;
	--accent2: #B9AEF0;
	--tint: #F1EDFB;
	--gate: #EFEBFB;
	--link: #5F4DC4;
	--line: #CFC6EA;
	--line-strong: #8877D6;
	--on-accent: #FFFFFF;
	--shadow-1: 0 1px 2px rgba(36, 31, 61, .05), 0 8px 24px rgba(36, 31, 61, .07);
	--shadow-2: 0 1px 2px rgba(36, 31, 61, .06), 0 18px 38px rgba(36, 31, 61, .10);

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;

	--r-card: 24px;
	--r-btn: 16px;
	--r-chip: 12px;

	/* Base is 18px, not 16. The reading column and the 65-75 character
	   target only reconcile at a larger body: 42rem at 18px measures ~74
	   characters a line, where 44rem at 16px runs to ~88. */
	--fs-1: 0.875rem;
	--fs-0: 1.125rem;
	--fs-1u: 1.4rem;
	--fs-2u: 1.75rem;
	--fs-3u: 2.2rem;
	--fs-4u: 2.75rem;

	--font-head: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--pad: clamp(16px, 4vw, 32px);
	--container: 1140px;
	--column: 42rem;

	--z-cookie: 25;
	--z-header: 30;
	--z-scrim: 40;
	--z-panel: 41;
	--z-progress: 45;

	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #15131F;
	--surface: #1C1929;
	--text: #E9E6F5;
	--muted: #A9A3C4;
	--accent: #6F5DD3;
	--accent2: #9C8FE8;
	--tint: #221E33;
	--gate: #221E33;
	--link: #9C8FE8;
	--line: #3B3554;
	--line-strong: #7C72A8;
	--on-accent: #FFFFFF;
	--shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
	--shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 38px rgba(0, 0, 0, .45);

	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-0);
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--font-head);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

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

.cdr-skip {
	position: absolute;
	left: -9999px;
	top: var(--space-2);
	background: var(--surface);
	color: var(--link);
	padding: var(--space-3) var(--space-4);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r-btn);
	z-index: 60;
}

.cdr-skip:focus {
	left: var(--space-4);
}

/* F-12: the scrollbar joins the palette instead of fighting it. */
* {
	scrollbar-color: var(--line-strong) transparent;
	scrollbar-width: thin;
}

::-webkit-scrollbar {
	width: 11px;
	height: 11px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--line-strong);
	border: 3px solid var(--bg);
	border-radius: 999px;
}

::selection {
	background: var(--accent2);
	color: var(--text);
}

/* --------------------------------------------------------------------------
   3. F-2 scroll progress
   -------------------------------------------------------------------------- */

.cdr-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: var(--z-progress);
	pointer-events: none;
	background: transparent;
}

.cdr-progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--accent2), var(--accent));
}

/* --------------------------------------------------------------------------
   4. Header - centred bar (E1-5)
   The three children are pinned to explicit columns. Left to auto-placement,
   a hidden start side lets the brand repack into columns 1-2 and clip off the
   left edge at phone widths.
   -------------------------------------------------------------------------- */

.cdr-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.cdr-header { background: var(--bg); }
}

.cdr-bar {
	max-width: var(--container);
	margin-inline: auto;
	padding: var(--space-2) var(--pad);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-3);
	min-height: 60px;
}

.cdr-bar__start {
	grid-column: 1;
	justify-self: start;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

.cdr-brand {
	grid-column: 2;
	justify-self: center;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
	text-decoration: none;
	color: var(--text);
}

.cdr-bar__end {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

.cdr-brand__mark {
	display: inline-grid;
	place-items: center;
	color: var(--link);
	flex: none;
}

.cdr-brand__name {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(0.95rem, 3.4vw, 1.15rem);
	letter-spacing: -0.015em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/* Icon-only buttons keep a fixed box. A shrink-to-fit flex button whose only
   child is an svg loses the icon entirely on iOS if the reset clamps svg
   width - hence the explicit grid box here and img-only max-width in the
   reset. */
.cdr-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: var(--r-chip);
	color: var(--text);
	border: 1.5px solid transparent;
	transition: border-color .18s ease, background-color .18s ease;
}

.cdr-iconbtn:hover {
	border-color: var(--line-strong);
	background: var(--tint);
}

/* F-1: sun and moon crossfade with a quarter turn. */
.cdr-themetoggle__sun,
.cdr-themetoggle__moon {
	grid-area: 1 / 1;
	transition: opacity .25s ease, transform .35s ease;
}

.cdr-themetoggle__moon {
	opacity: 0;
	transform: rotate(-60deg) scale(.6);
}

[data-theme="dark"] .cdr-themetoggle__sun {
	opacity: 0;
	transform: rotate(60deg) scale(.6);
}

[data-theme="dark"] .cdr-themetoggle__moon {
	opacity: 1;
	transform: none;
}

.cdr-burger__box {
	display: grid;
	gap: 4px;
	width: 20px;
}

.cdr-burger__line {
	display: block;
	height: 1.6px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}

.cdr-burger[aria-expanded="true"] .cdr-burger__line:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.cdr-burger[aria-expanded="true"] .cdr-burger__line:nth-child(2) { opacity: 0; }
.cdr-burger[aria-expanded="true"] .cdr-burger__line:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Language switcher - desktop dropdown and the in-sheet list
   -------------------------------------------------------------------------- */

.cdr-lang {
	position: relative;
}

.cdr-lang__button {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 44px;
	padding-inline: var(--space-3);
	border: 1.5px solid var(--line);
	border-radius: var(--r-chip);
	font-size: var(--fs-1);
	font-weight: 500;
	color: var(--text);
	transition: border-color .18s ease;
}

.cdr-lang__button:hover {
	border-color: var(--line-strong);
}

.cdr-lang__button svg {
	transition: transform .2s ease;
}

.cdr-lang__button[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.cdr-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 190px;
	padding: var(--space-2);
	background: var(--surface);
	border: 1.5px solid var(--line);
	border-radius: var(--r-btn);
	box-shadow: var(--shadow-1);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
}

.cdr-lang__menu.is-open {
	opacity: 1;
	transform: none;
}

.cdr-langlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdr-langlist li {
	min-width: 0;
}

/* TranslatePress drops a .trp-language-switcher-container INSIDE each <li>,
   wrapping the anchor. Padding both the wrapper and the anchor doubles every
   row and the switcher sprawls down the sheet - so the wrapper is neutralised
   and the tap target lives on the anchor alone. */
.cdr-langlist .trp-language-switcher-container,
.cdr-langlist .trp-language-switcher,
.cdr-langlist .trp-ls-shortcode-current-language,
.cdr-langlist .trp-ls-shortcode-language {
	display: block;
	padding: 0;
	margin: 0;
	min-height: 0;
	width: auto;
	height: auto;
	background: none;
	border: 0;
}

.cdr-langlist a,
.cdr-lang .trp-language-switcher a {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 44px;
	padding: 0 var(--space-3);
	border-radius: var(--r-chip);
	font-size: var(--fs-1);
	text-decoration: none;
	color: var(--text);
	white-space: nowrap;
}

.cdr-langlist a:hover,
.cdr-lang .trp-language-switcher a:hover {
	background: var(--tint);
	color: var(--link);
}

.cdr-langlist img,
.cdr-lang .trp-language-switcher img {
	flex: none;
	width: 18px;
	height: auto;
}

/* --------------------------------------------------------------------------
   6. Sheet - full-screen overlay, a root sibling so it clears the header and
   the cookie notice rather than fighting them for stacking context.
   -------------------------------------------------------------------------- */

.cdr-sheet[hidden] {
	display: none;
}

.cdr-locked {
	overflow: hidden;
}

.cdr-sheet__scrim {
	position: fixed;
	inset: 0;
	z-index: var(--z-scrim);
	background: rgba(20, 16, 34, .55);
	opacity: 0;
	transition: opacity .25s ease;
}

.cdr-sheet__panel {
	position: fixed;
	inset: 0;
	z-index: var(--z-panel);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4) var(--pad) var(--space-7);
	background: var(--bg);
	overflow-y: auto;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity .25s ease, transform .25s ease;
}

.cdr-sheet.is-open .cdr-sheet__scrim { opacity: 1; }

.cdr-sheet.is-open .cdr-sheet__panel {
	opacity: 1;
	transform: none;
}

.cdr-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	min-height: 44px;
}

.cdr-sheet__eyebrow {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--fs-1);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cdr-sheet__label {
	margin-block: var(--space-4) 0;
	font-size: var(--fs-1);
	font-weight: 500;
	color: var(--muted);
}

.cdr-sheet__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdr-sheet__links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-inline: var(--space-3);
	border-radius: var(--r-chip);
	text-decoration: none;
	color: var(--text);
}

.cdr-sheet__links a:hover {
	background: var(--tint);
	color: var(--link);
}

/* --------------------------------------------------------------------------
   7. The reading column
   The gutter sits on the container, so a component that zeroes its own
   padding can never lose it. Children only ever set a width and centre
   themselves; nothing here touches inline margins.
   -------------------------------------------------------------------------- */

.cdr-entry {
	padding-inline: var(--pad);
	padding-block: var(--space-6) var(--space-8);
}

.cdr-entry > :where(*:not(.cdr-gate)) {
	max-width: var(--column);
	margin-inline: auto;
}

.cdr-entry > .cdr-gate {
	max-width: 62rem;
	margin-inline: auto;
}

.cdr-entry h1 {
	margin-block: var(--space-6) var(--space-4);
	font-weight: 800;
	font-size: clamp(2rem, 6vw, var(--fs-4u));
	scroll-margin-top: 84px;
}

.cdr-entry h2 {
	margin-block: var(--space-7) var(--space-4);
	font-weight: 600;
	font-size: clamp(1.5rem, 4.4vw, var(--fs-2u));
	scroll-margin-top: 84px;
}

.cdr-entry h2::after {
	content: "";
	display: block;
	width: 46px;
	height: 1.5px;
	margin-block: var(--space-3) 0;
	background: var(--line-strong);
}

.cdr-entry p {
	margin-block: 0 var(--space-4);
}

.cdr-entry .wp-block-list {
	margin-block: 0 var(--space-4);
	padding-left: 1.35em;
	list-style: disc;
}

.cdr-entry .wp-block-list li {
	margin-block: 0 var(--space-2);
}

/* A general entry link rule outranks a button class on specificity alone, so
   buttons are excluded rather than patched afterwards. */
.cdr-entry a:not([class]) {
	color: var(--link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cdr-entry a:not([class]):hover {
	text-decoration-thickness: 2px;
}

.cdr-entry--plain {
	padding-block: var(--space-8);
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.cdr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: var(--space-3) var(--space-5);
	border-radius: var(--r-btn);
	background: var(--accent);
	background-image: none;
	color: var(--on-accent);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--fs-0);
	text-decoration: none;
	border: 1.5px solid var(--accent);
	box-shadow: var(--shadow-1);
	transition: box-shadow .22s ease, transform .22s ease;
}

.cdr-btn:hover {
	box-shadow: var(--shadow-2);
	transform: translateY(-2px);
	color: var(--on-accent);
}

.cdr-btn--small {
	min-height: 40px;
	padding: var(--space-2) var(--space-4);
	font-size: var(--fs-1);
	box-shadow: none;
}

.cdr-btn--go {
	width: 100%;
	max-width: 22rem;
}

/* --------------------------------------------------------------------------
   9. Age gate - a small bento (D-7). Only the decorative cell moves.
   -------------------------------------------------------------------------- */

.cdr-gate {
	margin-block: 0 var(--space-7);
	padding: clamp(20px, 4vw, 34px);
	background: var(--gate);
	border: 1.5px solid var(--line);
	border-radius: var(--r-card);
}

.cdr-gate__grid {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr;
}

.cdr-gate__cell {
	background: var(--surface);
	border: 1.5px solid var(--line);
	border-radius: 20px;
	padding: clamp(18px, 3.4vw, 28px);
}

.cdr-gate__cell--main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
}

.cdr-gate__cell--badge {
	display: grid;
	place-items: center;
	background: var(--tint);
}

.cdr-gate__cell--decor {
	position: relative;
	overflow: hidden;
	min-height: 92px;
	background: var(--tint);
}

/* Gate copy is scoped two classes deep on purpose: a single-class rule loses
   to .cdr-entry p, and the question ships at body size. */
.cdr-gate .cdr-gate__q {
	margin-block: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(1.35rem, 3.8vw, 1.75rem);
	line-height: 1.3;
	color: var(--text);
}

.cdr-gate .cdr-gate__sub {
	margin-block: 0;
	font-size: var(--fs-1);
	color: var(--muted);
}

.cdr-gate__badge {
	display: inline-grid;
	place-items: center;
	min-width: 76px;
	min-height: 76px;
	padding: var(--space-3);
	border: 1.5px solid var(--line-strong);
	border-radius: 18px;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: .02em;
	color: var(--link);
}

/* Legacy guard. An earlier build shipped a "returning visitor" variant that
   folded the gate into a compact strip, and that markup was written into the
   Home page in the database. The activation hook deliberately does not
   overwrite an existing page (client edits would be lost), so on an upgraded
   site the strip is still in the content - hidden here so it can never render
   as a second gate. New installs never contain it. */
.cdr-gate__compact {
	display: none !important;
}

.cdr-orb-x,
.cdr-orb-y {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}

.cdr-orb {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1.5px solid var(--line-strong);
	background: color-mix(in srgb, var(--accent2) 40%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
	.cdr-orb-x { animation: cdr-drift-x 13s ease-in-out infinite alternate; }
	.cdr-orb-y { animation: cdr-drift-y 17s ease-in-out infinite alternate; }
}

@keyframes cdr-drift-x {
	from { transform: translateX(-30%); }
	to { transform: translateX(30%); }
}

@keyframes cdr-drift-y {
	from { transform: translateY(-22%); }
	to { transform: translateY(22%); }
}

/* --------------------------------------------------------------------------
   10. Illustration
   -------------------------------------------------------------------------- */

.cdr-illus {
	margin-block: var(--space-6) var(--space-6);
}

.cdr-illus svg {
	width: 100%;
	height: auto;
}

.cdr-illus figcaption {
	margin-block: var(--space-3) 0;
	font-size: var(--fs-1);
	color: var(--muted);
	text-align: center;
}

.cdr-illus__panel {
	fill: var(--tint);
	stroke: var(--line);
	stroke-width: 1.5;
}

.cdr-illus__line,
.cdr-illus__fig,
.cdr-illus__accent,
.cdr-illus__soft {
	fill: none;
	stroke-width: 1.7;
}

.cdr-illus__line { stroke: var(--line); }
.cdr-illus__fig { stroke: var(--text); }
.cdr-illus__accent { stroke: var(--link); }
.cdr-illus__soft { stroke: var(--line-strong); opacity: .55; }

.cdr-illus__accentfill {
	fill: var(--accent2);
	stroke: var(--text);
	stroke-width: 1.7;
}

[data-theme="dark"] .cdr-illus__accentfill {
	fill: var(--accent);
}

/* --------------------------------------------------------------------------
   11. Quote callout
   -------------------------------------------------------------------------- */

.cdr-entry .wp-block-quote {
	position: relative;
	margin-block: var(--space-6);
	padding: var(--space-6) var(--space-5) var(--space-5);
	background: var(--tint);
	border: 1.5px solid var(--line);
	border-left: 3px solid var(--line-strong);
	border-radius: var(--r-card);
}

.cdr-entry .wp-block-quote::before {
	content: "\201C";
	position: absolute;
	top: -6px;
	left: 16px;
	font-family: var(--font-head);
	font-size: 4rem;
	line-height: 1;
	color: var(--accent2);
}

.cdr-entry .wp-block-quote p {
	margin-block: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(1.15rem, 3.4vw, 1.45rem);
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   12. Feature cards (F-7 tilt) - tinted panel, outlined tiles
   -------------------------------------------------------------------------- */

.cdr-cards {
	display: grid;
	gap: var(--space-3);
	grid-template-columns: 1fr;
	margin-block: var(--space-5) var(--space-6);
	padding: var(--space-4);
	background: var(--tint);
	border-radius: var(--r-card);
}

.cdr-card {
	padding: var(--space-5);
	background: var(--surface);
	border: 1.5px solid var(--line);
	border-radius: 20px;
	transform: perspective(900px) rotateX(var(--cdr-ry, 0deg)) rotateY(var(--cdr-rx, 0deg));
	transition: transform .3s ease, border-color .2s ease, box-shadow .3s ease;
	will-change: transform;
}

.cdr-card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-1);
}

.cdr-card__icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-block: 0 var(--space-3);
	border: 1.5px solid var(--line);
	border-radius: var(--r-chip);
	color: var(--link);
}

.cdr-card__title {
	margin-block: 0 var(--space-2);
	font-weight: 600;
	font-size: var(--fs-1u);
}

.cdr-entry .cdr-card__text {
	margin-block: 0;
	font-size: var(--fs-1);
	color: var(--muted);
	line-height: 1.65;
}

@media (hover: none) {
	.cdr-card {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   13. Comparison - two paired cards, four axes
   -------------------------------------------------------------------------- */

.cdr-compare {
	display: grid;
	gap: var(--space-3);
	grid-template-columns: 1fr;
	margin-block: var(--space-5) var(--space-6);
}

.cdr-compare__col {
	padding: var(--space-5);
	background: var(--surface);
	border: 1.5px solid var(--line);
	border-radius: var(--r-card);
}

.cdr-compare__col--this {
	background: var(--tint);
	border-color: var(--line-strong);
}

.cdr-compare__head {
	margin-block: 0 var(--space-3);
	padding-block: 0 var(--space-3);
	border-bottom: 1.5px solid var(--line);
	font-weight: 600;
	font-size: var(--fs-1u);
}

.cdr-compare__rows {
	display: grid;
	grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
	gap: var(--space-2) var(--space-4);
	margin: 0;
	font-size: var(--fs-1);
}

.cdr-compare__rows dt {
	color: var(--muted);
	font-weight: 500;
}

.cdr-compare__rows dd {
	margin: 0;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.cdr-footer {
	border-top: 1px solid var(--line);
	background: var(--tint);
}

.cdr-footer__inner {
	max-width: var(--container);
	margin-inline: auto;
	padding: var(--space-6) var(--pad);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	font-size: var(--fs-1);
}

.cdr-footer__mark,
.cdr-footer__note {
	margin: 0;
	color: var(--muted);
}

.cdr-footer__note {
	flex-basis: 100%;
}

.cdr-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdr-footer__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--link);
	text-decoration: none;
}

.cdr-footer__list a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   15. Cookie notice - a compact centred pill
   -------------------------------------------------------------------------- */

.cdr-cookie[hidden] {
	display: none;
}

.cdr-cookie {
	position: fixed;
	left: 50%;
	bottom: max(var(--space-4), env(safe-area-inset-bottom));
	z-index: var(--z-cookie);
	width: min(640px, calc(100vw - 2 * var(--space-4)));
	transform: translate(-50%, 14px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	background: var(--surface);
	border: 1.5px solid var(--line-strong);
	border-radius: var(--r-card);
	box-shadow: var(--shadow-2);
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
}

.cdr-cookie.is-open {
	opacity: 1;
	transform: translate(-50%, 0);
}

.cdr-cookie__text {
	margin: 0;
	flex: 1 1 15rem;
	font-size: var(--fs-1);
	color: var(--muted);
	line-height: 1.55;
}

.cdr-cookie__text a {
	color: var(--link);
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */

.cdr-404 {
	max-width: var(--column);
	margin-inline: auto;
	padding: var(--space-8) var(--pad);
	text-align: center;
}

.cdr-404__figure {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(4.5rem, 20vw, 9rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--line-strong);
}

.cdr-404__title {
	margin-block: var(--space-4) var(--space-3);
	font-size: clamp(1.4rem, 5vw, var(--fs-2u));
}

.cdr-404__line {
	margin-block: 0 var(--space-5);
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	/* Only the header dropdown hides - the in-sheet list keeps its own class
	   and stays visible. */
	.cdr-bar__end .cdr-lang {
		display: none;
	}
}

@media (min-width: 768px) {
	.cdr-burger {
		display: none;
	}

	.cdr-gate__grid {
		grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr);
		grid-template-rows: auto auto;
	}

	.cdr-gate__cell--main {
		grid-column: 1;
		grid-row: 1 / 3;
		justify-content: center;
	}

	.cdr-gate__cell--badge {
		grid-column: 2;
		grid-row: 1;
	}

	.cdr-gate__cell--decor {
		grid-column: 2;
		grid-row: 2;
	}

	.cdr-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: var(--space-5);
	}

	.cdr-compare {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cdr-footer__note {
		flex-basis: auto;
	}
}

@media (min-width: 1024px) {
	.cdr-entry {
		padding-block: var(--space-7) var(--space-8);
	}
}

/* --------------------------------------------------------------------------
   18. Reduced motion - decoration stops, nothing disappears
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	.cdr-card {
		transform: none !important;
	}

	.cdr-orb-x,
	.cdr-orb-y {
		animation: none;
		transform: none;
	}
}
