/* ==========================================================================
   Platen — design system
   Palette  A-11 Gallery Mono · Fonts B-8 Exo 2 + Noto Sans
   Direction C-12 Dot-Grid Tech Pastel · Edges E2-1 Friendly layered
   Header   E1-7 Hide-on-scroll · Gate D-3 Editorial Caret
   Accent strategy 3 — coloured headings and rules.
   Every colour is a token; nothing below hardcodes a hex outside :root.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* palette — light */
	--bg: #F7F7F5;
	--surface: #FFFFFF;
	--ink: #1C1C1A;
	--muted: #5F5F5A;
	--accent: #2E2E2A;
	--accent-2: #C9C9C2;

	/* inks for filled areas. Each fill gets its own token so a theme swap
	   cannot leave dark text on a dark fill. */
	--on-accent: #FFFFFF;
	--on-accent-2: #1C1C1A;

	/* The gate paints a gradient. A gradient element reports a transparent
	   backgroundColor, so its ink can never be derived from an ancestor —
	   it needs a token of its own, defined in BOTH themes. */
	--gate-wash: linear-gradient(135deg, #F5F5F1, #ECECE6 50%, #E2E2DA);
	--gate-stop: #E2E2DA;
	--on-gate: #1C1C1A;
	--on-gate-soft: #4A4A45;

	--line: rgba(28, 28, 26, 0.12);
	--line-soft: rgba(28, 28, 26, 0.07);
	--dot: rgba(28, 28, 26, 0.085);
	--sheen: rgba(255, 255, 255, 0.7);

	/* E2-1 Friendly layered */
	--r-card: 24px;
	--r-btn: 16px;
	--r-chip: 999px;
	--r-sm: 12px;
	--shadow: 0 1px 2px rgba(16, 16, 14, 0.05), 0 8px 24px rgba(16, 16, 14, 0.07);
	--shadow-lift: 0 2px 4px rgba(16, 16, 14, 0.06), 0 16px 38px rgba(16, 16, 14, 0.11);

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

	/* type scale, ratio 1.25 */
	--t-xs: 0.78rem;
	--t-sm: 0.885rem;
	--t-base: 1rem;
	--t-md: 1.14rem;
	--t-lg: clamp(1.24rem, 1.05rem + 0.7vw, 1.5rem);
	--t-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
	--t-2xl: clamp(1.95rem, 1.4rem + 2.6vw, 2.9rem);

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

	--column: 44rem;
	--shell: 1160px;
	--pad: clamp(16px, 4vw, 32px);
	--head-h: 68px;

	/* Written from JS when the sticky call bar is up; 0 otherwise. */
	--sticky-h: 0px;
}

[data-theme="dark"] {
	--bg: #161616;
	--surface: #1F1F1E;
	--ink: #EDEDEA;
	--muted: #A8A8A2;
	--accent: #E6E6E0;
	--accent-2: #4A4A45;

	--on-accent: #161616;
	--on-accent-2: #EDEDEA;

	--gate-wash: linear-gradient(135deg, #1C1C1B, #232322 50%, #2B2B28);
	--gate-stop: #2B2B28;
	--on-gate: #EDEDEA;
	--on-gate-soft: #B4B4AE;

	--line: rgba(237, 237, 234, 0.14);
	--line-soft: rgba(237, 237, 234, 0.08);
	--dot: rgba(237, 237, 234, 0.10);
	--sheen: rgba(255, 255, 255, 0.05);

	--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.34);
	--shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.42), 0 16px 38px rgba(0, 0, 0, 0.44);
}

/* --------------------------------------------------------------------------
   2. Page
   -------------------------------------------------------------------------- */

html {
	scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
	background-color: var(--bg);
	/* C-12: the dot grid is the surface of the whole page. */
	background-image: radial-gradient(var(--dot) 1px, transparent 1px);
	background-size: 22px 22px;
	background-position: 0 0;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--t-base);
	line-height: 1.7;
	padding-block-end: var(--sticky-h);
}

h1, h2, h3 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.012em;
	/* margin-block only — a `margin` shorthand here would zero margin-inline
	   and knock the heading out of the centred reading column. */
	margin-block: 0;
}

::selection {
	background: var(--accent-2);
	color: var(--on-accent-2);
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(summary):focus-visible,
:where(details):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.pltn-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 60;
	background: var(--accent);
	color: var(--on-accent);
	padding: var(--space-3) var(--space-5);
	border-radius: 0 0 var(--r-sm) 0;
}

.pltn-skip:focus {
	left: 0;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.pltn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 48px;
	padding: var(--space-3) var(--space-6);
	border: 0;
	border-radius: var(--r-btn);
	background-color: var(--accent);
	/* kill any inherited link gradient underline */
	background-image: none;
	color: var(--on-accent);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-base);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.pltn-btn:hover {
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}

.pltn-btn:active {
	transform: translateY(0);
}

.pltn-btn--sm {
	min-height: 44px;
	padding: var(--space-2) var(--space-5);
	font-size: var(--t-sm);
	border-radius: var(--r-sm);
}

/* Icon-only controls. Fixed box, so an iOS flex button cannot squash its svg —
   and note the reset in style.css deliberately leaves svg without max-width. */
.pltn-icobtn {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background-color: var(--surface);
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.pltn-icobtn:hover {
	border-color: var(--accent);
}

.pltn-icobtn svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* Theme toggle: the two glyphs must share ONE grid cell, or the button renders
   the sun AND the moon stacked on top of each other. inline-grid is right here
   precisely because the children are meant to overlap — unlike the burger,
   whose three bars need flex so the gap does something. */
.pltn-theme {
	display: inline-grid;
	place-items: center;
}

.pltn-theme__sun,
.pltn-theme__moon {
	grid-area: 1 / 1;
	transition: opacity 0.2s ease, transform 0.25s ease;
}

/* Light theme shows the moon — the state the button would switch you TO. */
.pltn-theme__moon {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

.pltn-theme__sun {
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

[data-theme="dark"] .pltn-theme__moon {
	opacity: 0;
	transform: rotate(90deg) scale(0.6);
}

[data-theme="dark"] .pltn-theme__sun {
	opacity: 1;
	transform: rotate(0deg) scale(1);
}

/* --------------------------------------------------------------------------
   4. Header — E1-7 hide-on-scroll
   -------------------------------------------------------------------------- */

.pltn-head {
	position: sticky;
	top: 0;
	z-index: 30;
	/* An inset sticky header must PAINT. Left transparent, the article scrolls
	   through the strip and the bar reads as torn off the top of the phone. */
	background-color: var(--bg);
	border-block-end: 1px solid transparent;
	transition: transform 0.26s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pltn-head.is-stuck {
	border-block-end-color: var(--line);
	box-shadow: 0 1px 0 var(--line-soft);
}

.pltn-head.is-away {
	transform: translateY(-100%);
}

/* WordPress fixes #wpadminbar only above 783px. At 782 and below it becomes
   position:absolute and scrolls away, so a sticky header still holding 46px
   would hang in a permanent gap. Offset only where the bar is really fixed. */
@media screen and (min-width: 783px) {
	body.admin-bar .pltn-head {
		top: 32px;
	}
	body.admin-bar .pltn-drawer {
		top: 32px;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .pltn-head {
		top: 0;
	}
	body.admin-bar .pltn-drawer {
		top: 0;
	}
}

.pltn-head__bar {
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: var(--pad);
	min-height: var(--head-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.pltn-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 44px;
	min-width: 0;
	text-decoration: none;
	color: var(--ink);
}

.pltn-mark {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	display: block;
	color: var(--accent);
}

.pltn-brand__name {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(1rem, 0.9rem + 0.5vw, 1.22rem);
	letter-spacing: -0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.pltn-head__actions {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   5. Language control
   Exactly one language control on screen at any width. That is a PAIR of
   rules, not one: hide the dropdown below the breakpoint AND hide the burger
   above it. The small-screen rule is scoped to the header actions so the copy
   inside the drawer survives.
   -------------------------------------------------------------------------- */

.pltn-lang {
	position: relative;
}

.pltn-lang__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 44px;
	padding-inline: var(--space-4);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background-color: var(--surface);
	color: var(--ink);
	font-size: var(--t-sm);
	cursor: pointer;
}

.pltn-lang__btn:hover {
	border-color: var(--accent);
}

.pltn-chev {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.pltn-lang.is-open .pltn-chev {
	transform: rotate(180deg);
}

.pltn-lang__menu {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 8px);
	min-width: 210px;
	padding: var(--space-2);
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	background-color: var(--surface);
	box-shadow: var(--shadow-lift);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.pltn-lang.is-open .pltn-lang__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pltn-lang__list {
	list-style: none;
	margin-block: 0;
	margin-inline: 0;
	padding-inline-start: 0;
}

.pltn-lang__list li a,
.pltn-lang__shortcode a {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 44px;
	padding-inline: var(--space-3);
	border-radius: var(--r-sm);
	color: var(--ink);
	font-size: var(--t-sm);
	text-decoration: none;
}

.pltn-lang__list li a:hover,
.pltn-lang__shortcode a:hover {
	background-color: var(--accent-2);
	color: var(--on-accent-2);
}

/* TranslatePress adds flags and its own container classes to the menu items. */
.pltn-lang__list .trp-language-switcher-container,
.pltn-lang__shortcode .trp-language-switcher-container {
	width: 100%;
}

.pltn-lang__list img,
.pltn-lang__shortcode img {
	width: 18px;
	height: auto;
	border-radius: 2px;
}

/* The plugin's own floating switcher is ON by default and paints a second
   picker in a page corner. The theme supplies its own, so this one goes.
   INSTALL.md also tells the operator to set it to "No" in the plugin. */
#trp-floater-ls,
.trp-floater,
.trp-floater-ls-names,
#trp-floater-ls-current-language {
	display: none !important;
}

.pltn-lang--sheet {
	margin-block-end: var(--space-5);
}

.pltn-lang--sheet .pltn-lang__list li a,
.pltn-lang--sheet .pltn-lang__shortcode a {
	border: 1px solid var(--line);
	margin-block-end: var(--space-2);
}

/* --------------------------------------------------------------------------
   6. Burger, scrim, drawer
   -------------------------------------------------------------------------- */

/* A multi-bar glyph must be flex, not grid: inline-grid + place-items stretches
   the three implicit rows to fill the 44px box and the gap sets nothing. */
.pltn-burger {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.pltn-burger__bar {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
	transition: transform 0.22s ease, opacity 0.18s ease;
}

.pltn-burger.is-open .pltn-burger__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.pltn-burger.is-open .pltn-burger__bar:nth-child(2) {
	opacity: 0;
}

.pltn-burger.is-open .pltn-burger__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* The one-language-control PAIR.
   Written AFTER the burger's own display rule, and scoped, on purpose. A media
   query adds NO specificity, so `@media (min-width:769px){ .pltn-burger{display:none} }`
   placed earlier loses to a later unscoped `.pltn-burger{display:inline-flex}`
   at every width — which is exactly how a burger ends up sitting next to the
   Language dropdown on desktop. Two defences: the higher-specificity subject,
   and source order. Either alone would do; neither alone is obvious to a reader. */
@media (min-width: 769px) {
	.pltn-head__actions .pltn-burger {
		display: none;
	}
}

/* The other half — the desktop dropdown goes on small screens. Scoped to
   .pltn-head__actions so the drawer's copy of the same list is untouched. */
@media (max-width: 768px) {
	.pltn-head__actions .pltn-lang {
		display: none;
	}
}

.pltn-scrim {
	position: fixed;
	inset: 0;
	z-index: 40;
	background-color: rgba(16, 16, 14, 0.44);
	opacity: 0;
	transition: opacity 0.24s ease;
}

.pltn-scrim.is-shown {
	opacity: 1;
}

/* The drawer sits ABOVE the scrim so a tap on a link navigates instead of
   landing on the scrim and closing the panel. */
.pltn-drawer {
	position: fixed;
	top: 0;
	inset-inline-end: 0;
	z-index: 41;
	width: min(88vw, 340px);
	height: 100%;
	overflow-y: auto;
	padding: var(--space-5) var(--space-5) var(--space-8);
	background-color: var(--surface);
	border-inline-start: 1px solid var(--line);
	box-shadow: var(--shadow-lift);
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

.pltn-drawer.is-open {
	transform: translateX(0);
}

.pltn-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-block-end: var(--space-6);
}

.pltn-drawer__title {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-md);
}

.pltn-drawer__label {
	margin-block: 0 var(--space-3);
	font-size: var(--t-xs);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. The reading column
   Every direct child of the article is centred on the same 44rem column.
   The floor is zero-specificity so any component rule outranks it, and the
   age gate is the single exemption (it is a wider card, still centred).
   -------------------------------------------------------------------------- */

.pltn-main {
	display: block;
}

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

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

.pltn-entry > * + * {
	margin-block-start: var(--space-5);
}

.pltn-entry h1 {
	font-size: var(--t-2xl);
	font-weight: 800;
	color: var(--accent);
	margin-block: var(--space-7) var(--space-5);
	scroll-margin-top: calc(var(--head-h) + 16px);
}

.pltn-entry h2 {
	position: relative;
	font-size: var(--t-xl);
	color: var(--accent);
	margin-block: var(--space-8) var(--space-4);
	padding-block-start: var(--space-5);
	scroll-margin-top: calc(var(--head-h) + 16px);
}

/* Accent strategy 3 — a coloured rule above the heading. It sits at the top of
   the padding box while the heading text sits below it, so the two never share
   a coordinate and the rule can never read as a strike-through. */
.pltn-entry h2::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background-color: var(--accent-2);
}

.pltn-entry p {
	margin-block: 0;
}

.pltn-entry strong {
	font-weight: 700;
	color: var(--ink);
}

/* Body links carry the accent + an animated underline (F-9). Buttons are
   excluded by the :not([class]) subject, so a link-button keeps its own fill
   and its label can never be painted accent-on-accent. */
.pltn-entry a:not([class]) {
	color: var(--accent);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 2px;
	transition: background-size 0.28s ease;
	padding-block-end: 1px;
}

.pltn-entry a:not([class]):hover,
.pltn-entry a:not([class]):focus-visible {
	background-size: 100% 2px;
}

/* Gutenberg lists are .wp-block-list — a ul:not([class]) selector misses them
   entirely and a blanket ul[class]{list-style:none} strips their markers. */
.pltn-entry .wp-block-list {
	list-style: disc;
	padding-inline-start: 1.35rem;
	margin-block: 0;
	margin-inline: auto;
	max-width: var(--column);
	display: grid;
	gap: var(--space-3);
}

.pltn-entry .wp-block-list li {
	padding-inline-start: var(--space-1);
}

.pltn-entry .wp-block-list li::marker {
	color: var(--accent-2);
}

.pltn-entry--plain {
	min-height: 52vh;
	display: grid;
	align-content: center;
}

/* --------------------------------------------------------------------------
   8. Age gate — D-3 Editorial Caret
   -------------------------------------------------------------------------- */

.pltn-gate {
	max-width: 62rem;
	margin-inline: auto;
	margin-block: 0 var(--space-7);
	padding: clamp(24px, 5vw, 48px);
	border-radius: var(--r-card);
	background-image: var(--gate-wash);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	overflow: clip;
}

.pltn-gate__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-5);
	align-items: center;
}

@media (min-width: 820px) {
	.pltn-gate__inner {
		grid-template-columns: 6fr 4fr;
		gap: var(--space-7);
	}
}

.pltn-gate__over {
	margin-block: 0 var(--space-3);
	font-family: var(--font-head);
	font-size: var(--t-xs);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--on-gate-soft);
}

.pltn-gate__q {
	font-size: var(--t-2xl);
	font-weight: 800;
	color: var(--on-gate);
	margin-block: 0 var(--space-4);
}

/* the caret — the one moving decoration in this viewport */
.pltn-gate__caret {
	display: inline-block;
	width: 3px;
	height: 0.86em;
	margin-inline-start: 6px;
	vertical-align: -0.08em;
	background-color: var(--on-gate);
	animation: pltn-blink 1.1s steps(2, start) infinite;
}

@keyframes pltn-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

.pltn-gate__note {
	max-width: 34rem;
	margin-block: 0 var(--space-5);
	color: var(--on-gate-soft);
	font-size: var(--t-sm);
}

.pltn-gate__go {
	min-height: 52px;
}

.pltn-gate__mark {
	display: grid;
	place-items: center;
}

.pltn-gate__mark span {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(120px, 17vw, 210px);
	line-height: 1;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 2px var(--on-gate);
	transform: rotate(-6deg);
	user-select: none;
}

/* On a phone the figure becomes a watermark behind the copy rather than a
   second column pushing the button below the fold. */
@media (max-width: 819px) {
	.pltn-gate {
		position: relative;
	}
	.pltn-gate__mark {
		position: absolute;
		inset-block-start: 50%;
		inset-inline-end: -6%;
		transform: translateY(-50%);
		opacity: 0.08;
		pointer-events: none;
	}
	.pltn-gate__copy {
		position: relative;
		z-index: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pltn-gate__caret {
		animation: none;
		opacity: 1;
	}
}

/* --------------------------------------------------------------------------
   9. Content components
   Each one is a direct child of the reading column, so each restates the
   column explicitly. Never a `margin` shorthand here: `margin: 0` zeroes
   margin-inline and knocks the block flush-left while it still measures
   exactly --column wide, which a width check reads as a pass.
   -------------------------------------------------------------------------- */

/* 9a. illustration */
.pltn-figure {
	max-width: var(--column);
	margin-inline: auto;
	margin-block: var(--space-6);
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background-color: var(--surface);
	box-shadow: var(--shadow);
}

.pltn-illus {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

/* Colours come from tokens, never hex, so the drawing lives in both themes.
   The floor below is a :where() so it cannot outrank the class rules that
   follow — a zero-specificity rule still beats plain inheritance, which is
   how a fill floor ends up defeating a stroked group. */
.pltn-illus :where(path, rect, circle, line, polygon) {
	fill: none;
	stroke: none;
}

.pltn-illus__bg {
	fill: var(--surface);
	stroke: var(--line-soft);
	stroke-width: 1;
}

.pltn-illus__grid circle {
	fill: var(--dot);
	stroke: none;
}

.pltn-illus__axis {
	stroke: var(--line);
	stroke-width: 1;
	fill: none;
}

.pltn-illus__bars rect {
	fill: var(--accent-2);
	stroke: none;
}

.pltn-illus__bars--accent rect {
	fill: var(--accent);
	stroke: none;
}

.pltn-illus__dots circle {
	fill: var(--accent);
	stroke: none;
}

/* 9b. steps */
.pltn-steps {
	list-style: none;
	max-width: var(--column);
	margin-inline: auto;
	margin-block: var(--space-5);
	padding-inline-start: 0;
	display: grid;
	gap: var(--space-3);
}

@media (min-width: 700px) {
	.pltn-steps {
		grid-template-columns: 1fr 1fr;
	}
}

.pltn-steps__item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "n t" ". d";
	column-gap: var(--space-4);
	row-gap: var(--space-1);
	padding: var(--space-5);
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	background-color: var(--surface);
	box-shadow: var(--shadow);
}

/* --accent-2 is the ink for an accent-2 FILL, not a text colour on a surface:
   as type it measures 1.66:1 in light and 1.85:1 in dark. The ordinal carries
   the step order, so it has to be read, not just seen. */
.pltn-steps__n {
	grid-area: n;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: var(--t-md);
	color: var(--muted);
	line-height: 1.3;
}

.pltn-steps__t {
	grid-area: t;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-md);
	color: var(--accent);
	line-height: 1.3;
}

.pltn-steps__d {
	grid-area: d;
	color: var(--muted);
	font-size: var(--t-sm);
	line-height: 1.6;
}

/* 9c. counters (F-4). The final values are the shipped HTML; JS only counts
   UP to them, so a dead observer costs the animation and never the numbers. */
.pltn-counts {
	max-width: var(--column);
	margin-inline: auto;
	margin-block: var(--space-6);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-3);
}

.pltn-counts__cell {
	padding: var(--space-5) var(--space-3);
	text-align: center;
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	background-color: var(--surface);
}

.pltn-counts__n {
	display: block;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: var(--t-2xl);
	line-height: 1;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
}

.pltn-counts__l {
	display: block;
	margin-block-start: var(--space-2);
	font-size: var(--t-xs);
	color: var(--muted);
	line-height: 1.4;
}

/* 9d. FAQ (F-6-style native disclosure) */
.pltn-faq {
	max-width: var(--column);
	margin-inline: auto;
	margin-block: var(--space-5);
	display: grid;
	gap: var(--space-3);
}

.pltn-faq__i {
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	background-color: var(--surface);
	overflow: hidden;
}

.pltn-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: 56px;
	padding: var(--space-3) var(--space-5);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-md);
	color: var(--accent);
	cursor: pointer;
	list-style: none;
}

.pltn-faq__q::-webkit-details-marker {
	display: none;
}

.pltn-faq__q::after {
	content: "";
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.22s ease;
}

.pltn-faq__i[open] .pltn-faq__q::after {
	transform: rotate(-135deg) translate(-3px, -3px);
}

.pltn-faq__a {
	padding: 0 var(--space-5) var(--space-5);
	color: var(--muted);
}

.pltn-faq__a p {
	margin-block: 0;
}

/* 9e. chips — wrap INSIDE the reading column, never a full-width bleed */
.pltn-chips {
	list-style: none;
	max-width: var(--column);
	margin-inline: auto;
	margin-block: var(--space-5);
	padding-inline-start: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	overflow-x: hidden;
}

.pltn-chips__i {
	padding: var(--space-2) var(--space-4);
	border-radius: var(--r-chip);
	background-color: var(--accent-2);
	color: var(--on-accent-2);
	font-size: var(--t-sm);
	line-height: 1.45;
	/* C-12's thin gradient border, in palette tones */
	border: 1px solid var(--line);
}

/* 9f. pull quote */
.pltn-quote {
	max-width: var(--column);
	margin-inline: auto;
	margin-block: var(--space-7);
	padding: var(--space-6) var(--space-6) var(--space-6) var(--space-7);
	border: 0;
	border-inline-start: 3px solid var(--accent-2);
	border-radius: var(--r-sm);
	background-color: var(--surface);
	position: relative;
}

.pltn-quote p {
	margin-block: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--t-lg);
	line-height: 1.45;
	color: var(--ink);
}

.pltn-quote cite {
	display: block;
	margin-block-start: var(--space-3);
	font-size: var(--t-sm);
	color: var(--muted);
	font-style: normal;
}

/* --------------------------------------------------------------------------
   10. 404
   -------------------------------------------------------------------------- */

.pltn-404 {
	text-align: center;
}

.pltn-404__n {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(84px, 20vw, 190px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--accent-2);
	margin-block: 0 var(--space-4);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

.pltn-foot {
	border-block-start: 1px solid var(--line);
	background-color: var(--surface);
	padding-block: var(--space-6);
	padding-inline: var(--pad);
}

.pltn-foot__inner {
	max-width: var(--shell);
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
}

.pltn-foot__copy {
	margin-block: 0;
	font-size: var(--t-sm);
	color: var(--muted);
}

.pltn-foot__menu {
	list-style: none;
	margin-block: 0;
	margin-inline: 0;
	padding-inline-start: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-5);
}

.pltn-foot__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	font-size: var(--t-sm);
	text-decoration: none;
}

.pltn-foot__menu a:hover {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pltn-drawer .pltn-foot__menu {
	flex-direction: column;
	gap: 0;
}

/* --------------------------------------------------------------------------
   12. Sticky mobile call bar (F-13 shape) and the cookie notice
   -------------------------------------------------------------------------- */

.pltn-callbar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 24;
	display: none;
	padding: var(--space-3) var(--pad);
	padding-block-end: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
	background-color: var(--surface);
	border-block-start: 1px solid var(--line);
	box-shadow: 0 -6px 20px rgba(16, 16, 14, 0.08);
	transform: translateY(110%);
	transition: transform 0.24s ease;
}

@media (max-width: 768px) {
	.pltn-callbar {
		display: block;
	}
}

.pltn-callbar.is-up {
	transform: translateY(0);
}

.pltn-callbar__btn {
	width: 100%;
}

.pltn-cookie {
	position: fixed;
	z-index: 26;
	inset-inline-end: var(--space-4);
	inset-block-end: var(--space-4);
	width: min(calc(100vw - 32px), 380px);
	padding: var(--space-5);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background-color: var(--surface);
	box-shadow: var(--shadow-lift);
	/* Laid out but stood down until the geometry check clears it. Both halves
	   matter: opacity alone still hit-tests. */
	opacity: 0;
	pointer-events: none;
	transform: translateY(14px);
	transition: opacity 0.26s ease, transform 0.26s ease;
}

.pltn-cookie.is-up {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

/* When the call bar is up, the notice sits above it rather than on it. */
:root.pltn-bar-up .pltn-cookie {
	inset-block-end: calc(var(--sticky-h) + var(--space-4));
}

.pltn-cookie__t {
	margin-block: 0 var(--space-4);
	font-size: var(--t-sm);
	line-height: 1.6;
	color: var(--muted);
}

.pltn-cookie__t a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   13. Reveal (F-18-lite). The veil is applied PER ELEMENT from JS and cleared
   by both the observer and a timeout failsafe, so a callback that never fires
   costs the animation and never the page.
   -------------------------------------------------------------------------- */

.pltn-veil {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.pltn-veil.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.pltn-veil {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* F-16 smooth anchors, motion-gated */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* --------------------------------------------------------------------------
   14. Chat endpoint guard.
   The single chat path in this build is /chat.html. It is written in
   parts/front-content.php (the gate button, the source of truth), derived from
   there by footer.php, and named in _kit/INSTALL.md and _kit/BRIEF.txt. This
   rule exists so a second, different endpoint is visible in a diff of the CSS
   as well as the templates.
   -------------------------------------------------------------------------- */

.pltn-entry a[href="/chat.html"],
.pltn-callbar a[href="/chat.html"] {
	-webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   15. Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 620px) {
	.pltn-counts {
		grid-template-columns: 1fr;
	}
	.pltn-counts__cell {
		display: flex;
		align-items: baseline;
		justify-content: flex-start;
		gap: var(--space-4);
		text-align: start;
	}
	.pltn-counts__n {
		font-size: var(--t-xl);
	}
	.pltn-counts__l {
		margin-block-start: 0;
	}
}

@media (max-width: 400px) {
	.pltn-brand__name {
		font-size: 0.98rem;
		max-width: 42vw;
	}
	.pltn-head__bar {
		gap: var(--space-2);
	}
}
