/* =========================================================================
   Otasi — Direction A "Alpine Paper"
   Calm, editorial, Swiss. Clean white, ink type, fine blue-green threads.
   Light tokens in :root; dark tokens (Direction B) via prefers-color-scheme / [data-theme=dark].
   ========================================================================= */

:root {
	/* brand */
	--brand-navy: #031B51;
	--brand-blue: #2763CF;
	--brand-green-700: #036357;
	--brand-green-600: #097B69;
	--brand-green-500: #149E80;
	--brand-ink: #272727;

	/* surfaces */
	color-scheme: light;
	--bg: #FFFFFF;
	--bg-alt: #F4F7FB;
	--surface: #FFFFFF;
	--surface-solid: #FFFFFF;
	--surface-sunk: #F5F8FC;
	--surface-navy: #031B51;
	--feature-bg: #031B51;
	--feature-border: transparent;
	--cta-bg: #031B51;
	--cta-ring: transparent;
	--footer-bg: #031B51;
	--nav-bg: rgba(255,255,255,.86);
	--nav-bg-top: rgba(255,255,255,0);
	--hover-bg: rgba(3,27,81,.045);
	--chip-bg: rgba(255,255,255,.7);
	--row-hover: #F8FAFD;
	--code-bg: #0B1736;
	--code-border: #1B2A52;
	--code-text: #E6ECF7;
	--code-inline: #031B51;
	--on-accent: #FFFFFF;
	--section-edge: transparent;

	/* text */
	--text: #1C1F26;
	--text-body: #272727;
	--muted: #5E6470;
	--subtle: #8B909A;
	--text-on-navy: #F3F5FA;
	--muted-on-navy: #A9B4CC;

	/* accents */
	--accent: #031B51;
	--accent-hover: #0A2A73;
	--accent-2: #097B69;
	--accent-2-hover: #036357;
	--link: #2763CF;
	--highlight: #149E80;
	--highlight-text: #0B8A6F; /* slightly deeper for large-type contrast on white */
	--accent-2-text: #036357;
	--ochre: #C8902E;
	--ochre-text: #7A5413;
	--icon-blue: #1D4FA8;
	--icon-navy: #031B51;
	--badge-text: #031B51;

	--tint-navy: #E6EAF3;
	--tint-blue: #E7EEFB;
	--tint-green: #E2F2EE;
	--tint-ochre: #FBF1DE;
	--tint-ochre-border: #EBD6AE;

	--border: #E3E8EF;
	--border-strong: #CDD5E0;
	--edit-border: #E9D6B0;
	--addform-bg: rgba(39,99,207,.04);
	--err-bg: #FBECEA; --err-text: #8E2318; --err-border: #F0C9C3;
	--ok-text: #036357; --ok-border: #BFE3D8;
	--danger: #A3261A; --danger-bg: #FFFFFF; --danger-border: #EBC4BE;
	--rule-grad: linear-gradient(90deg, #2763CF, #149E80 60%, transparent);
	--grad-line: linear-gradient(90deg, #2763CF 0%, #149E80 55%, #097B69 100%);

	--wash:
		radial-gradient(38% 46% at 72% 38%, rgba(39,99,207,.28), transparent 70%),
		radial-gradient(30% 40% at 84% 58%, rgba(20,158,128,.26), transparent 70%),
		radial-gradient(26% 34% at 64% 66%, rgba(3,27,81,.14), transparent 72%),
		radial-gradient(18% 24% at 92% 30%, rgba(111,163,255,.18), transparent 70%);
	--focus: 0 0 0 3px rgba(39,99,207,.35);

	--shadow-sm: 0 1px 2px rgba(28,31,38,.06);
	--shadow-md: 0 8px 24px -8px rgba(3,27,81,.12), 0 2px 6px rgba(28,31,38,.05);
	--shadow-lg: 0 24px 60px -20px rgba(3,27,81,.22);

	--r-card: 24px;
	--r-card-sig: 24px 2px 24px 24px; /* signature: square top-right, like the logo's O ring */
	--r-code-sig: 20px 2px 20px 20px;
	--r-cta-sig: 32px 2px 32px 32px;
	--r-sm: 14px;
	--r-sm-sig: 14px 2px 14px 14px;
	--show-light: block;
	--show-dark: none;
	--r-btn: 12px;

	--ease: cubic-bezier(.2,.7,.2,1);
	--maxw: 1240px;
	--gutter: 24px;
	--pad-x: clamp(20px, 4vw, 40px);
	--sec-y: clamp(64px, 8vw, 112px);

	--f-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-label: 'Montserrat', 'Manrope', ui-sans-serif, system-ui, sans-serif;
	--f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

	--nav-h: 72px;
}

/* ---------- Dark theme (Direction B "Night Filament" tokens) ---------- */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme=light]) {
		color-scheme: dark;
		--bg: #050B1A; --bg-alt: #07112A; --surface: rgba(16,30,64,.55); --surface-solid: #0B1631; --surface-sunk: #060E22;
		--surface-navy: #0B1631; --feature-bg: linear-gradient(160deg, #0F2250 0%, #0A1838 60%, #08223A 100%); --feature-border: rgba(91,149,255,.28);
		--cta-bg: linear-gradient(180deg, #0A1736, #07112A); --cta-ring: rgba(150,175,230,.16); --footer-bg: #030817;
		--nav-bg: rgba(5,11,26,.78); --nav-bg-top: rgba(5,11,26,0); --hover-bg: rgba(255,255,255,.05); --chip-bg: rgba(255,255,255,.04);
		--row-hover: rgba(91,149,255,.05); --code-bg: #060E22; --code-border: rgba(150,175,230,.14); --code-text: #E6ECF7; --code-inline: #9CC0FF;
		--on-accent: #FFFFFF; --section-edge: rgba(150,175,230,.10);
		--text: #EEF2FA; --text-body: #C9D2E3; --muted: #8D99B3; --subtle: #5F6B86; --text-on-navy: #EEF2FA; --muted-on-navy: #8D99B3;
		--accent: #2763CF; --accent-hover: #3A78E6; --accent-text: #9CC0FF; --accent-2: #149E80; --accent-2-hover: #1DB894; --accent-2-text: #2FD3AC;
		--link: #6FA3FF; --highlight: #2FD3AC; --highlight-text: #2FD3AC; --ochre: #E0A54A; --ochre-text: #F3C57E;
		--icon-blue: #6FA3FF; --icon-navy: #C9D2E3; --badge-text: #C9D2E3;
		--tint-navy: rgba(150,175,230,.10); --tint-blue: rgba(39,99,207,.18); --tint-green: rgba(20,158,128,.16); --tint-ochre: rgba(224,165,74,.14); --tint-ochre-border: rgba(224,165,74,.35);
		--border: rgba(150,175,230,.12); --border-strong: rgba(150,175,230,.24); --edit-border: rgba(224,165,74,.3); --addform-bg: rgba(91,149,255,.05);
		--err-bg: rgba(220,80,60,.12); --err-text: #FFB4A8; --err-border: rgba(220,80,60,.35); --ok-text: #2FD3AC; --ok-border: rgba(47,211,172,.3);
		--danger: #FF8A7A; --danger-bg: transparent; --danger-border: rgba(255,138,122,.35);
		--rule-grad: linear-gradient(90deg, #5B95FF, #2FD3AC 60%, transparent);
		--grad-line: linear-gradient(90deg, #5B95FF 0%, #2FD3AC 55%, #149E80 100%);
		--wash:
			radial-gradient(50% 40% at 70% 20%, rgba(39,99,207,.35), transparent 70%),
			radial-gradient(40% 35% at 85% 55%, rgba(20,158,128,.22), transparent 70%),
			radial-gradient(60% 50% at 20% 0%, rgba(3,27,81,.9), transparent 70%);
		--focus: 0 0 0 3px rgba(91,149,255,.5);
		--shadow-sm: 0 1px 0 rgba(255,255,255,.04) inset;
		--shadow-md: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -20px rgba(0,0,0,.6);
		--shadow-lg: 0 30px 70px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(150,175,230,.08);
		--btn-glow: 0 0 40px -8px rgba(91,149,255,.45);
		--show-light: none; --show-dark: block;
	}
}
:root[data-theme=dark] {
	color-scheme: dark;
	--bg: #050B1A; --bg-alt: #07112A; --surface: rgba(16,30,64,.55); --surface-solid: #0B1631; --surface-sunk: #060E22;
	--surface-navy: #0B1631; --feature-bg: linear-gradient(160deg, #0F2250 0%, #0A1838 60%, #08223A 100%); --feature-border: rgba(91,149,255,.28);
	--cta-bg: linear-gradient(180deg, #0A1736, #07112A); --cta-ring: rgba(150,175,230,.16); --footer-bg: #030817;
	--nav-bg: rgba(5,11,26,.78); --nav-bg-top: rgba(5,11,26,0); --hover-bg: rgba(255,255,255,.05); --chip-bg: rgba(255,255,255,.04);
	--row-hover: rgba(91,149,255,.05); --code-bg: #060E22; --code-border: rgba(150,175,230,.14); --code-text: #E6ECF7; --code-inline: #9CC0FF;
	--on-accent: #FFFFFF; --section-edge: rgba(150,175,230,.10);
	--text: #EEF2FA; --text-body: #C9D2E3; --muted: #8D99B3; --subtle: #5F6B86; --text-on-navy: #EEF2FA; --muted-on-navy: #8D99B3;
	--accent: #2763CF; --accent-hover: #3A78E6; --accent-text: #9CC0FF; --accent-2: #149E80; --accent-2-hover: #1DB894; --accent-2-text: #2FD3AC;
	--link: #6FA3FF; --highlight: #2FD3AC; --highlight-text: #2FD3AC; --ochre: #E0A54A; --ochre-text: #F3C57E;
	--icon-blue: #6FA3FF; --icon-navy: #C9D2E3; --badge-text: #C9D2E3;
	--tint-navy: rgba(150,175,230,.10); --tint-blue: rgba(39,99,207,.18); --tint-green: rgba(20,158,128,.16); --tint-ochre: rgba(224,165,74,.14); --tint-ochre-border: rgba(224,165,74,.35);
	--border: rgba(150,175,230,.12); --border-strong: rgba(150,175,230,.24); --edit-border: rgba(224,165,74,.3); --addform-bg: rgba(91,149,255,.05);
	--err-bg: rgba(220,80,60,.12); --err-text: #FFB4A8; --err-border: rgba(220,80,60,.35); --ok-text: #2FD3AC; --ok-border: rgba(47,211,172,.3);
	--danger: #FF8A7A; --danger-bg: transparent; --danger-border: rgba(255,138,122,.35);
	--rule-grad: linear-gradient(90deg, #5B95FF, #2FD3AC 60%, transparent);
	--grad-line: linear-gradient(90deg, #5B95FF 0%, #2FD3AC 55%, #149E80 100%);
	--wash:
		radial-gradient(50% 40% at 70% 20%, rgba(39,99,207,.35), transparent 70%),
		radial-gradient(40% 35% at 85% 55%, rgba(20,158,128,.22), transparent 70%),
		radial-gradient(60% 50% at 20% 0%, rgba(3,27,81,.9), transparent 70%);
	--focus: 0 0 0 3px rgba(91,149,255,.5);
	--shadow-sm: 0 1px 0 rgba(255,255,255,.04) inset;
	--shadow-md: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -20px rgba(0,0,0,.6);
	--shadow-lg: 0 30px 70px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(150,175,230,.08);
	--btn-glow: 0 0 40px -8px rgba(91,149,255,.45);
	--show-light: none; --show-dark: block;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text-body);
	font: 400 18px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.oa-noscroll { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-display); color: var(--text); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.2vw, 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; color: var(--text); }
em { font-style: normal; }
code, kbd, pre, samp { font-family: var(--f-mono); font-size: .875em; }
hr { border: 0; height: 1px; background: var(--rule-grad); margin: 48px 0; }
::selection { background: rgba(39,99,207,.18); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, .o-btn:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

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

.oa-skip {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-btn);
	font: 600 15px var(--f-display); transition: top .16s var(--ease);
}
.oa-skip:focus { top: 12px; text-decoration: none; }

.oa-container, .o-cta, .oa-nav-inner, .oa-footer-inner, .oa-footer-bottom {
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--pad-x));
	margin-left: auto; margin-right: auto;
	padding-left: var(--pad-x); padding-right: var(--pad-x);
}

/* ---------- Navigation ---------- */
.oa-nav {
	position: sticky; top: 0; z-index: 50;
	height: var(--nav-h);
	background: var(--nav-bg-top);
	border-bottom: 1px solid transparent;
	transition: background .24s var(--ease), border-color .24s var(--ease);
}
.oa-nav.is-scrolled, .oa-nav.is-open {
	background: var(--nav-bg);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom-color: var(--border);
}
.oa-nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.oa-logo { display: inline-flex; align-items: center; flex: none; padding: 6px 0; border-radius: 6px; }
.oa-logo img { height: 28px; width: auto; display: block; }
.oa-logo .oa-logo-l { display: var(--show-light); }
.oa-logo .oa-logo-d { display: var(--show-dark); }
.oa-menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
.oa-menu > nav { flex: 1; display: flex; justify-content: center; }
.oa-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.oa-links > li { position: relative; display: flex; align-items: center; }
.oa-links a, .oa-sub-toggle {
	display: inline-block; position: relative;
	font: 500 15px/1 var(--f-label); letter-spacing: .01em;
	color: var(--text); padding: 10px 12px; border-radius: 8px;
	background: none; border: 0; cursor: pointer;
	transition: color .16s var(--ease), background-color .16s var(--ease);
}
.oa-links a:hover, .oa-sub-toggle:hover { text-decoration: none; color: var(--accent-text, var(--accent)); background: var(--hover-bg); }
.oa-links > li.is-active > a::after, .oa-links > li.is-active > .oa-sub-toggle::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 2px; margin-left: -9px;
	background: var(--ochre); border-radius: 2px;
}
.oa-sub-caret {
	width: 22px; height: 28px; margin-left: -8px; border: 0; background: none; cursor: pointer; border-radius: 6px; color: var(--muted);
	display: inline-flex; align-items: center; justify-content: center;
}
.oa-sub-caret::before, .oa-sub-toggle::before {
	content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg); transition: transform .16s var(--ease);
}
.oa-sub-toggle::before { content: none; }
.oa-sub-toggle + .oa-sub-caret, .oa-sub-toggle { display: inline-flex; align-items: center; }
.oa-sub-toggle > .oa-caret { display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.oa-sub {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
	background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r-sm);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.oa-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.oa-sub a, .oa-sub span { display: block; padding: 10px 12px; font: 500 14px/1.3 var(--f-body); letter-spacing: 0; color: var(--text); border-radius: 8px; }
.oa-sub li.is-active a { color: var(--accent-2-text); background: var(--tint-green); }
.oa-has-sub:hover > .oa-sub, .oa-has-sub:focus-within > .oa-sub, .oa-has-sub.is-sub-open > .oa-sub { opacity: 1; visibility: visible; transform: none; }
.oa-has-sub.is-sub-open > .oa-sub-caret::before { transform: translateY(1px) rotate(-135deg); }

.oa-nav-right { display: flex; align-items: center; gap: 16px; flex: none; }
.oa-lang { list-style: none; margin: 0; padding: 3px; display: flex; gap: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--chip-bg); }
.oa-lang a {
	display: block; min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 999px;
	font: 600 12px/1 var(--f-label); letter-spacing: .08em; color: var(--muted);
}
.oa-lang a:hover { text-decoration: none; color: var(--text); }
.oa-lang a.is-current { background: var(--text); color: var(--bg); }
.oa-nav-cta { height: 42px; padding: 0 18px; font-size: 15px; }

.oa-burger {
	display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-btn);
	background: var(--surface-solid); cursor: pointer; padding: 0; position: relative;
}
.oa-burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .24s var(--ease), opacity .16s; }
.oa-burger span:nth-child(1) { top: 15px; }
.oa-burger span:nth-child(2) { top: 21px; }
.oa-burger span:nth-child(3) { top: 27px; }
.oa-nav.is-open .oa-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.oa-nav.is-open .oa-burger span:nth-child(2) { opacity: 0; }
.oa-nav.is-open .oa-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
	.oa-links a, .oa-sub-toggle { padding: 10px 9px; font-size: 14px; }
	.oa-nav-inner, .oa-menu { gap: 16px; }
}
@media (max-width: 960px) {
	:root { --nav-h: 64px; }
	.oa-logo img { height: 24px; }
	.oa-burger { display: block; margin-left: auto; position: relative; z-index: 3; }
	.oa-logo { position: relative; z-index: 3; } /* stays visible on top of the open drawer */
	/* The open header must NOT get backdrop-filter: it would become the containing block of the
	   fixed drawer and squeeze it into the 64px bar (the old bug). The drawer has its own surface. */
	.oa-nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
	/* Left sliding drawer */
	.oa-menu {
		position: fixed; z-index: 2; left: 0; top: 0; bottom: 0; height: 100dvh;
		width: min(340px, 86vw);
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
		padding: calc(var(--nav-h) + 8px) 24px 32px; overflow-y: auto; overscroll-behavior: contain;
		background: var(--bg); border-right: 1px solid var(--border);
		border-radius: 0 2px 24px 0;
		box-shadow: 24px 0 60px -20px rgba(3,27,81,.35);
		transform: translateX(-102%); visibility: hidden;
		transition: transform .32s var(--ease), visibility 0s linear .32s;
	}
	.oa-nav.is-open .oa-menu { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
	/* Dimmed backdrop behind the drawer (clicking it closes the menu, see otasi.js) */
	.oa-scrim {
		position: fixed; inset: 0; z-index: 49; background: rgba(5,11,26,.45);
		opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
	}
	body.oa-noscroll .oa-scrim { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
	.oa-menu > nav { display: block; flex: none; }
	.oa-links { flex-direction: column; align-items: stretch; gap: 0; }
	.oa-links > li { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
	.oa-links > li > a, .oa-sub-toggle { flex: 1; font: 600 20px/1.2 var(--f-display); letter-spacing: -0.01em; padding: 16px 4px; border-radius: 0; text-align: left; }
	.oa-links a:hover { background: none; }
	.oa-links > li.is-active > a::after, .oa-links > li.is-active > .oa-sub-toggle::after { left: 4px; bottom: 10px; margin-left: 0; }
	.oa-sub-caret { width: 44px; height: 44px; margin: 0; }
	.oa-sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px; width: 100%; }
	.oa-has-sub:hover > .oa-sub { display: none; }
	.oa-has-sub.is-sub-open > .oa-sub { display: block; }
	.oa-sub a { font-size: 16px; padding: 10px 12px; }
	.oa-nav-right { flex-direction: column; align-items: stretch; gap: 16px; margin-top: auto; }
	.oa-nav-right .oa-lang, .oa-nav-right .oa-theme--nav { align-self: flex-start; }
	.oa-nav-cta { width: 100%; height: 48px; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
	.oa-menu, .oa-nav.is-open .oa-menu, .oa-scrim { transition: none; }
}
@media (min-width: 961px) { .oa-scrim { display: none; } }

/* ---------- Edit bar / zones ---------- */
.oa-editbar { background: var(--tint-ochre); border-bottom: 1px solid var(--edit-border); font: 500 14px var(--f-body); }
.oa-editbar .oa-container { display: flex; gap: 16px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.oa-zone-label {
	font: 600 11px/1 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--ochre);
	padding-top: 24px; padding-bottom: 8px;
}
.oa-zone-3 { padding: 24px 0 var(--sec-y); }
.oa-main { display: block; min-height: min(50vh, 560px); }
.oa-main:focus { outline: none; }

/* ---------- Buttons & links (CONTRACT) ---------- */
.o-btn, main button, main input[type=submit], main input[type=button] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 48px; padding: 0 22px; border-radius: var(--r-btn);
	font: 600 16px/1 var(--f-display); letter-spacing: -0.005em; white-space: nowrap;
	border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
	transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.o-btn:hover { text-decoration: none; }
.o-btn--primary, main button, main input[type=submit], main input[type=button] { background: var(--accent); color: var(--on-accent); }
.o-btn--primary:hover, main button:hover, main input[type=submit]:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); box-shadow: var(--shadow-md), var(--btn-glow, 0 0 0 transparent); }
.o-btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.o-btn--ghost:hover { background: var(--text); color: var(--bg); }
.o-btn--ghost::after { content: "→"; font-family: var(--f-body); transition: transform .16s var(--ease); }
.o-btn--ghost:hover::after { transform: translateX(3px); }
.o-btn--green, .o-btn--trust { background: var(--accent-2); color: var(--on-accent); }
.o-btn--green:hover, .o-btn--trust:hover { background: var(--accent-2-hover); color: var(--on-accent); }
.o-btn:active { transform: translateY(0); }

.o-link { display: inline-flex; align-items: center; gap: 6px; font: 600 16px/1.4 var(--f-display); color: var(--link); }
.o-link::after { content: "→"; font-family: var(--f-body); transition: transform .16s var(--ease); }
.o-link:hover { text-decoration: underline; }
.o-link:hover::after { transform: translateX(3px); }

.o-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }

/* ---------- Eyebrow / lead ---------- */
.o-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 12px/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .16em;
	color: var(--accent-2-text); margin: 0 0 20px;
}
.o-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--rule-grad); flex: none; }
.o-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* ---------- Hero ---------- */
.o-hero {
	position: relative; isolation: isolate; overflow: hidden;
	max-width: none;
	padding: clamp(48px, 7vw, 104px) max(var(--pad-x), calc((100% - var(--maxw)) / 2)) clamp(48px, 6vw, 88px);
	min-height: min(680px, 80vh);
	display: flex; flex-direction: column; justify-content: center;
}
.o-hero > :not(.oa-hero-art) { position: relative; z-index: 2; max-width: 640px; }
.o-hero h1 { margin-bottom: 24px; max-width: 13ch; }
.o-hero h1 em, .o-cta h2 em, .o-section-head h2 em { color: var(--highlight-text); font-style: normal; }
.o-hero .o-lead { margin-bottom: 0; max-width: 34em; }
.o-hero-note {
	margin: 28px 0 0; font: 500 14px/1.5 var(--f-body); color: var(--muted);
	position: relative; padding-left: 20px;
}
.o-hero-note::before {
	content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight);
	box-shadow: 0 0 0 4px rgba(20,158,128,.15);
}
.o-hero--page { min-height: 0; padding-bottom: clamp(56px, 6vw, 88px); padding-top: clamp(40px, 6vw, 88px); }
.o-hero + .o-section:not(.o-section--alt) { padding-top: clamp(32px, 4vw, 56px); }
.oa-main > .o-hero:first-child { margin-top: calc(-1 * var(--nav-h)); padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 112px)); }
.oa-main > .o-hero--page:first-child { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); }
.o-hero--page h1 { font-size: clamp(40px, 5vw, 64px); max-width: 16ch; }

/* Hero art (injected by otasi.js) */
.oa-hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.oa-wash {
	position: absolute; right: -6%; top: 0; width: min(76%, 1100px); height: 100%;
	background: var(--wash);
	filter: blur(6px) saturate(108%);
	-webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000 40%, transparent 85%);
	mask-image: radial-gradient(70% 70% at 70% 50%, #000 40%, transparent 85%);
	animation: oa-drift 18s ease-in-out infinite alternate;
}
.oa-dots {
	position: absolute; width: 180px; height: 180px; right: 40%; top: 58%;
	background: radial-gradient(#2763CF 1px, transparent 1.5px) 0 0 / 14px 14px;
	-webkit-mask-image: radial-gradient(closest-side, #000, transparent);
	mask-image: radial-gradient(closest-side, #000, transparent);
	opacity: .35;
}
.oa-filament { position: absolute; width: min(620px, 52vw); height: auto; right: max(2%, calc((100% - var(--maxw)) / 2 - 20px)); top: 50%; transform: translateY(-46%); overflow: visible; }
.o-hero--page .oa-wash { width: 62%; opacity: .75; }
.o-hero--page .oa-filament { width: min(420px, 40vw); transform: translateY(-40%); opacity: .85; }
.o-hero--page .oa-dots { display: none; }
.oa-filament .t { stroke-dasharray: 1; stroke-dashoffset: 1; animation: oa-draw 2.6s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 300ms); }
.oa-filament .tip { opacity: 0; animation: oa-tip-in .9s var(--ease) forwards, oa-tip 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 70ms + 2.2s), calc(var(--i) * 70ms + 3.1s); }
.oa-filament .tip circle:first-child { transform-box: fill-box; transform-origin: center; animation: oa-pulse 4.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -310ms); }
.oa-stem { animation: oa-sway var(--d, 9s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.7s); }
.oa-fields { animation: oa-drift 18s ease-in-out infinite alternate; transform-origin: 50% 50%; }
.oa-ring path, .oa-ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: oa-draw 2s var(--ease) forwards; }
@keyframes oa-draw { to { stroke-dashoffset: 0; } }
@keyframes oa-tip-in { to { opacity: 1; } }
@keyframes oa-tip { from { opacity: .7; } to { opacity: 1; } }
@keyframes oa-pulse { from { transform: scale(.8); } to { transform: scale(1.2); } }
@keyframes oa-sway { from { transform: rotate(calc(var(--a, 1deg) * -1)); } to { transform: rotate(var(--a, 1deg)); } }
@keyframes oa-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, 2%, 0) scale(1.04); } }

@media (max-width: 960px) {
	.o-hero { min-height: 0; padding-bottom: 72px; }
	.oa-wash { width: 120%; right: -40%; top: -10%; height: 70%; opacity: .7; }
	.oa-filament { width: 300px; right: -90px; top: 0; transform: none; opacity: .32; }
	.o-hero--page .oa-filament { width: 260px; right: -60px; transform: none; opacity: .4; }
	.oa-dots { display: none; }
}

/* ---------- Chat hero (home "try it") ---------- */
.o-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.o-hero--chat {
	min-height: 0; align-items: center; text-align: center;
	padding-bottom: clamp(56px, 6vw, 88px);
}
.oa-main > .o-hero--chat:first-child { padding-top: calc(var(--nav-h) + clamp(32px, 5.5vw, 80px)); }
.o-hero--chat > :not(.oa-hero-art) { max-width: 760px; }
.o-hero--chat .o-eyebrow { justify-content: center; }
.o-hero--chat .o-eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--rule-grad); transform: scaleX(-1); flex: none; }
.o-hero--chat h1 { font-size: clamp(40px, 5.2vw, 68px); max-width: 15ch; margin: 0 auto 20px; }
.o-hero--chat .o-lead { margin: 0 auto 36px; max-width: 36em; }

/* Composer card */
.o-hero--chat .o-ask {
	position: relative; z-index: 2; width: 100%; max-width: 760px; margin: 0 auto; text-align: left;
	display: flex; flex-direction: column; gap: 6px;
	padding: 18px 14px 12px 22px;
	background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--r-card-sig);
	box-shadow: 0 1px 2px rgba(28,31,38,.05), 0 28px 64px -28px rgba(3,27,81,.28), 0 10px 24px -14px rgba(3,27,81,.12);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.o-hero--chat .o-ask:focus-within {
	border-color: var(--link);
	box-shadow: 0 0 0 4px rgba(39,99,207,.16), 0 28px 64px -28px rgba(3,27,81,.32), 0 10px 24px -14px rgba(3,27,81,.14);
}
.o-ask textarea, .o-ask textarea:hover, .o-ask textarea:focus {
	display: block; width: 100%; min-height: calc(2 * 1.55em + 8px); max-height: calc(8 * 1.55em + 8px); margin: 0; padding: 4px 8px 4px 0;
	font: 400 17px/1.55 var(--f-body); color: var(--text);
	background: transparent; border: 0; border-radius: 0; box-shadow: none; outline: none; resize: none;
	overflow-y: auto; scrollbar-width: thin;
}
.o-ask textarea::placeholder { color: var(--muted); opacity: .85; }
.o-ask-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.o-ask-model {
	display: inline-flex; align-items: center; gap: 8px; min-width: 0;
	padding: 6px 12px 6px 10px; border-radius: 999px;
	font: 500 13px/1.2 var(--f-body); color: var(--muted);
	background: var(--surface-sunk); border: 1px solid var(--border);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.o-ask-model::before {
	content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
	background: var(--highlight); box-shadow: 0 0 0 3px rgba(20,158,128,.16);
}
.o-ask .o-ask-send {
	flex: none; width: 42px; height: 42px; padding: 0; border-radius: 50%;
	background: var(--accent); color: var(--on-accent); border: 0;
}
.o-ask .o-ask-send:hover { background: var(--accent-hover); transform: translateY(-1px); }
.o-ask .o-ask-send:focus-visible { outline: none; box-shadow: var(--focus); }
.o-ask.is-empty .o-ask-send, html:not(.js) .o-ask textarea:placeholder-shown + .o-ask-bar .o-ask-send {
	background: var(--surface-sunk); color: var(--subtle); box-shadow: inset 0 0 0 1px var(--border); cursor: default; transform: none;
}

/* Chips */
.o-hero--chat .o-ask-chips {
	list-style: none; margin: 20px auto 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.o-ask-chips li { margin: 0; }
.o-ask-chips button {
	height: 36px; padding: 0 15px; border-radius: 999px; gap: 6px;
	font: 500 14px/1 var(--f-body); letter-spacing: 0; color: var(--text);
	background: var(--chip-bg); border: 1px solid var(--border-strong);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.o-ask-chips button::before {
	content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--link); opacity: .7;
}
.o-ask-chips button:hover, .o-ask-chips button:focus-visible {
	background: var(--surface-solid); color: var(--accent-text, var(--link)); border-color: var(--link);
	transform: none; box-shadow: none; outline: none;
}
.o-ask-chips button:focus-visible { box-shadow: var(--focus); }
.o-hero--chat .o-hero-note { margin: 24px auto 0; padding-left: 0; font-size: 13.5px; text-wrap: balance; }
.o-hero--chat .o-hero-note::before { position: static; display: inline-block; vertical-align: .12em; margin-right: 10px; width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(20,158,128,.15); }

/* Motif framing the composer: anchor sits at the card's top edge (inserted by otasi.js) */
.o-hero--chat > .oa-ask-art {
	position: relative; inset: auto; z-index: 1; width: 100%; max-width: 760px; height: 0; margin: 0 auto;
}
.o-hero--chat .oa-wash {
	right: 0; left: 0; width: 100%;
	background:
		radial-gradient(30% 34% at 64% 58%, rgba(39,99,207,.2), transparent 70%),
		radial-gradient(26% 30% at 36% 70%, rgba(20,158,128,.16), transparent 70%),
		radial-gradient(20% 24% at 76% 40%, rgba(111,163,255,.16), transparent 70%);
	-webkit-mask-image: none; mask-image: none;
}
.oa-ask-art .oa-filament { top: auto; transform-origin: 50% 70%; }
/* ring centre (300,420 of 600) on the card's top-right corner, threads fanning up-right */
.oa-ask-art .oa-filament--tr { width: 500px; right: -250px; top: -350px; transform: rotate(38deg); opacity: .95; }
/* small mirrored bloom from the bottom-left corner */
.oa-ask-art .oa-filament--bl { width: 340px; left: -170px; right: auto; top: calc(var(--ask-h, 132px) - 238px); transform: rotate(222deg); opacity: .7; }
.oa-ask-art .ob-bloom {
	top: 0; bottom: auto; right: auto; left: 50%; width: 980px;
	transform: translate(-50%, calc(-59.75% + var(--ask-h, 132px) / 2));
	opacity: .85;
	-webkit-mask-image: linear-gradient(to bottom, transparent 8%, rgba(0,0,0,.22) 26%, rgba(0,0,0,.3) 40%, #000 54%);
	mask-image: linear-gradient(to bottom, transparent 8%, rgba(0,0,0,.22) 26%, rgba(0,0,0,.3) 40%, #000 54%);
}
.oa-ask-art .ob-bloom svg {
	-webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
[data-theme-active=dark] .o-hero--chat h1, [data-theme-active=dark] .o-hero--chat .o-lead { text-shadow: 0 0 28px #050B1A, 0 0 10px rgba(5,11,26,.8); }
[data-theme-active=dark] .o-hero--chat h1 em { text-shadow: none; }

/* Dark: glass composer with a slowly travelling light edge */
@property --oa-edge { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
[data-theme-active=dark] .o-hero--chat .o-ask {
	background: rgba(9,19,44,.72);
	-webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
	border-color: rgba(150,175,230,.2);
	box-shadow: 0 0 0 1px rgba(91,149,255,.06), 0 30px 80px -24px rgba(0,0,0,.8), 0 0 60px -20px rgba(39,99,207,.45);
}
[data-theme-active=dark] .o-hero--chat .o-ask::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
	background: conic-gradient(from var(--oa-edge), transparent 0deg, transparent 220deg, rgba(111,163,255,.85) 290deg, rgba(47,211,172,.95) 320deg, transparent 360deg);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: oa-edge 9s linear infinite;
}
[data-theme-active=dark] .o-hero--chat .o-ask:focus-within {
	border-color: rgba(111,163,255,.7);
	box-shadow: 0 0 0 4px rgba(91,149,255,.2), 0 30px 80px -24px rgba(0,0,0,.8), 0 0 70px -16px rgba(39,99,207,.6);
}
[data-theme-active=dark] .o-ask-model { background: rgba(255,255,255,.04); border-color: rgba(150,175,230,.14); }
[data-theme-active=dark] .o-ask-model::before { box-shadow: 0 0 8px rgba(47,211,172,.8); }
[data-theme-active=dark] .o-ask .o-ask-send:not(:hover) { box-shadow: 0 0 18px -4px rgba(91,149,255,.7); }
[data-theme-active=dark] .o-ask.is-empty .o-ask-send { background: rgba(255,255,255,.06); color: var(--subtle); box-shadow: inset 0 0 0 1px rgba(150,175,230,.16); }
[data-theme-active=dark] .o-ask-chips button { background: rgba(9,19,44,.55); border-color: rgba(150,175,230,.2); }
[data-theme-active=dark] .o-ask-chips button:hover { background: rgba(16,30,64,.85); }
@keyframes oa-edge { to { --oa-edge: 360deg; } }

@media (max-width: 960px) {
	.oa-ask-art .oa-filament--tr { width: 380px; right: -190px; top: -266px; opacity: .6; }
	.oa-ask-art .oa-filament--bl { display: none; }
	.oa-ask-art .ob-bloom { width: 760px; opacity: .6; }
}
@media (max-width: 600px) {
	.o-hero--chat { padding-left: 16px; padding-right: 16px; padding-bottom: 56px; }
	.oa-main > .o-hero--chat:first-child { padding-top: calc(var(--nav-h) + 28px); }
	.o-hero--chat .o-lead { margin-bottom: 28px; font-size: 17px; }
	.o-hero--chat .o-eyebrow { display: block; text-wrap: balance; }
	.o-hero--chat .o-eyebrow::before, .o-hero--chat .o-eyebrow::after { display: none; }
	.o-hero--chat .o-ask { padding: 14px 10px 10px 16px; }
	.o-ask textarea, .o-ask textarea:hover, .o-ask textarea:focus { font-size: 16px; }
	.o-ask-model { font-size: 12px; }
	.oa-ask-art .oa-filament--tr { width: 300px; right: -120px; top: -210px; opacity: .45; }
	.oa-ask-art .ob-bloom { width: 560px; opacity: .5; }
}

/* ---------- Sections ---------- */
.o-section { padding: var(--sec-y) max(var(--pad-x), calc((100% - var(--maxw)) / 2)); position: relative; }
.o-section > * { margin-left: 0; margin-right: 0; }
.o-section--alt { background: var(--bg-alt); box-shadow: inset 0 1px var(--section-edge), inset 0 -1px var(--section-edge); }
.o-section + .o-section:not(.o-section--alt)::before,
.o-section--alt + .o-section::before {
	content: none;
}
.o-section--narrow > *, .o-section--narrow > .o-faq, .o-section--narrow > .o-section-head { max-width: 800px; margin-left: auto !important; margin-right: auto !important; }
.o-section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 820px; }
.o-section-head h2 { margin-bottom: 16px; }
.o-section-head .o-lead { margin-bottom: 0; }
.o-section > p:not(.o-note), .o-section > ul:not(.o-pills):not(.o-checks) { max-width: 760px; }
.o-section > * + * { margin-top: 0; }
.o-section > * + .o-pills, .o-section > * + .o-actions, .o-section > * + .o-link, .o-section > * + .o-split, .o-section > * + .o-table-wrap, .o-section > * + .o-grid, .o-section > * + .o-faq, .o-section > * + .o-stats { margin-top: 40px; }
.o-section > .o-section-head + * { margin-top: 0; }
.o-section > .o-actions, .o-section > .o-note { margin-top: 32px; }

/* Thin thread divider between two plain paper sections */
.o-section:not(.o-section--alt) + .o-section:not(.o-section--alt) { padding-top: calc(var(--sec-y) * .8); }
.o-section:not(.o-section--alt) + .o-section:not(.o-section--alt)::after {
	content: ""; position: absolute; top: 0; left: 50%; width: min(var(--maxw), calc(100% - 2 * var(--pad-x))); transform: translateX(-50%);
	height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}

/* ---------- Grids, cards, bento ---------- */
.o-grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
.o-grid > * { min-width: 0; }
@media (min-width: 640px) { .o-grid--2, .o-grid--3, .o-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .o-grid--3 { grid-template-columns: repeat(3, 1fr); } .o-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.o-card {
	position: relative; overflow: hidden;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	padding: 28px; display: flex; flex-direction: column; align-items: flex-start;
	box-shadow: var(--shadow-sm);
	transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.o-card::before {
	content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
	background: var(--grad-line); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.o-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.o-card:hover::before { transform: scaleX(1); }
.o-card h3 { font-size: 20px; margin: 0 0 10px; }
.o-card p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.o-card p:last-child, .o-card ul:last-child { margin-bottom: 0; }
.o-card > .o-link { margin-top: auto; padding-top: 8px; font-size: 15px; }
.o-card > .o-btn { margin-top: auto; }
.o-card > .o-code, .o-card > pre { width: 100%; }

.o-icon {
	width: 40px; height: 40px; border-radius: 12px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--tint-green); color: var(--accent-2-text); margin-bottom: 20px;
}
.o-icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.o-grid > .o-card:nth-child(4n+2) .o-icon, .o-bento > .o-card:nth-child(4n+2) .o-icon { background: var(--tint-blue); color: var(--icon-blue); }
.o-grid > .o-card:nth-child(4n+3) .o-icon, .o-bento > .o-card:nth-child(4n+3) .o-icon { background: var(--tint-navy); color: var(--icon-navy); }

.o-badge {
	display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
	font: 600 11px/1 var(--f-label); text-transform: uppercase; letter-spacing: .1em;
	background: var(--tint-navy); color: var(--badge-text); vertical-align: middle;
}
.o-card > .o-badge { position: absolute; top: 24px; right: 24px; }
.o-badge--soon { background: var(--surface-sunk); color: var(--muted); border: 1px dashed var(--border-strong); }
.o-badge--new { background: var(--tint-ochre); color: var(--ochre-text); }
h3 .o-badge, h2 .o-badge { margin-left: 8px; position: static; }

/* Bento: 12-col */
.o-bento { display: grid; gap: var(--gutter); grid-template-columns: 1fr; grid-auto-flow: dense; }
@media (min-width: 720px) { .o-bento { grid-template-columns: repeat(2, 1fr); } .o-bento .o-card--wide { grid-column: span 2; } }
@media (min-width: 1000px) {
	.o-bento { grid-template-columns: repeat(3, 1fr); }
	.o-bento .o-card--wide { grid-column: span 2; }
	.o-bento .o-card--tall { grid-row: span 2; }
}
.o-bento .o-card { padding: 32px; min-height: 220px; }
.o-card--feature {
	background: var(--feature-bg); border-color: var(--feature-border); color: var(--text-on-navy);
}
.o-card--feature::after {
	content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%; pointer-events: none;
	background:
		radial-gradient(40% 50% at 60% 50%, rgba(39,99,207,.45), transparent 70%),
		radial-gradient(30% 40% at 80% 40%, rgba(20,158,128,.40), transparent 70%);
	filter: blur(8px);
}
.o-card--feature > * { position: relative; z-index: 1; }
.o-card--feature h3 { color: #fff; }
.o-card--feature p, .o-card--feature li, .o-card--feature .o-checks li { color: #C9D3E8; }
.o-card--feature .o-link { color: #9CC0FF; }
.o-card--feature .o-icon { background: rgba(255,255,255,.08); color: #7FE0C6; }
.o-card--feature .o-contact dt { color: #9FB0CF; border-color: rgba(255,255,255,.14); }
.o-card--feature .o-contact dd { color: #FFFFFF; border-color: rgba(255,255,255,.14); font-size: 16px; }
.o-card--feature .o-contact a { color: #9CC0FF; }
.o-card--feature .o-checks li::before { background: #7FE0C6; box-shadow: 0 0 8px rgba(127,224,198,.7); }
.o-card--feature .o-badge { background: rgba(255,255,255,.1); color: #fff; }
.o-card--feature .o-code { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.1); }

/* Checks list (bead bullets) */
.o-checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.o-checks li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--text-body); }
.o-checks li::before {
	content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%;
	background: var(--highlight); box-shadow: 0 0 6px rgba(20,158,128,.55);
}

/* ---------- Split ---------- */
.o-split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .o-split { grid-template-columns: 1fr 1fr; } }
.o-split > * { min-width: 0; }
.o-lead code, .o-split p code { overflow-wrap: anywhere; }
.o-split > div > p { color: var(--muted); }
.o-split > div > h2 + p, .o-split > div > h3 + p { font-size: 18px; }
.o-split > div > .o-checks { margin-top: 8px; }

/* ---------- Stats ---------- */
.o-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--border-strong); }
@media (min-width: 900px) { .o-stats { grid-template-columns: repeat(4, 1fr); } }
.o-stat { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.o-stat + .o-stat { padding-left: 24px; border-left: 1px solid var(--border); }
@media (max-width: 899px) { .o-stat:nth-child(3) { padding-left: 0; border-left: 0; } }
.o-stat strong { font: 700 clamp(36px, 4vw, 52px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--text); }
.o-stat span { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- Pricing ---------- */
.o-pricing { display: grid; gap: var(--gutter); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 720px) { .o-pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .o-pricing { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.o-plan {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.o-plan h3 { font-size: 22px; margin-bottom: 8px; }
.o-plan-desc { color: var(--muted); font-size: 15px; min-height: 3em; margin-bottom: 20px; }
.o-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.o-amount { font: 500 clamp(32px, 3vw, 40px)/1 var(--f-mono); letter-spacing: -0.03em; color: var(--text); font-feature-settings: "tnum" 1; }
.o-period { font: 500 14px var(--f-body); color: var(--muted); }
.o-plan .o-checks { margin-bottom: 28px; }
.o-plan > .o-btn { margin-top: auto; width: 100%; }
.o-plan > .o-btn--ghost::after { content: none; }
.o-plan--featured {
	border: 1.5px solid transparent;
	background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad-line) border-box;
	box-shadow: var(--shadow-lg);
}
.o-plan--featured::before {
	content: "Most popular"; position: absolute; top: -12px; left: 28px;
	height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center;
	background: var(--tint-ochre); color: var(--ochre-text); border: 1px solid var(--tint-ochre-border);
	font: 600 11px/1 var(--f-label); text-transform: uppercase; letter-spacing: .1em;
}
:lang(fr) .o-plan--featured::before { content: "Le plus choisi"; }
@media (min-width: 1100px) { .o-plan--featured { transform: translateY(-8px); } }
/* Unavailable plan (e.g. Team "Coming soon"): visible but muted, non-interactive button */
.o-plan--disabled { background: var(--surface-sunk); border-style: dashed; border-color: var(--border-strong); box-shadow: none; }
.o-plan--disabled > :not(h3) { opacity: .62; }
.o-plan--disabled h3 { color: var(--muted); }
.o-plan--disabled .o-badge--soon { background: var(--surface); }
.o-plan--disabled .o-amount { color: var(--muted); }
.o-plan--disabled .o-checks li::before { background: var(--subtle); box-shadow: none; }
.o-btn--disabled, .o-btn--disabled:hover {
	background: transparent; color: var(--subtle); border-color: var(--border-strong); border-style: dashed;
	cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none;
}
.o-btn--disabled::after { content: none; }

.o-note { font: 400 14px/1.6 var(--f-body); color: var(--muted); margin-top: 24px; }
.o-note a { color: var(--link); }

/* ---------- Tables ---------- */
.o-table-wrap {
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	box-shadow: var(--shadow-sm);
}
.o-table, main table {
	width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--f-body);
	font-feature-settings: "tnum" 1, "cv11" 1;
}
.o-table th, .o-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.o-table thead th {
	font: 600 12px/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
	background: var(--surface-sunk); white-space: nowrap;
}
.o-table tbody tr:last-child td, .o-table tbody tr:last-child th { border-bottom: 0; }
.o-table tbody tr:hover td { background: var(--row-hover); }
.o-table td.o-num, .o-table th.o-num { text-align: right; font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
.o-table thead th.o-num { font: 600 12px/1.3 var(--f-label); }
.o-table code { white-space: nowrap; }
.o-table tr.o-group th {
	background: var(--bg-alt); color: var(--accent-2-text);
	font: 600 12px/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .14em; padding-top: 12px; padding-bottom: 12px;
}
.o-table code { font-size: 13px; background: var(--surface-sunk); padding: 2px 6px; border-radius: 6px; color: var(--code-inline); }

/* ---------- Code ---------- */
.o-code {
	background: var(--code-bg); color: var(--code-text); border-radius: var(--r-code-sig); overflow: hidden;
	border: 1px solid var(--code-border); box-shadow: var(--shadow-lg); text-align: left; width: 100%;
}
.o-code-head {
	display: flex; align-items: center; gap: 4px; padding: 12px 16px;
	border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
}
.o-code-head::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%; margin-right: 12px; flex: none;
	background: #2A3A66; box-shadow: 16px 0 0 #2A3A66, 32px 0 0 #2A3A66; margin-right: 44px;
}
.o-code-head span {
	font: 500 12px/1 var(--f-mono); color: #8FA0C6; padding: 6px 10px; border-radius: 8px;
}
.o-code-head span:first-of-type { background: rgba(255,255,255,.07); color: #fff; }
.o-code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 400 14px/1.7 var(--f-mono); tab-size: 2; }
.o-code code { font: inherit; color: inherit; background: none; padding: 0; }

/* ---------- Steps ---------- */
.o-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 800px) { .o-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.o-steps > li { counter-increment: step; position: relative; padding-top: 56px; }
.o-steps > li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute; top: 0; left: 0; font: 500 14px/1 var(--f-mono); color: var(--accent-2);
	padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
}
.o-steps > li::after {
	content: ""; position: absolute; top: 16px; left: 52px; right: 0; height: 1px;
	background: linear-gradient(90deg, var(--border-strong), transparent);
}
.o-steps > li:last-child::after { content: none; }
.o-steps h3 { font-size: 20px; margin-bottom: 8px; }
.o-steps p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- FAQ ---------- */
.o-faq { max-width: 880px; display: grid; gap: 12px; }
.o-section > .o-faq { margin-left: auto; margin-right: auto; }
.o-faq details {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm-sig);
	padding: 0 24px; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.o-faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.o-faq summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 22px 48px 22px 0; font: 600 19px/1.4 var(--f-display); color: var(--text); letter-spacing: -0.01em;
	border-radius: 6px;
}
.o-faq summary::-webkit-details-marker { display: none; }
.o-faq summary::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px;
	background:
		linear-gradient(var(--text), var(--text)) center / 12px 1.5px no-repeat,
		linear-gradient(var(--text), var(--text)) center / 1.5px 12px no-repeat;
	border: 1px solid var(--border-strong); border-radius: 50%;
	transition: transform .24s var(--ease);
}
.o-faq details[open] summary::after { transform: rotate(45deg); }
.o-faq summary:hover { color: var(--accent); }
.o-faq details > :not(summary) { color: var(--muted); margin: -6px 0 22px; max-width: 68ch; padding-right: 48px; }

/* ---------- Pills ---------- */
.o-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.o-pills li {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--border); font: 500 14px/1.2 var(--f-body); color: var(--text);
}
.o-pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--highlight); }
.o-pills li svg { width: 16px; height: 16px; color: var(--accent-2); }
.o-hero .o-pills { margin-top: 28px; }
.o-hero .o-pills li { background: var(--chip-bg); }

/* ---------- Forms (CONTRACT + legacy) ---------- */
.o-form {
	display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-md);
}
.o-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.o-field label, main label { font: 600 14px/1.4 var(--f-display); color: var(--text); }
.o-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .o-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.o-form .o-btn { justify-self: start; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=url], input[type=number], input[type=date], input:not([type]), textarea, select {
	width: 100%; min-height: 48px; padding: 12px 14px;
	font: 400 16px/1.4 var(--f-body); color: var(--text);
	background: var(--surface-sunk); border: 1px solid var(--border); border-radius: var(--r-sm);
	transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
	-webkit-appearance: none; appearance: none;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
select {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235E6470' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:hover, textarea:hover, select:hover { border-color: var(--border-strong); }
input:focus, textarea:focus, select:focus { outline: none; background-color: var(--surface-solid); border-color: var(--link); box-shadow: var(--focus); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent-2); width: 18px; height: 18px; }

/* ---------- Contact list ---------- */
.o-contact { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 36px; }
.o-contact dt {
	font: 600 12px/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
	padding: 18px 0; border-top: 1px solid var(--border);
}
.o-contact dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--border); color: var(--text); font-size: 17px; }
@media (max-width: 520px) {
	.o-contact { grid-template-columns: 1fr; }
	.o-contact dd { border-top: 0; padding-top: 0; }
}

/* ---------- Prose ---------- */
.o-prose, main article:not([class*="o-"]) {
	max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--text-body);
}
.o-section > .o-prose { margin-left: auto; margin-right: auto; }
.o-prose h2, main article:not([class*="o-"]) h1, main article:not([class*="o-"]) h2 { font-size: clamp(26px, 2.6vw, 32px); margin: 2em 0 .6em; letter-spacing: -0.015em; }
main article:not([class*="o-"]) h1:first-child, .o-prose h2:first-child, main article:not([class*="o-"]) h2:first-child { margin-top: 0; }
.o-prose h3, main article:not([class*="o-"]) h3 { font-size: 20px; margin: 1.8em 0 .5em; }
.o-prose p, main article:not([class*="o-"]) p { margin: 0 0 1.1em; }
.o-prose ul, .o-prose ol, main article:not([class*="o-"]) ul, main article:not([class*="o-"]) ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.o-prose li, main article:not([class*="o-"]) li { margin: .35em 0; }
.o-prose ul li::marker, main article:not([class*="o-"]) ul li::marker { color: var(--highlight); }
.o-prose a, main article:not([class*="o-"]) a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
.o-prose a:hover, main article:not([class*="o-"]) a:hover { text-decoration-color: currentColor; }
.o-prose blockquote, main article:not([class*="o-"]) blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--highlight); color: var(--muted); font-size: 1.05em;
}
.o-prose code, main article:not([class*="o-"]) code { background: var(--surface-sunk); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .86em; color: var(--code-inline); }
.o-prose pre, main article:not([class*="o-"]) pre { background: var(--code-bg); color: var(--code-text); padding: 18px 20px; border-radius: var(--r-sm-sig); overflow-x: auto; }
.o-prose pre code, main article:not([class*="o-"]) pre code { background: none; border: 0; color: inherit; padding: 0; }
.o-prose table, main article:not([class*="o-"]) table { margin: 1.4em 0; }
main article:not([class*="o-"]) table th, main article:not([class*="o-"]) table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
main article:not([class*="o-"]) img { border-radius: var(--r-sm); }
main article > h1:first-child { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.025em; line-height: 1.06; }

/* Legacy (non-Html) components: centered prose container */
.oa-legacy { padding-top: 48px; padding-bottom: 48px; }
.oa-legacy > article { margin-left: auto; margin-right: auto; }
.oa-main > .oa-legacy:first-child { padding-top: clamp(40px, 6vw, 88px); }
.oa-main > .oa-legacy:last-child, .oa-main > .oa-legacy:last-of-type { padding-bottom: var(--sec-y); }
.oa-legacy > .page-manager, .oa-legacy > .menu-editor, .oa-legacy > .user-manager, .oa-legacy > .sitemap,
.oa-legacy > .registration-form, .oa-legacy > .password-reset-form, .oa-legacy > .loginbox {
	max-width: 1000px; margin-left: auto; margin-right: auto;
}

/* ---------- CTA band ---------- */
.o-cta {
	position: relative; isolation: isolate; overflow: hidden;
	max-width: calc(var(--maxw) + 2 * var(--pad-x));
	margin: var(--sec-y) auto;
	padding: 0 var(--pad-x);
	background: none;
}
.o-cta::before {
	content: ""; position: absolute; inset: 0 var(--pad-x); z-index: -2;
	background: var(--cta-bg); border-radius: var(--r-cta-sig); box-shadow: inset 0 0 0 1px var(--cta-ring);
}
.o-cta::after {
	content: ""; position: absolute; inset: 0 var(--pad-x); z-index: -1; border-radius: var(--r-cta-sig);
	background:
		radial-gradient(40% 60% at 85% 40%, rgba(39,99,207,.55), transparent 70%),
		radial-gradient(34% 50% at 95% 80%, rgba(20,158,128,.45), transparent 70%);
}
.o-cta > :not(.oa-cta-art) { position: relative; z-index: 2; padding-left: clamp(28px, 6vw, 80px); padding-right: clamp(28px, 6vw, 80px); max-width: calc(720px + 2 * clamp(28px, 6vw, 80px)); }
.o-cta > :first-child:not(.oa-cta-art), .o-cta > .oa-cta-art + * { padding-top: clamp(56px, 7vw, 96px); }
.o-cta > :last-child { padding-bottom: clamp(56px, 7vw, 96px); }
.o-cta h2 { color: #fff; margin-bottom: 16px; }
.o-cta h2 em { color: #7FE0C6; }
.o-cta p { color: var(--muted-on-navy); font-size: 19px; max-width: 46ch; }
.o-cta .o-actions { margin-top: 32px; }
.o-cta .o-btn--primary { background: #fff; color: var(--brand-navy); }
.o-cta .o-btn--primary:hover { background: var(--tint-green); color: var(--brand-navy); }
.o-cta .o-btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.o-cta .o-btn--ghost:hover { background: #fff; color: var(--brand-navy); border-color: #fff; }
.oa-cta-art { position: absolute; z-index: 1; right: calc(var(--pad-x) + 10px); top: 50%; width: min(440px, 44%); transform: translateY(-50%); pointer-events: none; }
.oa-cta-art .oa-filament { position: static; width: 100%; transform: none; opacity: .9; }
.oa-cta-art .oa-ring path { stroke: #A9B4CC; }
@media (max-width: 760px) { .oa-cta-art { opacity: .35; width: 300px; right: -40px; top: 0; transform: none; } }

/* ---------- Reveal ---------- */
.js .oa-reveal { opacity: 0; transform: translateY(12px); transition: opacity .24s var(--ease), transform .24s var(--ease); transition-duration: .5s; }
.js .oa-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.oa-footer { background: var(--footer-bg); color: var(--muted-on-navy); font-size: 15px; margin-top: 0; position: relative; overflow: hidden; }
.oa-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad-line); opacity: .7;
}
.oa-footer a { color: var(--text-on-navy); }
.oa-footer a:hover { color: #fff; }
.oa-footer-inner {
	display: grid; gap: 48px; grid-template-columns: 1fr;
	padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px;
}
@media (min-width: 900px) { .oa-footer-inner { grid-template-columns: 1.3fr 2fr; gap: 64px; } }
.oa-footer-brand p { max-width: 36ch; margin: 20px 0 0; line-height: 1.6; }
.oa-logo--light img { height: 30px; }
.oa-status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.oa-footer-brand .oa-status { margin-top: 24px; }
.oa-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 4px rgba(20,158,128,.18), 0 0 10px rgba(20,158,128,.8); }
.oa-footer-cols { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .oa-footer-cols { grid-template-columns: repeat(3, 1fr); } }
.oa-footer-cols h2 {
	font: 600 12px/1.3 var(--f-label); text-transform: uppercase; letter-spacing: .16em; color: var(--muted-on-navy); margin: 0 0 18px;
}
.oa-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.oa-footer-cols a { font-size: 15px; }
.oa-footer-bottom {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
	padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.1);
	font-size: 14px;
}
.oa-footer-bottom::before { content: none; }
.oa-footer-bottom p { margin: 0; }
.oa-swiss { display: inline-flex; align-items: center; gap: 10px; color: var(--text-on-navy); }
.oa-ch { width: 12px; height: 12px; flex: none; }
.oa-copy { color: var(--muted-on-navy); }
.oa-lang--footer { border-color: rgba(255,255,255,.16); background: none; }
.oa-lang--footer a { color: var(--muted-on-navy); }
.oa-lang--footer a.is-current { background: rgba(255,255,255,.12); color: #fff; }
.oa-admin { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; }
.oa-admin a, .oa-admin summary, .oa-logout button { color: var(--muted-on-navy); font: 500 13px var(--f-body); }
.oa-admin a:hover, .oa-admin summary:hover, .oa-logout button:hover { color: #fff; }
.oa-logout { margin: 0; }
.oa-logout button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.oa-login { position: relative; }
.oa-login summary { cursor: pointer; list-style: none; border-radius: 6px; padding: 2px 4px; }
.oa-login summary::-webkit-details-marker { display: none; }
.oa-login-form {
	position: absolute; right: 0; bottom: calc(100% + 12px); width: 280px; z-index: 5;
	display: grid; gap: 10px; padding: 18px; border-radius: var(--r-sm);
	background: var(--surface-solid); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.oa-login-form input { min-height: 42px; font-size: 15px; }
.oa-login-form button {
	height: 42px; border: 0; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); cursor: pointer;
	font: 600 15px var(--f-display);
}
.oa-login-form button:hover { background: var(--accent-hover); }
.oa-login-form a { color: var(--link) !important; font-size: 13px; text-align: center; }
.oa-login-form .login-error { margin: 0; }
@media (max-width: 640px) {
	.oa-admin { margin-left: 0; width: 100%; }
	.oa-login-form { left: 0; right: auto; }
}

/* ---------- Legacy CMS components ---------- */
.login-error, .pm-error, .me-error, .um-error, .editor-error {
	background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin: 0 0 16px;
}
.login-success, .editor-saved, .pm-success, .me-success, .um-success {
	background: var(--tint-green); color: var(--ok-text); border: 1px solid var(--ok-border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin: 0 0 16px;
}
.loginbox, .registration-form, .password-reset-form {
	max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	padding: 32px; box-shadow: var(--shadow-md);
}
.oa-legacy > .loginbox, .oa-legacy > .registration-form, .oa-legacy > .password-reset-form { max-width: 440px; }
.loginbox h1, .registration-form h1, .password-reset-form h1 { font-size: 26px; margin-bottom: 20px; }
.loginbox form, .registration-form form, .password-reset-form form { display: grid; gap: 12px; }
.loginbox img { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--tint-navy); }
.loginbox ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 15px; }
.loginbox .username { font-weight: 600; color: var(--text); }
.loginbox input[type=submit], .registration-form input[type=submit], .password-reset-form input[type=submit] { width: 100%; }
.resend-form { margin-bottom: 12px; }
.resend-btn { background: var(--accent-2) !important; }
.help { font-size: 14px; color: var(--muted); }

.page-manager, .menu-editor, .user-manager, .sitemap { font-size: 15px; }
.pm-table, .um-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; border-collapse: separate; border-spacing: 0; display: block; overflow-x: auto; }
@media (min-width: 800px) { .pm-table, .um-table { display: table; } }
.pm-table th, .pm-table td, .um-table th, .um-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.pm-table th, .um-table th { background: var(--surface-sunk); font: 600 12px var(--f-label); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pm-table tr:last-child td, .um-table tr:last-child td { border-bottom: 0; }
.pm-inline, .me-inline, .um-inline-form, .cm-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.pm-special-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--tint-navy); color: var(--badge-text); font: 600 11px var(--f-label); letter-spacing: .08em; }
.pm-protected { color: var(--subtle); font-size: 13px; }
.pm-add-form, .me-add-form { margin-top: 32px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-card-sig); background: var(--surface); }
.pm-add-form form, .me-add-form form { display: grid; gap: 12px; }
main .pm-btn, main .me-btn, main .um-btn, main .cm-btn { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
main .pm-btn-delete, main .me-btn-delete, main .cm-btn-delete, main .um-btn-ban { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
main .pm-btn-delete:hover, main .me-btn-delete:hover, main .cm-btn-delete:hover, main .um-btn-ban:hover { background: var(--danger); color: var(--bg); }
.me-list { display: grid; gap: 8px; }
.me-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.me-item-title { font-weight: 600; color: var(--text); }
.me-item-link, .me-item-icon { color: var(--muted); font-family: var(--f-mono); font-size: 13px; }
.me-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.um-status-active { color: var(--ok-text); }
.um-status-banned { color: var(--danger); }
.um-status-pending { color: var(--ochre-text); }
.um-self { color: var(--subtle); }
.sitemap-tree, .sitemap-orphans { list-style: none; padding-left: 0; }
.sitemap-tree ul { list-style: none; padding-left: 20px; border-left: 1px solid var(--border); margin: 6px 0 6px 6px; }
.sitemap li { margin: 6px 0; }
.component-placeholder { padding: 16px; border: 1px dashed var(--border-strong); border-radius: var(--r-sm); color: var(--muted); }

/* ---------- Edit mode (component management) ---------- */
.component-management {
	position: relative; margin: 16px auto; max-width: calc(var(--maxw) + 2 * var(--pad-x));
	border: 1.5px dashed var(--border-strong); border-radius: var(--r-sm); background: var(--chip-bg);
}
.oa-legacy > .component-management { margin: 0; }
.component-management-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px;
	background: var(--surface-sunk); border-bottom: 1px solid var(--border); border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.cm-type-label { font: 600 12px var(--f-label); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2-text); margin-right: auto; }
.component-management-toolbar select { min-height: 34px; width: auto; padding: 4px 34px 4px 10px; font-size: 13px; }
main .cm-btn { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
main .cm-btn:hover { background: var(--text); color: var(--bg); transform: none; box-shadow: none; }
.component-editor { padding: 20px; }
.component-editor h2 { font-size: 18px; margin-bottom: 12px; }
.component-editor form { display: grid; gap: 12px; }
.component-editor fieldset, .editor-item { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; margin: 0; }
.editor-xml-textarea { min-height: 320px; font: 400 13px/1.6 var(--f-mono); }
.component-add-form {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0;
	padding: 12px; border: 1.5px dashed var(--ochre); border-radius: var(--r-sm); background: var(--addform-bg);
}
.component-add-form select { width: auto; min-width: 200px; min-height: 40px; }
main .cm-btn-add { height: 40px; background: var(--accent-2); color: var(--on-accent); border-color: transparent; }
.sidebar-empty-placeholder { padding: 16px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); }

/* ---------- Responsive type ---------- */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.o-card, .o-plan { padding: 24px; }
	.o-bento .o-card { padding: 24px; min-height: 0; }
	.o-actions { gap: 10px; }
	.o-actions .o-btn { flex: 1 1 auto; }
	.o-faq summary { font-size: 17px; }
	.o-table th, .o-table td { padding: 12px 14px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.oa-filament .t, .oa-ring path, .oa-ring circle { stroke-dashoffset: 0; }
	.oa-filament .tip { opacity: 1; }
	[data-theme-active=dark] .o-hero--chat .o-ask::before { background: linear-gradient(135deg, transparent 55%, rgba(111,163,255,.6) 85%, rgba(47,211,172,.7)); }
	.js .oa-reveal { opacity: 1; transform: none; }
}

@media print {
	.oa-nav, .oa-footer, .oa-hero-art, .oa-cta-art { display: none !important; }
	body { background: #fff; }
}

/* ==========================================================================
   Theme toggle (auto → light → dark)
   ========================================================================== */
.oa-theme {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 38px; height: 38px; padding: 0; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--border); background: var(--chip-bg); color: var(--muted);
	transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.oa-theme:hover { color: var(--text); border-color: var(--border-strong); }
.oa-theme:focus-visible { outline: none; box-shadow: var(--focus); }
.oa-theme svg { width: 18px; height: 18px; display: none; }
.oa-theme[data-mode=auto] .oa-ti-auto, .oa-theme[data-mode=light] .oa-ti-light, .oa-theme[data-mode=dark] .oa-ti-dark { display: block; }
.oa-theme-label { display: none; }
@media (max-width: 960px) {
	.oa-theme { width: auto; padding: 0 14px; gap: 8px; font: 500 14px/1 var(--f-body); }
	.oa-theme-label { display: inline; }
}

/* ==========================================================================
   Dark-theme component touches
   ========================================================================== */
[data-theme-active=dark] ::selection { background: rgba(91,149,255,.35); color: #fff; }
[data-theme-active=dark] .o-card, [data-theme-active=dark] .o-plan, [data-theme-active=dark] .o-table-wrap,
[data-theme-active=dark] .o-faq details, [data-theme-active=dark] .o-form {
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
[data-theme-active=dark] .o-card:hover { box-shadow: var(--shadow-md), 0 0 50px -20px rgba(91,149,255,.35); }
[data-theme-active=dark] .o-btn--primary:hover { box-shadow: 0 0 40px -8px rgba(91,149,255,.55); }
[data-theme-active=dark] .o-cta .o-btn--primary { background: var(--accent); color: #fff; }
[data-theme-active=dark] .o-cta .o-btn--primary:hover { background: var(--accent-hover); color: #fff; }
[data-theme-active=dark] .o-cta .o-btn--ghost { border-color: rgba(255,255,255,.28); }
[data-theme-active=dark] .o-cta .o-btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
[data-theme-active=dark] .oa-footer { border-top: 1px solid var(--border); }
[data-theme-active=dark] .o-hero h1 em, [data-theme-active=dark] .o-section-head h2 em, [data-theme-active=dark] .o-cta h2 em {
	background: linear-gradient(90deg, #9CC0FF 0%, #2FD3AC 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme-active=dark] .oa-lang a.is-current { background: rgba(255,255,255,.12); color: var(--text); }
[data-theme-active=dark] input, [data-theme-active=dark] textarea, [data-theme-active=dark] select { color: var(--text); }
[data-theme-active=dark] .o-code-head span:first-of-type { background: rgba(91,149,255,.12); box-shadow: inset 0 0 0 1px rgba(91,149,255,.25); }
[data-theme-active=dark] .o-hero { isolation: isolate; }

/* ==========================================================================
   Filament Bloom (dark hero, injected by bloom.js; ported from skin B)
   ========================================================================== */
.ob-bloom {
	position: absolute; z-index: 0; pointer-events: none;
	top: 50%; right: max(-40px, calc((100% - var(--maxw)) / 2 - 80px));
	width: min(62vw, 860px); aspect-ratio: 1 / 1;
	transform: translateY(-48%);
	mix-blend-mode: screen;
}
.ob-bloom svg { width: 100%; height: 100%; display: block; overflow: visible; }
.o-hero--chat .oa-hero-art:not(.oa-ask-art) .oa-bloom-wash { background: radial-gradient(40% 50% at 50% 62%, rgba(39,99,207,.22), transparent 70%), radial-gradient(28% 36% at 60% 70%, rgba(20,158,128,.14), transparent 70%); }
.o-hero > .ob-bloom { max-width: none; }
.o-hero--page .ob-bloom { width: min(52vw, 560px); right: max(-120px, calc((100% - var(--maxw)) / 2 - 60px)); transform: translateY(-50%); opacity: .8; }
.oa-bloom-wash {
	position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--wash);
}
.oa-cta-art.oa-cta-bloom { inset: 0 var(--pad-x); width: auto; top: 0; right: auto; transform: none; overflow: hidden; border-radius: var(--r-cta-sig); opacity: 1; }
.oa-cta-bloom .ob-bloom { top: auto; bottom: -78%; right: auto; left: 50%; transform: translateX(-50%); width: min(110vw, 860px); opacity: .5; }
@media (max-width: 1080px) {
	.ob-bloom { width: 92vw; right: -30vw; opacity: .55; }
	.o-hero--page .ob-bloom { width: 80vw; right: -36vw; opacity: .45; }
}
@media (max-width: 700px) {
	.ob-bloom { top: auto; bottom: -24vw; right: -34vw; width: 120vw; transform: none; opacity: .5; }
	.o-hero--page .ob-bloom { top: -10vw; bottom: auto; right: -50vw; width: 110vw; opacity: .35; }
}
.is-editing .ob-bloom { opacity: .25; }
@media print { .ob-bloom, .oa-bloom-wash { display: none !important; } }

.ob-b-threads path {
	stroke-dasharray: 1 1; stroke-dashoffset: 1;
	animation: ob-grow 2.8s var(--ease) calc(var(--i) * 60ms + .2s) forwards, ob-shimmer 7s ease-in-out calc(var(--i) * -.4s) infinite;
}
.ob-b-faint path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: ob-grow 3.2s var(--ease) calc(var(--i) * 70ms + .6s) forwards; }
.ob-b-ring { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: ob-grow 2.4s var(--ease) forwards; }
.ob-b-halo { animation: ob-breathe 9s ease-in-out 2.4s infinite; }
.ob-b-tip, .ob-b-mini { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ob-tip-in .9s var(--ease) calc(var(--i) * 60ms + 1.9s) forwards; }
.ob-b-tip-halo { transform-box: fill-box; transform-origin: center; animation: ob-twinkle 3.6s ease-in-out calc(var(--i) * -.3s) infinite alternate; }
.ob-b-tip.is-warm .ob-b-tip-halo { animation-duration: 4.4s; }
.ob-b-core { animation: ob-core 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ob-b-corner { animation: ob-twinkle 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes ob-grow { to { stroke-dashoffset: 0; } }
@keyframes ob-shimmer { 50% { stroke-opacity: .45; } }
@keyframes ob-tip-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes ob-twinkle { from { opacity: .45; transform: scale(.72); } to { opacity: 1; transform: scale(1.12); } }
@keyframes ob-breathe { 50% { opacity: .55; } }
@keyframes ob-core { 50% { opacity: .38; transform: scale(.92); } }
.ob-bloom.is-static path, .ob-bloom.is-static .ob-b-tip, .ob-bloom.is-static .ob-b-mini,
.ob-bloom.is-static .ob-b-halo, .ob-bloom.is-static .ob-b-tip-halo, .ob-bloom.is-static .ob-b-core, .ob-bloom.is-static .ob-b-corner {
	animation: none !important; stroke-dashoffset: 0; opacity: 1;
}
.ob-bloom.is-static .ob-b-faint path { opacity: .55; }
.ob-bloom.is-static .ob-b-core { opacity: .55; }

/* ---------- Comparison table (home #compare) ---------- */
.o-compare small { color: var(--muted); font-size: .8125rem; }
.o-compare .o-row--ours td { background: color-mix(in srgb, var(--ok-text) 7%, transparent); }
.o-compare .o-row--ours td:first-child { box-shadow: inset 3px 0 0 var(--ok-text); }
.o-compare .o-row--ours td.o-num, .o-compare .o-row--ours td:nth-last-child(-n+2) { font-weight: 600; }
#compare .o-table-wrap + .o-grid { margin-top: 32px; }
#compare .o-note { margin-top: 20px; }
#compare > .o-grid + .o-table-wrap { margin-top: 32px; }

/* ---------- Benchmark bar charts (home #compare) ---------- */
.o-bench {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	padding: 28px 28px 22px; box-shadow: var(--shadow-sm);
}
.o-bench h3 { font-size: 20px; margin: 0 0 4px; }
.o-bench > p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 24px; text-wrap: balance; }
@media (min-width: 1000px) { .o-bench > p:not(.o-bench-src) { min-height: 3em; } }
.o-bench > .o-bench-src {
	margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--border);
	font: 500 12px/1.4 var(--f-label); letter-spacing: .02em; color: var(--subtle);
}
.o-bars { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 18px; }
.o-bars li {
	display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; row-gap: 8px; margin: 0;
	--bar: var(--bar-neutral);
}
.o-bar-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.o-bar-label strong { font: 600 15px/1.3 var(--f-display); color: var(--text); }
.o-bar-label small { font-size: 12.5px; color: var(--muted); }
.o-bar-value { grid-row: 1; grid-column: 2; font: 500 14px/1.3 var(--f-mono); color: var(--text-body); font-variant-numeric: tabular-nums; }
.o-bar-track {
	grid-row: 2; grid-column: 1 / -1; display: block; height: 10px; border-radius: 999px;
	background: var(--surface-sunk); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden;
}
.o-bar-fill {
	display: block; height: 100%; border-radius: inherit; background: var(--bar);
	width: calc(var(--v, 0) * 1%);
	animation: o-bar-grow 1.1s var(--ease) .15s both;
}
.o-bars .o-bar--ours { --bar: linear-gradient(90deg, var(--brand-blue), var(--highlight)); }
.o-bars .o-bar--ours .o-bar-label strong { color: var(--accent-text, var(--brand-navy)); }
.o-bars .o-bar--ours .o-bar-value { font-weight: 700; color: var(--text); }
@keyframes o-bar-grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .o-bar-fill { animation: none; } }
@supports (animation-timeline: view()) {
	.o-bar-fill { animation-delay: 0s; animation-timeline: view(); animation-range: entry 0% entry 100%; }
}
:root { --bar-neutral: #B7C0CE; }
[data-theme-active=dark] { --bar-neutral: rgba(150,175,230,.34); }
[data-theme-active=dark] .o-bench { box-shadow: var(--shadow-sm); }
[data-theme-active=dark] .o-bar-track { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(150,175,230,.10); }
[data-theme-active=dark] .o-bar--ours .o-bar-fill { box-shadow: 0 0 14px -2px rgba(47,211,172,.45); }

/* Model id under a card title (models page) */
.o-card .o-model-id { margin: -4px 0 12px; font-size: 14px; }
.o-card .o-model-id code { font-size: 13px; }

/* Splits with a tall column (several code panels or steps): align to top, keep the short side visible */
.o-split:has(.o-steps), .o-split:has(.o-code + .o-code) { align-items: start; }
@media (min-width: 900px) { .o-split:has(.o-code + .o-code) > div:first-child { position: sticky; top: 96px; } }
.o-code + .o-code { margin-top: 16px; }

/* Code panel inside a card (home #compatible) */
.o-card > .o-code { margin-top: 16px; }
.o-card > .o-code pre { padding: 14px 18px; }
#compatible .o-grid + .o-actions { margin-top: 32px; }

/* ---------- Pricing with five plans (pricing #subscriptions) ----------
   .o-pricing--5: three personal plans on one row, then two wide cards (Team, Enterprise).
   .o-plan--wide: on wide screens the card reads left (name, price, button) / right (feature list). */
@media (min-width: 720px) and (max-width: 959px) {
	.o-pricing--5 > .o-plan:last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	.o-pricing--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.o-pricing--5 > .o-plan { grid-column: span 2; }
	.o-pricing--5 > .o-plan--wide { grid-column: span 3; }
}
@media (min-width: 1200px) {
	.o-plan--wide {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 32px;
		grid-template-rows: auto auto auto 1fr; align-content: start;
	}
	.o-plan--wide > :not(.o-checks) { grid-column: 1; }
	.o-plan--wide > .o-checks { grid-column: 2; grid-row: 1 / span 4; align-self: start; align-content: start; margin: 4px 0 0; padding-left: 32px; border-left: 1px solid var(--border); }
	.o-plan--wide > .o-plan-desc { min-height: 0; }
	.o-plan--wide > .o-price { margin-bottom: 20px; }
	.o-plan--wide > .o-btn { align-self: end; }
}

/* Small fact cards under a section element (pricing #load-index) */
.o-facts { margin-top: var(--gutter); }
.o-facts > .o-card { padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
.o-facts > .o-card .o-icon { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 2px 0 0; }
.o-facts > .o-card h3 { font-size: 17px; margin: 0 0 4px; }
.o-facts > .o-card p { font-size: 14.5px; margin: 0; }

/* ---------- Load index chart (pricing #load-index) ----------
   Content: <div class="o-loadindex" data-floor="0.8" data-src=""> with a no-JS <p class="o-note"> fallback.
   otasi.js replaces the fallback with .o-li-head + .o-li-plot (SVG) + .o-li-tip + a visually-hidden summary. */
:root { --li-hi: #1D4FA8; --li-lo: #149E80; --li-now: #B57F22; }
[data-theme-active=dark] { --li-hi: #5B95FF; --li-lo: #2FD3AC; --li-now: #E0A54A; }
.o-loadindex {
	position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	padding: 24px 24px 14px; box-shadow: var(--shadow-sm);
}
.o-loadindex > .o-note { margin: 0; }
.o-li-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin: 0 0 14px; }
.o-li-live { margin: 0; font: 500 15px/1.5 var(--f-body); color: var(--text-body); }
.o-li-live strong { font: 600 15px/1.5 var(--f-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.o-li-live .o-li-sep { color: var(--subtle); margin: 0 8px; }
.o-li-pulse {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
	background: var(--li-lo); box-shadow: 0 0 0 0 var(--li-lo); animation: o-li-pulse 2.4s ease-out infinite;
}
@keyframes o-li-pulse { 0% { box-shadow: 0 0 0 0 rgba(20,158,128,.45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(20,158,128,0); } }
.o-li-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font: 500 12.5px/1.4 var(--f-body); color: var(--muted); }
.o-li-legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.o-li-legend i { width: 14px; height: 4px; border-radius: 2px; background: var(--li-lo); }
.o-li-legend li + li i { background: var(--li-hi); }
.o-li-legend .o-li-demo { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--subtle); font: 600 10.5px/1.4 var(--f-label); text-transform: uppercase; letter-spacing: .08em; }
.o-li-plot { position: relative; margin: 0 -6px; border-radius: 10px; outline: none; touch-action: pan-y; cursor: crosshair; }
.o-li-plot:focus-visible { box-shadow: var(--focus); }
.o-li-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.o-li-plot text { font: 500 11px var(--f-mono); fill: var(--subtle); font-variant-numeric: tabular-nums; }
.o-li-plot .o-li-day { font: 600 12px var(--f-body); fill: var(--muted); }
.o-li-plot .o-li-day--today { fill: var(--text); }
.o-li-grid { stroke: var(--border); stroke-width: 1; }
.o-li-grid--top { stroke-dasharray: 3 4; }
.o-li-daysep { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.o-li-night { fill: var(--tint-navy); opacity: .7; }
.o-li-past { fill: var(--surface-solid); opacity: .55; }
.o-li-s-hi { stop-color: var(--li-hi); }
.o-li-s-lo { stop-color: var(--li-lo); }
.o-li-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.o-li-now { stroke: var(--li-now); stroke-width: 1.5; }
.o-li-plot .o-li-nowtag rect { fill: var(--li-now); }
.o-li-plot .o-li-nowtag text { font: 700 11px var(--f-mono); fill: #fff; }
[data-theme-active=dark] .o-li-plot .o-li-nowtag text { fill: #1A1204; }
.o-li-nowdot { fill: var(--li-now); stroke: var(--surface-solid); stroke-width: 2; }
.o-li-cursor { stroke: var(--text); stroke-width: 1; opacity: .45; }
.o-li-cdot { fill: var(--surface-solid); stroke: var(--text); stroke-width: 2; }
.o-li-hover { display: none; }
.o-li-plot.is-active .o-li-hover { display: inline; }
.o-li-tip {
	position: absolute; top: 4px; left: 0; z-index: 2; pointer-events: none; white-space: nowrap;
	padding: 8px 12px; border-radius: var(--r-sm-sig); background: var(--surface-solid); border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-md); font: 500 13px/1.4 var(--f-body); color: var(--text-body);
	opacity: 0; transition: opacity .15s;
}
.o-li-tip strong { display: block; font: 600 13px/1.4 var(--f-mono); color: var(--text); }
.o-li-plot.is-active .o-li-tip { opacity: 1; }
.o-li-hint { margin: 6px 0 0; font: 400 12.5px/1.4 var(--f-body); color: var(--subtle); text-align: right; }
.o-loadindex.is-drawing .o-li-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: o-li-draw 1.4s var(--ease) .1s forwards; }
.o-loadindex.is-drawing .o-li-area { opacity: 0; animation: o-li-fade .8s ease .7s forwards; }
@keyframes o-li-draw { to { stroke-dashoffset: 0; } }
@keyframes o-li-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.o-li-pulse { animation: none; }
	.o-loadindex.is-drawing .o-li-line, .o-loadindex.is-drawing .o-li-area { animation: none; stroke-dasharray: none; opacity: 1; }
	.o-li-tip { transition: none; }
}
@media (max-width: 640px) {
	.o-loadindex { padding: 18px 16px 10px; }
	.o-li-live { font-size: 14px; }
	.o-li-live .o-li-sep { display: block; height: 0; overflow: hidden; margin: 0; }
	.o-li-hint { text-align: left; }
}
.o-loadindex.is-pending .o-li-line, .o-loadindex.is-pending .o-li-area { opacity: 0; }

/* Obfuscated "@" in the imprint email (bots read the raw HTML, humans see the @) */
.o-at::before { content: "@"; }

/* ---------- News page: native LatestNews component (news + news_translation tables) ----------
   Editorial bento grid: the lead item (first; upcoming items sort first) spans two columns
   with a large media area. Items without media get a generated filament visual (otasi.js). */
.oa-legacy--latestnews { padding-top: 8px; padding-bottom: 112px; }
.latest-news > h1 { display: none; } /* the page hero already titles the page */
.latest-news {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
	grid-auto-flow: row dense; align-items: start;
}
.latest-news .news {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card-sig);
	box-shadow: var(--shadow-sm); overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.latest-news .news:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
:root[data-theme=dark] .latest-news .news { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Media: image, video or generated art; full-bleed on top of the card */
.latest-news .news-media, .latest-news .news-art {
	position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden;
	background: var(--surface-sunk); border-bottom: 1px solid var(--border);
}
.latest-news .news-media img, .latest-news .news-media video {
	display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
	transition: transform 1.2s var(--ease);
}
.latest-news .news:hover .news-media img { transform: scale(1.025); }
.latest-news .news-media::after { /* hairline inner edge so light images don't melt into the card */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(3,27,81,.05);
}
.latest-news .news-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Text block: everything after the media gets the card padding */
.latest-news .news > :not(.news-media):not(.news-art) { margin-left: 30px; margin-right: 30px; }
.latest-news .news .date { order: 2; margin-top: 24px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.latest-news .news .date span { display: inline; padding: 0; background: none; border: 0; }
.latest-news .news-kind {
	order: 1; position: absolute; top: 16px; left: 16px; margin: 0 !important; z-index: 2;
	display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px;
	font: 600 12px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase;
	color: var(--badge-text); background: rgba(255,255,255,.82); border: 1px solid rgba(3,27,81,.08);
	border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.latest-news .news-kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--k, var(--link)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k, var(--link)) 22%, transparent); }
:root[data-theme=dark] .latest-news .news-kind { background: rgba(5,11,26,.72); border-color: rgba(150,175,230,.18); color: var(--text); }
.latest-news .news[data-kind=feature] { --k: var(--highlight); }
.latest-news .news[data-kind=release] { --k: var(--link); }
.latest-news .news[data-kind=announcement] { --k: var(--icon-blue); }
.latest-news .news[data-kind=milestone] { --k: var(--ochre); }
/* no media and no generated art (JS off): badge sits in the flow */
.latest-news .news:not(.news--has-media):not(.has-art) .news-kind { position: static; align-self: flex-start; margin: 26px 30px 0 !important; }

.latest-news .news h1 {
	order: 3; margin-top: 8px; margin-bottom: 10px;
	font-size: 23px; line-height: 1.22; letter-spacing: -0.015em; font-weight: 700; color: var(--text);
}
.latest-news .news .content { order: 4; color: var(--muted); font-size: 16px; line-height: 1.62; white-space: normal; }
.latest-news .news .content p { margin: 0 0 .8em; }
.latest-news .news .content p:last-child { margin-bottom: 0; }
.latest-news .news-link {
	order: 5; align-self: flex-start; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: 15px; color: var(--link);
}
.latest-news .news-link::after { content: "→"; transition: transform .2s var(--ease); }
.latest-news .news-link:hover { text-decoration: none; }
.latest-news .news-link:hover::after { transform: translateX(4px); }
.latest-news .news > :last-child { margin-bottom: 30px; }
/* Whole card clickable, while keeping the real link for keyboard and screen readers */
.latest-news .news-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.latest-news .news-link:focus-visible { box-shadow: none; }
.latest-news .news:has(.news-link:focus-visible) { box-shadow: var(--focus), var(--shadow-lg); }

/* Lead item: two columns wide, two rows tall, media fills the left/top */
.latest-news .news:first-of-type { grid-column: span 2; grid-row: span 2; }
.latest-news .news:first-of-type .news-media, .latest-news .news:first-of-type .news-art { aspect-ratio: 16 / 9; }
.latest-news .news:first-of-type h1 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.12; }
.latest-news .news:first-of-type .content { font-size: 17.5px; color: var(--text-body); max-width: 62ch; }
.latest-news .news:first-of-type > :not(.news-media):not(.news-art) { margin-left: 40px; margin-right: 40px; }
.latest-news .news:first-of-type .date { margin-top: 30px; }
.latest-news .news:first-of-type > :last-child { margin-bottom: 38px; }
/* Rhythm: every 4th later item goes wide with media beside the text */
@media (min-width: 1081px) {
	.latest-news .news:nth-of-type(4n+4):not(:first-of-type) { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 0; align-content: start; }
	.latest-news .news:nth-of-type(4n+4):not(:first-of-type) > .news-media,
	.latest-news .news:nth-of-type(4n+4):not(:first-of-type) > .news-art { grid-row: 1 / span 6; aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--border); }
	.latest-news .news:nth-of-type(4n+4):not(:first-of-type) > :not(.news-media):not(.news-art) { grid-column: 2; }
}

/* Upcoming: glowing ochre ribbon + soft dashed halo + countdown */
.latest-news .news--upcoming {
	border: 1px dashed color-mix(in srgb, var(--ochre) 55%, transparent);
	background:
		radial-gradient(120% 60% at 100% 100%, color-mix(in srgb, var(--ochre) 9%, transparent), transparent 60%),
		var(--surface);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--ochre) 7%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--ochre) 45%, transparent);
}
.latest-news .news--upcoming:hover { border-color: var(--ochre); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ochre) 11%, transparent), var(--shadow-lg); }
.latest-news .news--upcoming .date {
	align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
	padding: 6px 14px 6px 10px; border-radius: 999px;
	color: var(--ochre-text); font-weight: 600;
	background: var(--tint-ochre); border: 1px solid var(--tint-ochre-border);
	box-shadow: 0 0 24px -6px color-mix(in srgb, var(--ochre) 55%, transparent);
}
.latest-news .news--upcoming .date span { display: inline-flex; align-items: center; gap: 6px; }
.latest-news .news-planned { font-style: normal; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; display: inline-flex; align-items: center; gap: 7px; }
.latest-news .news-planned::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--ochre) 60%, transparent); animation: news-beacon 2.4s ease-out infinite;
}
.latest-news .news-sep { opacity: .6; }
.latest-news .news-countdown {
	font: 600 12px/1 var(--f-mono); letter-spacing: .02em; padding: 4px 8px; border-radius: 999px;
	color: var(--ochre-text); background: color-mix(in srgb, var(--ochre) 16%, transparent);
}
@keyframes news-beacon {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ochre) 55%, transparent); }
	70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.latest-news .news--upcoming .news-media::before { /* warm glow over the media's lower edge */
	content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; pointer-events: none;
	background: linear-gradient(to top, color-mix(in srgb, var(--ochre) 18%, transparent), transparent);
}

/* Entrance: cards rise in once when they enter the viewport (set by otasi.js) */
.latest-news.is-observed .news:not(.is-in) { animation: news-in .7s var(--ease) both; animation-delay: var(--news-delay, 0ms); }
.latest-news.is-observed .news.is-in { animation: news-in .7s var(--ease) both; animation-delay: var(--news-delay, 0ms); }
@keyframes news-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.latest-news.is-observed .news.is-in:hover { transform: translateY(-3px); }

@media (max-width: 1080px) {
	.latest-news { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.latest-news .news:first-of-type { grid-row: auto; }
}
@media (max-width: 680px) {
	.latest-news { grid-template-columns: 1fr; gap: 18px; }
	.latest-news .news:first-of-type { grid-column: auto; }
	.latest-news .news > :not(.news-media):not(.news-art),
	.latest-news .news:first-of-type > :not(.news-media):not(.news-art) { margin-left: 22px; margin-right: 22px; }
	.latest-news .news .date, .latest-news .news:first-of-type .date { margin-top: 20px; }
	.latest-news .news > :last-child, .latest-news .news:first-of-type > :last-child { margin-bottom: 24px; }
	.latest-news .news h1 { font-size: 21px; }
	.latest-news .news:first-of-type h1 { font-size: 25px; }
	.latest-news .news:first-of-type .content { font-size: 16px; }
	.latest-news .news-media, .latest-news .news-art,
	.latest-news .news:first-of-type .news-media, .latest-news .news:first-of-type .news-art { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
	.latest-news .news, .latest-news .news:hover, .latest-news .news-media img { transform: none !important; transition: none; }
	.latest-news.is-observed .news { opacity: 1; transform: none; }
}
.latest-news .news-art { background: linear-gradient(160deg, var(--tint-blue), var(--tint-green)); }
:root[data-theme=dark] .latest-news .news-art { background: linear-gradient(160deg, #0A1838, #07202E); }
.latest-news .news-art-threads path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: oa-draw 2.4s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 200ms); }
.latest-news .news-art-tip { opacity: 0; animation: news-tip .8s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + 1.6s); }
@keyframes news-tip { to { opacity: .9; } }
:root[data-theme=dark] .latest-news .news-art-tip { filter: drop-shadow(0 0 4px currentColor); }
@media (prefers-reduced-motion: reduce) {
	.latest-news .news-art-threads path { stroke-dashoffset: 0; animation: none; }
	.latest-news .news-art-tip { opacity: .9; animation: none; }
	.latest-news .news-planned::before { animation: none; }
}

/* ---------- Preview mode ("under construction") ---------- */
.oa-preview-banner {
	position: relative; z-index: 5;
	background: repeating-linear-gradient(-45deg, #F6C744 0 14px, #F2B91F 14px 28px);
	color: #1C1F26; font-size: 15px; line-height: 1.45;
}
.oa-preview-banner .oa-container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.oa-preview-banner strong {
	text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
	background: #1C1F26; color: #F6C744; padding: 3px 10px; border-radius: 6px 1px 6px 6px;
}
.oa-preview-banner span { flex: 1 1 420px; }
.oa-preview-banner a { color: #031B51; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.o-plan--preview { position: relative; }
.o-plan--preview .o-price { opacity: .55; }
.o-form--preview { opacity: .9; }
.o-form--preview .o-ask-send, .o-form--preview button[disabled] { cursor: not-allowed; opacity: .5; }
.o-preview-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px 2px 10px 10px; background: color-mix(in srgb, #F6C744 22%, transparent); color: var(--text); }
