/*
 * Lothis website system
 * Functional glass, quiet content surfaces and the same semantic atmosphere as
 * the native app. Motion never communicates essential information.
 */

:root {
	color-scheme: light dark;
	--lothis-canvas: var(--wp--preset--color--canvas, #f6fdfb);
	--lothis-canvas-raised: #fbfdfc;
	--lothis-surface: rgba(255, 255, 255, 0.76);
	--lothis-surface-solid: var(--wp--preset--color--surface, #ffffff);
	--lothis-ink: var(--wp--preset--color--ink, #10211f);
	--lothis-muted: #60706d;
	--lothis-faint: color-mix(in srgb, var(--lothis-muted) 97%, var(--lothis-canvas));
	--lothis-line: rgba(16, 33, 31, 0.11);
	--lothis-line-strong: rgba(16, 33, 31, 0.19);
	--lothis-accent: var(--wp--preset--color--accent, #057a6e);
	--lothis-accent-hover: #046b61;
	--lothis-accent-soft: var(--wp--preset--color--accent-soft, #ddf6ee);
	--lothis-on-accent: #ffffff;
	--lothis-atmosphere-one: var(--wp--custom--lothis--atmosphere-one, rgba(74, 220, 169, 0.20));
	--lothis-atmosphere-two: var(--wp--custom--lothis--atmosphere-two, rgba(60, 155, 237, 0.13));
	--lothis-atmosphere-three: var(--wp--custom--lothis--atmosphere-three, rgba(139, 220, 84, 0.10));
	--lothis-user-bubble: #07675e;
	--lothis-danger-text: #a7353e;
	--lothis-shadow-soft: 0 22px 70px rgba(8, 45, 40, 0.08);
	--lothis-shadow-control: 0 4px 16px rgba(10, 45, 40, 0.07);
	--lothis-radius-control: 999px;
	--lothis-radius-card: 24px;
	--lothis-control-hit: 2.75rem;
	--lothis-reading: 720px;
	--lothis-wide: 1180px;
	--lothis-header-base: 64px;
	--lothis-header-height: calc(var(--lothis-header-base) + env(safe-area-inset-top));
}

@media (prefers-color-scheme: dark) {
	:root:not([data-lothis-theme="light"]) {
		--lothis-canvas: var(--wp--custom--lothis--canvas-dark, #060b0f);
		--lothis-canvas-raised: #091419;
		--lothis-surface: rgba(17, 28, 33, 0.76);
		--lothis-surface-solid: var(--wp--custom--lothis--surface-dark, #101b20);
		--lothis-ink: var(--wp--custom--lothis--ink-dark, #edf6f3);
		--lothis-muted: var(--wp--custom--lothis--muted-dark, #a5b2ae);
		--lothis-faint: color-mix(in srgb, var(--lothis-muted) 80%, var(--lothis-canvas));
		--lothis-line: rgba(229, 244, 239, 0.12);
		--lothis-line-strong: rgba(229, 244, 239, 0.22);
		--lothis-accent: var(--wp--custom--lothis--accent-dark, #59dbc4);
		--lothis-accent-hover: #80e5d3;
		--lothis-accent-soft: #102e2b;
		--lothis-on-accent: #06201c;
		--lothis-atmosphere-one: var(--wp--custom--lothis--atmosphere-one-dark, rgba(55, 209, 167, 0.12));
		--lothis-atmosphere-two: var(--wp--custom--lothis--atmosphere-two-dark, rgba(56, 129, 225, 0.11));
		--lothis-atmosphere-three: var(--wp--custom--lothis--atmosphere-three-dark, rgba(125, 213, 64, 0.07));
		--lothis-user-bubble: #07564f;
		--lothis-danger-text: #ff9a9a;
		--lothis-shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.28);
		--lothis-shadow-control: 0 6px 20px rgba(0, 0, 0, 0.20);
	}
}

:root[data-lothis-theme="dark"] {
	--lothis-canvas: var(--wp--custom--lothis--canvas-dark, #060b0f);
	--lothis-canvas-raised: #091419;
	--lothis-surface: rgba(17, 28, 33, 0.76);
	--lothis-surface-solid: var(--wp--custom--lothis--surface-dark, #101b20);
	--lothis-ink: var(--wp--custom--lothis--ink-dark, #edf6f3);
	--lothis-muted: var(--wp--custom--lothis--muted-dark, #a5b2ae);
	--lothis-faint: color-mix(in srgb, var(--lothis-muted) 80%, var(--lothis-canvas));
	--lothis-line: rgba(229, 244, 239, 0.12);
	--lothis-line-strong: rgba(229, 244, 239, 0.22);
	--lothis-accent: var(--wp--custom--lothis--accent-dark, #59dbc4);
	--lothis-accent-hover: #80e5d3;
	--lothis-accent-soft: #102e2b;
	--lothis-on-accent: #06201c;
	--lothis-atmosphere-one: var(--wp--custom--lothis--atmosphere-one-dark, rgba(55, 209, 167, 0.12));
	--lothis-atmosphere-two: var(--wp--custom--lothis--atmosphere-two-dark, rgba(56, 129, 225, 0.11));
	--lothis-atmosphere-three: var(--wp--custom--lothis--atmosphere-three-dark, rgba(125, 213, 64, 0.07));
	--lothis-user-bubble: #07564f;
	--lothis-danger-text: #ff9a9a;
	--lothis-shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.28);
	--lothis-shadow-control: 0 6px 20px rgba(0, 0, 0, 0.20);
}

:root[data-lothis-theme="light"] {
	color-scheme: light;
}

:root[data-lothis-theme="dark"] {
	color-scheme: dark;
}

/* A visitor's atmosphere choice is cosmetic and local to this browser. These
 * selectors intentionally never recolour the six-leaf Lothis mark. */
:root[data-lothis-palette="dew"] {
	--lothis-canvas: #f6fdfb;
	--lothis-canvas-raised: #fbfefc;
	--lothis-surface-solid: #ffffff;
	--lothis-ink: #10211f;
	--lothis-muted: #60706d;
	--lothis-line: rgba(16, 33, 31, 0.11);
	--lothis-accent: #057a6e;
	--lothis-accent-soft: #ddf6ee;
	--lothis-atmosphere-one: rgba(74, 220, 169, 0.20);
	--lothis-atmosphere-two: rgba(60, 155, 237, 0.13);
	--lothis-atmosphere-three: rgba(139, 220, 84, 0.10);
}

:root[data-lothis-palette="tide"] {
	--lothis-canvas: #f6f9ff;
	--lothis-canvas-raised: #fbfcff;
	--lothis-surface-solid: #ffffff;
	--lothis-ink: #111a2e;
	--lothis-muted: #5d687d;
	--lothis-line: rgba(17, 26, 46, 0.11);
	--lothis-accent: #2e63c9;
	--lothis-accent-soft: #e3ecff;
	--lothis-atmosphere-one: rgba(82, 135, 236, 0.19);
	--lothis-atmosphere-two: rgba(67, 201, 209, 0.13);
	--lothis-atmosphere-three: rgba(126, 100, 231, 0.09);
}

:root[data-lothis-palette="blossom"] {
	--lothis-canvas: #fff7fb;
	--lothis-canvas-raised: #fffbfd;
	--lothis-surface-solid: #ffffff;
	--lothis-ink: #2a1420;
	--lothis-muted: #77616c;
	--lothis-line: rgba(42, 20, 32, 0.11);
	--lothis-accent: #a64070;
	--lothis-accent-soft: #fbe4ef;
	--lothis-atmosphere-one: rgba(233, 107, 163, 0.17);
	--lothis-atmosphere-two: rgba(139, 116, 233, 0.12);
	--lothis-atmosphere-three: rgba(249, 164, 121, 0.09);
}

:root[data-lothis-palette="glow"] {
	--lothis-canvas: #fff9f1;
	--lothis-canvas-raised: #fffcf8;
	--lothis-surface-solid: #ffffff;
	--lothis-ink: #2a1b13;
	--lothis-muted: #78695f;
	--lothis-line: rgba(42, 27, 19, 0.11);
	--lothis-accent: #ab5221;
	--lothis-accent-soft: #fbe8d5;
	--lothis-atmosphere-one: rgba(245, 148, 75, 0.18);
	--lothis-atmosphere-two: rgba(232, 193, 68, 0.11);
	--lothis-atmosphere-three: rgba(226, 93, 80, 0.08);
}

:root[data-lothis-palette] {
	--lothis-surface: rgba(255, 255, 255, 0.76);
	--lothis-faint: color-mix(in srgb, var(--lothis-muted) 97%, var(--lothis-canvas));
	--lothis-line-strong: color-mix(in srgb, var(--lothis-ink) 19%, transparent);
	--lothis-accent-hover: color-mix(in srgb, var(--lothis-accent) 86%, black);
	--lothis-on-accent: #ffffff;
	--lothis-user-bubble: color-mix(in srgb, var(--lothis-accent) 84%, black);
	--lothis-shadow-soft: 0 22px 70px rgba(8, 45, 40, 0.08);
	--lothis-shadow-control: 0 4px 16px rgba(10, 45, 40, 0.07);
}

@media (prefers-color-scheme: dark) {
	:root[data-lothis-palette="dew"]:not([data-lothis-theme="light"]) {
		--lothis-canvas: #060b0f; --lothis-canvas-raised: #091419; --lothis-surface-solid: #101b20; --lothis-ink: #edf6f3; --lothis-muted: #a5b2ae; --lothis-accent: #59dbc4; --lothis-atmosphere-one: rgba(55, 209, 167, 0.12); --lothis-atmosphere-two: rgba(56, 129, 225, 0.11); --lothis-atmosphere-three: rgba(125, 213, 64, 0.07);
	}
	:root[data-lothis-palette="tide"]:not([data-lothis-theme="light"]) {
		--lothis-canvas: #070a16; --lothis-canvas-raised: #0b1020; --lothis-surface-solid: #111727; --lothis-ink: #f0f4ff; --lothis-muted: #aab5cc; --lothis-accent: #85b3ff; --lothis-atmosphere-one: rgba(76, 130, 239, 0.14); --lothis-atmosphere-two: rgba(53, 199, 209, 0.09); --lothis-atmosphere-three: rgba(134, 105, 239, 0.07);
	}
	:root[data-lothis-palette="blossom"]:not([data-lothis-theme="light"]) {
		--lothis-canvas: #160812; --lothis-canvas-raised: #1c0c17; --lothis-surface-solid: #24121e; --lothis-ink: #fff2f8; --lothis-muted: #ceadbd; --lothis-accent: #f59cc2; --lothis-atmosphere-one: rgba(240, 100, 165, 0.12); --lothis-atmosphere-two: rgba(140, 112, 236, 0.08); --lothis-atmosphere-three: rgba(248, 151, 111, 0.06);
	}
	:root[data-lothis-palette="glow"]:not([data-lothis-theme="light"]) {
		--lothis-canvas: #160c06; --lothis-canvas-raised: #1c1009; --lothis-surface-solid: #24170f; --lothis-ink: #fff5eb; --lothis-muted: #d0b7a5; --lothis-accent: #ffb56e; --lothis-atmosphere-one: rgba(244, 139, 69, 0.12); --lothis-atmosphere-two: rgba(230, 187, 61, 0.08); --lothis-atmosphere-three: rgba(229, 82, 72, 0.06);
	}

	:root[data-lothis-palette]:not([data-lothis-theme="light"]) {
		--lothis-surface: color-mix(in srgb, var(--lothis-surface-solid) 76%, transparent);
		--lothis-faint: color-mix(in srgb, var(--lothis-muted) 80%, var(--lothis-canvas));
		--lothis-line: color-mix(in srgb, var(--lothis-ink) 12%, transparent);
		--lothis-line-strong: color-mix(in srgb, var(--lothis-ink) 22%, transparent);
		--lothis-accent-hover: color-mix(in srgb, var(--lothis-accent) 84%, white);
		--lothis-accent-soft: color-mix(in srgb, var(--lothis-accent) 17%, var(--lothis-canvas));
		--lothis-on-accent: var(--lothis-canvas);
		--lothis-user-bubble: color-mix(in srgb, var(--lothis-accent) 42%, var(--lothis-canvas));
		--lothis-shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.28);
		--lothis-shadow-control: 0 6px 20px rgba(0, 0, 0, 0.20);
	}
}

:root[data-lothis-palette="dew"][data-lothis-theme="dark"] {
	--lothis-canvas: #060b0f; --lothis-canvas-raised: #091419; --lothis-surface-solid: #101b20; --lothis-ink: #edf6f3; --lothis-muted: #a5b2ae; --lothis-accent: #59dbc4; --lothis-atmosphere-one: rgba(55, 209, 167, 0.12); --lothis-atmosphere-two: rgba(56, 129, 225, 0.11); --lothis-atmosphere-three: rgba(125, 213, 64, 0.07);
}

:root[data-lothis-palette="tide"][data-lothis-theme="dark"] {
	--lothis-canvas: #070a16; --lothis-canvas-raised: #0b1020; --lothis-surface-solid: #111727; --lothis-ink: #f0f4ff; --lothis-muted: #aab5cc; --lothis-accent: #85b3ff; --lothis-atmosphere-one: rgba(76, 130, 239, 0.14); --lothis-atmosphere-two: rgba(53, 199, 209, 0.09); --lothis-atmosphere-three: rgba(134, 105, 239, 0.07);
}

:root[data-lothis-palette="blossom"][data-lothis-theme="dark"] {
	--lothis-canvas: #160812; --lothis-canvas-raised: #1c0c17; --lothis-surface-solid: #24121e; --lothis-ink: #fff2f8; --lothis-muted: #ceadbd; --lothis-accent: #f59cc2; --lothis-atmosphere-one: rgba(240, 100, 165, 0.12); --lothis-atmosphere-two: rgba(140, 112, 236, 0.08); --lothis-atmosphere-three: rgba(248, 151, 111, 0.06);
}

:root[data-lothis-palette="glow"][data-lothis-theme="dark"] {
	--lothis-canvas: #160c06; --lothis-canvas-raised: #1c1009; --lothis-surface-solid: #24170f; --lothis-ink: #fff5eb; --lothis-muted: #d0b7a5; --lothis-accent: #ffb56e; --lothis-atmosphere-one: rgba(244, 139, 69, 0.12); --lothis-atmosphere-two: rgba(230, 187, 61, 0.08); --lothis-atmosphere-three: rgba(229, 82, 72, 0.06);
}

:root[data-lothis-palette][data-lothis-theme="dark"] {
	--lothis-surface: color-mix(in srgb, var(--lothis-surface-solid) 76%, transparent);
	--lothis-faint: color-mix(in srgb, var(--lothis-muted) 80%, var(--lothis-canvas));
	--lothis-line: color-mix(in srgb, var(--lothis-ink) 12%, transparent);
	--lothis-line-strong: color-mix(in srgb, var(--lothis-ink) 22%, transparent);
	--lothis-accent-hover: color-mix(in srgb, var(--lothis-accent) 84%, white);
	--lothis-accent-soft: color-mix(in srgb, var(--lothis-accent) 17%, var(--lothis-canvas));
	--lothis-on-accent: var(--lothis-canvas);
	--lothis-user-bubble: color-mix(in srgb, var(--lothis-accent) 42%, var(--lothis-canvas));
	--lothis-shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.28);
	--lothis-shadow-control: 0 6px 20px rgba(0, 0, 0, 0.20);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--lothis-header-height) + 24px);
}

body,
.editor-styles-wrapper {
	background: var(--lothis-canvas);
	color: var(--lothis-ink);
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body {
	min-height: 100vh;
	overflow-x: clip;
}

::selection {
	background: color-mix(in srgb, var(--lothis-accent) 23%, transparent);
}

:where(a, button, summary, input, textarea, select):focus-visible {
	outline: 3px solid color-mix(in srgb, var(--lothis-accent) 72%, white);
	outline-offset: 4px;
}

:root a {
	color: var(--lothis-accent);
	text-decoration-line: underline;
	text-decoration-color: color-mix(in srgb, currentColor 72%, transparent);
	text-decoration-thickness: max(1px, 0.075em);
	text-underline-offset: 0.2em;
}

:root a:hover {
	color: var(--lothis-accent-hover);
	text-decoration-color: currentColor;
	text-decoration-thickness: max(2px, 0.1em);
}

/* Navigation, brand links and button-shaped controls communicate their role
 * through placement and shape. Ordinary text links remain underlined so their
 * meaning never depends on colour alone. */
:root :where(.wp-block-navigation, .wp-block-site-title, .wp-block-button) a,
:root a.wp-element-button {
	text-decoration: none;
}

.lothis-shell {
	position: relative;
}

/* Header: glass is intentionally limited to this functional layer. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}

.lothis-site-header {
	position: relative;
	top: auto;
	z-index: auto;
	min-height: var(--lothis-header-height);
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top);
	padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
	padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
	border-bottom: 1px solid transparent;
	background: color-mix(in srgb, var(--lothis-canvas) 74%, transparent);
	-webkit-backdrop-filter: saturate(145%) blur(20px);
	backdrop-filter: saturate(145%) blur(20px);
}

.lothis-site-header::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--lothis-line), transparent);
}

.lothis-header-inner,
.lothis-footer-inner {
	width: min(100%, calc(var(--lothis-wide) + 5rem));
	margin-inline: auto;
}

.lothis-header-inner {
	min-height: var(--lothis-header-base);
}

.lothis-brand .wp-block-site-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 680;
	letter-spacing: -0.025em;
}

.lothis-brand .wp-block-site-title a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: 0.55rem;
	color: var(--lothis-ink);
}

.lothis-brand .wp-block-site-title a::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	background: url("../images/lothis-mark-micro.svg") center / 28px 28px no-repeat;
}

.lothis-header-actions {
	gap: 0.45rem;
}

:root a.lothis-header-chat-link {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	height: var(--lothis-control-hit);
	min-height: var(--lothis-control-hit);
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.9rem;
	border: 0;
	border-radius: var(--lothis-radius-control);
	background: transparent;
	box-shadow: none;
	color: var(--lothis-on-accent);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

/* The visible pill is 36px high while the link retains a full 44px hit area. */
:root a.lothis-header-chat-link::before {
	content: "";
	position: absolute;
	inset: 0.25rem 0;
	z-index: -1;
	border: 1px solid transparent;
	border-radius: inherit;
	background: var(--lothis-accent);
	box-shadow: 0 3px 12px color-mix(in srgb, var(--lothis-accent) 14%, transparent);
	transition: background-color 180ms ease, box-shadow 180ms ease;
}

.lothis-header-chat-label--compact {
	display: none;
}

:root a.lothis-header-chat-link:hover {
	background: transparent;
	box-shadow: none;
	color: var(--lothis-on-accent);
	transform: translateY(-1px);
}

:root a.lothis-header-chat-link:hover::before {
	background: var(--lothis-accent-hover);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--lothis-accent) 18%, transparent);
}

.lothis-site-header .wp-block-navigation-item__content {
	position: relative;
	padding: 0.6rem 0.45rem;
	color: var(--lothis-muted);
}

.lothis-site-header .wp-block-navigation-item__content:hover {
	color: var(--lothis-ink);
}

.lothis-settings-trigger {
	display: inline-grid;
	width: var(--lothis-control-hit);
	height: var(--lothis-control-hit);
	min-width: var(--lothis-control-hit);
	min-height: var(--lothis-control-hit);
	box-sizing: border-box;
	place-items: center;
	padding: 0;
	border: 1px solid var(--lothis-line);
	border-radius: 50%;
	background: var(--lothis-surface);
	box-shadow: var(--lothis-shadow-control);
	color: var(--lothis-ink);
	cursor: pointer;
	-webkit-backdrop-filter: saturate(130%) blur(16px);
	backdrop-filter: saturate(130%) blur(16px);
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.lothis-settings-trigger:hover {
	border-color: var(--lothis-line-strong);
	transform: translateY(-1px);
}

.lothis-settings-trigger svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lothis-site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--lothis-canvas);
	color: var(--lothis-ink);
}

/* Settings: one explicit surface replaces the ambiguous three-state icon.
 * Desktop uses a compact modal; small screens use the same semantic dialog as
 * a bottom sheet. Native dialog behavior is reinforced with an explicit focus
 * loop and focus restoration in lothis-appearance.js. */
body.lothis-settings-open {
	overflow: hidden;
}

.lothis-settings-dialog {
	width: min(42rem, calc(100vw - 2rem));
	max-width: none;
	max-height: min(47rem, calc(100dvh - 2rem));
	box-sizing: border-box;
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--lothis-line-strong);
	border-radius: 1.55rem;
	background: color-mix(in srgb, var(--lothis-surface-solid) 96%, transparent);
	box-shadow: 0 28px 90px color-mix(in srgb, #000 34%, transparent);
	color: var(--lothis-ink);
	-webkit-backdrop-filter: saturate(125%) blur(28px);
	backdrop-filter: saturate(125%) blur(28px);
}

.lothis-settings-dialog:not([open]) {
	display: none;
}

.lothis-settings-dialog[open] {
	animation: lothis-settings-modal-in 190ms cubic-bezier(.2, .76, .25, 1) both;
}

.lothis-settings-dialog::backdrop {
	background: color-mix(in srgb, #020605 68%, transparent);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: lothis-settings-backdrop-in 160ms ease both;
}

@keyframes lothis-settings-modal-in {
	from { opacity: 0; transform: translateY(0.55rem) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lothis-settings-backdrop-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.lothis-settings-frame {
	display: grid;
	min-height: min(34rem, calc(100dvh - 2rem));
	max-height: inherit;
	grid-template-columns: 10.5rem minmax(0, 1fr);
}

.lothis-settings-sidebar {
	box-sizing: border-box;
	padding: 1.15rem 0.75rem;
	border-right: 1px solid var(--lothis-line);
	background: color-mix(in srgb, var(--lothis-canvas) 58%, transparent);
}

.lothis-settings-brand {
	display: flex;
	min-height: var(--lothis-control-hit);
	align-items: center;
	gap: 0.6rem;
	padding: 0 0.7rem;
	font-size: 0.94rem;
	font-weight: 690;
	letter-spacing: -0.025em;
}

.lothis-settings-brand::before {
	content: "";
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	background: url("../images/lothis-mark-micro.svg") center / 24px 24px no-repeat;
}

.lothis-settings-navigation {
	display: grid;
	gap: 0.35rem;
	margin-top: 1rem;
}

.lothis-settings-navigation-item {
	display: flex;
	min-height: var(--lothis-control-hit);
	box-sizing: border-box;
	align-items: center;
	padding: 0.55rem 0.7rem;
	border: 1px solid color-mix(in srgb, var(--lothis-accent) 22%, var(--lothis-line));
	border-radius: 0.8rem;
	background: var(--lothis-accent-soft);
	color: var(--lothis-ink);
	font-size: 0.84rem;
	font-weight: 620;
}

.lothis-settings-navigation-item--link {
	width: 100%;
	border-color: transparent;
	background: transparent;
	color: var(--lothis-muted);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.lothis-settings-navigation-item--link:hover {
	border-color: var(--lothis-line);
	background: var(--lothis-surface);
	color: var(--lothis-ink);
}

.lothis-settings-content {
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1.25rem clamp(1.2rem, 3vw, 1.6rem) 1.35rem;
	scrollbar-gutter: stable;
}

.lothis-settings-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid var(--lothis-line);
}

.lothis-settings-header h2 {
	margin: 0;
	font-size: clamp(1.3rem, 2.5vw, 1.5rem);
	font-weight: 680;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.lothis-settings-header p {
	max-width: 29rem;
	margin: 0.42rem 0 0;
	color: var(--lothis-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.lothis-settings-close {
	display: grid;
	width: var(--lothis-control-hit);
	height: var(--lothis-control-hit);
	min-width: var(--lothis-control-hit);
	min-height: var(--lothis-control-hit);
	place-items: center;
	padding: 0 0 0.12rem;
	border: 1px solid var(--lothis-line);
	border-radius: 50%;
	background: color-mix(in srgb, var(--lothis-surface) 84%, transparent);
	color: var(--lothis-ink);
	font: inherit;
	font-size: 1.45rem;
	font-weight: 360;
	line-height: 1;
	cursor: pointer;
}

.lothis-settings-close:hover {
	border-color: var(--lothis-line-strong);
	background: var(--lothis-surface-solid);
}

.lothis-settings-section {
	padding: 1.05rem 0;
	border-bottom: 1px solid var(--lothis-line);
}

.lothis-settings-section h3 {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 660;
	letter-spacing: -0.015em;
}

.lothis-settings-section-description {
	margin: 0.34rem 0 0;
	color: var(--lothis-muted);
	font-size: 0.8rem;
	line-height: 1.45;
}

.lothis-settings-links {
	display: grid;
	gap: 0.45rem;
	margin-top: 0.85rem;
}

.lothis-settings-link {
	display: flex;
	min-height: var(--lothis-control-hit);
	box-sizing: border-box;
	align-items: center;
	justify-content: space-between;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--lothis-line);
	border-radius: 0.85rem;
	background: color-mix(in srgb, var(--lothis-surface) 72%, transparent);
	color: var(--lothis-ink);
	font-size: 0.82rem;
	font-weight: 590;
	text-decoration: none;
}

.lothis-settings-link::after {
	content: "\2197";
	color: var(--lothis-muted);
}

.lothis-settings-link:hover {
	border-color: var(--lothis-line-strong);
	background: var(--lothis-surface-solid);
}

.lothis-settings-personalization-button {
	width: 100%;
	margin-top: 0.85rem;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.lothis-settings-personalization-button::after {
	content: "\2192";
}

.lothis-settings-options {
	display: grid;
	gap: 0.45rem;
	margin-top: 0.85rem;
}

.lothis-settings-choice {
	display: grid;
	width: 100%;
	min-height: 3.75rem;
	box-sizing: border-box;
	grid-template-columns: 2rem minmax(0, 1fr) 1.35rem;
	align-items: center;
	gap: 0.65rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--lothis-line);
	border-radius: 0.95rem;
	background: color-mix(in srgb, var(--lothis-surface) 72%, transparent);
	color: var(--lothis-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.lothis-settings-choice:hover {
	border-color: var(--lothis-line-strong);
	background: var(--lothis-surface-solid);
}

.lothis-settings-choice[aria-checked="true"] {
	border-color: color-mix(in srgb, var(--lothis-accent) 52%, var(--lothis-line));
	background: var(--lothis-accent-soft);
}

.lothis-settings-choice-icon {
	position: relative;
	display: grid;
	width: 2rem;
	height: 2rem;
	box-sizing: border-box;
	place-items: center;
	border: 1px solid var(--lothis-line);
	border-radius: 0.7rem;
	background: var(--lothis-surface-solid);
	color: var(--lothis-ink);
}

.lothis-settings-choice-icon[data-icon="system"]::before {
	content: "";
	width: 1.05rem;
	height: 0.7rem;
	border: 1.5px solid currentColor;
	border-radius: 0.18rem;
}

.lothis-settings-choice-icon[data-icon="system"]::after {
	content: "";
	position: absolute;
	bottom: 0.47rem;
	width: 0.7rem;
	height: 1px;
	background: currentColor;
	box-shadow: 0 -0.16rem currentColor;
}

.lothis-settings-choice-icon[data-icon="light"]::before {
	content: "";
	width: 0.78rem;
	height: 0.78rem;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	box-shadow: 0 -0.68rem 0 -0.32rem currentColor, 0 0.68rem 0 -0.32rem currentColor, -0.68rem 0 0 -0.32rem currentColor, 0.68rem 0 0 -0.32rem currentColor;
}

.lothis-settings-choice-icon[data-icon="dark"]::before {
	content: "";
	width: 0.9rem;
	height: 0.9rem;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	transform: translateX(-0.08rem);
}

.lothis-settings-choice-icon[data-icon="dark"]::after {
	content: "";
	position: absolute;
	top: 0.54rem;
	right: 0.43rem;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: var(--lothis-surface-solid);
}

.lothis-settings-choice-icon[data-icon="automatic-language"]::before {
	content: "A\00b7\3042";
	font-size: 0.65rem;
	font-weight: 700;
}

.lothis-settings-choice-icon[data-icon="en"]::before {
	content: "EN";
	font-size: 0.64rem;
	font-weight: 720;
}

.lothis-settings-choice-icon[data-icon="nl"]::before {
	content: "NL";
	font-size: 0.64rem;
	font-weight: 720;
}

.lothis-settings-choice-copy {
	display: grid;
	min-width: 0;
	gap: 0.16rem;
}

.lothis-settings-choice-copy strong {
	font-size: 0.86rem;
	font-weight: 640;
	line-height: 1.25;
}

.lothis-settings-choice-copy small {
	color: var(--lothis-muted);
	font-size: 0.75rem;
	font-weight: 450;
	line-height: 1.35;
}

.lothis-settings-choice-check {
	display: grid;
	width: 1.35rem;
	height: 1.35rem;
	place-items: center;
	border-radius: 50%;
	background: var(--lothis-accent);
	color: var(--lothis-on-accent);
	font-size: 0.72rem;
	font-weight: 800;
	opacity: 0;
	transform: scale(0.72);
	transition: opacity 150ms ease, transform 150ms ease;
}

.lothis-settings-choice[aria-checked="true"] .lothis-settings-choice-check {
	opacity: 1;
	transform: scale(1);
}

.lothis-settings-saved {
	margin: 1rem 0 0;
	color: var(--lothis-muted);
	font-size: 0.74rem;
	line-height: 1.4;
}

/* Shared editorial primitives. */
.lothis-section {
	position: relative;
	padding-top: clamp(4.5rem, 8vw, 7rem);
	padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.lothis-section--compact {
	padding-top: clamp(3rem, 6vw, 5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.lothis-section-heading {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.lothis-overline,
.lothis-status-pill {
	font-size: 0.76rem;
	font-weight: 690;
	letter-spacing: 0.095em;
	line-height: 1.2;
	text-transform: uppercase;
}

.lothis-overline {
	color: var(--lothis-accent);
}

.lothis-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.46rem 0.72rem;
	border: 1px solid var(--lothis-line);
	border-radius: var(--lothis-radius-control);
	background: var(--lothis-surface);
	color: var(--lothis-muted);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.lothis-status-pill::before {
	content: "";
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--lothis-accent);
}

.lothis-section-title {
	margin-top: 1rem;
	margin-bottom: 1.2rem;
	font-size: clamp(1.9rem, 4.2vw, 3.45rem);
	letter-spacing: -0.045em;
}

.lothis-section-intro {
	max-width: 650px;
	margin-inline: auto;
	color: var(--lothis-muted);
	font-size: clamp(0.98rem, 1.45vw, 1.12rem);
	line-height: 1.62;
}

.is-style-lothis-surface,
.lothis-surface {
	border: 1px solid var(--lothis-line);
	border-radius: var(--lothis-radius-card);
	background: var(--lothis-surface-solid);
	box-shadow: var(--lothis-shadow-soft);
}

/* Hero. */
.lothis-hero {
	isolation: isolate;
	min-height: min(860px, calc(100svh - var(--lothis-header-height)));
	display: grid;
	align-content: center;
	padding-top: clamp(5rem, 12vh, 8.5rem);
	padding-bottom: clamp(5rem, 12vh, 8.5rem);
	overflow: hidden;
}

.lothis-hero::before,
.lothis-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.lothis-hero::before {
	top: -26rem;
	left: 50%;
	width: min(92vw, 980px);
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 37% 45%, var(--lothis-atmosphere-one), transparent 45%),
		radial-gradient(circle at 65% 51%, var(--lothis-atmosphere-two), transparent 48%),
		radial-gradient(circle at 52% 63%, var(--lothis-atmosphere-three), transparent 52%);
	transform: translateX(-50%);
}

.lothis-hero::after {
	right: 8%;
	bottom: 8%;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--lothis-accent);
	box-shadow:
		-73vw -7vh 0 color-mix(in srgb, var(--lothis-accent) 28%, transparent),
		-63vw 13vh 0 color-mix(in srgb, #398ee0 24%, transparent),
		-11vw -42vh 0 color-mix(in srgb, #75cf49 26%, transparent);
	opacity: 0.6;
}

.lothis-hero-content {
	max-width: 1000px;
	margin-inline: auto;
	text-align: center;
}

.lothis-mark {
	display: block;
	background: url("../images/lothis-mark.svg") center / contain no-repeat;
}

.lothis-mark--hero {
	position: relative;
	isolation: isolate;
	width: clamp(4.75rem, 8vw, 6rem);
	aspect-ratio: 1;
	margin: 1.35rem auto 1.6rem;
}

.lothis-mark--hero::after {
	content: "";
	position: absolute;
	inset: -34%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--lothis-accent) 22%, transparent), transparent 67%);
	opacity: 0.22;
	pointer-events: none;
	animation: lothis-breathe-aura 5.28s cubic-bezier(.45, 0, .3, 1) infinite;
}

@keyframes lothis-breathe-aura {
	0%, 100% { opacity: 0.13; transform: scale(0.82); }
	42%, 49% { opacity: 0.34; transform: scale(1.04); }
	84% { opacity: 0.19; transform: scale(0.9); }
}

.lothis-hero h1 {
	max-width: 930px;
	margin: 0 auto;
	font-size: clamp(2.45rem, 6vw, 4.75rem);
	font-weight: 680;
	letter-spacing: -0.055em;
	line-height: 1;
	text-wrap: balance;
}

.lothis-hero-lead {
	max-width: 660px;
	margin: 1.55rem auto 0;
	color: var(--lothis-muted);
	font-size: clamp(1rem, 1.6vw, 1.16rem);
	line-height: 1.55;
	text-wrap: balance;
}

.lothis-hero-actions {
	justify-content: center;
	margin-top: 2rem;
}

:root .wp-block-button .wp-block-button__link,
:root .wp-element-button {
	display: inline-flex;
	min-height: var(--lothis-control-hit);
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	background: var(--lothis-accent);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--lothis-accent) 14%, transparent);
	color: var(--lothis-on-accent);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-element-button:hover {
	background: var(--lothis-accent-hover);
	color: var(--lothis-on-accent);
	transform: translateY(-1px);
}

.wp-block-button.is-style-lothis-quiet .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--lothis-line);
	background: var(--lothis-surface);
	box-shadow: var(--lothis-shadow-control);
	color: var(--lothis-ink);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.wp-block-button.is-style-lothis-quiet .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--lothis-line-strong);
	background: var(--lothis-surface-solid);
	color: var(--lothis-ink);
}

.lothis-hero-note {
	margin-top: 1rem;
	color: var(--lothis-faint);
	font-size: 0.82rem;
}

/* Homepage: a real first message field. The draft is handed to the chat shell
 * through short-lived session storage, never through the address bar. */
.lothis-home-hero {
	position: relative;
	isolation: isolate;
	min-height: calc(100svh - var(--lothis-header-height));
	display: grid;
	align-content: center;
	padding-top: clamp(3rem, 8vh, 5.5rem);
	padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
	padding-bottom: clamp(3.25rem, 8vh, 5.75rem);
	padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
	overflow: hidden;
}

.lothis-home-hero-content {
	position: relative;
	width: min(100%, 900px);
	margin-inline: auto;
	text-align: center;
}

.lothis-home-hero-glow {
	position: absolute;
	z-index: -1;
	top: 42%;
	left: 50%;
	width: min(110vw, 940px);
	aspect-ratio: 1.45;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 48%, var(--lothis-atmosphere-one), transparent 47%),
		radial-gradient(circle at 67% 44%, var(--lothis-atmosphere-two), transparent 50%),
		radial-gradient(circle at 54% 68%, var(--lothis-atmosphere-three), transparent 52%);
	filter: blur(9px);
	opacity: 0.76;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.lothis-home-hero .lothis-mark--hero {
	width: clamp(4.5rem, 7.5vw, 5.5rem);
	margin: 0 auto clamp(1.35rem, 3vh, 1.9rem);
}

.lothis-home-hero h1 {
	max-width: 880px;
	margin: 0 auto;
	font-size: clamp(2.35rem, 4.4vw, 3.8rem);
	font-weight: 675;
	letter-spacing: -0.052em;
	line-height: 1.01;
	text-wrap: balance;
}

.lothis-home-hero-lead {
	max-width: 590px;
	margin: 1rem auto 0;
	color: var(--lothis-muted);
	font-size: clamp(0.98rem, 1.45vw, 1.1rem);
	line-height: 1.55;
	text-wrap: balance;
}

:root form.lothis-home-composer {
	width: min(100%, 660px);
	min-height: 3.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	box-sizing: border-box;
	align-items: end;
	gap: 0.55rem;
	margin: clamp(1.6rem, 4vh, 2.35rem) auto 0;
	padding: 0.31rem 0.35rem 0.31rem 1rem;
	border: 1px solid var(--lothis-line);
	border-radius: 1.8rem;
	background: color-mix(in srgb, var(--lothis-surface-solid) 94%, transparent);
	box-shadow: 0 12px 42px rgba(8, 45, 40, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.38);
	color: var(--lothis-ink);
	text-align: left;
	-webkit-backdrop-filter: saturate(125%) blur(18px);
	backdrop-filter: saturate(125%) blur(18px);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

:root form.lothis-home-composer:hover,
:root form.lothis-home-composer:focus-within {
	border-color: var(--lothis-line-strong);
	box-shadow: 0 15px 48px rgba(8, 45, 40, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.lothis-home-composer textarea {
	min-width: 0;
	width: 100%;
	min-height: 2.75rem;
	max-height: 9.25rem;
	box-sizing: border-box;
	align-self: center;
	padding: 0.68rem 0;
	overflow-y: auto;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--lothis-ink);
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.45;
	resize: none;
	-webkit-appearance: none;
	appearance: none;
	caret-color: var(--lothis-accent);
}

.lothis-home-composer textarea::placeholder {
	color: var(--lothis-muted);
	opacity: 0.82;
}

.lothis-home-composer-send {
	width: var(--lothis-control-hit);
	height: var(--lothis-control-hit);
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lothis-accent);
	box-shadow: 0 3px 12px color-mix(in srgb, var(--lothis-accent) 18%, transparent);
	color: var(--lothis-on-accent);
	cursor: pointer;
	transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.lothis-home-composer-send:disabled {
	background: color-mix(in srgb, var(--lothis-muted) 18%, transparent);
	box-shadow: none;
	color: var(--lothis-muted);
	cursor: default;
	opacity: 0.72;
}

.lothis-home-composer-send:not(:disabled):hover {
	background: var(--lothis-accent-hover);
}

.lothis-home-composer-send:not(:disabled):active {
	transform: scale(0.94);
}

.lothis-home-composer-send svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

.lothis-home-composer-status {
	grid-column: 1 / -1;
	margin: -0.15rem 0.45rem 0.35rem 0;
	color: var(--lothis-muted);
	font-size: 0.78rem;
	line-height: 1.35;
}

.lothis-home-hero-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin: 0.7rem auto 0;
	color: var(--lothis-faint);
	font-size: 0.76rem;
	line-height: 1.45;
}

.lothis-home-learn-link {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	margin-top: clamp(1.6rem, 4vh, 2.4rem);
	padding-inline: 0.7rem;
	color: var(--lothis-muted);
	font-size: 0.82rem;
	font-weight: 590;
}

.lothis-home-learn-link:hover {
	color: var(--lothis-ink);
}

.lothis-home-essentials {
	padding-top: clamp(4rem, 8vw, 6.5rem);
	padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
	padding-bottom: clamp(4.5rem, 9vw, 7rem);
	padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
	border-top: 1px solid var(--lothis-line);
	background: var(--lothis-canvas-raised);
}

.lothis-home-essentials-inner {
	width: min(100%, 780px);
	margin-inline: auto;
}

.lothis-home-essentials-heading {
	max-width: 650px;
	margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.lothis-home-essentials-heading h2 {
	margin: 0.85rem 0 1rem;
	font-size: clamp(1.9rem, 4.2vw, 3.25rem);
	letter-spacing: -0.045em;
	line-height: 1.04;
	text-wrap: balance;
}

.lothis-home-essentials-heading > p:last-child {
	max-width: 590px;
	margin: 0;
	color: var(--lothis-muted);
	font-size: clamp(0.96rem, 1.45vw, 1.08rem);
}

.lothis-home-disclosures {
	border-top: 1px solid var(--lothis-line);
}

.lothis-home-disclosures details {
	margin: 0;
	border-bottom: 1px solid var(--lothis-line);
	scroll-margin-top: calc(var(--lothis-header-height) + 1rem);
}

.admin-bar .lothis-home-disclosures details {
	scroll-margin-top: calc(var(--lothis-header-height) + 32px + 1rem);
}

@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar .lothis-home-disclosures details {
		scroll-margin-top: calc(var(--lothis-header-height) + 46px + 1rem);
	}
}

.lothis-home-disclosures summary {
	min-height: 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	color: var(--lothis-ink);
	font-size: clamp(1rem, 1.5vw, 1.1rem);
	font-weight: 640;
	letter-spacing: -0.025em;
	list-style: none;
	cursor: pointer;
}

.lothis-home-disclosures summary::-webkit-details-marker {
	display: none;
}

.lothis-home-disclosure-icon {
	position: relative;
	width: 1.7rem;
	height: 1.7rem;
	flex: 0 0 auto;
	border: 1px solid var(--lothis-line);
	border-radius: 50%;
	background: var(--lothis-surface-solid);
}

.lothis-home-disclosure-icon::before,
.lothis-home-disclosure-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.68rem;
	height: 1.5px;
	border-radius: 999px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform 180ms ease, opacity 180ms ease;
}

.lothis-home-disclosure-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.lothis-home-disclosures details[open] .lothis-home-disclosure-icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg);
}

.lothis-home-disclosure-content {
	max-width: 650px;
	padding: 0 3.5rem 1.65rem 0;
}

.lothis-home-disclosures details[open] .lothis-home-disclosure-content {
	animation: lothis-disclosure-in 180ms cubic-bezier(.2, .75, .25, 1) both;
}

.lothis-home-disclosures details.is-closing .lothis-home-disclosure-content {
	pointer-events: none;
	animation: lothis-disclosure-out 140ms cubic-bezier(.4, 0, 1, 1) both;
}

@keyframes lothis-disclosure-in {
	from { opacity: 0; transform: translateY(-0.3rem); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes lothis-disclosure-out {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(-0.25rem); }
}

.lothis-home-disclosure-content p {
	margin: 0;
	color: var(--lothis-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.lothis-home-privacy-facts {
	display: grid;
	gap: 0.55rem;
	margin: 0.8rem 0 0;
	padding-inline-start: 1.15rem;
	color: var(--lothis-muted);
	font-size: 0.9375rem;
	line-height: 1.58;
}

.lothis-home-privacy-facts li::marker {
	color: var(--lothis-accent);
}

.lothis-home-privacy-source {
	display: inline-flex;
	margin-top: 0.85rem;
	color: var(--lothis-accent);
	font-size: 0.875rem;
	font-weight: 650;
	text-underline-offset: 0.2em;
}

/* App preview — visually familiar, deliberately non-interactive. */
.lothis-app-showcase {
	padding-top: 1.5rem;
	padding-bottom: clamp(6rem, 12vw, 10rem);
}

.lothis-app-stage {
	position: relative;
	isolation: isolate;
	max-width: 940px;
	min-height: 670px;
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid var(--lothis-line);
	border-radius: clamp(2rem, 5vw, 3.75rem);
	background: var(--lothis-canvas-raised);
	box-shadow: 0 35px 110px rgba(5, 53, 47, 0.12);
}

.lothis-app-stage::before {
	content: "";
	position: absolute;
	top: -16rem;
	left: -10rem;
	width: 32rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, var(--lothis-atmosphere-one), transparent 68%);
	pointer-events: none;
}

.lothis-app-chrome {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
	border-bottom: 1px solid var(--lothis-line);
	background: color-mix(in srgb, var(--lothis-surface) 72%, transparent);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.lothis-app-chrome-label {
	color: var(--lothis-faint);
	font-size: 0.76rem;
	font-weight: 650;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.lothis-app-chrome-title {
	font-size: 1rem;
	font-weight: 680;
	letter-spacing: -0.025em;
}

.lothis-app-chrome-dot {
	justify-self: end;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--lothis-accent);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--lothis-accent) 12%, transparent);
}

.lothis-conversation-preview {
	position: relative;
	display: flex;
	min-height: 580px;
	flex-direction: column;
	padding: clamp(2rem, 6vw, 4.5rem);
}

.lothis-preview-center {
	display: flex;
	max-width: 610px;
	flex: 1;
	align-self: center;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.lothis-preview-center .lothis-mark {
	width: 5.2rem;
	aspect-ratio: 1;
	margin-inline: auto;
}

.lothis-preview-center h2 {
	margin: 1.35rem 0 0.55rem;
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	letter-spacing: -0.045em;
}

.lothis-preview-center p {
	margin: 0;
	color: var(--lothis-muted);
	font-size: clamp(0.96rem, 1.5vw, 1.08rem);
}

.lothis-composer-preview {
	display: flex;
	width: min(100%, 720px);
	min-height: 3.75rem;
	align-items: center;
	align-self: center;
	gap: 0.8rem;
	padding: 0.4rem 0.45rem 0.4rem 1.1rem;
	border: 1px solid var(--lothis-line);
	border-radius: 2.25rem;
	background: var(--lothis-surface-solid);
	box-shadow: var(--lothis-shadow-control);
	color: var(--lothis-faint);
}

.lothis-composer-preview span:first-child {
	flex: 1;
}

.lothis-composer-send {
	display: grid;
	width: var(--lothis-control-hit);
	height: var(--lothis-control-hit);
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--lothis-muted) 13%, transparent);
	color: var(--lothis-faint);
	font-size: 1.1rem;
	font-weight: 600;
}

.lothis-preview-disclaimer {
	margin: 0.8rem 0 0;
	color: var(--lothis-faint);
	font-size: 0.78rem;
	text-align: center;
}

/* Editorial product story, not a generic feature-card grid. */
.lothis-manifesto {
	max-width: 1040px;
	margin-inline: auto;
	font-size: clamp(1.9rem, 4.3vw, 3.75rem);
	font-weight: 610;
	letter-spacing: -0.048em;
	line-height: 1.06;
	text-align: center;
	text-wrap: balance;
}

.lothis-manifesto em {
	color: var(--lothis-accent);
	font-style: normal;
}

.lothis-editorial-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(3rem, 9vw, 8rem);
	align-items: start;
}

.lothis-editorial-sticky {
	position: sticky;
	top: calc(var(--lothis-header-height) + 3rem);
}

.lothis-editorial-sticky h2 {
	margin-top: 0.8rem;
	font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.lothis-editorial-sticky p {
	color: var(--lothis-muted);
	font-size: 1rem;
}

.lothis-principles {
	border-top: 1px solid var(--lothis-line);
}

.lothis-principle {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 1rem;
	padding: 2rem 0;
	border-bottom: 1px solid var(--lothis-line);
}

.lothis-principle-number {
	color: var(--lothis-accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.lothis-principle h3 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	letter-spacing: -0.035em;
}

.lothis-principle p {
	margin: 0;
	color: var(--lothis-muted);
}

/* Example conversation. */
.lothis-dialogue-stage {
	position: relative;
	max-width: 840px;
	margin: 3.5rem auto 0;
	padding: clamp(1.5rem, 5vw, 3.25rem);
	overflow: hidden;
}

.lothis-dialogue-label {
	margin: 0 0 2.2rem;
	color: var(--lothis-faint);
	font-size: 0.76rem;
	font-weight: 670;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.lothis-dialogue-row {
	display: flex;
	margin: 1.1rem 0;
}

.lothis-dialogue-row--user {
	justify-content: flex-end;
}

.lothis-dialogue-row p {
	max-width: 620px;
	margin: 0;
	font-size: clamp(1rem, 1.8vw, 1.14rem);
}

.lothis-dialogue-row--user p {
	padding: 0.9rem 1.15rem;
	border-radius: 1.4rem 1.4rem 0.35rem 1.4rem;
	background: var(--lothis-user-bubble);
	color: #ffffff;
}

.lothis-dialogue-row--lothis {
	position: relative;
	padding: 1.2rem 0 0 3.1rem;
}

.lothis-dialogue-row--lothis::before {
	content: "";
	position: absolute;
	top: 1.1rem;
	left: 0;
	width: 32px;
	height: 32px;
	background: url("../images/lothis-mark-micro.svg") center / 32px 32px no-repeat;
}

.lothis-dialogue-context {
	margin-top: 2.3rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--lothis-line);
	color: var(--lothis-faint);
	font-size: 0.78rem;
}

/* Atmospheres echo the app while the mark always stays unchanged. */
.lothis-atmospheres {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-top: 3.25rem;
}

.lothis-atmosphere {
	position: relative;
	min-height: 240px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.4rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.44);
	border-radius: 1.75rem;
	color: #10211f;
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	transition: transform 180ms ease, box-shadow 180ms ease, outline-color 180ms ease;
}

.lothis-atmosphere:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 35px rgba(19, 50, 46, 0.10);
}

.lothis-atmosphere[aria-pressed="true"] {
	outline: 3px solid var(--lothis-accent);
	outline-offset: 3px;
}

.lothis-atmosphere[aria-pressed="true"] .lothis-atmosphere-name::after {
	content: "✓";
	display: inline-grid;
	width: 1.35rem;
	height: 1.35rem;
	margin-left: 0.5rem;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.68);
	font-size: 0.72rem;
	vertical-align: 0.1em;
}

.lothis-atmosphere::before,
.lothis-atmosphere::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.lothis-atmosphere::before {
	top: -35%;
	right: -42%;
	width: 110%;
	aspect-ratio: 1;
	background: rgba(255, 255, 255, 0.42);
}

.lothis-atmosphere::after {
	bottom: -42%;
	left: -37%;
	width: 100%;
	aspect-ratio: 1;
	background: rgba(255, 255, 255, 0.20);
}

.lothis-atmosphere--dew { background: linear-gradient(145deg, #dff8ee, #b9eade 58%, #b8dff1); }
.lothis-atmosphere--tide { background: linear-gradient(145deg, #e0eaff, #bfcff5 55%, #bee9e8); }
.lothis-atmosphere--blossom { background: linear-gradient(145deg, #fbe4ee, #efbed4 58%, #dad1f6); }
.lothis-atmosphere--glow { background: linear-gradient(145deg, #fcedd9, #f6cfaa 58%, #f1df9f); }

.lothis-atmosphere-name,
.lothis-atmosphere-copy {
	position: relative;
	z-index: 1;
}

.lothis-atmosphere-status {
	margin: 1.25rem 0 0;
	color: var(--lothis-faint);
	font-size: 0.8rem;
	text-align: center;
}

.lothis-atmosphere-name {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 680;
	letter-spacing: -0.025em;
}

.lothis-atmosphere-copy {
	margin: 0.15rem 0 0;
	font-size: 0.84rem;
	opacity: 0.72;
}

/* Product boundary and safety. */
.lothis-boundary-wrap {
	position: relative;
	overflow: hidden;
	border-radius: clamp(2rem, 5vw, 4rem);
	background: #07171b;
	color: #f0f8f5;
}

.lothis-boundary-wrap::before {
	content: "";
	position: absolute;
	top: -21rem;
	right: -14rem;
	width: 40rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(68, 209, 176, 0.19), transparent 66%);
}

.lothis-boundary-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
	gap: clamp(3rem, 8vw, 7rem);
	padding: clamp(2rem, 7vw, 6rem);
}

.lothis-boundary-inner .lothis-overline {
	color: #72dac8;
}

.lothis-boundary-inner h2 {
	margin: 1rem 0;
	color: #f0f8f5;
	font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.lothis-boundary-inner p {
	color: #b8c8c4;
	font-size: 1rem;
}

.lothis-boundary-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lothis-boundary-list li {
	position: relative;
	padding: 1rem 0 1rem 2rem;
	border-bottom: 1px solid rgba(238, 248, 245, 0.12);
	color: #dbe8e4;
}

.lothis-boundary-list li::before {
	content: "";
	position: absolute;
	top: 1.48rem;
	left: 0.2rem;
	width: 0.52rem;
	height: 0.52rem;
	border: 1px solid #72dac8;
	border-radius: 50%;
}

.lothis-trust-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
	margin-top: 3.25rem;
}

.lothis-trust-panel {
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.lothis-trust-panel h3 {
	margin: 0 0 0.8rem;
	font-size: 1.35rem;
}

.lothis-trust-panel p {
	margin: 0;
	color: var(--lothis-muted);
}

/* FAQ uses native details for keyboard and screen-reader behaviour. */
.lothis-faq {
	max-width: 860px;
	margin: 3rem auto 0;
	border-top: 1px solid var(--lothis-line);
}

.lothis-faq .wp-block-details {
	margin: 0;
	padding: 1.45rem 0;
	border-bottom: 1px solid var(--lothis-line);
}

.lothis-faq summary {
	position: relative;
	padding-right: 3rem;
	cursor: pointer;
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	font-weight: 650;
	letter-spacing: -0.02em;
	list-style: none;
}

.lothis-faq summary::-webkit-details-marker {
	display: none;
}

.lothis-faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0.4rem;
	color: var(--lothis-accent);
	font-size: 1.45rem;
	font-weight: 430;
	transform: translateY(-50%);
}

.lothis-faq details[open] summary::after {
	content: "−";
}

.lothis-faq .wp-block-details > :not(summary) {
	max-width: 700px;
	margin: 1rem 0 0;
	color: var(--lothis-muted);
}

/* Closing statement. */
.lothis-final-cta {
	position: relative;
	max-width: 1000px;
	margin-inline: auto;
	padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
	overflow: hidden;
	text-align: center;
}

.lothis-final-cta::before {
	content: "";
	position: absolute;
	top: -18rem;
	left: 50%;
	width: 42rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, var(--lothis-atmosphere-one), transparent 67%);
	transform: translateX(-50%);
	pointer-events: none;
}

.lothis-final-cta > * {
	position: relative;
}

.lothis-final-cta .lothis-mark {
	width: 4.8rem;
	aspect-ratio: 1;
	margin-inline: auto;
}

.lothis-final-cta h2 {
	max-width: 700px;
	margin: 1.1rem auto;
	font-size: clamp(1.95rem, 4.2vw, 3.25rem);
}

.lothis-final-cta p {
	max-width: 620px;
	margin-inline: auto;
	color: var(--lothis-muted);
	font-size: 1rem;
}

.lothis-final-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 1.7rem;
}

/* Footer. */
.lothis-site-footer {
	padding-top: 2.5rem;
	padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right));
	padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
	padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left));
	border-top: 1px solid var(--lothis-line);
	color: var(--lothis-muted);
}

.lothis-site-footer .wp-block-site-title {
	font-size: 1rem;
}

.lothis-footer-meta {
	font-size: 0.84rem;
}

.lothis-site-footer .wp-block-navigation a {
	color: var(--lothis-muted);
	text-decoration: none;
}

.lothis-site-footer .wp-block-navigation a:hover {
	color: var(--lothis-ink);
}

.lothis-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem 1rem;
	font-size: 0.84rem;
}

.lothis-footer-links a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	color: var(--lothis-muted);
	text-decoration: none;
}

.lothis-footer-links a:hover {
	color: var(--lothis-ink);
}

/* Standard post and page templates. */
.lothis-content-shell {
	padding-top: clamp(3.5rem, 7vw, 5.5rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.lothis-content-header {
	max-width: var(--lothis-reading);
	margin: 0 auto 3rem;
}

.lothis-content-header .wp-block-post-title {
	font-size: clamp(2.2rem, 5vw, 3.75rem);
}

.lothis-content-shell .wp-block-post-content {
	color: var(--lothis-ink);
}

.lothis-content-shell .wp-block-post-content :where(p, li) {
	font-size: 1rem;
}

.lothis-query-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.lothis-query-card {
	height: 100%;
	padding: 1.6rem;
}

/* Responsive behaviour. */
@media (max-width: 900px) {
	.lothis-editorial-grid,
	.lothis-boundary-inner {
		grid-template-columns: 1fr;
	}

	.lothis-editorial-sticky {
		position: static;
	}

	.lothis-atmospheres {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* WordPress changes its mobile admin bar from fixed to absolute here. The
	 * header therefore follows normal flow beneath it, then sticks at the real
	 * viewport edge once the toolbar has scrolled away. */
	body.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

@media (max-width: 700px) {
	:root {
		--lothis-header-base: 60px;
		--lothis-radius-card: 24px;
	}

	.lothis-settings-dialog {
		inset: auto 0 0;
		width: 100%;
		max-height: min(88dvh, 47rem);
		margin: 0;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 1.45rem 1.45rem 0 0;
		background: var(--lothis-surface-solid);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.lothis-settings-dialog[open] {
		animation-name: lothis-settings-sheet-in;
		animation-duration: 220ms;
	}

	@keyframes lothis-settings-sheet-in {
		from { opacity: 0; transform: translateY(1.5rem); }
		to { opacity: 1; transform: translateY(0); }
	}

	.lothis-settings-frame {
		display: block;
		min-height: 0;
		max-height: inherit;
	}

	.lothis-settings-sidebar {
		display: none;
	}

	.lothis-settings-content {
		max-height: inherit;
		padding:
			1rem
			max(1rem, env(safe-area-inset-right))
			max(1.35rem, env(safe-area-inset-bottom))
			max(1rem, env(safe-area-inset-left));
		scrollbar-gutter: auto;
	}

	.lothis-settings-header {
		padding-bottom: 1rem;
	}

	.lothis-settings-header p {
		font-size: 0.78rem;
	}

	.lothis-settings-section {
		padding: 0.9rem 0;
	}

	.lothis-settings-choice {
		min-height: 3.75rem;
		padding: 0.5rem 0.6rem;
	}

	/* A backdrop-filter creates a containing block for fixed descendants in
	 * WebKit and Chromium. WordPress Core places its mobile dialog inside this
	 * header, so glass is deliberately made opaque on small screens. This keeps
	 * the navigation attached to the viewport instead of the 68px header. */
	.lothis-site-header {
		background: color-mix(in srgb, var(--lothis-canvas) 96%, transparent);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.lothis-home-composer {
		-webkit-backdrop-filter: saturate(120%) blur(12px);
		backdrop-filter: saturate(120%) blur(12px);
	}

	.lothis-home-hero-glow {
		filter: blur(6px);
	}

	.lothis-site-header .wp-block-navigation__responsive-container-open,
	.lothis-site-header .wp-block-navigation__responsive-container-close {
		width: 2.75rem;
		height: 2.75rem;
		min-width: 2.75rem;
		min-height: 2.75rem;
		align-items: center;
		justify-content: center;
		padding: 0;
		border: 1px solid var(--lothis-line);
		border-radius: 50%;
		background: var(--lothis-surface-solid);
		box-shadow: var(--lothis-shadow-control);
		color: var(--lothis-ink);
		cursor: pointer;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.lothis-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.lothis-site-header .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		inset: 0 !important;
		z-index: 100000 !important;
		width: 100vw !important;
		max-width: none !important;
		height: 100vh !important;
		height: 100dvh !important;
		min-height: 100vh;
		min-height: 100dvh;
		display: flex !important;
		box-sizing: border-box;
		flex-direction: column;
		overflow-x: hidden;
		overflow-y: auto;
		padding:
			max(1rem, env(safe-area-inset-top))
			max(1.25rem, env(safe-area-inset-right))
			max(1.5rem, env(safe-area-inset-bottom))
			max(1.25rem, env(safe-area-inset-left)) !important;
		background: var(--lothis-canvas) !important;
		color: var(--lothis-ink) !important;
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
	}

	.lothis-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		position: relative;
		width: 100%;
		min-height: calc(100dvh - 2rem);
		display: flex;
		box-sizing: border-box;
		flex: 1;
		flex-direction: column;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-close {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 2;
		display: flex;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-open svg,
	.lothis-site-header .wp-block-navigation__responsive-container-close svg {
		width: 1.35rem;
		height: 1.35rem;
		fill: currentColor;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content {
		width: 100%;
		min-height: 100%;
		display: flex !important;
		box-sizing: border-box;
		flex: 1;
		flex-direction: column;
		align-items: stretch !important;
		justify-content: center;
		padding: 5.75rem 0 3rem !important;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content::before {
		content: "Lothis";
		display: flex;
		min-height: 2.75rem;
		align-items: center;
		align-self: center;
		margin-bottom: clamp(2.25rem, 8vh, 4.5rem);
		padding-left: 3.35rem;
		background: url("../images/lothis-mark-micro.svg") left center / 44px 44px no-repeat;
		color: var(--lothis-ink);
		font-size: 1.1rem;
		font-weight: 680;
		letter-spacing: -0.03em;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
		width: min(100%, 32rem);
		display: flex !important;
		flex: 0 0 auto;
		flex-direction: column !important;
		align-items: stretch !important;
		align-self: center;
		gap: 0 !important;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
		width: 100%;
		display: block !important;
		border-bottom: 1px solid var(--lothis-line);
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item:first-child {
		border-top: 1px solid var(--lothis-line);
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
		width: 100%;
		min-height: 3.75rem;
		display: flex !important;
		box-sizing: border-box;
		align-items: center;
		justify-content: space-between;
		padding: 0.9rem 0.25rem !important;
		color: var(--lothis-ink) !important;
		font-size: clamp(1.18rem, 5vw, 1.4rem);
		font-weight: 610;
		letter-spacing: -0.035em;
		line-height: 1.2;
		text-decoration: none;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after {
		content: "↗";
		margin-left: 1rem;
		color: var(--lothis-accent);
		font-size: 1rem;
		font-weight: 500;
	}

	.lothis-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:hover {
		color: var(--lothis-accent) !important;
	}

	.lothis-header-inner {
		min-height: var(--lothis-header-base);
	}

	.lothis-home-hero {
		min-height: calc(100svh - var(--lothis-header-height));
		padding-top: clamp(2.5rem, 6vh, 3.75rem);
		padding-bottom: clamp(2.75rem, 7vh, 4rem);
	}

	.lothis-home-hero .lothis-mark--hero {
		width: clamp(4.25rem, 16vw, 5rem);
		margin-bottom: 1.25rem;
	}

	.lothis-home-hero h1 {
		font-size: clamp(2.25rem, 10vw, 2.75rem);
		letter-spacing: -0.046em;
	}

	:root form.lothis-home-composer {
		min-height: 3.5rem;
		padding: 0.31rem 0.35rem 0.31rem 0.9rem;
		border-radius: 1.8rem;
	}

	.lothis-home-composer textarea {
		font-size: 1rem;
	}

	.lothis-home-composer-send {
		width: var(--lothis-control-hit);
		height: var(--lothis-control-hit);
	}

	.lothis-home-learn-link {
		margin-top: 1.75rem;
	}

	.lothis-hero {
		min-height: auto;
		padding-top: 3.5rem;
		padding-bottom: 4rem;
	}

	.lothis-hero h1 {
		font-size: clamp(2.35rem, 11vw, 3.1rem);
		letter-spacing: -0.048em;
	}

	.lothis-app-stage {
		min-height: 570px;
		border-radius: 2.3rem;
	}

	.lothis-app-chrome {
		padding: 1.1rem 1.25rem;
	}

	.lothis-conversation-preview {
		min-height: 510px;
		padding: 1.5rem;
	}

	.lothis-composer-preview {
		min-height: 3.55rem;
		padding-left: 0.9rem;
		font-size: 0.9rem;
	}

	.lothis-composer-send {
		width: var(--lothis-control-hit);
		height: var(--lothis-control-hit);
	}

	.lothis-principle {
		grid-template-columns: 2.25rem 1fr;
	}

	.lothis-trust-grid,
	.lothis-query-grid {
		grid-template-columns: 1fr;
	}

	.lothis-footer-inner {
		align-items: flex-start !important;
		flex-direction: column;
	}

	.lothis-footer-links {
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.lothis-atmospheres {
		grid-template-columns: 1fr;
	}

	.lothis-atmosphere {
		min-height: 190px;
	}

	.lothis-header-actions {
		gap: 0.25rem;
	}

	.lothis-settings-trigger {
		width: var(--lothis-control-hit);
		height: var(--lothis-control-hit);
		min-width: var(--lothis-control-hit);
		min-height: var(--lothis-control-hit);
	}

	.lothis-header-chat-link {
		padding-inline: 0.8rem;
	}

	.lothis-home-hero-note {
		flex-direction: column;
		gap: 0.12rem;
	}

	.lothis-home-hero-note > [aria-hidden="true"] {
		display: none;
	}

	.lothis-home-disclosure-content {
		padding-right: 1rem;
	}
}

@media (max-width: 340px) {
	.lothis-brand .wp-block-site-title a {
		min-width: 2.75rem;
		justify-content: center;
		gap: 0;
		font-size: 0;
	}

	.lothis-header-chat-label--full {
		display: none;
	}

	.lothis-header-chat-label--compact {
		display: inline;
	}
}

@media (max-width: 700px) and (max-height: 650px) {
	.lothis-home-hero {
		padding-top: 1.5rem;
		padding-bottom: 1.5rem;
	}

	.lothis-home-hero .lothis-mark--hero {
		width: 3.9rem;
		margin-bottom: 0.85rem;
	}

	.lothis-home-hero h1 {
		font-size: clamp(2.1rem, 9.5vw, 2.5rem);
	}

	.lothis-home-hero-lead {
		margin-top: 0.65rem;
		font-size: 0.95rem;
		line-height: 1.45;
	}

	:root form.lothis-home-composer {
		min-height: 3.5rem;
		margin-top: 1.1rem;
	}

	.lothis-home-composer-send {
		width: 2.75rem;
		height: 2.75rem;
	}

	.lothis-home-hero-note {
		margin-top: 0.55rem;
	}

	.lothis-home-learn-link {
		margin-top: 0.65rem;
	}
}

@media (hover: none) {
	:root a.lothis-header-chat-link:hover,
	.lothis-settings-trigger:hover,
	.wp-block-button .wp-block-button__link:hover,
	.wp-element-button:hover {
		transform: none;
	}
}

:root a.lothis-header-chat-link:active,
.lothis-settings-trigger:active,
.wp-block-button .wp-block-button__link:active,
.wp-element-button:active {
	transform: scale(0.985);
}

/* Accessibility variants are first-class, not a later visual patch. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.lothis-mark--hero,
	.lothis-preview-center .lothis-mark {
		animation: none !important;
		transform: none;
	}

	.lothis-settings-dialog[open],
	.lothis-settings-dialog::backdrop,
	.lothis-settings-choice-check {
		animation: none !important;
		transition: none !important;
	}
}

@supports (view-transition-name: root) {
	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 260ms;
		animation-timing-function: cubic-bezier(.2, .75, .25, 1);
	}
}

@media (prefers-reduced-motion: reduce) {
	::view-transition-old(root),
	::view-transition-new(root) {
		animation: none !important;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.lothis-site-header,
	.lothis-settings-trigger,
	.lothis-settings-dialog,
	.lothis-status-pill,
	.lothis-home-composer,
	.wp-block-button.is-style-lothis-quiet .wp-block-button__link,
	.wp-block-button.is-style-outline .wp-block-button__link,
	.lothis-app-chrome {
		background: var(--lothis-surface-solid);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.lothis-settings-dialog::backdrop {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.lothis-hero::before,
	.lothis-home-hero-glow,
	.lothis-app-stage::before,
	.lothis-final-cta::before {
		display: none;
	}
}

@media (prefers-contrast: more) {
	:root {
		--lothis-line: currentColor;
		--lothis-line-strong: currentColor;
		--lothis-muted: var(--lothis-ink);
	}

	.lothis-settings-trigger,
	.lothis-settings-dialog,
	.lothis-settings-choice,
	.lothis-app-stage,
	.lothis-composer-preview,
	.lothis-home-composer,
	.is-style-lothis-surface,
	.lothis-surface {
		border-width: 2px;
	}
}

@media (forced-colors: active) {
	.lothis-mark,
	.lothis-brand .wp-block-site-title a::before,
	.lothis-dialogue-row--lothis::before {
		forced-color-adjust: none;
	}

	.lothis-status-pill::before,
	.lothis-app-chrome-dot,
	.lothis-home-composer-send {
		background: CanvasText;
	}

	.lothis-settings-choice[aria-checked="true"] {
		border: 2px solid SelectedItem;
	}

	.lothis-settings-choice-check {
		background: SelectedItem;
		color: SelectedItemText;
	}
}

@media print {
	.lothis-site-header,
	.lothis-hero-actions,
	.lothis-header-chat-link,
	.lothis-home-composer,
	.lothis-app-showcase,
	.lothis-final-cta,
	.lothis-site-footer {
		display: none;
	}

	body {
		background: #ffffff;
		color: #000000;
	}
}
