@charset "UTF-8";
/* ==========================================================================
   Palatis — palatis.app
   Design system + landing page styles.

   Order: tokens → reset → primitives → motifs → sections → responsive → motion
   Every component reads the surface tokens (--text, --surface, --pill-bg …)
   rather than a palette colour, so a white card dropped inside a dark band —
   or a dark plan card inside a sage band — themes itself.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
	/* palette — sampled from the reference comp */
	--cream:       #F1F2E6;
	--lift:        #FAFAF4;
	--sage:        #E7EADA;
	--sage-deep:   #DCE0CA;
	--ink:         #171334;
	--ink-deep:    #0B0726;
	--white:       #FFFFFF;
	--saffron:     #F6DE2A;
	--saffron-soft:#FBEE86;
	--beet:        #E052D8;
	--basil:       #45C55B;
	--berry:       #3B7BF0;
	--chili:       #E04E1D;
	--olive:       #17603A;

	/* Surface tokens. The light ground is the default; `.is-dark`, `.on-dark`
	   and every saturated card re-declare the same seven names below. */
	--text:        var(--ink);
	--text-muted:  color-mix(in srgb, var(--ink) 74%, transparent);
	--text-faint:  color-mix(in srgb, var(--ink) 60%, transparent);
	--rule:        color-mix(in srgb, var(--ink) 12%, transparent);
	--surface:     var(--sage);
	--pill-bg:     var(--ink-deep);
	--pill-text:   var(--white);

	/* type */
	--font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--font-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--fs-hero:    clamp(2.6rem, 6.4vw, 5.1rem);
	--fs-h2:      clamp(2rem, 4.4vw, 3.3rem);
	--fs-h3:      clamp(1.5rem, 2.5vw, 2.1rem);
	--fs-finale:  clamp(2.5rem, 5.6vw, 4.5rem);
	--fs-lede:    clamp(1.05rem, 1.5vw, 1.28rem);
	--fs-body:    1.0625rem;
	--fs-sm:      0.9375rem;
	--fs-xs:      0.8125rem;
	--fs-micro:   0.75rem;

	/* form */
	--r-pill:  999px;
	--r-card:  22px;
	--r-panel: 32px;
	--r-blob:  64px;

	/* measure */
	--wrap:        1240px;
	--wrap-narrow: 760px;
	--gutter:      clamp(20px, 5vw, 48px);
	--masthead-h:  82px;

	/* spacing scale — the rhythm every section and grid is built from */
	--sp-1: 0.5rem;
	--sp-2: 0.875rem;
	--sp-3: 1.25rem;
	--stack:          clamp(0.875rem, 1.6vw, 1.35rem);
	--grid-gap:       clamp(1.125rem, 2.2vw, 1.75rem);
	--head-gap:       clamp(2.5rem, 4.4vw, 4rem);
	--section-y:      clamp(88px, 9vw, 160px);
	--section-y-tight:clamp(56px, 6vw, 96px);
	--feature-gap:    clamp(90px, 10vw, 170px);

	/* depth — soft, low-opacity ink so nothing reads as a grey box */
	--shadow-card:  0 1px 2px rgba(23, 19, 52, .05), 0 10px 28px -16px rgba(23, 19, 52, .22);
	--shadow-float: 0 2px 6px rgba(23, 19, 52, .06), 0 30px 64px -26px rgba(23, 19, 52, .34);

	/* motion — durations live in tokens so reduced-motion can zero them once */
	--ease:     cubic-bezier(.2, .7, .3, 1);
	--dur:      .26s;
	--dur-slow: .58s;

	/* lets the FAQ animate from height 0 to height auto */
	interpolate-size: allow-keywords;
}

/* The seven surface tokens, restated for a dark ground. Used by the dark band
   utilities and by the saturated cards, which are dark grounds in practice. */
.is-dark,
.on-dark,
.plan--featured,
.chatcard--beet,
.chatcard--basil {
	--text:       var(--white);
	--text-muted: rgba(255, 255, 255, .76);
	--text-faint: rgba(255, 255, 255, .58);
	--rule:       rgba(255, 255, 255, .18);
	--surface:    rgba(255, 255, 255, .08);
	--pill-bg:    var(--white);
	--pill-text:  var(--ink);
}

/* …and back to light, for a white card sitting inside a dark band. */
.on-light {
	--text:       var(--ink);
	--text-muted: color-mix(in srgb, var(--ink) 74%, transparent);
	--text-faint: color-mix(in srgb, var(--ink) 60%, transparent);
	--rule:       color-mix(in srgb, var(--ink) 12%, transparent);
	--surface:    var(--sage);
	--pill-bg:    var(--ink-deep);
	--pill-text:  var(--white);
}

/* ----------------------------------------------------------------- reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--masthead-h) + 16px);
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* `clip`, not `hidden`: hidden would turn the body into a scroll container
	   and break the sticky masthead. */
	overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
summary { cursor: pointer; }
table { border-collapse: collapse; }

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	border-radius: 4px;
}
.is-dark :focus-visible,
.on-dark :focus-visible,
.plan--featured :focus-visible,
.chatcard :focus-visible { outline-color: var(--saffron); }

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

::placeholder { color: var(--text-faint); opacity: 1; }

/* ------------------------------------------------------------ primitives -- */
.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.section {
	position: relative;
	padding-block: var(--section-y);
}
.section--sage {
	background: var(--sage);
	/* cards need to separate from their band, so flip the card ground */
	--surface: var(--lift);
}
.section--lift {
	background: var(--lift);
	--surface: var(--sage);
}
.section--tight { padding-block: var(--section-y-tight); }

.site-main { display: block; }

.section-head {
	display: grid;
	gap: var(--stack);
	margin-bottom: var(--head-gap);
}
.section-head--center {
	justify-items: center;
	text-align: center;
}
.section-head--center .lede { max-width: 56ch; }

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--text);
}
.eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: var(--r-pill);
	background: currentColor;
}
.section-head--center .eyebrow { justify-content: center; }

.display {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--fs-h2);
	line-height: 1.03;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.display--hero   { font-size: var(--fs-hero); }
.display--h3     { font-size: var(--fs-h3); line-height: 1.08; }
.display--finale { font-size: var(--fs-finale); }

.lede {
	font-size: var(--fs-lede);
	line-height: 1.5;
	color: var(--text-muted);
	text-wrap: pretty;
	max-width: 60ch;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	background: var(--pill-bg);
	color: var(--pill-text);
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	padding: 0.9rem 1.55rem;
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: 1.15;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease),
	            color var(--dur) var(--ease),
	            transform var(--dur) var(--ease),
	            box-shadow var(--dur) var(--ease);
}
.btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-card);
}
.btn--saffron { --pill-bg: var(--saffron); --pill-text: var(--ink); }
.btn--saffron:hover { background: var(--saffron-soft); }
.btn--ink { --pill-bg: var(--ink-deep); --pill-text: var(--white); }
.btn--ink:hover { background: var(--ink); }
.btn--ghost {
	--pill-bg: var(--white);
	--pill-text: var(--ink);
	border-color: var(--rule);
}
.btn--ghost:hover { background: var(--sage); }
.btn--sm { padding: 0.62rem 1.15rem; font-size: var(--fs-sm); }

.btn__arrow {
	margin-inline-start: -0.1em;
	transition: transform var(--dur) var(--ease);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(3px); }

.icon { flex: 0 0 auto; }

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 999;
	background: var(--ink-deep);
	color: var(--white);
	padding: 0.85rem 1.25rem;
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	font-weight: 500;
	transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- motifs -- */
/* Blob field. Deliberately no z-index on the field itself: without one the
   individual blobs share the stacking context of the artwork beside them, so
   `--blob-z: 2` can sit in front of a screenshot while `0` stays behind it. */
.blobfield {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.blob {
	position: absolute;
	left: var(--blob-x);
	top: var(--blob-y);
	width: var(--blob-w);
	height: var(--blob-h);
	border-radius: var(--blob-r);
	background: var(--blob-c);
	z-index: var(--blob-z);
}

/* Multiply circle strip: overlaps darken, which is what gives the reference
   its printed-poster feel. `--c-x` is a centre, hence the -50% translate. */
.circles {
	position: relative;
	pointer-events: none;
}
.circle {
	position: absolute;
	left: var(--c-x);
	top: calc(50% + var(--c-y));
	width: var(--c-w);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: var(--c-r);
	background: var(--c-c);
	mix-blend-mode: multiply;
}

.card {
	background: var(--surface);
	border-radius: var(--r-card);
	padding: clamp(22px, 2.4vw, 32px);
	display: grid;
	gap: var(--stack);
	align-content: start;
	height: 100%;
	transition: background-color var(--dur) var(--ease),
	            transform var(--dur) var(--ease);
}
.card:hover { background: color-mix(in srgb, var(--surface) 92%, var(--ink)); }

.card__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 16px;
	background: var(--saffron);
	color: var(--ink);
}
.card__title {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	line-height: 1.1;
	letter-spacing: -.01em;
}
.card__text {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

/* Rotating the icon tile through the palette reproduces the reference's
   polychrome card row without asking the content array for a tone. */
.rail__item:nth-child(4n + 2) .card__icon { background: var(--basil); }
.rail__item:nth-child(4n + 3) .card__icon { background: var(--berry); color: var(--white); }
.rail__item:nth-child(4n + 4) .card__icon { background: var(--beet); }

/* ------------------------------------------------------------------ rail -- */
/* CSS does the carousel: scroll snap plus a bled viewport. JavaScript only
   adds the dots and the two buttons on top of something already usable. */
.rail {
	/* dot height plus its top margin — the two rules below both need it */
	--rail-dots-gap: clamp(24px, 2.6vw, 36px);
	--rail-dots-h: calc(8px + var(--rail-dots-gap));
	position: relative;
}

.rail__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	/* bleed to the wrap's padding edge so cards run off both sides */
	margin-inline: calc(var(--gutter) * -1);
	padding-block: 6px;
}
.rail__viewport::-webkit-scrollbar { display: none; }

.rail__track {
	display: flex;
	gap: var(--grid-gap);
	padding-inline: var(--gutter);
}
.rail__item {
	/* ~30% of the wrap, as in the reference: four cards overflow a desktop
	   row, so the rail is a real carousel rather than a static grid. */
	flex: 0 0 clamp(268px, 27vw, 392px);
	display: flex;
	scroll-snap-align: center;
}
.rail__item > * { width: 100%; }

/* Centred on the scrolling viewport, not on the rail as a whole — the dots
   sit inside `.rail` and would otherwise drag the buttons down. */
.rail__btn {
	position: absolute;
	top: calc((100% - var(--rail-dots-h)) / 2);
	z-index: 3;
	translate: 0 -50%;
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	border: 1px solid var(--rule);
	box-shadow: var(--shadow-card);
	cursor: pointer;
	transition: background-color var(--dur) var(--ease),
	            opacity var(--dur) var(--ease),
	            transform var(--dur) var(--ease);
}
.rail__btn:hover { transform: translateY(-50%) scale(1.06); }
.rail__btn--prev { inset-inline-start: -24px; }
.rail__btn--next { inset-inline-end: -24px; }
.rail.is-start .rail__btn--prev,
.rail.is-end .rail__btn--next {
	opacity: .3;
	pointer-events: none;
}
/* Nothing to page through: drop the whole apparatus, and give the buttons back
   the room the dots were holding so they stay centred on the cards. */
.rail.is-start.is-end {
	--rail-dots-h: 0px;
}
.rail.is-start.is-end .rail__btn,
.rail.is-start.is-end .rail__dots { display: none; }

/* The buttons need gutter room to hang in, and touch users swipe anyway. */
@media (min-width: 821px) {
	.js .rail__btn { display: grid; }
}

.rail__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: var(--rail-dots-gap);
}
.rail__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--ink) 18%, transparent);
	cursor: pointer;
	transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.rail__dot:hover { background: color-mix(in srgb, var(--ink) 34%, transparent); }
.rail__dot.is-active {
	width: 30px;
	background: var(--saffron);
}

/* -------------------------------------------------------------- masthead -- */
.masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--cream) 88%, transparent);
	backdrop-filter: blur(10px);
	transition: box-shadow var(--dur) var(--ease);
}
.masthead.is-stuck { box-shadow: 0 1px 0 0 var(--rule); }
/* With the drawer open the masthead has to clear the backdrop, otherwise the
   toggle — now showing its close glyph — is buried under it. */
body:has(.drawer.is-open) .masthead { z-index: 70; }

.masthead__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 32px);
	min-height: var(--masthead-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto;
}
.brand__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__word {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -.035em;
	line-height: 1;
}
.brand--footer .brand__word { font-size: 1.65rem; }

.nav { margin-inline: auto; }
.nav__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 1.8vw, 30px);
}
.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding-block: 0.5rem;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--text-muted);
	transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__caret { opacity: .55; }

.masthead__actions {
	display: flex;
	align-items: center;
	gap: clamp(6px, 0.8vw, 12px);
	flex: 0 0 auto;
	margin-inline-start: auto;
}

.lang { position: relative; }
.lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	height: 40px;
	padding-inline: 0.7rem;
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--text-muted);
	cursor: pointer;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang__btn:hover,
.lang__btn[aria-expanded="true"] { background: var(--sage); color: var(--text); }
.lang__btn .icon:last-of-type { opacity: .55; }
.lang__menu {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 8px);
	z-index: 60;
	display: grid;
	gap: 2px;
	min-width: 170px;
	padding: 8px;
	background: var(--white);
	border: 1px solid var(--rule);
	border-radius: 18px;
	box-shadow: var(--shadow-float);
}
.lang__menu[hidden] { display: none; }
.lang__menu a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 11px;
	font-size: var(--fs-sm);
	color: var(--text-muted);
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang__menu a:hover { background: var(--sage); color: var(--text); }
.lang__menu [aria-current="true"] { color: var(--text); font-weight: 500; }

/* The toggle carries both glyphs; `aria-expanded` decides which one shows, so
   the state lives in one attribute rather than in a second class. */
.nav-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	color: var(--text);
	cursor: pointer;
	transition: background-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--sage); }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

/* ---------------------------------------------------------------- drawer -- */
/* `hidden` in the markup is the no-JavaScript state; once the script runs it
   takes the attribute off and drives visibility from `.is-open` instead. */
.drawer {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--ink-deep) 44%, transparent);
	opacity: 0;
	visibility: hidden;
	/* Visibility flips at once on the way in — the script moves focus into the
	   panel in the same tick, and focus cannot land on a hidden element — and
	   waits for the fade on the way out. */
	transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.drawer[hidden] { display: none; }
.drawer.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--dur) var(--ease), visibility 0s;
}

.drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(400px, 90vw);
	/* the masthead floats above the panel while it is open, so start below it */
	padding: calc(var(--masthead-h) + clamp(14px, 3vw, 26px)) clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px);
	background: var(--cream);
	overflow-y: auto;
	display: grid;
	gap: clamp(20px, 3vw, 28px);
	align-content: start;
	translate: 100% 0;
	transition: translate var(--dur-slow) var(--ease);
}
.drawer.is-open .drawer__panel { translate: 0 0; }

.drawer__list {
	display: grid;
	gap: 2px;
}
.drawer__list .nav__link {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--text);
	padding-block: 0.45rem;
}
.drawer__langs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	padding-top: clamp(14px, 2vw, 20px);
	border-top: 1px solid var(--rule);
}
.drawer__langs a {
	font-size: var(--fs-sm);
	color: var(--text-muted);
	transition: color var(--dur) var(--ease);
}
.drawer__langs a:hover { color: var(--text); }
.drawer__langs [aria-current="true"] { color: var(--text); font-weight: 500; }
.drawer__actions {
	display: grid;
	gap: 0.6rem;
}
.drawer__actions .btn { justify-content: center; }
.drawer__note {
	font-size: var(--fs-xs);
	color: var(--text-faint);
}

/* ------------------------------------------------------------------ hero -- */
.hero {
	padding-block: clamp(48px, 5vw, 84px) 0;
	overflow: clip;
	text-align: center;
}
/* Bottom-anchored and short of the copy: the field is the band the app shot
   floats over, so the blob y values land behind the screenshot rather than
   behind the headline. The section clips whatever hangs past its edge. */
.hero__blobs {
	inset: auto 0 0 0;
	height: 74%;
}
.hero__head {
	position: relative;
	z-index: 2;
	display: grid;
	justify-items: center;
	gap: clamp(18px, 2vw, 26px);
	max-width: 900px;
	margin-inline: auto;
}
/* Centred grid items default to min-width:auto, so a headline whose
   max-content beats the wrap refuses to wrap and bleeds past the viewport
   at 320px. Reset the automatic minimum and let the text break. */
.hero__head > *,
.section-head--center > * { min-width: 0; }
.hero__head .lede { max-width: 46ch; }
.hero__note {
	font-size: var(--fs-xs);
	color: var(--text-faint);
}

.hero__stage {
	position: relative;
	margin-top: clamp(40px, 5vw, 72px);
}
.hero__shot {
	position: relative;
	z-index: 1;
	width: 100%;
	border-radius: var(--r-card);
	box-shadow: var(--shadow-float);
	/* the section clips what hangs below, exactly as in the reference */
	margin-bottom: calc(clamp(60px, 9vw, 150px) * -1);
}

/* ---------------------------------------------------------------- signup -- */
.signup {
	display: grid;
	gap: 0.6rem;
	width: 100%;
	text-align: start;
}
.signup > * { min-width: 0; }
.hero__signup {
	max-width: 460px;
	justify-self: center;
	text-align: center;
}
.signup__field {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	background: var(--white);
	border: 1px solid var(--rule);
	border-radius: var(--r-pill);
	box-shadow: var(--shadow-card);
}
.signup__field:focus-within {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}
.signup__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.7rem 0.5rem 0.7rem 1.1rem;
	border: 0;
	background: transparent;
	font-size: var(--fs-sm);
	color: var(--ink);
}
/* the ring lives on the pill, so the bare input must not draw a second one */
.signup__input:focus,
.signup__input:focus-visible { outline: none; }
.signup__btn { flex: 0 0 auto; }
.signup__msg {
	min-height: 1.4em;
	font-size: var(--fs-xs);
	color: var(--text-muted);
}
.signup__msg.is-ok { color: var(--olive); font-weight: 500; }
.signup__note {
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--text);
}

/* ----------------------------------------------------------------- trust -- */
.trust { padding-block: clamp(44px, 4.6vw, 76px); }
.trust__note {
	text-align: center;
	font-size: var(--fs-sm);
	color: var(--text-muted);
	margin-bottom: clamp(28px, 3vw, 44px);
}
/* Flex wrapping, not grid: it centres a short final row for free. */
.trust__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(24px, 3.4vw, 52px) clamp(28px, 4vw, 64px);
}
.trust__item {
	display: grid;
	justify-items: center;
	gap: 10px;
}
.trust__logo {
	width: clamp(108px, 11vw, 150px);
	filter: grayscale(1);
	opacity: .58;
	transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.trust__item:hover .trust__logo {
	filter: none;
	opacity: 1;
}
.trust__link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-faint);
	transition: color var(--dur) var(--ease);
}
.trust__link:hover { color: var(--text); }
.trust__link .icon { width: 14px; height: 14px; }

/* ----------------------------------------------------------------- paths -- */
.paths .section-head .display { max-width: 24ch; }

/* ------------------------------------------------------------- editorial -- */
.editorial__frame {
	border: 1px solid var(--ink);
	border-radius: var(--r-panel);
	overflow: clip;
	background: var(--sage);
}
.editorial__img {
	width: 100%;
	aspect-ratio: 5 / 2;
	object-fit: cover;
}
.editorial__cap {
	margin-top: 1rem;
	text-align: center;
	font-size: var(--fs-xs);
	color: var(--text-faint);
}

/* -------------------------------------------------------------- platform -- */
.platform .lede { max-width: 62ch; }

/* -------------------------------------------------------------- features -- */
.features .wrap {
	display: grid;
	gap: var(--feature-gap);
}
.feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.feature--flip .feature__copy { order: 2; }

.feature__copy {
	display: grid;
	justify-items: start;
	gap: var(--stack);
	max-width: 44ch;
}
.feature__copy p { color: var(--text-muted); }
.feature__copy .btn { margin-top: clamp(6px, 1vw, 14px); }

/* Clipped horizontally only, so blobs may still bleed above and below the
   row while the artwork itself stops at the wrap edge. */
.feature__stage {
	position: relative;
	overflow-x: clip;
}
/* The content array already carries the bleed in its own x/y values, so the
   field is simply the stage box. */
.feature__blobs { inset: 0; }
.feature__shot {
	position: relative;
	z-index: 1;
	width: 108%;
	max-width: none;
	border-radius: var(--r-card);
	box-shadow: var(--shadow-float);
}
.feature--flip .feature__shot { margin-inline-start: -8%; }

.feature__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
}
/* The panel leans on the outer page edge, which leaves the chat cards the
   whole inner half of the column to overhang into without being clipped. */
.feature--flip .feature__panel { margin-inline-start: -6%; }
.feature__panel-img {
	width: 100%;
	border: 1px solid var(--ink);
	border-radius: var(--r-panel);
}
.feature__cards {
	position: absolute;
	z-index: 2;
	inset-inline-start: 36%;
	top: 12%;
	width: min(320px, 78%);
	display: grid;
	gap: clamp(10px, 1.2vw, 16px);
}
/* the second card steps further right, as in the comp */
.feature__cards > * + * { margin-inline-start: clamp(14px, 3vw, 40px); }

.chatcard {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.7rem 0.75rem;
	align-items: center;
	border-radius: var(--r-card);
	padding: clamp(16px, 1.6vw, 22px);
	box-shadow: var(--shadow-float);
	color: var(--text);
}
.chatcard--beet  { background: var(--beet); }
.chatcard--basil { background: var(--basil); }
.chatcard__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .26);
}
.chatcard__title {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -.01em;
}
.chatcard__text {
	grid-column: 1 / -1;
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--text-muted);
}
.chatcard__btn {
	grid-column: 1 / -1;
	justify-self: start;
	background: var(--pill-bg);
	color: var(--pill-text);
	border-radius: var(--r-pill);
	padding: 0.5rem 1.05rem;
	font-size: var(--fs-xs);
	font-weight: 500;
}

/* ----------------------------------------------------------------- human -- */
.human { overflow-x: clip; }

.human__portrait {
	/* One source for the portrait size: the wings share its height so the
	   per-circle `--c-y` nudges read as offsets from the portrait's centre. */
	--disc-w: clamp(260px, 46vw, 640px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: clamp(40px, 5vw, 72px);
}
.human__disc {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: var(--disc-w);
	aspect-ratio: 16 / 10;
	border-radius: var(--r-pill);
	overflow: clip;
	background: var(--sage);
}
.human__disc img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.human__wings {
	flex: 0 0 auto;
	width: clamp(96px, 14vw, 200px);
	height: calc(var(--disc-w) * 0.625);
}
/* the clusters tuck under the portrait's rounded ends */
.human__wings--left  { margin-inline-end: calc(clamp(40px, 6vw, 92px) * -1); }
.human__wings--right { margin-inline-start: calc(clamp(40px, 6vw, 92px) * -1); }
/* the reference draws these as slightly tall ovals, not true circles */
.human__wings .circle { aspect-ratio: 0.8; }

.human__cta {
	text-align: center;
	margin-top: clamp(30px, 3.4vw, 48px);
}

/* ----------------------------------------------------------------- plans -- */
.plans__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--grid-gap);
	align-items: start;
}
.plan {
	background: var(--surface);
	border-radius: var(--r-panel);
	padding: clamp(26px, 2.8vw, 38px);
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	height: 100%;
}
.plan--featured {
	background: var(--ink-deep);
	box-shadow: var(--shadow-float);
	transform: translateY(-16px);
}
.plan__badge {
	justify-self: start;
	background: var(--saffron);
	color: var(--ink);
	border-radius: var(--r-pill);
	padding: 0.3rem 0.8rem;
	font-size: var(--fs-micro);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.plan__name {
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.1;
}
.plan__price {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	flex-wrap: wrap;
}
.plan__amount {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 3.4vw, 3rem);
	line-height: 1;
	letter-spacing: -.02em;
}
.plan__period {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}
.plan__text {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}
.plan__list {
	display: grid;
	gap: 0.6rem;
	margin-block: 0.35rem;
	padding-top: 0.9rem;
	border-top: 1px solid var(--rule);
}
.plan__list li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 0.65rem;
	align-items: start;
	font-size: var(--fs-sm);
}
.plan__list .icon {
	width: 18px;
	height: 18px;
	margin-top: 0.22em;
	color: var(--olive);
}
.plan--featured .plan__list .icon { color: var(--saffron); }
/* The dark scope restates --text for the card, but .plan__name, .plan__amount
   and the list items never declare a colour themselves — they would inherit
   the body's computed ink and vanish on the ink-deep ground. */
.plan--featured .plan__name,
.plan--featured .plan__amount,
.plan--featured .plan__list li { color: var(--text); }
/* .btn--ink re-declares its own pill tokens, so it stays dark inside the dark
   card. Flip it back to the white-pill treatment the dark scope intends. */
.plan--featured .btn--ink {
	--pill-bg: var(--white);
	--pill-text: var(--ink);
}
.plan--featured .btn--ink:hover { background: var(--lift); }
.plan > .btn {
	width: 100%;
	justify-content: center;
	margin-top: auto;
}
.plan__fine {
	font-size: var(--fs-micro);
	color: var(--text-faint);
}
.plans__note {
	margin-top: clamp(24px, 2.6vw, 36px);
	text-align: center;
	font-size: var(--fs-xs);
	color: var(--text-faint);
}

/* ---------------------------------------------------------------- quotes -- */
.quotes .rail__item { flex-basis: clamp(280px, 34vw, 420px); }

.quote {
	display: grid;
	gap: clamp(18px, 2vw, 26px);
	align-content: space-between;
	height: 100%;
	background: var(--surface);
	border-radius: var(--r-card);
	padding: clamp(26px, 2.8vw, 38px);
}
.quote__logo {
	width: 96px;
	filter: grayscale(1);
	opacity: .5;
}
.quote__text {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1.6vw, 1.5rem);
	line-height: 1.28;
	letter-spacing: -.01em;
	text-wrap: pretty;
}
.quote__person {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0 0.75rem;
	align-items: center;
}
.quote__avatar {
	grid-row: 1 / span 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}
.quote__name {
	font-size: var(--fs-sm);
	font-weight: 600;
}
.quote__role {
	font-size: var(--fs-xs);
	color: var(--text-faint);
}

/* ------------------------------------------------------------- resources -- */
.resources__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--grid-gap);
}
/* the li is a bare wrapper, so it has to pass the row height to the card */
.resources__grid > li { display: grid; }
.card--article { padding: clamp(14px, 1.4vw, 18px); }
.article__link {
	display: grid;
	gap: var(--sp-2);
	align-content: start;
	height: 100%;
}
.article__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 16px;
	background: var(--sage-deep);
}
.article__title {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 1.7vw, 1.45rem);
	line-height: 1.14;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.card--article:hover .article__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.article__text {
	font-size: var(--fs-sm);
	color: var(--text-muted);
}
.article__meta {
	font-size: var(--fs-micro);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-faint);
}
.resources__cta {
	margin-top: clamp(32px, 3.6vw, 52px);
	text-align: center;
}

/* ------------------------------------------------------------------- faq -- */
.faq__list {
	display: grid;
	gap: 0.75rem;
}
.faq__item {
	background: var(--surface);
	border-radius: var(--r-card);
	overflow: clip;
}
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 28px);
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	font-weight: 500;
	list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon {
	color: var(--text-faint);
	transition: rotate var(--dur) var(--ease);
}
.faq__item details[open] .faq__q .icon { rotate: 180deg; }
.faq__a { padding: 0 clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 26px); }
.faq__a p {
	max-width: 68ch;
	color: var(--text-muted);
}
/* Height 0 → auto only interpolates thanks to `interpolate-size` on :root;
   browsers without it simply open instantly. */
.faq__item details::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size var(--dur-slow) var(--ease),
	            content-visibility var(--dur-slow) allow-discrete;
}
.faq__item details[open]::details-content { block-size: auto; }

/* ---------------------------------------------------------------- finale -- */
.finale {
	padding-block: var(--section-y) 0;
	overflow: clip;
}
.finale__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}
.finale__copy {
	display: grid;
	justify-items: start;
	gap: clamp(18px, 2vw, 26px);
	padding-top: 0.5em;
}
.finale__circles {
	height: clamp(150px, 20vw, 300px);
	margin-top: clamp(44px, 5vw, 80px);
	margin-bottom: calc(clamp(40px, 6vw, 110px) * -1);
}

/* ---------------------------------------------------------------- footer -- */
.footer {
	background: var(--cream);
	padding-block: clamp(48px, 5vw, 80px) clamp(32px, 3.4vw, 48px);
}
.footer__signup {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
	max-width: 880px;
	margin-inline: auto;
	padding: clamp(14px, 1.6vw, 18px) clamp(18px, 2.4vw, 28px);
	background: var(--sage);
	border-radius: var(--r-pill);
}
.footer__signup .signup__note { flex: 1 1 240px; }
.footer__signup .signup__field { flex: 1 1 300px; min-width: 0; }
.footer__signup .signup__msg { flex: 1 1 100%; }

.footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
	gap: clamp(34px, 4vw, 64px);
	padding-block: clamp(44px, 5vw, 76px) clamp(28px, 3vw, 44px);
}
.footer__tag {
	margin-top: 1rem;
	max-width: 16ch;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 1.9vw, 1.6rem);
	line-height: 1.12;
}
.footer__meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: clamp(22px, 2.4vw, 32px);
}
.social {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--rule);
	color: var(--text-muted);
	transition: background-color var(--dur) var(--ease),
	            color var(--dur) var(--ease),
	            border-color var(--dur) var(--ease),
	            transform var(--dur) var(--ease);
}
.social:hover {
	background: var(--ink-deep);
	border-color: var(--ink-deep);
	color: var(--white);
	transform: translateY(-1px);
}
.footer__langs {
	display: grid;
	gap: 0.2rem;
	font-size: var(--fs-sm);
}
.footer__langs a {
	color: var(--text-muted);
	transition: color var(--dur) var(--ease);
}
.footer__langs a:hover { color: var(--text); }
.footer__note {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	margin-top: clamp(24px, 2.6vw, 36px);
	font-size: var(--fs-xs);
	color: var(--text-faint);
}
.footer__note a { transition: color var(--dur) var(--ease); }
.footer__note a:hover {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer__nav {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(20px, 2.4vw, 34px);
}
.footer__col-title {
	margin-bottom: 0.9rem;
	font-size: var(--fs-sm);
	font-weight: 600;
}
.footer__links { display: grid; gap: 0.55rem; }
.footer__links a {
	font-size: var(--fs-sm);
	color: var(--text-muted);
	transition: color var(--dur) var(--ease);
}
.footer__links a:hover {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The two wide lists line up under the link columns, not under the brand. */
.footer__wide {
	display: grid;
	grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1.2fr));
	gap: clamp(24px, 3vw, 48px);
	padding-top: clamp(20px, 2.4vw, 32px);
}
.footer__wide .footer__col:first-child { grid-column: 2; }
.footer__wide .footer__links { gap: 0.8rem; }
.footer__wide .footer__links a { display: inline-block; max-width: 46ch; }

/* ------------------------------------------------------- page hero + doc -- */
.page-hero {
	position: relative;
	overflow: clip;
	background: var(--sage);
	--surface: var(--lift);
	padding-block: clamp(56px, 7vw, 108px) clamp(44px, 5vw, 72px);
}
.page-hero__blobs { inset: 0; }
.page-hero .wrap {
	position: relative;
	z-index: 2;
	display: grid;
	gap: var(--stack);
	justify-items: start;
}
.page-hero__meta {
	font-size: var(--fs-xs);
	color: var(--text-muted);
}

.doc__inner {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(32px, 4vw, 72px);
	align-items: start;
}
/* A document short enough to need no contents gets the full measure. */
.doc__inner:not(:has(.doc__toc)) { grid-template-columns: minmax(0, 1fr); }
.doc__toc {
	position: sticky;
	top: calc(var(--masthead-h) + 20px);
	max-height: calc(100vh - var(--masthead-h) - 48px);
	overflow-y: auto;
	background: var(--surface);
	border-radius: var(--r-card);
	padding: clamp(18px, 2vw, 24px);
}
.doc__toc-title {
	margin-bottom: 0.8rem;
	font-size: var(--fs-micro);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--text-faint);
}
.doc__toc ul { display: grid; gap: 0.5rem; }
.doc__toc a {
	font-size: var(--fs-xs);
	line-height: 1.35;
	color: var(--text-muted);
	transition: color var(--dur) var(--ease);
}
.doc__toc a:hover { color: var(--text); }

.doc__notice {
	margin-bottom: clamp(28px, 3vw, 40px);
	padding: clamp(16px, 1.8vw, 22px);
	background: var(--white);
	border-inline-start: 3px solid var(--saffron);
	border-radius: 0 var(--r-card) var(--r-card) 0;
	font-size: var(--fs-sm);
	color: var(--text-muted);
}

.doc__body { max-width: 72ch; }
.doc__body > * + * { margin-top: 1.1rem; }
.doc__body h2 {
	margin-top: 2.6rem;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.12;
	letter-spacing: -.015em;
	scroll-margin-top: calc(var(--masthead-h) + 24px);
}
.doc__body h3 {
	margin-top: 1.9rem;
	font-size: 1.0625rem;
	font-weight: 600;
}
.doc__body p,
.doc__body li { color: var(--text-muted); }
.doc__body ul { display: grid; gap: 0.5rem; }
.doc__body li { position: relative; padding-inline-start: 1.3rem; }
.doc__body li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--saffron);
}
.doc__body a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}
.doc__body a:hover { background: var(--saffron); }
.doc__body strong { color: var(--text); }
.doc__body table {
	width: 100%;
	font-size: var(--fs-xs);
}
.doc__body th,
.doc__body td {
	padding: 0.7rem 0.75rem;
	text-align: start;
	vertical-align: top;
	border-bottom: 1px solid var(--rule);
	color: var(--text-muted);
}
.doc__body th {
	font-weight: 600;
	color: var(--text);
}

/* ------------------------------------------- 404, journal, search, blocks -- */
.notfound {
	position: relative;
	overflow: clip;
	padding-block: clamp(80px, 10vw, 150px);
	text-align: center;
}
.notfound__blobs { inset: 0; }
/* Flex, not grid: it lets the two pills share one line while every other
   child keeps a full row of its own. */
.notfound .wrap {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(14px, 2vw, 22px);
}
.notfound .wrap > * { flex: 0 0 100%; }
.notfound .wrap > .btn {
	flex: 0 0 auto;
	margin-top: clamp(4px, 1vw, 10px);
}
.notfound__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin-top: clamp(14px, 2vw, 24px);
}
.notfound__links a {
	font-size: var(--fs-sm);
	color: var(--text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.notfound__links a:hover { color: var(--text); }

.post-list { display: grid; gap: var(--grid-gap); }
.post-card {
	display: grid;
	gap: 0.7rem;
	background: var(--surface);
	border-radius: var(--r-card);
	padding: clamp(24px, 2.6vw, 34px);
	transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-2px); }
.post-card__meta {
	font-size: var(--fs-micro);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-faint);
}
.post-card__title {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	line-height: 1.12;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.post-card__excerpt { color: var(--text-muted); }
.post-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: var(--fs-sm);
	font-weight: 500;
	justify-self: start;
}
.post-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.searchform {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 440px;
	padding: 6px;
	background: var(--white);
	border: 1px solid var(--rule);
	border-radius: var(--r-pill);
	box-shadow: var(--shadow-card);
}
.searchform:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.searchform__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.7rem 0.5rem 0.7rem 1.1rem;
	border: 0;
	background: transparent;
	font-size: var(--fs-sm);
}
.searchform__input:focus,
.searchform__input:focus-visible { outline: none; }
.searchform__btn { flex: 0 0 auto; }

/* WordPress core output that can appear inside .doc__body or the journal. */
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: clamp(32px, 3.6vw, 52px);
	justify-content: center;
}
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 0.6rem;
	border-radius: var(--r-pill);
	background: var(--surface);
	font-size: var(--fs-sm);
	transition: background-color var(--dur) var(--ease);
}
.page-numbers:hover { background: var(--sage-deep); }
.page-numbers.current {
	background: var(--ink-deep);
	color: var(--white);
}
.alignleft   { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text,
.gallery-caption {
	font-size: var(--fs-xs);
	color: var(--text-faint);
}
.sticky, .bypostauthor { position: relative; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1080px) {
	:root { --masthead-h: 70px; }

	/* the nav, the language picker and their room all move into the drawer */
	.nav,
	.masthead .lang { display: none; }
	.nav-toggle { display: grid; }

	.doc__inner { grid-template-columns: 210px minmax(0, 1fr); }
	.footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.plan { padding: clamp(22px, 2.4vw, 30px); }
}

@media (max-width: 820px) {
	.feature {
		grid-template-columns: minmax(0, 1fr);
		gap: clamp(28px, 5vw, 44px);
	}
	/* copy always leads on a stacked row */
	.feature--flip .feature__copy { order: 0; }
	.feature__copy { max-width: none; }
	.feature__shot,
	.feature--flip .feature__shot {
		width: 100%;
		margin-inline-start: 0;
	}
	.feature__panel,
	.feature--flip .feature__panel { margin-inline: 0 auto; }
	.feature__cards { inset-inline-start: 26%; }

	.plans__grid { grid-template-columns: minmax(0, 1fr); }
	.plan--featured { transform: none; }

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

	.finale__inner { grid-template-columns: minmax(0, 1fr); }
	.finale__copy { padding-top: 0; }

	.doc__inner { grid-template-columns: minmax(0, 1fr); }
	.doc__toc {
		position: static;
		max-height: none;
	}

	.footer__cols { grid-template-columns: minmax(0, 1fr); }
	.footer__nav,
	.footer__wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__wide .footer__col:first-child { grid-column: auto; }

	.editorial__img { aspect-ratio: 3 / 2; }
}

@media (max-width: 560px) {
	.masthead__actions .btn--saffron { display: none; }

	.hero { text-align: start; }
	.hero__head { justify-items: start; }
	.hero__signup { justify-self: stretch; }

	.trust__logo { width: 100px; }

	.editorial__frame { border-radius: var(--r-card); }

	.feature__panel { width: 100%; }
	.feature__cards {
		inset-inline-start: 10%;
		width: 90%;
	}
	.feature__cards > * + * { margin-inline-start: clamp(8px, 4vw, 20px); }

	/* no room for the wings; the portrait becomes the disc the copy promises */
	.human__wings { display: none; }
	.human__portrait { --disc-w: min(100%, 320px); }
	.human__disc {
		aspect-ratio: 1;
		border-radius: 50%;
	}

	.quote__text { font-size: 1.15rem; }

	.resources__grid { grid-template-columns: minmax(0, 1fr); }

	.footer__signup {
		flex-direction: column;
		align-items: stretch;
		border-radius: var(--r-card);
		padding: clamp(16px, 4vw, 22px);
	}
	/* Chromium sizes wrapped column flex items by the widest child's
	   max-content instead of the line's cross size; pin explicit widths so
	   the pill can never blow past the viewport at 320px. */
	.footer__signup .signup__note,
	.footer__signup .signup__field,
	.footer__signup .signup__msg {
		flex-basis: auto;
		width: 100%;
	}
	.footer__nav,
	.footer__wide { grid-template-columns: minmax(0, 1fr); }

	.doc__body table { font-size: var(--fs-micro); }
	.doc__body th,
	.doc__body td { padding: 0.5rem 0.4rem; }
}

/* ---------------------------------------------------------------- motion -- */
/* Opt-in: `.js` is set by the inline probe in the head, so a script that never
   arrives can never leave the page blank. */
.js .reveal {
	opacity: 0;
	transform: translateY(8px);
}
.js .reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity var(--dur-slow) var(--ease) var(--reveal-delay, 0ms),
	            transform var(--dur-slow) var(--ease) var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	/* Every transition in this sheet is timed from these two tokens, so
	   collapsing them here is enough — no `!important` needed. */
	:root {
		--dur: 1ms;
		--dur-slow: 1ms;
	}

	html { scroll-behavior: auto; }

	.js .reveal,
	.js .reveal.is-in {
		opacity: 1;
		transform: none;
	}

	/* Hover lifts only — the featured plan's offset is layout, not motion. */
	.btn:hover,
	.social:hover,
	.post-card:hover { transform: none; }
	.rail__btn:hover { transform: translateY(-50%); }
	.btn:hover .btn__arrow,
	.btn:focus-visible .btn__arrow { transform: none; }

	.drawer__panel,
	.drawer.is-open .drawer__panel { translate: none; }
	.faq__item details::details-content { transition: none; }
}

@media (forced-colors: active) {
	.btn,
	.card,
	.plan,
	.quote,
	.chatcard,
	.faq__item,
	.signup__field,
	.searchform,
	.rail__btn { border: 1px solid; }

	.blobfield,
	.circles { display: none; }
}

@media print {
	.masthead,
	.drawer,
	.skip-link,
	.blobfield,
	.circles,
	.rail__btn,
	.rail__dots,
	.footer__signup,
	.signup { display: none; }

	body { background: #fff; color: #000; }
	.section { padding-block: 1.5rem; }
	.doc__inner { grid-template-columns: minmax(0, 1fr); }
	.doc__body { max-width: none; }
}
