/*
 * Modulary Export — product page.
 * Layout: loud flat colour bands (signal orange, paper, asphalt) carrying
 * working fragments of the real product UI. One family (Archivo, variable
 * width + weight): condensed black for display, normal width for text.
 * Fragments marked [data-ui] use the plugin's own design tokens.
 */

@font-face {
	font-family: "Archivo";
	src: url("fonts/archivo-var.woff") format("woff");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Page */
	--paper: #ebebe6;
	--paper-2: #dfdfd8;
	--ink: #111111;
	--ink-2: #3c3c39;
	--signal: #ff5a1f;
	--signal-ink: #111111;
	--asphalt: #18191b;
	--asphalt-2: #26272a;
	--on-asphalt: #f2f2ee;
	--on-asphalt-2: #b9bab4;
	--good: #2fbf71;
	--bad: #d63638;
	--focus: #111111;

	/* Product UI (from packages/design-tokens) — fragments stay light like wp-admin */
	--ui-brand: #3858e9;
	--ui-brand-600: #2f4bd1;
	--ui-brand-50: #eef1fd;
	--ui-ink: #1e1e1e;
	--ui-ink-2: #50575e;
	--ui-ink-3: #646970;
	--ui-surface: #ffffff;
	--ui-surface-50: #f6f7f7;
	--ui-surface-100: #f0f0f1;
	--ui-border: #dcdcde;
	--ui-border-strong: #c3c4c7;
	--ui-grid: #e8e8ea;
	--ui-success: #00a32a;
	--ui-danger: #d63638;

	/* Type */
	--font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--display: clamp(3.1rem, 7.4vw, 6rem);
	--h2: clamp(2.3rem, 4.6vw, 4.1rem);
	--h3: clamp(1.3rem, 1.7vw, 1.55rem);
	--lede: clamp(1.15rem, 1.45vw, 1.35rem);
	--text: 1.0625rem;

	/* Space + motion */
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(88px, 12vw, 176px);
	--maxw: 1240px;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--fast: 160ms;
	--base: 220ms;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #121314;
		--paper-2: #1b1c1e;
		--ink: #edede8;
		--ink-2: #b9bab4;
		--asphalt: #232427;
		--asphalt-2: #2f3034;
		--focus: #ff5a1f;
		color-scheme: dark;
	}
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--text);
	line-height: 1.55;
	font-stretch: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; }

::selection { background: var(--signal); color: #111; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.band--signal :focus-visible { outline-color: #111; }
.band--asphalt :focus-visible,
.band--ink :focus-visible { outline-color: var(--signal); }

html { scrollbar-color: var(--ink-2) var(--paper); }

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

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 50;
	background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Bands + frame ---------- */

.band { position: relative; }
.band--signal { background: var(--signal); color: var(--signal-ink); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper-2 { background: var(--paper-2); color: var(--ink); }
.band--asphalt { background: var(--asphalt); color: var(--on-asphalt); }
.band--ink { background: #0d0d0d; color: #f2f2ee; }

.wrap {
	width: 100%;
	max-width: calc(var(--maxw) + 2 * var(--gutter));
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }

.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split--top { align-items: start; }
@media (min-width: 960px) {
	.split--5-7 { grid-template-columns: 5fr 7fr; }
	.split--7-5 { grid-template-columns: 7fr 5fr; }
}
@media (max-width: 959px) {
	.split--reverse-mobile .split__b { order: -1; }
}

/* ---------- Type ---------- */

.display {
	font-size: var(--display);
	font-weight: 880;
	font-stretch: 72%;
	line-height: 0.88;
	letter-spacing: -0.025em;
	word-spacing: 0.05em;
	text-wrap: balance;
}

.h2 {
	font-size: var(--h2);
	font-weight: 860;
	font-stretch: 74%;
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-wrap: balance;
	max-width: 12ch;
	margin-bottom: 0.55em;
}
.h2--wide { max-width: 20ch; }
.h2--signal { color: var(--signal); }

.h3 {
	font-size: var(--h3);
	font-weight: 780;
	font-stretch: 85%;
	line-height: 1.1;
	text-wrap: balance;
	margin-bottom: 0.6em;
}

.lede {
	font-size: var(--lede);
	line-height: 1.42;
	max-width: 34ch;
	font-weight: 460;
}
.lede--on-ink { color: #d7d7d1; max-width: 46ch; }

.body { max-width: 52ch; color: var(--ink-2); }
.body + .body { margin-top: 1em; }
.band--asphalt .body { color: var(--on-asphalt-2); }
.band--signal .body { color: #111; }

.statement {
	font-size: clamp(1.3rem, 2.1vw, 1.75rem);
	line-height: 1.32;
	font-weight: 520;
	max-width: 30ch;
}

/* The logo (assets/brand/): signal version in the header, dark version in the footer. */
.wordmark { display: inline-flex; flex: none; text-decoration: none; line-height: 0; }
.wordmark img { display: block; width: auto; height: 32px; }
.wordmark--small img { height: 38px; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 26px;
	border: 0; border-radius: 999px;
	font-weight: 760; font-stretch: 92%; font-size: 1.05rem;
	text-decoration: none; cursor: pointer;
	transition: transform var(--fast) var(--ease-out), background-color var(--base) var(--ease-out);
	-webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn--ink { background: #111; color: #f4f4f0; }
.btn--signal { background: var(--signal); color: #111; }
@media (hover: hover) {
	.btn--ink:hover { background: #2a2a2a; }
	.btn--signal:hover { background: #ff7444; }
}

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

.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.bar__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.bar__nav { display: flex; gap: 22px; margin-left: auto; font-weight: 620; }
.bar__nav a { text-decoration: none; }
@media (hover: hover) { .bar__nav a:hover { text-decoration: underline; } }
@media (max-width: 760px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }
.bar__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }

/* A plugin page's own sections, under the site header. Scrolls sideways on
   small screens instead of wrapping (inside itself, never the page). */
.subbar { border-top: 1px solid rgba(17, 17, 17, 0.2); }
.subbar__inner {
	display: flex; align-items: center; gap: 22px; min-height: 46px;
	overflow-x: auto; scrollbar-width: none; white-space: nowrap;
	font-size: 0.95rem; font-weight: 620;
}
.subbar__inner::-webkit-scrollbar { display: none; }
.subbar a { text-decoration: none; }
.subbar__name { font-weight: 860; font-stretch: 78%; font-size: 1.05rem; margin-right: auto; }
@media (hover: hover) { .subbar a:hover { text-decoration: underline; } }
@media (max-width: 760px) {
	.subbar__name { margin-right: 4px; }
	.subbar__inner { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
}

/* Anchor jumps land below the sticky header. */
html { scroll-padding-top: 84px; }
html:has(.subbar) { scroll-padding-top: 132px; }

.hero:has(> .crumbs) { padding-top: clamp(24px, 3vw, 40px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.95rem; font-weight: 620; margin-bottom: clamp(20px, 3vw, 36px); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; } }
.crumbs [aria-current] { font-weight: 800; }

/* "Read more" links between pages. */
.more { font-weight: 720; }
.more::after { content: " \2192"; }
body::before {
	content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
	z-index: 30; background: var(--signal);
}

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

.hero { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px); }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__grid > * { min-width: 0; }
@media (min-width: 1040px) {
	.hero__grid { grid-template-columns: 4fr 8fr; grid-template-areas: "title title" "copy shot"; align-items: start; row-gap: clamp(32px, 3.5vw, 52px); }
	.hero__grid > h1 { grid-area: title; }
	.hero__copy { grid-area: copy; padding-top: 8px; }
	.hero__shot { grid-area: shot; }
}
/* A full builder screenshot needs the whole width to stay readable. */
@media (min-width: 1040px) {
	.hero__grid--wide-shot { grid-template-columns: 1fr; grid-template-areas: "title" "copy" "shot"; }
	.hero__grid--wide-shot .hero__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 64px; }
	.hero__grid--wide-shot .lede { max-width: 46ch; }
	.hero__grid--wide-shot .hero__actions { margin-top: 0; }
}
.hero__copy .lede { margin-top: 0; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.hero__note { font-size: 0.95rem; font-weight: 560; max-width: 30ch; line-height: 1.35; }
.shot-cap { margin-top: 14px; font-size: 0.95rem; font-weight: 560; }

/* Real screenshots of the plugin (assets/shots/, made by `pnpm screenshots`). */
.shot {
	display: block; width: 100%; height: auto; border-radius: 10px; background: #f0f0f1;
	box-shadow: 0 18px 40px -18px rgba(60, 20, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ---------- Ticker ---------- */

.ticker { overflow: hidden; padding-block: 18px; }
.ticker__run {
	display: flex; gap: 0; width: max-content;
	animation: run 48s linear infinite;
	font-weight: 820; font-stretch: 74%; font-size: clamp(1.25rem, 2.2vw, 1.7rem);
	color: var(--signal); white-space: nowrap;
}
.ticker__run span { padding-inline: 0.9em; }
.ticker__run span::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin-left: 1.8em; border-radius: 50%; background: #f2f2ee; vertical-align: 0.2em; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__run { animation: none; } }

/* ---------- Product fragments (data-ui): totals cards, formula tester ---------- */

.ui {
	font-family: var(--font-ui);
	font-size: 13px;
	line-height: 1.45;
	color: var(--ui-ink);
	background: var(--ui-surface);
	border-radius: 8px;
	color-scheme: light;
}
.ui :focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 1px; }

.chip {
	border: 1px solid var(--ui-border-strong); background: var(--ui-surface);
	border-radius: 999px; padding: 5px 11px; font-family: var(--font-ui); font-size: 12.5px;
	cursor: pointer; color: var(--ui-ink);
	transition: background-color var(--fast) var(--ease-out), border-color var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ui-brand-50); border-color: var(--ui-brand); color: var(--ui-brand-600); font-weight: 600; }
@media (hover: hover) { .chip:hover { border-color: var(--ui-ink-3); } }

.sheet { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td {
	border-right: 1px solid var(--ui-grid); border-bottom: 1px solid var(--ui-grid);
	padding: 7px 10px; text-align: left; white-space: nowrap; vertical-align: top;
}
.sheet thead th {
	position: sticky; top: 0; background: var(--ui-surface-50); font-weight: 600;
	color: var(--ui-ink); z-index: 1; box-shadow: inset 0 -1px 0 var(--ui-border);
}
.sheet .num { text-align: right; }
.sheet td.wrap { white-space: normal; min-width: 190px; }
.sheet tbody tr { transition: background-color var(--fast) var(--ease-out); }
@media (hover: hover) { .sheet tbody tr:hover { background: var(--ui-brand-50); } }


/* ---------- Steps section ---------- */

.laps { display: grid; gap: 0; counter-reset: none; }
.laps li { padding-block: 26px; }
.laps li + li { box-shadow: none; }
.laps li:nth-child(1) { padding-top: 0; }
.laps__title {
	font-size: clamp(2rem, 3.8vw, 3.3rem);
	font-weight: 860; font-stretch: 72%; line-height: 0.95; letter-spacing: -0.02em;
	margin-bottom: 10px;
}
.laps li:nth-child(2) .laps__title { padding-left: clamp(0px, 6vw, 96px); }
.laps li:nth-child(3) .laps__title { padding-left: clamp(0px, 12vw, 192px); }
.laps li:nth-child(2) p { padding-left: clamp(0px, 6vw, 96px); }
.laps li:nth-child(3) p { padding-left: clamp(0px, 12vw, 192px); }
.laps p { color: var(--ink-2); max-width: 44ch; }
.laps li:last-child .laps__title { color: var(--signal); }

/* ---------- Totals ---------- */

.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.totals > * { min-width: 0; }
@media (max-width: 620px) { .totals { grid-template-columns: 1fr; } }
.sheet-card { padding: 14px 0 0; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.sheet-card--lift { margin-top: 48px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.06); }
@media (max-width: 620px) { .sheet-card--lift { margin-top: 0; } }
.sheet-card__label { padding: 0 14px 10px; font-weight: 600; font-size: 13px; color: var(--ui-ink-2); }
.sheet-card--lift .sheet-card__label { color: var(--ui-brand-600); }
.sheet--mini { border-top: 1px solid var(--ui-grid); }
.sheet--mini th, .sheet--mini td { white-space: normal; padding: 7px 8px; }
.sheet--mini td:first-child { white-space: nowrap; }
.sheet--mini th:last-child, .sheet--mini td:last-child { border-right: 0; }
.sheet--mini tfoot th, .sheet--mini tfoot td { font-weight: 700; background: var(--ui-surface-50); border-bottom: 0; }
.is-bad { color: var(--ui-danger); text-decoration: line-through; text-decoration-thickness: 2px; }
.is-good { color: var(--ui-success); }
.sheet-card .sheet-card__scroll { overflow-x: auto; }

/* ---------- Excel ---------- */

.mojibake { margin-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); display: grid; gap: 6px; }
.mojibake p {
	font-size: clamp(1.75rem, 4.6vw, 4rem);
	font-weight: 820; font-stretch: 76%; line-height: 1; letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}
.mojibake__bad { color: var(--ink-2); opacity: 0.55; text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: 0.08em; }
.mojibake__good { color: var(--ink); }

.facts { display: grid; gap: 36px 48px; }
.facts > li { min-width: 0; }
.facts h3 { font-size: var(--h3); font-weight: 780; font-stretch: 86%; line-height: 1.12; margin-bottom: 8px; text-wrap: balance; }
.facts p { color: var(--ink-2); max-width: 42ch; }
@media (min-width: 720px) { .facts--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts--four { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Security ---------- */

.section--security .split { margin-bottom: clamp(64px, 8vw, 112px); }
.section--security .statement { margin-top: 8px; }

.tester { background: var(--asphalt-2); color: var(--on-asphalt); padding: 20px; border-radius: 10px; }
.tester__head { display: grid; gap: 12px; margin-bottom: 12px; }
.tester__label { font-weight: 600; font-size: 14px; }
.tester__samples { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--dark { background: transparent; color: var(--on-asphalt-2); border-color: #4a4b50; }
.chip--dark[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #111; }
@media (hover: hover) { .chip--dark:hover { border-color: var(--on-asphalt-2); } }
.tester__input {
	width: 100%; resize: vertical; min-height: 64px;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.45;
	background: #111214; color: #f2f2ee; border: 1px solid #4a4b50; border-radius: 6px; padding: 10px 12px;
	caret-color: var(--signal);
}
.tester__input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.tester__out { margin-top: 14px; background: var(--ui-surface); color: var(--ui-ink); border-radius: 6px; overflow: hidden; }
.tester__cellname { font-size: 12px; color: var(--ui-ink-2); padding: 8px 12px; background: var(--ui-surface-50); border-bottom: 1px solid var(--ui-grid); }
.tester__cell {
	display: block; padding: 10px 12px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 14px; overflow-wrap: anywhere; min-height: 42px; border-bottom: 1px solid var(--ui-grid);
}
.tester__cell mark { background: #ffe4d8; color: #a33a10; border-radius: 2px; padding: 0 1px; }
.tester__verdict { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; transition: opacity var(--fast) var(--ease-out); }
.tester__verdict.is-swapping { opacity: 0.35; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--good { background: var(--ui-success); }
.dot--info { background: var(--ui-brand); }
.tester__foot { margin-top: 12px; font-size: 12.5px; color: var(--on-asphalt-2); }

/* Home: a door to the formula test on the Export page. */
.try {
	display: grid; gap: 12px; padding: 24px; border-radius: 10px; text-decoration: none;
	background: var(--asphalt-2); color: var(--on-asphalt);
	transition: transform var(--fast) var(--ease-out);
}
.try__label { font-weight: 840; font-stretch: 80%; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1; }
.try__row { display: grid; gap: 6px; }
.try__name { font-size: 12.5px; font-weight: 600; color: var(--on-asphalt-2); }
.try__cell {
	display: block; padding: 10px 12px; border-radius: 6px; overflow-wrap: anywhere;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px;
	background: #111214; color: #f2f2ee; border: 1px solid #4a4b50;
}
.try__cell mark { background: #ffe4d8; color: #a33a10; border-radius: 2px; padding: 0 2px; }
.try__text { color: var(--on-asphalt-2); }
.try__go { color: var(--signal); font-weight: 760; }
.try__go::after { content: " \2192"; }
@media (hover: hover) { .try:hover { transform: translateY(-2px); } .try:hover .try__go { text-decoration: underline; } }

/* Export: the short version of the report clock, linking to the full one. */
.report-link {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
	border: 1px solid #4a4b50; border-radius: 28px; padding: clamp(22px, 3vw, 36px);
}
.report-link__text { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; max-width: 60ch; min-width: 0; }
.report-link__text strong { color: var(--signal); }

.facts--security { margin-bottom: clamp(64px, 8vw, 112px); }
.facts--security:last-child { margin-bottom: 0; }
.band--asphalt .facts p { color: var(--on-asphalt-2); }
.band--asphalt .facts code { color: var(--on-asphalt); }
@media (min-width: 720px) { .facts--security { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts--security { grid-template-columns: repeat(3, 1fr); } }

.report {
	display: grid; gap: clamp(32px, 4vw, 64px);
	background: var(--signal); color: #111; border-radius: 28px;
	padding: clamp(28px, 4vw, 56px);
}
.report > * { min-width: 0; }
@media (min-width: 960px) { .report { grid-template-columns: 6fr 5fr; align-items: start; } }
.report .h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 860; font-stretch: 74%; line-height: 0.95; }
.report .body { color: #111; }
.watch { margin: 14px 0 18px; max-width: 52ch; }
.watch li { display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid rgba(17, 17, 17, 0.22); }
.watch li:last-child { border-bottom: 1px solid rgba(17, 17, 17, 0.22); }
.watch strong { font-weight: 760; }
@media (max-width: 480px) { .watch li { grid-template-columns: 1fr; } }
.report .btn--signal { background: #111; color: #f4f4f0; }
.report__small { margin-top: 12px; font-size: 0.92rem; font-weight: 560; }
.sla { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sla caption { text-align: left; font-weight: 760; font-stretch: 90%; font-size: 1.1rem; margin-bottom: 10px; }
.sla th, .sla td { text-align: left; padding: 11px 0; border-bottom: 2px solid rgba(17, 17, 17, 0.18); vertical-align: baseline; }
.sla th { font-weight: 560; padding-right: 16px; }
.sla td { font-weight: 820; font-stretch: 86%; font-size: 1.15rem; text-align: right; white-space: nowrap; }

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

.tiers { display: grid; gap: 20px; margin-top: 8px; }
.tiers > * { min-width: 0; }
@media (min-width: 900px) { .tiers { grid-template-columns: 7fr 5fr; align-items: stretch; } }
.tier { border-radius: 28px; padding: clamp(28px, 3.6vw, 48px); }
.tier--free { background: #111; color: #f2f2ee; }
.tier--free .body { color: #d7d7d1; }
.tier--pro { background: #ebebe6; color: #111; }
.tier--pro .body { color: #111; }
.tier__name { font-weight: 700; font-size: 1.05rem; }
.tier__price { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 880; font-stretch: 72%; line-height: 1; letter-spacing: -0.02em; margin: 6px 0 16px; }
.tier--free .tier__price { color: var(--signal); }
.tier__per { font-size: 0.34em; font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.plans { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 0.98rem; }
.plans th, .plans td { padding: 9px 0; border-bottom: 1px solid rgba(17, 17, 17, 0.14); text-align: left; }
.plans thead th { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #55554f; }
.plans tbody th { font-weight: 600; }
.plans .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.tier__small { margin-top: 20px; font-weight: 600; font-size: 0.95rem; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
@media (min-width: 620px) { .tier--free .ticks { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.ticks li { position: relative; padding-left: 28px; line-height: 1.4; }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.28em; width: 16px; height: 16px; border-radius: 50%;
	background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23111' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ticks--dim li::before {
	background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v4l2.5 1.5' fill='none' stroke='%23ff5a1f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Roadmap ---------- */

.roadmap { display: grid; gap: 28px 40px; }
@media (min-width: 640px) { .roadmap { grid-template-columns: 1fr 1fr; } }
.roadmap h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 840; font-stretch: 76%; line-height: 1; letter-spacing: -0.01em; margin-bottom: 8px; }
.roadmap p { color: var(--ink-2); max-width: 38ch; }
.garage { margin-top: clamp(56px, 7vw, 96px); }
.garage__line {
	background: var(--paper-2); border-radius: 28px; padding: clamp(22px, 3vw, 36px);
	font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 520; line-height: 1.35;
}

/* ---------- Ideas and feedback ---------- */

.asks { display: grid; gap: 14px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 720px) { .asks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .asks { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .asks--three { grid-template-columns: repeat(3, 1fr); } }
.ask {
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0;
	background: var(--paper); border-radius: 28px; padding: clamp(22px, 2.6vw, 32px);
}
.ask h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 840; font-stretch: 76%; line-height: 1; letter-spacing: -0.01em; }
.ask p { color: var(--ink-2); }
.ask > .btn, .ask__votes { margin-top: auto; }
.ask > p { margin-bottom: 8px; }
.ask__votes { display: flex; flex-wrap: wrap; gap: 8px; }
.asks__addr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; color: var(--ink-2); }
.asks__mail { font-weight: 800; color: var(--ink); user-select: all; overflow-wrap: anywhere; }

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


.faq-note { margin-top: 20px; color: var(--ink-2); max-width: 36ch; }
.faq details { border-radius: 16px; background: var(--paper-2); margin-bottom: 10px; }
.faq summary {
	list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
	font-weight: 760; font-stretch: 88%; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform var(--base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Legal pages (legal/, privacy/, terms/) ---------- */

.legal-hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.legal__kicker { font-weight: 760; margin-bottom: 12px; }
.legal__lede { margin-top: 18px; max-width: 46ch; }
.legal__updated { margin-top: 18px; font-size: 0.95rem; font-weight: 560; }
.legal > * { max-width: 72ch; }
/* The footer usually follows the dark closing band; here it follows paper. */
main:has(.legal) + .foot { padding-top: clamp(48px, 6vw, 80px); }
.legal h2 { font-size: var(--h3); font-weight: 800; font-stretch: 84%; line-height: 1.15; margin: 44px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 10px; margin-top: 10px; padding-left: 1.2em; list-style: disc; }
.legal strong { color: var(--ink); }
.legal__dl { display: grid; gap: 4px 32px; margin-bottom: 8px; }
.legal__dl dt { font-weight: 760; margin-top: 14px; }
.legal__dl dd { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) {
	.legal__dl { grid-template-columns: 14em 1fr; }
	.legal__dl dt, .legal__dl dd { margin-top: 0; padding-block: 12px; border-top: 1px solid rgba(17, 17, 17, 0.14); }
}

/* ---------- Close + footer ---------- */

.close__inner { display: grid; gap: 28px 64px; align-items: end; }
.close__inner > * { min-width: 0; }
@media (min-width: 960px) { .close__inner { grid-template-columns: 7fr 5fr; } }
.close__cta { display: grid; gap: 28px; justify-items: start; }
.display--close { color: var(--signal); font-size: clamp(3.1rem, 9vw, 6rem); }
.foot { padding-block: 0 56px; }
.foot__inner { display: grid; gap: 8px; color: #b9bab4; border-top: 0; }
.foot .wordmark { margin-bottom: 10px; }
.foot .wordmark--small { display: inline-block; justify-self: start; }
.foot__nav { display: grid; gap: 24px 64px; margin-top: 22px; }
@media (min-width: 720px) { .foot__nav { grid-template-columns: repeat(4, max-content); } }
.foot__h { color: #f2f2ee; font-weight: 760; margin-bottom: 8px; }
.foot__nav ul { display: grid; gap: 6px; }
.foot a { text-decoration: none; }
@media (hover: hover) { .foot a:hover { text-decoration: underline; } }
.foot__small { margin-top: 18px; font-size: 0.85rem; max-width: 72ch; line-height: 1.5; color: #8f908b; }

/* ================= Home page ================= */

.grid-up { display: grid; gap: 14px; }

.garage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.garage-cards li {
	background: #111; color: #f2f2ee; border-radius: 12px; padding: 16px 16px 14px;
	display: grid; gap: 2px; min-width: 0;
}
.garage-cards strong { font-weight: 780; font-stretch: 84%; font-size: 1.08rem; line-height: 1.15; }
.garage-cards span { color: #b9bab4; font-size: 0.95rem; }
.garage-cards em { font-style: normal; color: var(--signal); font-weight: 700; font-size: 0.9rem; margin-top: 8px; }
@media (max-width: 560px) { .garage-cards { grid-template-columns: 1fr; } .garage-cards li { grid-template-columns: 1fr auto; align-items: baseline; } .garage-cards em { margin-top: 0; grid-row: 1; grid-column: 2; } }

.lineup-intro { margin-bottom: clamp(40px, 6vw, 80px); }
.statement--ink { color: var(--ink-2); max-width: 36ch; }
.lineup { display: grid; gap: 0; }
.lineup__row {
	display: grid; gap: 12px 48px; padding-block: clamp(28px, 3.4vw, 44px);
	border-radius: 28px;
}
.lineup__row + .lineup__row { border-top: 0; }
@media (min-width: 960px) { .lineup__row { grid-template-columns: 5fr 7fr; align-items: start; } }
.lineup__row > * { min-width: 0; }
.lineup__row--live { background: var(--signal); color: #111; padding-inline: clamp(24px, 3.4vw, 48px); margin-bottom: 12px; }
.lineup__row:not(.lineup__row--live) { padding-inline: clamp(24px, 3.4vw, 48px); background: var(--paper-2); margin-bottom: 12px; }
.lineup__name h3 {
	font-size: clamp(3rem, 7vw, 6rem); font-weight: 880; font-stretch: 70%;
	line-height: 0.88; letter-spacing: -0.025em;
}
.lineup__row:not(.lineup__row--live) .lineup__name h3 { color: var(--ink-2); }
.status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 680; }
.dot--signal { background: #111; }
.dot--ink { background: var(--ink-2); }
.lineup__job { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.3; font-weight: 520; max-width: 34ch; }
.lineup__row--live .lineup__job { color: #111; }
.lineup__row--live .btn { margin-top: 26px; }
.ticks--ink li::before {
	background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23ff5a1f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.lineup__note { margin-top: 20px; color: var(--ink-2); max-width: 60ch; font-weight: 520; }

.shot-cap--ink { color: var(--ink-2); }

.rules { display: grid; gap: 6px; margin-top: 28px; }
.rules li { padding: 16px 18px; }
.rules h3 { font-size: var(--h3); font-weight: 800; font-stretch: 84%; line-height: 1.1; margin-bottom: 4px; }
.rules p { color: var(--ink-2); }

.facts--big h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-stretch: 76%; font-weight: 840; }

.tiers--model { margin-top: 0; }
@media (min-width: 900px) { .tiers--model { grid-template-columns: 1fr 1fr; } }
.tiers--model .tier__price { font-size: clamp(2rem, 3.6vw, 3.2rem); }

.body--wide { max-width: 64ch; }
.details { margin-top: clamp(20px, 3vw, 40px); align-items: end; }
.details .mojibake { margin: 0; }
