/* ==========================================================================
   MazeCrafts theme styles
   Tokens, primitives, then sections in document order.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2-variations");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Hanken Grotesk";
	src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2-variations");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Hanken Grotesk";
	src: url("../fonts/hanken-grotesk-italic-latin.woff2") format("woff2-variations");
	font-weight: 400 600;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
	--ink: oklch(0.23 0.028 265);
	--ink-soft: oklch(0.44 0.021 265);
	--ink-faint: oklch(0.515 0.019 265);
	--ember: oklch(0.605 0.187 40);
	--ember-cta: oklch(0.455 0.148 37);
	--ember-deep: oklch(0.42 0.14 35);
	--ember-lift: oklch(0.72 0.16 52);
	--birch: oklch(0.972 0.016 84);
	--paper: oklch(0.995 0.005 90);
	--chalk: oklch(0.915 0.017 84);
	--chalk-deep: oklch(0.86 0.02 84);
	--trail: oklch(0.66 0.108 196);
	--trail-ink: oklch(0.42 0.078 205);
	--cream: oklch(0.985 0.014 78);

	--font-display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

	--fs-display: clamp(2.15rem, 7.2vw, 4.1rem);
	--fs-h2: clamp(2rem, 3.9vw, 3.05rem);
	--fs-h3: clamp(1.28rem, 1.7vw, 1.5rem);
	--fs-lead: clamp(1.05rem, 1.32vw, 1.28rem);
	--fs-label: 0.78rem;

	--shell: 76rem;
	--gap: clamp(1.25rem, 2.4vw, 2.25rem);
	--sec-space: clamp(4.5rem, 8.5vw, 8rem);

	--r-lg: 28px;
	--r-md: 16px;
	--r-sm: 10px;

	--shadow-card: 0 1px 0 oklch(0.23 0.028 265 / 0.04), 0 12px 32px -18px oklch(0.23 0.028 265 / 0.22);
	--shadow-lift: 0 2px 2px oklch(0.23 0.028 265 / 0.05), 0 34px 60px -30px oklch(0.3 0.09 40 / 0.55);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base ----------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--birch);
	color: var(--ink-soft);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.08;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--trail-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ember-deep);
}

img,
svg,
canvas {
	max-width: 100%;
	height: auto;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	color: inherit;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.86em;
}

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

::selection {
	background: oklch(0.72 0.16 52 / 0.28);
}

/* --- Primitives ----------------------------------------------------------- */

.shell {
	width: 100%;
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.sec {
	padding-block: var(--sec-space);
}

.label {
	margin: 0 0 0.85rem;
	color: var(--ember-deep);
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.sec-head {
	max-width: 44rem;
	margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.sec-head--center {
	margin-inline: auto;
	text-align: center;
}

.sec-title {
	font-size: var(--fs-h2);
	font-weight: 750;
}

.sec-lead {
	margin: 1.1rem 0 0;
	max-width: 42rem;
	color: var(--ink-soft);
	font-size: var(--fs-lead);
	line-height: 1.55;
}

.sec-head--center .sec-lead {
	margin-inline: auto;
}

.tx-ember {
	color: var(--ember);
}

.ico {
	flex: none;
	width: 1.05em;
	height: 1.05em;
}

.panel {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	isolation: isolate;
}

.panel--ember {
	background:
		radial-gradient(120% 90% at 50% 132%, oklch(0.86 0.11 74 / 0.55) 0%, oklch(0.7 0.16 52 / 0.22) 34%, transparent 62%),
		linear-gradient(168deg, oklch(0.38 0.125 32) 0%, oklch(0.465 0.15 38) 48%, oklch(0.515 0.165 42) 100%);
	color: var(--cream);
	box-shadow: inset 0 1px 0 oklch(0.98 0.02 70 / 0.22), var(--shadow-card);
}

.panel--ember h1,
.panel--ember h2,
.panel--ember h3 {
	color: var(--cream);
}

.panel-glow {
	position: absolute;
	inset: auto -5% -10% -5%;
	height: 56%;
	background: radial-gradient(58% 96% at 50% 100%, oklch(0.995 0.05 88 / 0.98) 0%, oklch(0.95 0.11 76 / 0.7) 22%, oklch(0.85 0.15 62 / 0.3) 44%, transparent 72%);
	pointer-events: none;
	z-index: 0;
}

.panel-glow--soft {
	inset: auto -20% -70% -20%;
	opacity: 0.7;
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.45rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active {
	transform: translateY(1px);
}

.btn--sm {
	padding: 0.62rem 1.05rem;
	font-size: 0.9rem;
}

.btn--full {
	width: 100%;
}

.btn--ember {
	background: var(--ember-cta);
	color: var(--cream);
	box-shadow: 0 1px 0 oklch(0.99 0.02 80 / 0.35) inset, 0 10px 22px -14px oklch(0.5 0.16 40 / 0.9);
}

.btn--ember:hover {
	background: oklch(0.4 0.14 34);
	color: var(--cream);
}

.btn--ink {
	background: var(--ink);
	color: var(--cream);
}

.btn--ink:hover {
	background: oklch(0.3 0.04 265);
	color: var(--cream);
}

.btn--paper {
	background: var(--paper);
	color: var(--ember-deep);
	box-shadow: 0 12px 30px -16px oklch(0.3 0.09 40 / 0.7);
}

.btn--paper:hover {
	background: var(--cream);
	color: var(--ink);
}

.btn--ghost {
	border-color: oklch(0.99 0.02 80 / 0.5);
	background: oklch(0.99 0.02 80 / 0.08);
	color: var(--cream);
}

.btn--ghost:hover {
	border-color: var(--cream);
	background: oklch(0.99 0.02 80 / 0.16);
	color: var(--cream);
}

.btn--outline {
	border-color: var(--chalk-deep);
	background: transparent;
	color: var(--ink);
}

.btn--outline:hover {
	border-color: var(--ink);
	background: oklch(0.23 0.028 265 / 0.04);
	color: var(--ink);
}

.linkish {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--ember-deep);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.arrow-link span {
	transition: transform 0.3s var(--ease);
}

.arrow-link:hover span {
	transform: translateX(4px);
}

/* Pill */

.pill {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0 0 clamp(1.5rem, 3vw, 2.4rem);
	padding: 0.42rem 0.5rem 0.42rem 0.85rem;
	border: 1px solid oklch(0.99 0.02 80 / 0.32);
	border-radius: 999px;
	background: oklch(0.4 0.12 38 / 0.32);
	color: var(--cream);
	font-size: 0.86rem;
	backdrop-filter: blur(2px);
}

.pill-dot {
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--cream);
	box-shadow: 0 0 0 3px oklch(0.99 0.05 85 / 0.28);
}

.pill-link {
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: oklch(0.99 0.02 80 / 0.16);
	color: var(--cream);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.pill-link::after {
	content: " \2192";
}

.pill-link:hover {
	background: var(--paper);
	color: var(--ember-deep);
}

/* --- Header --------------------------------------------------------------- */

.site-head {
	position: sticky;
	top: 0;
	z-index: 40;
	background: oklch(0.972 0.016 84 / 0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-head.is-stuck {
	border-bottom-color: var(--chalk);
}

.head-inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	min-height: 4.4rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	flex: none;
	text-decoration: none;
}

.brand-mark {
	width: auto;
	height: 1.85rem;
}

.head-nav {
	flex: 1;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 1.8vw, 1.6rem);
}

.nav-list a {
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 550;
	text-decoration: none;
	white-space: nowrap;
}

.nav-list a:hover {
	color: var(--ember-deep);
}

.head-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
}

.head-util {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--ink-soft);
	font-size: 0.92rem;
	font-weight: 550;
	text-decoration: none;
}

.head-util:hover {
	color: var(--ember-deep);
}

.head-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border: 1px solid var(--chalk-deep);
	border-radius: 12px;
	background: var(--paper);
	cursor: pointer;
}

.head-toggle-bars {
	display: grid;
	gap: 5px;
	width: 1.05rem;
}

.head-toggle-bars span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.3s var(--ease);
}

.head-toggle[aria-expanded="true"] .head-toggle-bars span:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

.head-toggle[aria-expanded="true"] .head-toggle-bars span:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
	border-top: 1px solid var(--chalk);
	background: var(--birch);
}

.mobile-nav-inner {
	padding-block: 1.25rem 1.75rem;
}

.mobile-nav .nav-list {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.mobile-nav .nav-list a {
	display: block;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--chalk);
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
}

.mobile-nav-foot {
	display: grid;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

.mobile-nav-foot .btn--ghost {
	border-color: var(--chalk-deep);
	background: transparent;
	color: var(--ink);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
	padding-block: clamp(1rem, 2vw, 1.75rem) clamp(2.5rem, 5vw, 4rem);
}

.hero-panel {
	padding: clamp(2.25rem, 4.5vw, 3.75rem) clamp(1.25rem, 4vw, 4rem) 0;
	text-align: center;
}

.hero-motif {
	position: absolute;
	top: -8%;
	left: 50%;
	width: min(126%, 74rem);
	transform: translateX(-50%);
	opacity: 0.13;
	color: var(--cream);
	pointer-events: none;
	mask-image: linear-gradient(180deg, oklch(0 0 0) 0%, oklch(0 0 0 / 0.45) 52%, transparent 88%);
}

.hero-body {
	position: relative;
	z-index: 2;
	max-width: 45rem;
	margin-inline: auto;
}

.hero-title {
	font-size: var(--fs-display);
	font-weight: 780;
	letter-spacing: -0.03em;
	line-height: 1.02;
}

.hero-lead {
	margin: clamp(1.1rem, 2vw, 1.6rem) auto 0;
	max-width: 34rem;
	color: oklch(0.995 0.012 80 / 0.96);
	font-size: var(--fs-lead);
	line-height: 1.6;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.hero-fine {
	margin: 1.1rem 0 0;
	color: oklch(0.995 0.012 80 / 0.9);
	font-size: 0.88rem;
}

.hero-figure {
	position: relative;
	z-index: 2;
	max-width: 36rem;
	margin: clamp(2rem, 3.5vw, 3rem) auto 0;
	padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.hero-photo {
	display: block;
	width: 100%;
	border: 6px solid var(--paper);
	border-radius: 20px;
	box-shadow: var(--shadow-lift);
	transform: rotate(-1.1deg);
}

.hero-caption {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.1rem;
	color: oklch(0.995 0.012 80 / 0.92);
	font-size: 0.84rem;
}

.hero-caption-badge {
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	background: oklch(0.28 0.05 40 / 0.4);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Stats */

.stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-top: clamp(2.25rem, 4vw, 3.25rem);
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
	border-top: 1px solid var(--chalk);
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.stat-value {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 2.6vw, 2.15rem);
	font-weight: 780;
	letter-spacing: -0.03em;
	line-height: 1;
}

.stat-label {
	color: var(--ink-faint);
	font-size: 0.88rem;
	line-height: 1.4;
}

.stat--note {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.5rem;
	color: var(--trail-ink);
}

.stat--note .ico {
	margin-top: 0.15rem;
	color: var(--trail-ink);
}

/* --- This month's box ----------------------------------------------------- */

.sec--box {
	background: linear-gradient(180deg, var(--birch) 0%, var(--cream) 100%);
}

.box-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.box-figure {
	margin: 0;
}

.box-photo {
	display: block;
	width: 100%;
	border-radius: var(--r-md);
	box-shadow: var(--shadow-card);
}

.box-figure figcaption,
.box-strip figcaption,
.portal-photo figcaption {
	margin-top: 0.75rem;
	color: var(--ink-faint);
	font-size: 0.84rem;
	line-height: 1.45;
}

.box-list {
	display: grid;
	gap: clamp(1.1rem, 2vw, 1.75rem);
}

.box-item {
	display: grid;
	grid-template-columns: 3.1rem 1fr;
	gap: 1rem;
	padding-bottom: clamp(1.1rem, 2vw, 1.6rem);
	border-bottom: 1px solid var(--chalk);
}

.box-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.box-n {
	color: var(--ember);
	font-family: var(--font-display);
	font-size: 2.1rem;
	font-weight: 780;
	letter-spacing: -0.04em;
	line-height: 0.95;
	font-variant-numeric: tabular-nums;
}

.box-item-title {
	margin-bottom: 0.3rem;
	font-size: var(--fs-h3);
	font-weight: 700;
}

.box-item p {
	margin: 0;
	font-size: 0.96rem;
}

.box-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(0.75rem, 1.6vw, 1.25rem);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.strip-shot {
	margin: 0;
}

.strip-shot img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-sm);
	filter: saturate(0.96);
}

.strip-shot figcaption {
	margin-top: 0.5rem;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --- Three rooms ---------------------------------------------------------- */

.sec--how {
	background: var(--cream);
}

.how-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: clamp(1.5rem, 3.2vw, 2.75rem);
}

.how-figure {
	margin: 0 0 1.25rem;
}

.how-photo {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--r-md);
	box-shadow: var(--shadow-card);
}

.how-title {
	margin-bottom: 0.5rem;
	font-size: var(--fs-h3);
}

.how-text {
	margin-bottom: 0.9rem;
	font-size: 0.97rem;
	max-width: 32ch;
}

/* --- Partners ------------------------------------------------------------- */

.sec--partners {
	padding-block: clamp(3rem, 6vw, 5rem);
	background: var(--cream);
	border-block: 1px solid var(--chalk);
}

.partners-head {
	text-align: center;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.partners-title {
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	font-weight: 700;
}

.partners-lead {
	margin: 0.5rem 0 0;
	color: var(--ink-faint);
	font-size: 0.95rem;
}

.partners-band {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2.2vw, 1.75rem);
	align-items: center;
}

@media (min-width: 40rem) {
	.partners-band {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 62rem) {
	.partners-band {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.partner {
	display: flex;
	justify-content: center;
}

.partner-mark {
	width: 100%;
	max-width: 11rem;
	height: auto;
	color: var(--ink);
	opacity: 0.66;
	transition: opacity 0.3s var(--ease);
}

.partner:hover .partner-mark {
	opacity: 1;
}

/* --- Quotes --------------------------------------------------------------- */

.sec--quotes {
	background: var(--birch);
}

.quote-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

.quote {
	margin: 0;
}

.quote blockquote {
	margin: 0;
}

.quote blockquote p {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	font-weight: 620;
	letter-spacing: -0.02em;
	line-height: 1.28;
	text-wrap: pretty;
}

.quote-by {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: 1.5rem;
	font-size: 0.92rem;
}

.quote-by strong {
	display: block;
	color: var(--ink);
	font-weight: 650;
}

.quote-role {
	display: block;
	color: var(--ink-faint);
	font-size: 0.87rem;
}

.avatar-img {
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: var(--chalk);
}

.quote-figure {
	margin: 0;
}

.quote-photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--r-md);
	box-shadow: var(--shadow-card);
}

.quote-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--chalk);
}

.quote-small blockquote {
	margin: 0 0 1rem;
}

.quote-small blockquote p {
	color: var(--ink);
	font-size: 1.02rem;
	line-height: 1.5;
}

.quote-small .quote-by {
	margin-top: 0;
}

/* --- Compare -------------------------------------------------------------- */

.sec--compare {
	background: linear-gradient(180deg, var(--birch) 0%, var(--cream) 60%, var(--birch) 100%);
}

.compare-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	align-items: stretch;
}

.compare-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border-radius: var(--r-lg);
}

.compare-panel--before {
	border: 1px solid var(--chalk);
	background: var(--paper);
	box-shadow: var(--shadow-card);
}

.compare-panel--after {
	overflow: hidden;
	isolation: isolate;
}

.compare-kicker {
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	opacity: 0.7;
}

.compare-panel--before .compare-kicker {
	color: var(--ink-faint);
}

.compare-title {
	position: relative;
	z-index: 2;
	margin-bottom: 1.5rem;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.compare-sketch {
	position: relative;
	margin-bottom: 1.75rem;
	padding: 1rem;
	border-radius: var(--r-md);
	background:
		repeating-linear-gradient(0deg, oklch(0.23 0.028 265 / 0.028) 0 1px, transparent 1px 8px),
		oklch(0.94 0.008 84);
}

.sketch-svg {
	display: block;
	width: 100%;
	color: oklch(0.55 0.015 265);
	transform: rotate(-0.8deg);
}

.sketch-note {
	position: absolute;
	padding: 0.28rem 0.55rem;
	border: 1px dashed var(--chalk-deep);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink-faint);
	font-size: 0.74rem;
	white-space: nowrap;
	transform: rotate(-1.5deg);
}

.sketch-note--a {
	top: 6%;
	right: 4%;
}

.sketch-note--b {
	bottom: 16%;
	left: 3%;
	transform: rotate(1.8deg);
}

.sketch-note--c {
	bottom: 3%;
	right: 8%;
	transform: rotate(0.8deg);
}

.compare-list {
	display: grid;
	gap: 0.7rem;
	margin-top: auto;
}

.compare-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.98rem;
	line-height: 1.45;
}

.compare-x {
	position: relative;
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.2rem;
	border-radius: 4px;
	background: oklch(0.9 0.02 40);
}

.compare-x::before,
.compare-x::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 22%;
	width: 56%;
	height: 1.5px;
	background: oklch(0.55 0.09 30);
}

.compare-x::before {
	transform: rotate(45deg);
}

.compare-x::after {
	transform: rotate(-45deg);
}

.compare-list--after {
	position: relative;
	z-index: 2;
	margin-top: 0;
	margin-bottom: 1.75rem;
}

.compare-list--after li {
	color: oklch(0.995 0.012 80);
	font-weight: 500;
}

.compare-list--after .ico {
	margin-top: 0.28rem;
	color: var(--cream);
}

.compare-figure {
	position: relative;
	z-index: 2;
	margin: auto 0 1.25rem;
}

.compare-photo {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--r-md);
	box-shadow: 0 24px 44px -26px oklch(0.25 0.06 40 / 0.75);
}

.compare-note {
	position: relative;
	z-index: 2;
	margin: 0;
	color: oklch(0.995 0.012 80 / 0.88);
	font-size: 0.86rem;
}

/* --- Pricing -------------------------------------------------------------- */

.sec--pricing {
	background: var(--birch);
}

.tablist {
	display: inline-flex;
	gap: 0.25rem;
	margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
	padding: 0.3rem;
	border: 1px solid var(--chalk);
	border-radius: 999px;
	background: var(--paper);
}

.tabs {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tabs > .tabpanel {
	width: 100%;
}

.tab {
	padding: 0.6rem 1.15rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink-soft);
	font-family: var(--font-display);
	font-size: 0.93rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.tab:hover {
	color: var(--ink);
}

.tab.is-active {
	background: var(--ember-cta);
	color: var(--cream);
}

.tab-note {
	max-width: 44rem;
	margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
	color: var(--ink-faint);
	font-size: 0.92rem;
	text-align: center;
}

.price-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 0;
	border: 1px solid var(--chalk);
	border-radius: var(--r-lg);
	background: var(--paper);
	overflow: hidden;
}

.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(2.6rem, 3.4vw, 3.1rem) clamp(1.5rem, 2.4vw, 2rem) clamp(1.5rem, 2.4vw, 2rem);
	border-right: 1px solid var(--chalk);
}

.price-card:last-child {
	border-right: 0;
}

.price-card--featured {
	background: linear-gradient(180deg, oklch(0.98 0.022 72) 0%, var(--paper) 55%);
}

.price-flag {
	position: absolute;
	top: clamp(1.1rem, 1.8vw, 1.5rem);
	left: clamp(1.5rem, 2.4vw, 2rem);
	margin: 0;
	color: var(--ember-deep);
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.price-name {
	margin-bottom: 0.9rem;
	font-size: 1.08rem;
	font-weight: 700;
}

.price-amount {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
	margin: 0;
}

.price-value {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: clamp(2rem, 3vw, 2.6rem);
	font-weight: 780;
	letter-spacing: -0.035em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.price-unit {
	color: var(--ink-faint);
	font-size: 0.92rem;
}

.price-meta {
	margin: 0.55rem 0 1.25rem;
	color: var(--ink-faint);
	font-size: 0.85rem;
}

.price-list {
	display: grid;
	gap: 0.55rem;
	margin-bottom: 1.75rem;
}

.price-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.92rem;
	line-height: 1.4;
}

.price-list .ico,
.tick-list .ico,
.cta-badges .ico {
	margin-top: 0.22rem;
	color: var(--ember);
}

.price-card .btn {
	margin-top: auto;
}

.pricing-foot {
	max-width: 46rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
	color: var(--ink-faint);
	font-size: 0.88rem;
	text-align: center;
}

/* --- Studio bento --------------------------------------------------------- */

.sec--studio {
	background: var(--cream);
}

.bento {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 68.5rem) {
	.bento {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bento-tile--portal {
		grid-column: span 2;
		grid-row: span 2;
	}

	.bento-tile--wide {
		grid-column: span 3;
	}
}

.bento-tile {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	padding: clamp(1.35rem, 2.4vw, 2rem);
	border: 1px solid var(--chalk);
	border-radius: var(--r-lg);
	background: var(--paper);
	box-shadow: var(--shadow-card);
}

.bento-title {
	font-size: var(--fs-h3);
}

.bento-note {
	margin: 0;
	color: var(--ink-faint);
	font-size: 0.88rem;
}

.tick-list {
	display: grid;
	gap: 0.55rem;
}

.tick-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.94rem;
	line-height: 1.45;
}

.tick-list code {
	padding: 0.14rem 0.4rem;
	border-radius: 5px;
	background: oklch(0.94 0.012 84);
	color: var(--trail-ink);
	font-size: 0.8rem;
}

.tick-list--two {
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	margin-bottom: 0.5rem;
}

.bento-split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
	align-items: center;
}

.bento-split > div {
	display: grid;
	gap: 1rem;
	justify-items: start;
}

.bento-figure {
	margin: 0;
}

.bento-figure img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-md);
}

/* Portal mock */

.portal {
	border: 1px solid var(--chalk);
	border-radius: var(--r-md);
	background: var(--birch);
	overflow: hidden;
}

.portal-bar {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--chalk);
	background: var(--paper);
	font-size: 0.82rem;
}

.portal-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--ember);
}

.portal-crumbs {
	color: var(--ink-soft);
	font-weight: 550;
}

.portal-crumbs span {
	color: var(--ink-faint);
	margin-inline: 0.2rem;
}

.portal-tag {
	margin-left: auto;
	padding: 0.16rem 0.5rem;
	border-radius: 5px;
	background: oklch(0.93 0.03 196);
	color: var(--trail-ink);
	font-size: 0.72rem;
	font-weight: 600;
}

.portal-rows li {
	display: grid;
	grid-template-columns: 1.1rem minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--chalk);
	font-size: 0.9rem;
}

.portal-rows .ico {
	color: var(--ink-faint);
}

.portal-name {
	color: var(--ink);
	font-weight: 550;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.portal-grade {
	color: var(--ink-faint);
	font-size: 0.8rem;
	white-space: nowrap;
}

.portal-state {
	padding: 0.14rem 0.45rem;
	border-radius: 5px;
	background: oklch(0.93 0.012 84);
	color: var(--ink-soft);
	font-size: 0.72rem;
	font-weight: 600;
}

.portal-state--new {
	background: oklch(0.92 0.06 60);
	color: var(--ember-deep);
}

.portal-foot {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0.9rem;
	color: var(--ink-faint);
	font-size: 0.8rem;
}

.portal-photo {
	margin: 0;
}

.portal-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--r-md);
}

/* --- Path builder --------------------------------------------------------- */

.sec--builder {
	background: var(--birch);
}

.builder-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

.builder-copy .sec-title {
	margin-bottom: 1rem;
}

.builder-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 1.25rem;
	align-items: flex-end;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	padding: 1.1rem;
	border: 1px solid var(--chalk);
	border-radius: var(--r-md);
	background: var(--paper);
}

.control {
	display: grid;
	gap: 0.35rem;
}

.control label {
	color: var(--ink-faint);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.control select {
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--chalk-deep);
	border-radius: var(--r-sm);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 0.92rem;
}

.control--check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.55rem;
}

.control--check input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--ember);
}

.control--check label {
	font-size: 0.88rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink-soft);
}

.builder-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-left: auto;
}

.builder-status {
	margin: 1rem 0 0;
	color: var(--trail-ink);
	font-size: 0.88rem;
	font-variant-numeric: tabular-nums;
}

.builder-note {
	margin: 0.75rem 0 0;
	max-width: 34rem;
	color: var(--ink-faint);
	font-size: 0.86rem;
}

.builder-stage {
	padding: clamp(0.75rem, 1.5vw, 1.25rem);
	border: 1px solid var(--chalk);
	border-radius: var(--r-lg);
	background: var(--paper);
	box-shadow: var(--shadow-card);
}

.builder-canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--r-md);
	background: var(--cream);
}

.builder-noscript {
	margin: 1rem 0 0;
	color: var(--ink-faint);
	font-size: 0.88rem;
}

/* --- FAQ ------------------------------------------------------------------ */

.sec--faq {
	background: var(--cream);
}

.faq-wrap {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(1.75rem, 4vw, 4rem);
	align-items: start;
}

.faq-head .sec-title {
	margin-bottom: 1rem;
}

.faq-help {
	color: var(--ink-faint);
	font-size: 0.92rem;
}

.faq-item {
	border-bottom: 1px solid var(--chalk);
}

.faq-item:first-child {
	border-top: 1px solid var(--chalk);
}

.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 0;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 1.06rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	cursor: pointer;
	list-style: none;
}

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

.faq-q:hover {
	color: var(--ember-deep);
}

.faq-sign {
	position: relative;
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	border: 1px solid var(--chalk-deep);
	border-radius: 50%;
}

.faq-sign::before,
.faq-sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.5rem;
	height: 1.5px;
	background: var(--ink-soft);
	transform: translate(-50%, -50%);
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq-sign::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-sign::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
	display: grid;
	grid-template-rows: 1fr;
	padding-bottom: 1.3rem;
	max-width: 62ch;
}

.faq-a p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
}

/* --- Closing CTA ---------------------------------------------------------- */

.sec--cta {
	padding-block: 0 var(--sec-space);
	background: var(--cream);
}

.cta-panel {
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
	text-align: center;
}

.cta-motif {
	position: absolute;
	right: -12%;
	bottom: -30%;
	width: min(86%, 44rem);
	opacity: 0.16;
	color: var(--cream);
	pointer-events: none;
	mask-image: radial-gradient(70% 70% at 72% 34%, oklch(0 0 0) 0%, oklch(0 0 0 / 0.5) 46%, transparent 78%);
}

.cta-body {
	position: relative;
	z-index: 2;
	max-width: 40rem;
	margin-inline: auto;
}

.cta-title {
	font-size: clamp(2rem, 4.4vw, 3.3rem);
	font-weight: 780;
	letter-spacing: -0.03em;
}

.cta-lead {
	margin: 1.1rem auto 0;
	max-width: 34rem;
	color: oklch(0.995 0.012 80 / 0.96);
	font-size: var(--fs-lead);
}

.cta-badges {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 1.5rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	border-top: 1px solid oklch(0.99 0.02 80 / 0.24);
}

.cta-badges li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	color: oklch(0.995 0.012 80 / 0.96);
	font-size: 0.88rem;
}

.cta-badges .ico {
	margin-top: 0;
	color: var(--cream);
}

/* --- Footer --------------------------------------------------------------- */

.site-foot {
	padding-block: clamp(3rem, 6vw, 5rem) 2rem;
	background: var(--ink);
	color: oklch(0.87 0.012 265);
	font-size: 0.94rem;
}

.site-foot a {
	color: oklch(0.87 0.012 265);
	text-decoration: none;
}

.site-foot a:hover {
	color: var(--cream);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.foot-top {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 4rem);
	padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
	border-bottom: 1px solid oklch(0.99 0.02 80 / 0.14);
}

.brand-mark--light {
	height: 1.7rem;
	margin-bottom: 1.1rem;
}

.foot-blurb {
	max-width: 34ch;
	color: oklch(0.8 0.012 265);
	font-size: 0.92rem;
}

.foot-address {
	margin-top: 1.1rem;
	color: oklch(0.75 0.012 265);
	font-size: 0.86rem;
	font-style: normal;
	line-height: 1.7;
}

.foot-title {
	margin-bottom: 0.9rem;
	color: var(--cream);
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.foot-signup .foot-blurb {
	margin-bottom: 1rem;
}

.field {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.field-input {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.72rem 0.9rem;
	border: 1px solid oklch(0.99 0.02 80 / 0.2);
	border-radius: 999px;
	background: oklch(0.99 0.02 80 / 0.06);
	color: var(--cream);
	font: inherit;
	font-size: 0.94rem;
}

.field-input::placeholder {
	color: oklch(0.75 0.012 265);
}

.field-note {
	margin: 0.7rem 0 0;
	color: oklch(0.72 0.012 265);
	font-size: 0.82rem;
}

.field-note.is-ok {
	color: oklch(0.85 0.09 150);
}

.foot-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.foot-list {
	display: grid;
	gap: 0.55rem;
}

.foot-list a,
.foot-list li {
	font-size: 0.9rem;
	line-height: 1.4;
}

.foot-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid oklch(0.99 0.02 80 / 0.14);
	color: oklch(0.72 0.012 265);
	font-size: 0.84rem;
}

.foot-copy {
	margin: 0;
}

.foot-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
}

.foot-social {
	display: flex;
	gap: 0.5rem;
	margin-left: auto;
}

.foot-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border: 1px solid oklch(0.99 0.02 80 / 0.18);
	border-radius: 50%;
}

.foot-social svg {
	width: 1.05rem;
	height: 1.05rem;
}

.foot-social a:hover {
	border-color: var(--cream);
	background: oklch(0.99 0.02 80 / 0.1);
}

/* --- Consent bar ---------------------------------------------------------- */

.consent {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	padding: clamp(0.75rem, 2vw, 1.25rem);
	animation: consent-in 0.5s var(--ease) both;
}

.consent-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	max-width: var(--shell);
	margin-inline: auto;
	padding: 1rem 1.25rem;
	border: 1px solid var(--chalk-deep);
	border-radius: var(--r-md);
	background: var(--paper);
	box-shadow: 0 24px 48px -22px oklch(0.23 0.028 265 / 0.4);
}

.consent-copy {
	flex: 1 1 24rem;
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
}

.consent-copy strong {
	color: var(--ink);
}

.consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

@keyframes consent-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

/* --- Documents and prose -------------------------------------------------- */

.doc {
	padding-block: clamp(2rem, 4vw, 3.5rem) var(--sec-space);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
	color: var(--ink-faint);
	font-size: 0.85rem;
}

.crumbs a {
	color: var(--ink-soft);
}

.doc-head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.doc-title {
	font-size: clamp(2.1rem, 4.4vw, 3.2rem);
	font-weight: 760;
}

.doc-meta {
	margin: 0.9rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	color: var(--ink-faint);
	font-size: 0.88rem;
}

.doc-lead {
	margin-top: 1rem;
	color: var(--ink-soft);
	font-size: var(--fs-lead);
}

.doc-grid {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
}

.is-legal .doc-grid {
	grid-template-columns: 15rem minmax(0, 1fr);
}

.doc-rail {
	position: sticky;
	top: 6rem;
	display: grid;
	gap: 1.75rem;
	align-self: start;
	max-height: calc(100vh - 8rem);
	overflow-y: auto;
	padding-right: 0.5rem;
	font-size: 0.88rem;
}

.rail-title {
	margin-bottom: 0.7rem;
	color: var(--ink-faint);
	font-family: var(--font-display);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.doc-toc ol {
	display: grid;
	gap: 0.45rem;
	counter-reset: toc;
}

.doc-toc a,
.doc-docs a {
	color: var(--ink-soft);
	text-decoration: none;
	line-height: 1.35;
}

.doc-toc a:hover,
.doc-docs a:hover {
	color: var(--ember-deep);
}

.doc-docs ul {
	display: grid;
	gap: 0.45rem;
}

.doc-docs a[aria-current="page"] {
	color: var(--ember-deep);
	font-weight: 650;
}

.rail-help {
	color: var(--ink-faint);
	font-size: 0.84rem;
	line-height: 1.6;
}

.prose {
	max-width: 68ch;
	color: var(--ink-soft);
	font-size: 1.02rem;
	line-height: 1.72;
}

.prose > *:first-child {
	margin-top: 0;
}

.prose h2 {
	margin: 2.6rem 0 0.9rem;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	scroll-margin-top: 6rem;
}

.prose h3 {
	margin: 1.9rem 0 0.6rem;
	font-size: 1.12rem;
	font-weight: 700;
}

.prose ul,
.prose ol {
	margin: 0 0 1.2rem 1.2rem;
	display: grid;
	gap: 0.4rem;
}

.prose ul li {
	list-style: none;
	position: relative;
	padding-left: 1rem;
}

.prose ul li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 0;
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 1px;
	background: var(--ember);
}

.prose ol {
	list-style: decimal;
	margin-left: 1.6rem;
}

.prose ol li::marker {
	color: var(--ink-faint);
	font-variant-numeric: tabular-nums;
}

.prose-scroll {
	margin: 1.5rem 0 2rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border-radius: var(--r-sm);
}

.prose table {
	width: 100%;
	min-width: 30rem;
	margin: 1.5rem 0 2rem;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.prose-scroll table {
	margin: 0;
}

.prose th,
.prose td {
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--chalk);
	text-align: left;
	vertical-align: top;
}

.prose thead th {
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.prose strong {
	color: var(--ink);
}

.post-list {
	display: grid;
	gap: 1.75rem;
	max-width: 46rem;
}

.post-row {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--chalk);
}

.post-link {
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	text-decoration: none;
}

.post-meta {
	margin: 0.35rem 0 0.6rem;
	color: var(--ink-faint);
	font-size: 0.85rem;
}

.doc-search {
	margin-top: 1.75rem;
	max-width: 26rem;
}

.doc-search .field-input {
	border-color: var(--chalk-deep);
	background: var(--paper);
	color: var(--ink);
}

.doc-search .field-input::placeholder {
	color: var(--ink-faint);
}

.four-oh-four {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

.deadend-svg {
	width: 100%;
	color: var(--ember);
}

/* --- Reveal motion -------------------------------------------------------- */

.reveal {
	opacity: 0;
	transform: translateY(18px);
}

.reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}

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

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 68rem) {
	.head-nav,
	.head-util {
		display: none;
	}

	.head-toggle {
		display: inline-flex;
	}

	.head-inner {
		justify-content: space-between;
	}

	.box-grid,
	.quote-lead,
	.builder-wrap,
	.faq-wrap,
	.foot-top,
	.bento-split,
	.four-oh-four {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.doc-rail {
		position: static;
		max-height: none;
		padding: 1.25rem;
		border: 1px solid var(--chalk);
		border-radius: var(--r-md);
		background: var(--paper);
	}

	.bento-tile--portal,
	.bento-tile--wide {
		grid-column: auto;
	}

	.quote-photo {
		aspect-ratio: 16 / 9;
	}

	.price-card {
		border-right: 0;
		border-bottom: 1px solid var(--chalk);
	}

	.price-card:last-child {
		border-bottom: 0;
	}
}

@media (max-width: 46rem) {
	.box-strip {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-panel {
		text-align: left;
	}

	.hero-body,
	.hero-lead,
	.cta-body,
	.cta-lead {
		margin-inline: 0;
	}

	.hero-ctas,
	.cta-badges {
		justify-content: flex-start;
	}

	.cta-panel {
		text-align: left;
	}

	.sec-head--center {
		text-align: left;
	}

	.sec-head--center .sec-lead,
	.tab-note,
	.pricing-foot {
		margin-inline: 0;
		text-align: left;
	}

	.partners-head {
		text-align: left;
	}

	.hero-photo {
		border-width: 4px;
		transform: none;
	}

	.builder-buttons {
		margin-left: 0;
	}

	.foot-social {
		margin-left: 0;
	}

	.tablist {
		width: 100%;
		justify-content: space-between;
		margin-inline: 0;
	}

	.tab {
		flex: 1;
		padding-inline: 0.5rem;
	}
}

/* --- Preferences ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* --- Print ---------------------------------------------------------------- */

@media print {
	.site-head,
	.site-foot,
	.consent,
	.sec--cta,
	.hero-ctas,
	.builder-controls {
		display: none !important;
	}

	body {
		background: #fff;
		color: #111;
		font-size: 11pt;
	}

	.panel--ember {
		background: none;
		color: #111;
		border: 1px solid #999;
	}

	.prose {
		max-width: none;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		color: #555;
	}
}
