/*
 * MergeReady landing page. Direction: One motif (the station bullet) in the wayfinding world.
 * Five visible sizes: display, h2, lead, body, small. Interface fragments ([data-ui]) keep the app scale.
 */
:root {
	--band-h: 64px;
	--col-gap: clamp(12px, 1.6vw, 24px);
	--max: 1600px;
}
html {
	scroll-padding-top: calc(var(--band-h) + 16px); /* focus and anchors land below the sticky band */
}
body {
	overflow-x: hidden;
}
.wrap {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--margin);
}
.grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--col-gap);
}
.section {
	padding-block: calc(var(--section-gap) / 2);
	scroll-margin-top: var(--band-h);
}
.display {
	font-family: var(--font-sign);
	font-weight: 700;
	font-size: var(--step-display);
	line-height: 0.92;
	letter-spacing: -0.02em;
}
.h2 {
	font-size: var(--step-h2);
}
.lead {
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.35;
}
.small {
	font-size: var(--step-small);
	line-height: 1.45;
}
.muted {
	color: var(--muted);
}
.measure {
	max-width: 36ch;
}

/* ---------------------------------------------------------------- Sign band */
.band {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 20;
	background: var(--band);
	color: var(--band-ink);
}
.band__inner {
	display: flex;
	align-items: center;
	gap: var(--s5);
	min-height: var(--band-h);
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}
.brand svg {
	width: 30px;
	height: 30px;
}
.band nav {
	margin-inline-start: auto;
}
.band__links {
	display: flex;
	gap: var(--s2);
	list-style: none;
}
.band__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding-inline: 12px;
	color: var(--band-ink);
	text-decoration: none;
	font-weight: 500;
	border-radius: var(--pill);
	transition: background-color var(--t-fast) var(--ease-out);
}
.band__links a:hover {
	background: #2a2a28;
}
.band :focus-visible {
	outline-color: var(--yellow);
}
.band__cta {
	flex: none;
}
.band__menu {
	display: none;
}
@media (max-width: 960px) {
	.band__links {
		display: none;
	}
	.band__cta {
		margin-inline-start: auto;
	}
}

/* --------------------------------------------------------------------- Hero */
.hero {
	position: relative;
	overflow: hidden;
	min-height: calc(100svh - var(--band-h));
	display: flex;
	align-items: center;
}
.hero__copy {
	position: relative;
	z-index: 2;
	width: 100%;
	pointer-events: none; /* the full-width layer must not cover the slideshow controls */
	padding-block: clamp(3rem, 10vh, 8rem) clamp(9rem, 24vh, 15rem);
}
.hero__copy > * {
	max-width: min(46vw, 760px);
	pointer-events: auto;
}
.hero h1 {
	max-width: min(46vw, 760px);
}
.hero__sub {
	margin-top: clamp(1.5rem, 3vh, 2.25rem);
	max-width: 34ch !important;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s4) var(--s5);
	margin-top: clamp(1.75rem, 4vh, 2.75rem);
}
.hero__actions > a:not(.btn),
.dial__file-copy a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.hero__note {
	margin-top: var(--s4);
	max-width: 44ch !important;
}
.hero__visual {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.station {
	position: absolute;
	z-index: 1;
	--d: min(124svh, 92vw);
	width: var(--d);
	height: var(--d);
	left: max(50%, calc(100% - var(--d) * 0.62));
	top: 56%;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--yellow);
}
.routes {
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
}
.routes svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.stage {
	position: absolute;
	z-index: 3;
	top: 44%;
	left: calc(max(50%, calc(100% - min(124svh, 92vw) * 0.62)) + clamp(48px, 5vw, 96px));
	transform: translateY(-50%);
	width: min(460px, calc(100% - max(50%, calc(100% - min(124svh, 92vw) * 0.62)) - clamp(64px, 6vw, 120px)));
}
.stage__frames {
	position: relative;
	display: grid;
}
.stage__frame {
	grid-area: 1 / 1;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 1.6s var(--ease-in-out),
		visibility 0s linear 1.6s;
}
.stage__frame.is-on {
	opacity: 1;
	visibility: visible;
	transition:
		opacity 1.6s var(--ease-in-out),
		visibility 0s;
}
/* A frame's "Ships with…" label: on its own yellow plate, as the controls are, so it reads on or off the disc. */
.stage__caption {
	width: fit-content;
	margin-top: var(--s2);
	padding: 4px 10px;
	border-radius: 2px;
	background: var(--yellow);
	color: var(--yellow-ink);
	font-size: var(--step-small);
	font-weight: 500;
	line-height: 1.4;
}
.stage__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s3);
	margin-top: var(--s3);
	padding: 4px;
	border-radius: var(--pill);
	background: var(--yellow); /* the controls always sit on yellow, on or off the disc */
}
.stage__steps {
	display: flex;
	gap: var(--s1);
	list-style: none;
}
.stage__steps button {
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--pill);
	background: transparent;
	color: var(--yellow-ink);
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
}
.stage__steps button[aria-current="true"] {
	background: var(--yellow-ink);
	color: var(--yellow);
}
.stage__toggle {
	min-height: 44px;
	min-width: 44px;
	border: 0;
	border-radius: var(--pill);
	background: transparent;
	color: var(--yellow-ink);
	cursor: pointer;
	display: inline-grid;
	place-items: center;
}
.stage__toggle svg {
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------- Interface fragments (data-ui) */
[data-ui] {
	--ui-pad: 18px;
	font-family: var(--font-text);
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #121212;
	background: #fff;
	text-align: start;
}
/* Code keeps the code face inside a fragment, and terminals stay black in both themes. */
pre.code[data-ui] {
	font-family: var(--font-code);
	font-size: 0.875rem;
}
.terminal[data-ui] {
	background: #121212;
	color: #f4f4f2;
}
.ui-card {
	border-radius: 2px;
	overflow: hidden;
}
.ui-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px var(--ui-pad);
	background: #121212;
	color: #f4f4f2;
	font-size: 0.8125rem;
}
.ui-head code,
.ui-head .ui-id {
	font-family: var(--font-code);
	font-size: 0.8125rem;
}
.ui-body {
	padding: var(--ui-pad);
	display: grid;
	gap: 12px;
}
.ui-headline {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.3;
}
.ui-headline .mark {
	margin-top: 2px;
}
.ui-rows {
	display: grid;
	gap: 0;
	list-style: none;
}
.ui-rows li {
	display: grid;
	grid-template-columns: 8.5em 1fr;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid #e5e5e1; /* taste-skill-ignore: rows inside a [data-ui] fragment */
}
.ui-rows li:first-child {
	border-top: 0;
}
.ui-k {
	color: #5c5c56;
	font-size: 0.8125rem;
	padding-top: 1px;
}
.ui-v {
	min-width: 0;
	overflow-wrap: anywhere; /* long paths such as .github/workflows/ci.yml wrap instead of clipping */
}
.ui-v code,
.ui-sha {
	font-family: var(--font-code);
	font-size: 0.8125rem;
}
.ui-ok {
	color: #00703f;
	font-weight: 600;
}
.ui-no {
	color: #c4161c;
	font-weight: 600;
}
.ui-flag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ui-flag svg {
	width: 16px;
	height: 16px;
}
.ui-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 4px;
}
.ui-actions .btn {
	font-size: 0.9375rem;
}
/* Actions in the host comment are links, never buttons (pack spec §10). */
.ui-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding-top: 4px;
}
.ui-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.ui-code {
	margin: 0;
	padding: 16px var(--ui-pad);
	font-family: var(--font-code);
	font-size: 0.8125rem;
	line-height: 1.7;
	white-space: pre;
	overflow-x: auto;
	color: #121212;
	background: #fff;
}
.ui-code .k {
	font-weight: 600;
}
.ui-code .c {
	color: #5c5c56;
}
.ui-code .v {
	color: #00703f;
}
.ui-code mark {
	background: #ffcc00;
	color: #121212;
	padding: 0 2px;
}
.ui-dark {
	background: #121212;
	color: #f4f4f2;
}
.ui-dark .ui-k {
	color: #a8a8a0;
}
.ui-dark .ui-rows li {
	border-color: #2e2e2b;
}
.ui-dark .ui-ok {
	color: #3fbf7f;
}
.ui-dark .ui-head {
	background: #000;
}

/* -------------------------------------------------------------- Problem: poster lines */
.posters {
	background: var(--ground);
}
.posters__title {
	max-width: 22ch;
}
.posters__list {
	list-style: none;
	margin-top: clamp(3rem, 8vh, 5rem);
}
.poster {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 44ch);
	align-items: last baseline;
	column-gap: var(--s6);
	padding-block: 0.1em;
}
.poster__big {
	font-family: var(--font-sign);
	font-weight: 700;
	font-size: var(--step-display);
	line-height: 0.92;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	transition: color var(--t-mid) var(--ease-out);
}
.poster:hover .poster__big {
	color: var(--muted);
}
.poster__fact {
	padding-bottom: 0.35em;
}
.poster__src {
	color: var(--muted);
}
.posters__quote {
	margin: clamp(4rem, 10vh, 7rem) 0 0;
	max-width: 34ch;
	font-size: var(--step-lead);
	font-weight: 600;
	line-height: 1.35;
	text-wrap: balance;
}
.posters__quote footer {
	margin-top: var(--s4);
	font-size: var(--step-small);
	font-weight: 400;
	color: var(--muted);
}

/* -------------------------------------------------------- Nobody owns it: many into one */
.owner {
	background: var(--band);
	color: #f4f4f2;
	--muted: #a8a8a0;
}
.owner__intro {
	grid-column: 1 / span 5;
}
.owner__intro p {
	margin-top: var(--s5);
	max-width: 38ch;
}
.owner__diagram {
	grid-column: 1 / -1;
	margin-top: clamp(3rem, 7vh, 5rem);
}
.owner__diagram svg {
	width: 100%;
	height: auto;
}
.mio-tall {
	display: none !important;
}
.owner__thirds {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--col-gap);
	margin-top: var(--s6);
	list-style: none;
}
.owner__thirds h3 {
	font-family: var(--font-text);
	font-size: var(--step-lead);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}
.owner__thirds p {
	margin-top: var(--s2);
	max-width: 34ch;
	color: #f4f4f2;
}
.dot-scatter {
	fill: #3a3a37;
}
.dot-scatter.alt {
	fill: #5c5c56;
}
.dot-ribbon {
	fill: #f4f4f2;
}
.dot-row {
	fill: #ffcc00;
}

/* ---------------------------------------------------------- Ready in one look: tiles that grow */
.grow__head {
	grid-column: 1 / span 7;
	grid-row: 1;
	align-self: start;
}
.grow__head p {
	margin-top: var(--s5);
	max-width: 40ch;
}
.grow__tiles {
	grid-column: 1 / -1;
	grid-row: 1 / span 2;
	display: grid;
	grid-template-columns: subgrid;
	align-items: end;
}
.tile {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.tile__field {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: clamp(12px, 1.4vw, 24px);
	overflow: hidden;
	border-radius: var(--radius);
}
.tile--1 {
	grid-column: 1 / span 3;
}
.tile--1 .tile__field {
	min-height: 34vh;
	background: var(--sunk);
}
.tile--2 {
	grid-column: 4 / span 4;
}
.tile--2 .tile__field {
	min-height: 48vh;
	background: #121212;
}
.tile--3 {
	grid-column: 8 / span 5;
}
.tile--3 .tile__field {
	min-height: 64vh;
	background: var(--yellow);
}
.tile__field [data-ui] {
	width: 100%;
}
.tile__name {
	margin-top: var(--s4);
	font-family: var(--font-text);
	font-size: var(--step-lead);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}
.tile__text {
	margin-top: var(--s1);
	max-width: 36ch;
}
.grow {
	position: relative;
}
.grow .grid {
	grid-template-rows: auto auto;
	row-gap: 0;
}
.grow__spacer {
	grid-column: 1 / span 7;
	grid-row: 2;
}

/* ------------------------------------------------------------------ Timeline: one bar */
.bar__title {
	max-width: 22ch;
}
.bar {
	display: flex;
	gap: 6px;
	height: 22vh;
	min-height: 150px;
	margin-top: 64px;
}
.bar__seg {
	position: relative;
	min-width: 12%;
	padding: 20px;
	border-radius: var(--radius);
	overflow: hidden;
}
.bar__seg b {
	display: block;
	font-family: var(--font-sign);
	font-weight: 700;
	font-size: var(--step-lead);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.bar__seg span {
	display: block;
	margin-top: 6px;
	font-size: var(--step-small);
	font-weight: 600;
}
.seg--triage {
	background: var(--sunk);
	color: var(--ink);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .seg--triage {
		background: #46463f; /* --sunk is near black in dark; triage must still read apart from pre-flight */
	}
}
:root[data-theme="dark"] .seg--triage {
	background: #46463f;
}
.seg--preflight {
	background: #121212;
	color: #f4f4f2;
}
.seg--fix {
	background: #00703f;
	color: #fff;
}
.seg--ci {
	background: var(--panel);
	color: var(--ink);
	box-shadow: inset 0 0 0 2px var(--rule-strong); /* taste-skill-ignore: segment edge inside the [data-ui] bar */
}
.seg--ready {
	flex: 0 0 auto;
	min-width: 0;
	width: clamp(64px, 7vw, 120px);
	background: var(--yellow);
	color: var(--yellow-ink);
}
.bar__clauses {
	display: flex;
	gap: 6px;
	margin-top: var(--s4);
	list-style: none;
}
.bar__clauses li {
	min-width: 12%;
	padding-right: 12px;
}
.bar__clauses p {
	max-width: 22ch;
}
.bar__clauses li:last-child {
	flex: 0 0 auto;
	width: clamp(64px, 7vw, 120px);
	padding-right: 0;
}
.bar__note {
	margin-top: var(--s6);
	max-width: 60ch;
}

/* -------------------------------------------------------------- The dial: sentences with switches */
.dial__head {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s6) var(--col-gap);
	align-items: end;
	padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.dial__intro {
	grid-column: 1 / span 6;
}
.dial__intro p {
	margin-top: var(--s5);
	max-width: 46ch;
}
.ladder {
	grid-column: 8 / -1;
	display: grid;
	gap: 14px;
	list-style: none;
}
.ladder li {
	display: grid;
	grid-template-columns: auto 6.5em 1fr;
	align-items: baseline;
	gap: 12px;
}
.ladder .bullet {
	align-self: center;
	font-size: 1.125rem;
}
.ladder b {
	font-weight: 600;
}
.dial__bands {
	list-style: none;
}
.dial__band {
	position: relative;
	min-height: 20vh;
	display: flex;
	align-items: center;
	background: var(--ground);
	color: var(--muted);
	transition:
		background-color var(--t-mid) var(--ease-out),
		color var(--t-mid) var(--ease-out);
}
.dial__bands {
	display: grid;
	gap: 2px;
	background: var(--sunk);
}
.dial__band.is-on {
	background: #121212;
	color: #f4f4f2;
}
.dial__band.is-on.is-person {
	background: var(--yellow);
	color: var(--yellow-ink);
}
.dial__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--s5);
	width: 100%;
	padding-block: var(--s5);
}
.dial__sentence {
	font-family: var(--font-sign);
	font-weight: 600;
	font-size: var(--step-h2);
	line-height: 1.02;
	letter-spacing: -0.01em;
}
.dial__consequence {
	display: none;
	margin-top: var(--s2);
	max-width: 60ch;
}
.dial__band.is-on .dial__consequence {
	display: block;
}
.dial__band .switch {
	font-size: 1.5rem;
}
.dial__band.is-on .switch[aria-checked="true"] .switch__track {
	background: #f4f4f2;
}
.dial__band.is-on .switch[aria-checked="true"] .switch__track::after {
	background: #121212;
}
.dial__band.is-on.is-person .switch[aria-checked="true"] .switch__track {
	background: #121212;
}
.dial__band.is-on.is-person .switch[aria-checked="true"] .switch__track::after {
	background: var(--yellow);
}
.dial__band :focus-visible {
	outline-color: currentColor;
}
.dial__file {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--col-gap);
	align-items: start;
	margin-top: clamp(3rem, 7vh, 5rem);
}
.dial__file-copy {
	grid-column: 1 / span 4;
}
.dial__file-copy p + p {
	margin-top: var(--s4);
}
.dial__file-code {
	grid-column: 5 / -1;
}
.dial__levels {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-top: var(--s5);
	list-style: none;
}
.dial__levels li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

/* ------------------------------------------------------- Refusals: statement, table pushed right */
.refuse__title {
	max-width: 22ch;
}
.refuse__body {
	margin-top: 96px;
}
.refuse__sign {
	grid-column: 1 / span 4;
	grid-row: 1;
	align-self: start;
	position: sticky;
	top: calc(var(--band-h) + 18vh);
	width: min(24vw, 360px);
	height: auto;
}
.refuse__name {
	grid-column: 6;
	grid-row: 1;
	font-size: var(--step-small);
	font-weight: 600;
	padding-top: 4px;
}
.refuse__table {
	grid-column: 7 / -1;
	grid-row: 1;
	border-collapse: collapse;
	width: 100%;
}
.refuse__table th,
.refuse__table td {
	text-align: start;
	vertical-align: top;
	padding: 13px 0;
	font-size: 1rem;
	line-height: 1.45;
}
.refuse__table th {
	width: 48%;
	padding-right: 20px;
	font-weight: 600;
}
.refuse__table th .status {
	white-space: normal;
	align-items: flex-start;
}
.refuse__table th .mark {
	margin-top: 2px;
}
.refuse__table td {
	color: var(--ink);
}
.refuse__table tr.gap th,
.refuse__table tr.gap td {
	padding-top: 44px;
}

/* ------------------------------------------------------------- Security: side facts, wide paragraph */
.secure {
	background: var(--sunk);
}
.secure__grid {
	display: grid;
	grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
	gap: var(--s7) clamp(2rem, 5vw, 6rem);
	align-items: start;
}
.secure__text {
	grid-column: 2;
	grid-row: 1;
}
.secure__facts {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: grid;
	gap: var(--s5);
	list-style: none;
	padding-top: var(--s2);
}
.secure__facts dt {
	color: var(--muted);
	font-size: var(--step-small);
	font-weight: 600;
}
.secure__facts dd {
	margin: 2px 0 0;
	font-weight: 600;
	line-height: 1.35;
}
.secure__text p {
	margin-top: var(--s5);
	max-width: 58ch;
}
.secure__text .lead {
	margin-top: var(--s5);
	max-width: 44ch;
}
.perm {
	grid-column: 2;
	grid-row: 2;
	width: 100%;
	border-collapse: collapse;
	background: var(--panel);
}
.perm caption {
	text-align: start;
	padding-bottom: var(--s3);
	font-weight: 600;
}
.perm th,
.perm td {
	padding: 11px 16px;
	text-align: start;
	font-size: 0.9375rem;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}
.perm thead th {
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 600;
}
.perm td.no {
	color: var(--red);
	font-weight: 600;
}

/* -------------------------------------------------------------- Surfaces: object on a disc */
.disc-sec {
	min-height: 100svh;
}
.disc-sec .grid {
	align-items: center;
	min-height: 86svh;
}
.disc-sec__side {
	grid-column: 1 / span 5;
	grid-row: 1;
	align-self: end;
}
.disc-sec__title {
	color: var(--muted);
	font-size: var(--step-h2);
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.disc-sec__list {
	list-style: none;
}
.disc-sec__list button {
	display: block;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-family: var(--font-sign);
	font-weight: 700;
	font-size: var(--step-h2);
	line-height: 1.05;
	letter-spacing: -0.015em;
	text-align: start;
	cursor: pointer;
	transition: color var(--t-mid) var(--ease-out);
}
.disc-sec__list button:hover {
	color: var(--ink);
}
.disc-sec__list button[aria-selected="true"] {
	color: var(--ink);
}
.disc-sec__list button[aria-selected="true"]::before {
	content: "";
	display: inline-block;
	width: 0.42em;
	height: 0.42em;
	margin-right: 0.3em;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 0.12em;
}
.disc-sec__stage {
	grid-column: 6 / -1;
	grid-row: 1;
	position: relative;
	display: grid;
	place-items: center;
	min-height: 72svh;
}
.disc {
	position: absolute;
	width: min(64vh, 46vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--yellow);
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: background-color 300ms var(--ease-out);
}
.disc[data-tone="ink"] {
	background: #121212;
}
.disc[data-tone="sunk"] {
	background: var(--sunk);
}
.disc[data-tone="green"] {
	background: #00703f;
}
.disc-sec__panels {
	position: relative;
	z-index: 1;
	width: min(480px, 92%);
	display: grid;
}
.disc-sec__panel {
	grid-area: 1 / 1;
	align-self: center;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 300ms var(--ease-out),
		visibility 0s linear 300ms;
}
.disc-sec__panel.is-on {
	opacity: 1;
	visibility: visible;
	transition:
		opacity 300ms var(--ease-out),
		visibility 0s;
}
.disc-sec__fact {
	grid-column: 6 / -1;
	grid-row: 2;
	justify-self: end;
	max-width: 40ch;
	margin-top: var(--s4);
	text-align: end;
}

/* ----------------------------------------------------- Proof: who it works with, as a station sign */
.names__intro {
	grid-column: 1 / span 4;
	align-self: start;
	position: sticky;
	top: calc(var(--band-h) + 32px);
}
.names__intro p {
	margin-top: var(--s5);
	max-width: 38ch;
}
.names__lines {
	grid-column: 6 / -1;
	display: grid;
}
.names__lines > div {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr);
	gap: var(--s4);
	align-items: baseline;
	padding: var(--s4) 0 var(--s5);
	border-top: 2px solid var(--ink);
}
.names__lines > div:last-child {
	border-bottom: 2px solid var(--ink);
}
.names__lines dt {
	color: var(--muted);
	font-size: var(--step-small);
	font-weight: 600;
}
.names__lines dd {
	margin: 0;
	font-size: var(--step-lead);
	font-weight: 600;
	line-height: 1.5;
}
.names__lines dd span {
	white-space: nowrap;
}
.names__lines dd span:not(:last-child)::after {
	/* a station ring between names */
	content: "";
	display: inline-block;
	width: 0.36em;
	height: 0.36em;
	margin: 0 0.4em 0 0.45em;
	border: 0.1em solid currentColor;
	border-radius: 50%;
	vertical-align: 0.12em;
}
.names__lines dd span:last-child {
	white-space: normal;
}
/* A host and its state stay on one line where the line can hold them, so the state never wraps alone. */
@media (min-width: 400px) {
	.names__lines dd span.names__whole {
		white-space: nowrap;
	}
}
.names__lines small {
	margin-left: 0.15em;
	font-size: var(--step-small);
	font-weight: 500;
	color: var(--muted);
}
.names__note {
	grid-column: 6 / -1;
	margin-top: var(--s4);
	max-width: 60ch;
}

/* ----------------------------------------------------------------- Cost: figure set by a slider */
.figure-sec {
	background: var(--band);
	color: #f4f4f2;
	--muted: #a8a8a0;
	min-height: 88svh;
	display: flex;
}
.figure-sec .wrap {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--s8);
}
.figure-sec__control {
	margin-top: 28px;
	width: min(400px, 100%);
	display: grid;
	gap: 10px;
}
.figure-sec__control label {
	display: flex;
	justify-content: space-between;
	gap: var(--s4);
	font-weight: 600;
}
.figure-sec__control output {
	font-variant-numeric: tabular-nums;
}
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 44px;
	background: transparent;
	cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: #46463f;
}
input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: #46463f;
}
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	margin-top: -11px;
	border-radius: 50%;
	background: var(--yellow);
	border: 3px solid #121212;
	box-shadow: 0 0 0 2px var(--yellow); /* taste-skill-ignore: slider thumb ring, a form control */
}
input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--yellow);
	border: 3px solid #121212;
}
input[type="range"]:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 2px;
}
.figure-sec__result {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(14rem, 30ch);
	align-items: last baseline;
	gap: var(--s6);
}
.figure-sec__num {
	font-family: var(--font-sign);
	font-weight: 800;
	font-size: clamp(5rem, 2rem + 14vw, 16rem);
	line-height: 0.8;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.figure-sec__num small {
	font-family: var(--font-sign);
	font-size: var(--step-h2);
	font-weight: 600;
	letter-spacing: 0;
	margin-left: 0.25em;
}

/* --------------------------------------------------------------------- Pricing: two fields */
.plans {
	display: grid;
	grid-template-columns: 5fr 7fr;
	min-height: 90svh;
}
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 40px max(var(--margin), 40px);
}
.plan--free {
	background: var(--sunk);
	color: var(--ink);
}
.plan--act {
	background: var(--band);
	color: #f4f4f2;
	--muted: #a8a8a0;
}
.plan h3 {
	font-size: var(--step-h2);
}
.plan__for {
	margin-top: var(--s3);
	max-width: 26ch;
	font-size: var(--step-lead);
	font-weight: 500;
	line-height: 1.35;
}
.plan__includes {
	margin-top: var(--s5);
	max-width: 46ch;
}
.plan__foot {
	margin-top: auto;
	padding-top: var(--s7);
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s4);
}
.plan__price {
	font-family: var(--font-sign);
	font-weight: 800;
	font-size: var(--step-display);
	line-height: 0.85;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.plan__note {
	margin-top: 10px;
	max-width: 26ch;
}
.pricing__head {
	padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.pricing__head p {
	margin-top: var(--s4);
	max-width: 56ch;
}
/* What runs today and what is next: one line, four stations, one per class (#637) */
.ships {
	padding-top: var(--s7);
}
.ships__title {
	font-size: var(--step-lead);
	font-weight: 600;
}
.ships__line {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--s5);
	margin-top: var(--s5);
}
.ships__line li {
	position: relative;
	display: grid;
	align-content: start;
	gap: 6px;
	padding-top: 40px;
}
.ships__line li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 11px;
	right: calc(-1 * var(--s5) - 11px);
	height: 4px;
	background: var(--ink);
}
.ships__line li:last-child::before {
	display: none;
}
.ships__line li::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	border: 4px solid var(--ink);
	border-radius: 50%;
	background: var(--ground);
}
.ships__line li:first-child::after {
	background: var(--ink);
}
.ships__line b {
	font-weight: 600;
}
.ships__line span {
	color: var(--muted);
	max-width: 30ch;
	text-wrap: pretty;
}
@media (min-width: 600px) and (max-width: 1023px) {
	/* Tablet: the line runs down the left, each station's name and text side by side. */
	.ships__line li {
		grid-template-columns: 11em minmax(0, 1fr);
		column-gap: var(--s5);
	}
	.ships__line span {
		max-width: 56ch;
	}
}
.pricing__enterprise {
	margin-top: var(--s6);
	padding-bottom: var(--s6);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3) var(--s6);
	align-items: baseline;
}

/* --------------------------------------------------------------------------- FAQ */
.faq .grid {
	align-items: start;
}
.faq__head {
	grid-column: 1 / span 4;
	position: sticky;
	top: calc(var(--band-h) + 32px);
}
.faq__list {
	grid-column: 5 / -1;
	display: grid;
	gap: 8px;
}
.faq details {
	border-radius: var(--radius);
	background: var(--sunk);
	transition: background-color var(--t-mid) var(--ease-out);
}
.faq details[open] {
	background: var(--sunk);
}
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s4);
	min-height: 72px;
	padding: 12px 24px;
	font-weight: 600;
	font-size: var(--step-lead);
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary:focus-visible {
	outline-offset: -3px;
}
.faq__plus {
	position: relative;
	width: 16px;
	height: 16px;
	flex: none;
}
.faq__plus::before,
.faq__plus::after {
	content: "";
	position: absolute;
	left: 0;
	top: 6.5px;
	width: 16px;
	height: 3px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--t-mid) var(--ease-out);
}
.faq__plus::after {
	transform: rotate(90deg);
}
.faq details[open] .faq__plus::after {
	transform: rotate(0deg);
}
.faq__answer {
	padding: 0 24px 24px;
	max-width: 58ch;
}
.faq__answer p + p {
	margin-top: var(--s3);
}

/* ----------------------------------------------------------------- CTA: a sentence with a blank */
.cta__form {
	font-family: var(--font-sign);
	font-weight: 700;
	font-size: var(--step-h2);
	line-height: 1.12;
	letter-spacing: -0.015em;
}
.cta__sentence {
	max-width: none;
}
.cta__input {
	display: inline-block;
	width: 7.4em;
	height: 1.12em;
	padding: 0 0.25em;
	border: 0;
	border-bottom: 0.07em solid var(--control-edge);
	border-radius: var(--radius);
	background: var(--sunk);
	font: inherit;
	letter-spacing: inherit;
	vertical-align: -0.12em;
}
.cta__input::placeholder {
	color: var(--muted);
}
.cta__input:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}
.cta__btn {
	display: inline-block;
	height: 1.12em;
	padding: 0 0.35em;
	border: 0;
	border-radius: var(--pill);
	background: var(--yellow);
	color: var(--yellow-ink);
	font: inherit;
	letter-spacing: inherit;
	line-height: 1.12;
	vertical-align: -0.12em;
	cursor: pointer;
	transition:
		transform var(--t-fast) var(--ease-out),
		background-color var(--t-fast) var(--ease-out);
}
.cta__btn:hover {
	background: #f2c200;
}
.cta__btn:active {
	transform: scale(0.98);
}
.cta__after {
	margin-top: var(--s5);
	max-width: 60ch;
}

/* ----------------------------------------------------------------------- Footer: the mark, built large */
.foot {
	background: var(--band);
	color: #f4f4f2;
	--muted: #a8a8a0;
	padding-block: clamp(3rem, 8vh, 6rem) var(--s6);
}
/* full bleed: the route comes in at the left edge of the screen and leaves by the right */
.foot__mark svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 360px;
}
.foot__cols {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--s6) var(--col-gap);
	margin-top: 56px;
}
.foot__col {
	grid-column: span 2;
}
.foot__col h3 {
	font-family: var(--font-text);
	font-size: var(--step-small);
	font-weight: 600;
	letter-spacing: 0;
	color: var(--muted);
}
.foot__col ul {
	list-style: none;
	margin-top: var(--s2);
}
.foot__col a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 0.9375rem;
	color: #f4f4f2;
	text-decoration: none;
}
.foot__col a:hover {
	text-decoration: underline;
}
.foot__wait {
	grid-column: 9 / -1;
}
.foot__wait form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: var(--s3);
}
.foot__wait .input,
.foot__wait .select {
	background: #1c1c1a;
	border-color: #76766f;
	color: #f4f4f2;
}
.foot__wait .input::placeholder {
	color: #a8a8a0;
}
.foot__wait .btn {
	grid-column: 1 / -1;
	justify-self: start;
}
.foot__wait :focus-visible {
	outline-color: var(--yellow);
}
.foot__wait-done {
	margin-top: var(--s3);
}
.foot__wait-done:empty {
	margin-top: 0;
}
.foot__wait-done {
	color: var(--yellow);
	font-weight: 600;
}
.foot__last {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s4);
	margin-top: var(--s8);
	font-size: var(--step-small);
	color: var(--muted);
}
.foot__last a:not(.btn) {
	color: inherit;
}
.foot :focus-visible {
	outline-color: var(--yellow);
}

/* ---------------------------------------------------------------------------- Phone */
@media (max-width: 1023px) {
	.hero {
		display: block;
		min-height: 0;
	}
	.hero__copy {
		padding-block: 40px 0;
	}
	.hero__copy > *,
	.hero h1 {
		max-width: 100%;
	}
	/* The policy card sits in the flow, so the visual grows with the file it shows rather than clipping its top. */
	.hero__visual {
		position: relative;
		inset: auto;
		min-height: min(150vw, 760px);
		margin-top: 48px;
		padding: 24px var(--margin) 128px;
		overflow: hidden;
	}
	/* Held to the visual's foot, so the route out of the card always runs into the station however long the file. */
	.station {
		width: auto;
		height: max(100%, 150vw);
		aspect-ratio: 1;
		left: 18vw;
		top: auto;
		bottom: calc(var(--d) * -0.15);
		transform: none;
	}
	.stage {
		position: relative;
		left: auto;
		right: auto;
		width: auto;
		top: auto;
		transform: none;
	}
	.poster {
		grid-template-columns: 1fr;
	}
	.poster__big {
		font-size: clamp(2.75rem, 12vw, 5rem);
	}
	.poster__fact {
		margin-top: 8px;
		padding-bottom: 56px;
	}
	.owner__intro {
		grid-column: 1 / -1;
	}
	.owner__diagram {
		grid-column: 1 / span 6;
		grid-row: 2 / span 3;
		margin-top: var(--s7);
	}
	.mio-wide {
		display: none !important;
	}
	.mio-tall {
		display: block !important;
	}
	.owner__thirds {
		display: contents;
	}
	.owner__thirds li {
		grid-column: 7 / -1;
		align-self: center;
		padding-left: 4px;
	}
	.owner__thirds li:nth-child(1) {
		grid-row: 2;
		margin-top: var(--s7);
	}
	.owner__thirds li:nth-child(2) {
		grid-row: 3;
	}
	.owner__thirds li:nth-child(3) {
		grid-row: 4;
	}
	.owner__thirds p {
		font-size: 1rem;
	}
	.grow__head,
	.grow__spacer {
		grid-column: 1 / -1;
	}
	.grow .grid {
		grid-template-rows: auto;
	}
	.grow__tiles {
		grid-row: auto;
		grid-template-columns: 1fr;
		gap: 28px;
		margin-top: var(--s7);
	}
	.tile--1,
	.tile--2,
	.tile--3 {
		grid-column: 1 / -1;
	}
	.tile .tile__field {
		min-height: 0 !important;
		padding: 14px;
	}
	.bar {
		flex-direction: column;
		height: auto;
		min-height: 70svh;
	}
	.bar__seg {
		min-height: 72px;
	}
	.seg--ready {
		width: auto;
		min-height: 72px;
	}
	.bar__clauses {
		display: none;
	}
	.bar__seg p {
		margin-top: 8px;
		font-size: 1rem;
		max-width: 40ch;
	}
	.dial__row {
		padding-block: var(--s4);
	}
	.dial__band {
		min-height: 132px;
	}
	.dial__sentence {
		font-size: clamp(1.5rem, 6.4vw, 2rem);
		line-height: 1.12;
	}
	.dial__file-copy,
	.dial__file-code,
	.dial__intro,
	.ladder {
		grid-column: 1 / -1;
	}
	.ladder li {
		grid-template-columns: auto 1fr;
	}
	.ladder li span:last-child {
		grid-column: 2;
	}
	.refuse__title {
		text-indent: 0;
	}
	.refuse__name,
	.refuse__sign {
		display: none;
	}
	.refuse__table {
		grid-column: 1 / -1;
	}
	.refuse__table th,
	.refuse__table td {
		display: block;
		width: auto;
		padding: 0;
	}
	.refuse__table tr {
		display: block;
		padding-block: 14px;
	}
	.refuse__table td {
		margin-top: 4px;
	}
	.refuse__table tr.gap th,
	.refuse__table tr.gap td {
		padding-top: 0;
	}
	.secure__grid {
		grid-template-columns: 1fr;
	}
	.secure__text,
	.secure__facts,
	.perm {
		grid-column: 1;
		grid-row: auto;
	}
	.disc-sec .grid {
		min-height: 0;
	}
	.disc-sec__stage {
		grid-column: 1 / -1;
		grid-row: 2;
		min-height: 108vw;
	}
	.disc {
		width: 86vw;
	}
	.disc-sec__side {
		display: contents;
	}
	.disc-sec__title {
		grid-column: 1 / -1;
		grid-row: 1;
		margin-bottom: var(--s4);
	}
	.disc-sec__list {
		grid-column: 1 / -1;
		grid-row: 3;
		display: flex;
		flex-wrap: wrap;
		gap: 4px 20px;
		padding-block: 8px;
		margin-top: var(--s5);
	}
	.disc-sec__list li {
		flex: none;
	}
	.disc-sec__list button {
		font-size: var(--step-lead);
		white-space: nowrap;
	}
	.disc-sec__fact {
		grid-column: 1 / -1;
		grid-row: 4;
		justify-self: start;
		text-align: start;
	}
	.phone-only {
		display: block !important;
	}
	.names__intro,
	.names__lines,
	.names__note {
		grid-column: 1 / -1;
	}
	.names__intro {
		position: static;
	}
	.names__lines {
		margin-top: var(--s6);
	}
	.names__lines > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.figure-sec__result {
		grid-template-columns: 1fr;
	}
	.figure-sec__num {
		font-size: 30vw;
	}
	.plans {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.ships__line {
		grid-template-columns: 1fr;
		row-gap: var(--s5);
	}
	.ships__line li {
		padding: 0 0 0 40px;
	}
	.ships__line li::before {
		top: 11px;
		bottom: calc(-1 * var(--s5) - 11px);
		left: 9px;
		right: auto;
		width: 4px;
		height: auto;
	}
	.plan {
		min-height: 70svh;
		padding: 56px var(--margin) 40px;
	}
	.plan__foot .btn {
		width: 100%;
	}
	.faq__head {
		grid-column: 1 / -1;
		position: static;
		margin-bottom: var(--s5);
	}
	.faq__list {
		grid-column: 1 / -1;
	}
	.faq summary {
		min-height: 64px;
		padding: 12px 20px;
	}
	.faq__answer {
		padding: 0 20px 20px;
	}
	.cta__form {
		font-size: clamp(2rem, 10vw, 3rem);
	}
	.cta__input {
		display: block;
		width: 100%;
		height: 1.3em;
		margin-block: 0.1em;
	}
	.foot__col {
		grid-column: span 6;
	}
	.foot__wait {
		grid-column: 1 / -1;
	}
	.foot__wait form {
		grid-template-columns: 1fr;
	}
}
.phone-only {
	display: none;
}

body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	height: env(safe-area-inset-top, 0px);
	z-index: 30;
	background: var(--band);
}

/* Reflow: on phones the hero's policy text wraps its longest lines rather than scrolling or clipping. */
@media (max-width: 420px) {
	.stage .ui-code {
		white-space: pre-wrap;
		overflow-wrap: anywhere;
	}
}

/* ---------------------------------------------------------------- Legal pages (#636) */
/* A reading page: the sign band, one column of body text at 65ch, the document's version and date under its title. */
.legal {
	padding-block: var(--s8) var(--s10);
}
.legal__head {
	max-width: 65ch;
	margin-bottom: var(--s7);
}
.legal__facts {
	margin-top: var(--s3);
	color: var(--muted);
}
.legal__body {
	max-width: 65ch;
}
.legal__body h2 {
	font-size: var(--step-lead);
	margin-top: var(--s7);
}
.legal__body h3 {
	font-size: var(--step-body);
	margin-top: var(--s5);
}
.legal__body p,
.legal__body ul,
.legal__body table {
	margin-top: var(--s3);
}
.legal__body ul {
	padding-inline-start: 1.25em;
}
.legal__body li + li {
	margin-top: var(--s1);
}
.legal__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--step-small);
}
.legal__body th,
.legal__body td {
	padding: var(--s2) var(--s3) var(--s2) 0;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}
/* A fact only the owner can supply: marked, never passed off as filled in. */
.legal__placeholder {
	padding: 0 4px;
	background: var(--sunk);
	outline: 1px dashed var(--rule-strong);
}
/* A draft says so before anything else on the page (`status: draft` in packages/auth/src/legal.ts). */
.legal__draft {
	max-width: 65ch;
	margin-bottom: var(--s6);
	padding: var(--s4) var(--s5);
	background: var(--sunk);
	border-left: 4px solid var(--ink);
	font-weight: 600;
}
/* Which version is in force, on a draft's page, and where the draft of the next one is, on a version's (#636). */
.legal__next {
	max-width: 65ch;
	margin-bottom: var(--s6);
	color: var(--muted);
}
.legal__docs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2) var(--s5);
	list-style: none;
}
.legal__docs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #f4f4f2;
}

/* ---------------------------------------------------------------- What runs today (#637) */
/* The legal pages' reading column, with the one table wider than it: on a phone the table scrolls, never the page. */
.capabilities .legal__body {
	max-width: 110ch;
}
.capabilities .legal__body > p,
.capabilities .legal__body > ul,
.capabilities .legal__body > h2,
.capabilities #release > p {
	max-width: 65ch;
}
.capabilities__scroll {
	overflow-x: auto;
}
.capabilities__scroll table {
	min-width: 720px;
}
.capabilities__class th {
	padding-top: var(--s6);
	font-weight: 600;
	border-bottom: 2px solid var(--ink);
}
.capabilities td code,
.capabilities th code {
	overflow-wrap: anywhere;
}
.ships__more {
	margin-top: var(--s5);
}
