/* Uniqorn v2. Light memo look; the descent is the only dark part of the site. */

/* v1's title face: a thin variable sans, for headings and the brand name */
@font-face { font-family: 'title'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/title.ttf) format('truetype'); }

:root {
	--paper: #ffffff;
	--paper-2: #f5f4f0;
	--ink: #111111;
	--ink-soft: #4b4b4b;
	--rule: #d9d7d0;
	--indigo: #5b6390;
	--orange: #d86c39;
	--deep: #121318;

	--serif: Cambria, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--title: title, "Segoe UI", system-ui, sans-serif;
	--mono: "Courier New", Courier, ui-monospace, monospace;

	--col: 42rem;
	--wide: 72rem;
	--gutter: clamp(1rem, 4vw, 3rem);

	--radius: 10px;
	--soft: 0 1px 2px rgba(17, 17, 17, 0.06), 0 8px 24px rgba(17, 17, 17, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.125rem/1.6 var(--serif);
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.btn {
	display: inline-block;
	padding: 0.9rem 1.5rem;
	background: #bf5524;
	color: #fff;
	font: 700 0.95rem/1 var(--mono);
	letter-spacing: 0.02em;
	text-decoration: none;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(17, 17, 17, 0.12), 0 4px 14px rgba(216, 108, 57, 0.28);
	transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #a6461b; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

/* ---------- top bar ---------- */

.top {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 1.25rem var(--gutter);
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 200 1.6rem/1 var(--title); letter-spacing: 0.08em; text-transform: uppercase; }
.brand img { width: 2rem; height: auto; }
.top nav { margin-left: auto; display: flex; gap: 1.5rem; align-items: center; font: 400 0.95rem/1 var(--mono); }
.top nav a { text-decoration: none; white-space: nowrap; }
.top nav a:hover { text-decoration: underline; }
.top nav .gh { border: 1px solid var(--ink); border-radius: 8px; padding: 0.5rem 0.85rem; font-weight: 700; }

/* ---------- the tip: what you asked for ---------- */

.tip {
	max-width: var(--wide);
	margin: 0 auto;
	padding: clamp(2rem, 7vh, 5rem) var(--gutter) 3rem;
	/* top bar + hero fill the first screen (the bar is ~4.7rem: 1.25rem padding twice + the 35px logo) */
	min-height: calc(100vh - 4.7rem); min-height: calc(100svh - 4.7rem);
	align-content: center;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}
.tip h1 {
	margin: 1rem 0 1.5rem;
	font: 300 clamp(2.8rem, 5.4vw, 4.2rem)/1.05 var(--title);
	letter-spacing: -0.01em;
}
.tip h1 span { display: block; }
@media (min-width: 861px) { .tip h1 span { white-space: nowrap; } }
.tip h1 span:last-child { color: var(--orange); }
.tip .lede { margin: 0 0 2rem; font-size: 1.25rem; max-width: 30rem; }
.tip .terms { margin: 1.25rem 0 0; font: 400 0.85rem/1.5 var(--mono); color: var(--ink-soft); max-width: 30rem; }

/* a familiar AI chat: the request, and a finished result */
.chat {
	display: flex; flex-direction: column; gap: 1.1rem;
	padding: 1.5rem;
	background: #f4f4f6;
	border-radius: 18px;
	font: 400 0.98rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #1f1f24;
}
.msg.me { align-self: flex-end; max-width: 82%; padding: 0.75rem 1rem; background: #e3e3e8; border-radius: 18px 18px 4px 18px; }
.msg.ai { display: flex; gap: 0.75rem; align-items: flex-start; }
.spark { flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; fill: var(--indigo); }
.msg.ai .body { flex: 1; min-width: 0; }
.msg.ai p { margin: 0 0 0.75rem; }
.result { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.07); overflow: hidden; }
.result .bar { display: flex; align-items: center; gap: 0.3rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid #ececf0; font-size: 0.8rem; font-weight: 600; }
.result .bar i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #dcdce2; }
.result .bar span { margin-left: 0.5rem; }
.result .rows { padding: 0.4rem 0.8rem 0.7rem; }
.result .r { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid #f1f1f4; }
.result .r:last-child { border-bottom: 0; }
.result .r b { height: 0.5rem; border-radius: 4px; background: #d9d9e0; }
.result .r em { margin-left: auto; width: 4.2rem; height: 1.1rem; border-radius: 999px; }
.result em.late { background: #f6c9bd; }
.result em.due { background: #f8e2b0; }
.result em.ok { background: #cfe8d2; }
.chat .input { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 0.7rem 0.7rem 1rem; background: #fff; border-radius: 999px; border: 1px solid #e3e3e8; color: #8a8a94; }
.chat .input svg { width: 2rem; height: 2rem; padding: 0.4rem; border-radius: 50%; background: #1f1f24; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the descent ----------
   Without JS (or with reduced motion) it is a static dark patchwork that reads top to bottom.
   With JS, html.descent-live turns it into a sticky frame that fills up as you scroll. */

.descent { background: var(--deep); color: var(--paper); padding: 4rem var(--gutter); }
.descent .frame { max-width: var(--wide); margin: 0 auto; }
.descent .says { max-width: var(--col); margin: 0 auto 2rem; }
.say { margin: 0 0 1.5rem; font: 700 clamp(1.4rem, 3vw, 2rem)/1.25 var(--serif); }
.say small { display: block; margin-top: 0.5rem; font: 400 1.05rem/1.5 var(--serif); }
.descent .gauge { display: none; }

.field { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.patch {
	display: inline-block;
	padding: 0.35rem 0.6rem;
	font: 700 0.8rem/1.2 var(--mono);
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--ink);
	border-radius: 4px;
	white-space: nowrap;
}
/* licence excerpts: verbatim, the liability clause highlighted */
.patch.lic { white-space: normal; width: 19rem; padding: 0.7rem 0.8rem; font: 400 0.7rem/1.45 var(--mono); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.patch.lic b { display: block; margin-bottom: 0.4rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--rule); letter-spacing: 0.08em; }
.patch.lic .ctx { color: #777; }
.patch.lic mark { background: #ffe066; color: var(--ink); font-weight: 700; padding: 0 0.1em; }
.patch.lic.bill .formula { display: block; font: italic 400 0.85rem/1.7 var(--serif); }
.patch.lic.bill .eq { display: block; text-align: right; font: 700 1.6rem/1 var(--serif); color: #b3361a; }
.patch.f { background: #f6dccd; }
.patch.m { background: #2a2c3a; color: #f2f2f2; border-color: #55586e; }
.patch.c1 { background: #dfe1ee; }
.patch.c2 { background: #e6ead0; }
.patch.c3 { background: #f3d6de; }
.patch.c4 { background: #ecebe6; }

html.descent-live .descent { height: 460vh; padding: 0; background: none; position: relative; }
html.descent-live .descent .frame {
	position: sticky; top: 0;
	height: 100vh; height: 100svh;
	max-width: none;
	overflow: hidden;
	background: var(--paper);
}
html.descent-live .field { display: block; position: absolute; inset: 0; }
html.descent-live .patch {
	position: absolute;
	transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(0.85);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
html.descent-live .patch.on { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); }
html.descent-live .descent .says {
	position: absolute; left: 50%; top: 50%; z-index: 200;
	transform: translate(-50%, -50%);
	width: min(34rem, calc(100% - 2 * var(--gutter)));
	margin: 0;
	background: var(--paper); color: var(--ink);
	border: 1px solid var(--ink);
	border-left: 4px solid var(--orange);
	border-radius: var(--radius);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.22);
	padding: 1.4rem 1.6rem;
	transition: left 0.55s cubic-bezier(0.6, 0, 0.2, 1), top 0.55s cubic-bezier(0.6, 0, 0.2, 1), transform 0.55s cubic-bezier(0.6, 0, 0.2, 1);
}
/* the box starts in the centre, jumps corner to corner, one spot per stage, and lands back in the centre */
html.descent-live .says[data-pos="tl"] { left: var(--gutter); top: var(--below-skip); transform: translate(0, 0); }
html.descent-live .says[data-pos="tr"] { left: calc(100% - var(--gutter)); top: var(--below-skip); transform: translate(-100%, 0); }
html.descent-live .says[data-pos="br"] { left: calc(100% - var(--gutter)); top: calc(100% - var(--gutter)); transform: translate(-100%, -100%); }
html.descent-live .says.measuring { transition: none; }
html.descent-live .say { display: none; margin: 0; }
html.descent-live .say.on { display: block; }
html.descent-live .descent .gauge {
	display: block;
	position: absolute; left: var(--gutter); bottom: 1.25rem; z-index: 200;
	background: var(--paper); color: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 6px;
	padding: 0.4rem 0.6rem;
	font: 700 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}

/* Skip link: pinned top right of both sticky frames for the whole scroll. Only shown when the
   section is live; the static fallback reads top to bottom and needs no skipping. */
.skip { display: none; }
html.descent-live .descent .skip, html.flow-live .flow .skip {
	position: absolute; right: var(--gutter); top: var(--gutter); z-index: 300;
	display: flex; align-items: center; gap: 0.35rem;
	background: var(--paper); color: var(--ink);
	border: 1px solid var(--ink);
	border-radius: 6px;
	padding: 0.35rem 0.5rem 0.35rem 0.6rem;
	font: 700 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
	text-decoration: none;
	opacity: 0; visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}
html.descent-live .descent .skip.on, html.flow-live .flow .skip.on { opacity: 1; visibility: visible; }
.skip svg { width: auto; height: 0.6em; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
html.descent-live .descent .skip:hover, html.flow-live .flow .skip:hover { background: var(--ink); color: var(--paper); }
html.descent-live .descent { --below-skip: calc(var(--gutter) + 2.75rem); }

@media (max-width: 640px) {
	html.descent-live .patch { font-size: 0.68rem; padding: 0.25rem 0.4rem; }
	html.descent-live .patch.lic { width: 15rem; font-size: 0.62rem; }
	html.descent-live .patch.lic .ctx { display: none; }
	html.descent-live .says[data-pos="tl"], html.descent-live .says[data-pos="tr"] { left: 50%; transform: translate(-50%, 0); }
	html.descent-live .says[data-pos="br"] { left: 50%; top: calc(100% - 4rem); transform: translate(-50%, -100%); }
}

/* ---------- the cut ---------- */

.cut {
	background: var(--paper);
	border-top: 6px solid var(--ink);
	min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center;
	padding: 4rem var(--gutter);
}
.cut .inner { max-width: var(--col); margin: 0 auto; width: 100%; }
.cut h2 {
	margin: 0 0 2rem;
	font: 300 clamp(2.6rem, 6.4vw, 4.3rem)/1.05 var(--title);
	letter-spacing: -0.01em;
}
.cut h2 span { display: block; }
.cut h2 span:last-child { color: var(--orange); }
.cut p { margin: 0 0 1.25rem; }

/* ---------- the weight + removed (short variant of descent + cut, index-short.html) ----------
   Two full-height screens: the pile on its own, then what replaces each piece of it. */

.weight {
	background: var(--paper-2);
	min-height: 100vh; min-height: 100svh;
	display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 6vh, 3.5rem);
	padding: 4rem var(--gutter);
	border-top: 1px solid var(--rule);
}
.weight .inner { max-width: 54rem; margin: 0 auto; width: 100%; text-align: center; }
.w-lead { margin: 0; font: 300 clamp(2rem, 4.4vw, 3rem)/1.15 var(--title); }
.w-lead span { display: block; margin-top: 0.4rem; color: var(--ink-soft); font-weight: 200; font-size: 0.7em; }
/* the pile: a loose cloud of tags, named by a hand-drawn brace hanging off to the left */
.w-layers { position: relative; width: fit-content; max-width: 46rem; margin: 0 auto; }
.w-pile { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.9rem 0.8rem; justify-content: center; }
.w-pile .patch { font-size: clamp(0.85rem, 1.6vw, 1.05rem); padding: 0.55rem 0.85rem; box-shadow: 0 3px 10px rgba(17, 17, 17, 0.08); }
.w-pile .patch:nth-child(5n+1) { transform: translateY(2px) rotate(-3.5deg); }
.w-pile .patch:nth-child(5n+2) { transform: translateY(-3px) rotate(2.5deg); }
.w-pile .patch:nth-child(5n+3) { transform: translateY(4px) rotate(-1.5deg); }
.w-pile .patch:nth-child(5n+4) { transform: translateY(-2px) rotate(4deg); }
.w-pile .patch:nth-child(5n) { transform: translateY(3px) rotate(-2.5deg); }
/* more of the same underneath: blurred, faded, half covered, there to be felt rather than read */
.w-pile { position: relative; z-index: 1; }
.w-cloud { position: relative; }
.w-ghosts { position: absolute; inset: 0 1rem; z-index: 0; pointer-events: none; }
.w-ghosts .patch {
	position: absolute; transform: translate(-50%, -50%) rotate(var(--r, 0deg));
	font-size: clamp(0.85rem, 1.6vw, 1.05rem); padding: 0.55rem 0.85rem;
	filter: blur(2.2px); opacity: 0.42;
}
.w-brace { position: absolute; right: calc(100% + 1.25rem); top: -0.5rem; bottom: -0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.w-brace svg { width: 1.4rem; height: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.w-brace svg path { vector-effect: non-scaling-stroke; }
.w-brace span {
	width: 7.5rem; text-align: right; transform: rotate(-5deg);
	font: 400 clamp(1.05rem, 2vw, 1.45rem)/1.15 "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Neue", "Comic Sans MS", cursive;
	color: var(--ink);
}
/* no room on the left: the note sits above the pile instead, without the brace */
@media (max-width: 1100px) {
	.w-brace { position: static; justify-content: center; margin-bottom: 1rem; }
	.w-brace svg { display: none; }
	.w-brace span { width: auto; text-align: center; }
}

.removed .inner { max-width: 48rem; }
.removed .aha { font-size: 1.2rem; margin-bottom: 1.75rem; }
.removed .aha em { font-style: italic; font-weight: 700; color: var(--orange); }
.swap { list-style: none; margin: 0 0 1.75rem; padding: 0; border-top: 1px solid var(--rule); }
.swap li { display: grid; grid-template-columns: 16.5rem 1fr; gap: 1.25rem; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); }
.swap .was { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.swap s.patch { font-size: 0.78rem; padding: 0.25rem 0.55rem; text-decoration: none; }
.swap .now { position: relative; font-size: 1rem; line-height: 1.35; }
/* each label turns into its replacement */
.swap .now::before {
	content: ""; position: absolute; left: -2.1rem; top: 50%; width: 1.35rem; height: 0.8rem; transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M1 6h19M15 1.5 20.5 6 15 10.5' fill='none' stroke='%23d86c39' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.swap code { font: 700 0.95em var(--mono); }
.removed .bet { margin: 0; color: var(--ink-soft); }

@media (max-width: 640px) {
	.swap li { grid-template-columns: 1fr; gap: 0.3rem; }
	.swap .now { padding-left: 1.8rem; }
	.swap .now::before { left: 0; }
}

/* hero illustration: your AI tool -> git push -> Uniqorn */
.tip .kicker { margin: 0; font: 700 0.85rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.tip .lede.own { margin-top: -1.25rem; font-weight: 700; }
.tip .lede code { font: 700 0.9em var(--mono); white-space: nowrap; }
.stack { display: flex; flex-direction: column; align-items: stretch; font: 400 0.95rem/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f1f24; }
.s-card { padding: 1rem 1.2rem 1.1rem; border-radius: 14px; }
.s-card.ai { background: #f4f4f6; }
.s-card.uq { background: #fff; border: 1px solid var(--ink); box-shadow: var(--soft); border-left: 4px solid var(--orange); }
.s-tag { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem; font: 700 0.75rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.s-tag img { width: 1rem; height: auto; }
.s-tag small { margin-left: auto; font-weight: 400; letter-spacing: 0.04em; text-transform: none; color: #7a7a84; }
.s-ask { margin: 0 0 0.6rem auto; max-width: 88%; padding: 0.6rem 0.85rem; background: #e3e3e8; border-radius: 14px 14px 4px 14px; }
.s-file { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
.s-file .spark { width: 1.2rem; height: 1.2rem; margin: 0; }
.s-file code, .s-link code { font: 700 0.85rem var(--mono); }
.s-link { align-self: center; position: relative; padding: 1.1rem 0; }
.s-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed #b9b9c2; }
.s-link code { position: relative; display: block; padding: 0.35rem 0.7rem; background: var(--ink); color: #fff; border-radius: 6px; }
.s-live { display: flex; justify-content: space-between; align-items: center; margin: 0 0 0.6rem; font-weight: 600; }
.s-live em { font-style: normal; font: 700 0.75rem/1 var(--mono); padding: 0.3rem 0.55rem; border-radius: 999px; background: #cfe8d2; color: #1d5a2a; }
.s-checks { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.s-checks li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-top: 1px solid #ececf0; }
.s-checks b { font-weight: 600; }
.s-checks span { color: #5c5c66; text-align: right; }

/* ---------- solution sections: calm, one column, diagrams may go wider ---------- */

.sec { padding: clamp(4rem, 10vh, 6rem) var(--gutter); border-top: 1px solid var(--rule); }
.sec .inner { max-width: var(--col); margin: 0 auto; }
.sec h2 { margin: 0 0 1.25rem; font: 300 clamp(2.1rem, 4.4vw, 3rem)/1.1 var(--title); letter-spacing: -0.005em; }
/* a statement section gets a whole screen, like the cut */
.sec.full { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.sec.full .inner { width: 100%; }
/* statement headline, same voice as the cut: two lines, the second in orange */
.sec h2.big { margin-bottom: 2rem; font: 300 clamp(2.6rem, 6.4vw, 4.3rem)/1.05 var(--title); letter-spacing: -0.01em; }
.sec h2.big span { display: block; }
.sec h2.big span:last-child { color: var(--orange); }
.sec p { margin: 0 0 1.25rem; }

.diagram, .prices { max-width: 60rem; margin: 2.5rem auto; }
.diagram figcaption { margin-top: 1rem; font: 400 0.95rem/1.5 var(--serif); color: var(--ink-soft); text-align: center; }
.tag { display: inline-block; font: 700 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); }

/* governance: one row per rule, one unbroken line across who and when */
.govgrid { max-width: 64rem; }
.g-head, .g-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 2fr); gap: 1.5rem; align-items: center; }
.g-head { padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); }
.g-head .who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-head .who span { font: 700 0.72rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); text-align: center; }
.g-head .g-all { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.g-row { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.g-row .rule { font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.g-row .rule b { display: block; margin-bottom: 0.2rem; font: 700 0.8rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.band { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; align-items: center; height: 1.2rem; }
.band::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--orange); }
.band i { position: relative; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--paper); }
@media (max-width: 760px) {
	.g-head, .g-row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
	.g-head > span, .g-head .who, .band { display: none; }
	.g-head .g-all { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font: 700 0.8rem/1.4 var(--mono); color: var(--orange); }
}

.also { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--paper-2); }

/* the offer */
.specs { max-width: 60rem; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; border-top: 1px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { font: 700 0.95rem/1.5 var(--mono); color: #bf5524; }
.specs dd { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.offer .volume { max-width: 60rem; margin: 1.25rem auto 0; text-align: center; font: 400 0.95rem/1.5 var(--mono); color: var(--ink-soft); }
.offer .prices { margin-top: 2rem; }
.offer .specs-cap { max-width: 60rem; margin: 4.5rem auto 0; font: 700 0.8rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.offer .specs { margin-top: 0.75rem; margin-bottom: 4rem; }
.offer h2, .offer .deal, .offer .terms { text-align: center; }
.offer .ctas { justify-content: center; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: stretch; }
.price { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.price.main { border-color: var(--ink); border-top: 4px solid var(--orange); box-shadow: var(--soft); }
.price .amount { margin: 0.75rem 0 1rem; font: 700 2rem/1.1 var(--serif); }
.price .amount small { display: block; margin-top: 0.3rem; font: 400 0.85rem/1.4 var(--mono); color: var(--ink-soft); }
.price ul { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.price li { margin-bottom: 0.35rem; font-size: 1rem; }
.price .free { font: 700 0.9rem/1.4 var(--mono); }
.price .tiers { list-style: none; padding: 0; }
.price .tiers li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); font: 400 0.9rem/1.3 var(--mono); }
.price .tiers li b { white-space: nowrap; }
.price .tiers li small { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--ink-soft); }
.price .compare { font: 700 0.9rem/1.4 var(--mono); color: var(--ink); }
.price .compare:hover { color: #bf5524; }
.deal { margin-top: 2.5rem; font: 700 1.3rem/1.4 var(--serif); }
.ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--ink); padding: calc(0.9rem - 1px) calc(1.5rem - 1px); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.offer .terms { margin: 1rem 0 0; font: 400 0.85rem/1.5 var(--mono); color: var(--ink-soft); }

/* FAQ: native details/summary, one question per row, + turns into x when open */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { position: relative; padding: 1.1rem 2.25rem 1.1rem 0; font: 700 1.15rem/1.35 var(--serif); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--mono); color: #bf5524; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: #bf5524; }
.faq details p { margin: 0 0 1.4rem; color: var(--ink-soft); }
.faq code { font: 700 0.9em/1 var(--mono); background: #ecebe6; border-radius: 4px; padding: 0.1em 0.4em; }

@media (max-width: 760px) {
	.prices, .specs { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- the team scene ----------
   Calm mirror of the descent: white, few elements, nothing piles up.
   Without JS (or with reduced motion) it shows its final state with every sentence listed. */

.flow { border-top: 1px solid var(--rule); padding: 5rem var(--gutter); }
.flow .frame {
	max-width: 76rem; margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.flow .say { margin: 0 0 1.5rem; font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--serif); letter-spacing: -0.01em; }
.flow .say small { display: block; margin-top: 0.6rem; font: 400 1.05rem/1.55 var(--serif); color: var(--ink-soft); letter-spacing: 0; }

.scene { font-size: 0.85rem; }
.scene code { font: 700 0.85em/1.2 var(--mono); background: #ecebe6; border-radius: 4px; padding: 0.15em 0.45em; white-space: nowrap; }
.scene .cap { display: block; margin-bottom: 0.45rem; font: 700 0.7em/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); }
.scene .head { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--rule); }
.scene .head b { font: 700 1.1em/1 var(--serif); }
.scene .head span { font: 400 0.85em/1 var(--mono); color: var(--ink-soft); }

.prod { border: 1px solid var(--ink); border-top: 4px solid var(--orange); border-radius: var(--radius); background: var(--paper); box-shadow: var(--soft); }
.prod .lock { margin-left: auto; font: 700 0.75em/1 var(--mono); font-style: normal; padding: 0.3em 0.6em; border-radius: 999px; background: var(--ink); color: var(--paper); }
.prod .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.25rem; padding: 0.85rem; }
.prod .live ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.prod .live li { padding: 0.25em 0.6em; border-radius: 999px; background: #cfe8d2; font: 700 0.85em/1.3 var(--mono); }
.prod .hist ol { list-style: none; margin: 0; padding: 0; }
.prod .hist li { display: flex; gap: 0.5rem; padding: 0.35em 0.4em; border-bottom: 1px solid #f0efea; font: 400 0.95em/1.3 var(--serif); border-radius: 4px; }
.prod .hist li b { font: 700 0.9em/1.4 var(--mono); min-width: 3.2em; }
.prod .hist li small { font: 400 0.85em/1.4 var(--mono); color: var(--ink-soft); white-space: nowrap; }
.prod .hist li i { margin-left: auto; font: 400 0.85em/1.4 var(--mono); font-style: normal; color: var(--ink-soft); }
.prod .hist li.new { background: #fff3c4; }

.ups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.up { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem 0; }
.up::before { content: "\2191"; font: 700 1.5rem/1 var(--mono); color: var(--orange); }
/* Bob has no production access: his arrow points to Alice instead of up */
.up.handoff { flex-direction: row; gap: 0.4rem; }
.up.handoff::before { content: "\2190"; }

.laptops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.laptop { display: flex; flex-direction: column; transition: opacity 0.5s ease; }
.laptop .screen { flex: 1; border: 1px solid var(--ink); border-radius: var(--radius) var(--radius) 0 0; background: var(--paper); }
.laptop .base { height: 0.7rem; margin: 0 -6%; background: #dcdad3; border-radius: 0 0 14px 14px; border: 1px solid #c9c7bf; border-top: 0; }
.laptop .inside { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr); gap: 0.5rem; align-items: center; padding: 0.7rem; min-height: 9.5rem; }
.ai-pane { align-self: stretch; padding: 0.55rem; background: #f4f4f6; border-radius: 8px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ai-pane .bubble { margin: 0 0 0.5rem auto; max-width: 92%; padding: 0.4rem 0.55rem; background: #e3e3e8; border-radius: 10px 10px 3px 10px; font-size: 0.85em; line-height: 1.35; }
.ai-pane .reply { display: flex; align-items: center; gap: 0.35rem; margin: 0; }
.ai-pane .spark { width: 1.1rem; height: 1.1rem; fill: var(--indigo); flex: none; }
.ai-pane .reply code { background: #fff; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.push { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.push code { font-size: 0.75em; }
.push::after { content: "\2192"; font: 700 1.3rem/1 var(--mono); color: var(--orange); }
.local { position: relative; align-self: stretch; padding: 0.55rem; border: 1px solid var(--rule); border-radius: 8px; }
.scene .head .mark { align-self: center; width: 1rem; height: auto; }
.scene .head .dev { align-self: center; width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.local .empty { display: none; }
html.flow-live .local .empty { display: block; position: absolute; top: 50%; left: 50%; width: 3.2rem; height: auto; transform: translate(-58%, -40%); }
html.flow-live .local .empty.gone { display: none; }
.local .st { display: flex; flex-direction: column; margin: 0 0 0.45rem; font: 700 0.9em/1.3 var(--serif); }
.local .st em { font: 400 0.85em/1.3 var(--mono); font-style: normal; color: var(--ink-soft); }
.local .st.ok em { color: #2e7d43; font-weight: 700; }

html.flow-live .flow { height: 400vh; padding: 0; position: relative; }
html.flow-live .flow .frame { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0 var(--gutter); }
html.flow-live .flow .say { display: none; margin: 0; }
html.flow-live .flow .say.on { display: block; animation: say-in 0.45s ease both; }
html.flow-live .flow [data-at] { transition: opacity 0.4s ease, transform 0.4s ease; }
html.flow-live .flow [data-at]:not(.on) { opacity: 0; transform: translateY(6px); }
html.flow-live .flow .dim { opacity: 0.25; }
/* new history rows and live chips take no room until they arrive */
html.flow-live .prod li[data-at] { transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease; max-height: 3em; overflow: hidden; }
html.flow-live .prod li[data-at]:not(.on) { max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; transform: none; }
html.flow-live .prod .live li[data-at]:not(.on) { display: none; }
@keyframes say-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
	.flow .frame { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-content: center; }
	html.flow-live .flow .says { min-height: 10.5rem; }
	.flow .say { font-size: 1.3rem; }
	.flow .say small { font-size: 0.95rem; }
	.scene { font-size: 0.66rem; }
	.ups, .laptops { gap: 0.8rem; }
	.laptop .inside { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 0.45rem; gap: 0.3rem; }
	.push { flex-direction: row; }
	.push::after { content: "\2193"; font-size: 1rem; }
	.prod .cols { gap: 0.6rem; padding: 0.6rem; }
}

/* ---------- pricing page ----------
   Three plan cards with Team raised in the middle, then a side-by-side table where the Team column stays tinted. */

.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.pr-hero { max-width: var(--wide); margin: 0 auto; padding: clamp(2.5rem, 9vh, 5.5rem) var(--gutter) 1rem; text-align: center; }
.kicker { margin: 0; font: 700 0.85rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.pr-hero h1 { margin: 1rem 0 1.5rem; font: 300 clamp(2.8rem, 6vw, 4.3rem)/1.05 var(--title); letter-spacing: -0.01em; }
.pr-hero h1 span { display: block; }
.pr-hero h1 span:last-child { color: var(--orange); }
.pr-hero .lede { max-width: 34rem; margin: 0 auto; font-size: 1.2rem; color: var(--ink-soft); }

.plans {
	max-width: 66rem; margin: 3.5rem auto 0; padding: 0 var(--gutter);
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 1.5rem; align-items: center;
}
.plan { display: flex; flex-direction: column; padding: 1.75rem 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.plan h2 { margin: 0; font: 300 1.9rem/1.1 var(--title); }
.plan .for { margin: 0.5rem 0 0; min-height: 3em; font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.plan .cost, .pr-onprem .cost { margin: 1.25rem 0; font: 700 2.3rem/1 var(--serif); }
.plan .cost small, .pr-onprem .cost small { display: block; margin-top: 0.45rem; font: 400 0.8rem/1.4 var(--mono); color: var(--ink-soft); }
.quota { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.quota li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); font: 400 0.9rem/1.3 var(--mono); }
.quota b { font-weight: 700; }
.plan .env { flex: 1; margin: 1rem 0 1.5rem; font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }
.plan .btn { text-align: center; }

.plan.team { position: relative; padding: 2.5rem 1.75rem 2.25rem; border: 1px solid var(--ink); border-top: 4px solid var(--orange); box-shadow: 0 2px 4px rgba(17, 17, 17, 0.06), 0 18px 48px rgba(216, 108, 57, 0.18); }
.plan.team h2 { font-size: 2.3rem; }
.plan.team .cost { font-size: 2.8rem; color: #bf5524; }
.plan.team .env { color: var(--ink); }
.plan.team .env b { display: block; }
.badge {
	position: absolute; top: 0; left: 50%; transform: translate(-50%, -60%);
	margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px; background: var(--ink); color: var(--paper);
	font: 700 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.pr-note { margin: 2.5rem auto 4.5rem; padding: 0 var(--gutter); text-align: center; font: 400 0.95rem/1.5 var(--mono); color: var(--ink-soft); }

.pr-compare h2, .pr-onprem h2, .pr-onprem .kicker, .pr-onprem .cost { text-align: center; }
.cmp-wrap { max-width: 60rem; margin: 2rem auto 0; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.cmp th, .cmp td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.cmp th[scope="row"] { text-align: left; font-weight: 400; line-height: 1.4; }
.cmp thead th { font: 300 1.5rem/1.1 var(--title); border-bottom: 1px solid var(--ink); }
.cmp thead td { border-bottom: 1px solid var(--ink); }
.cmp thead th.t { color: #bf5524; font-weight: 400; border-top: 4px solid var(--orange); border-radius: var(--radius) var(--radius) 0 0; }
.cmp .t { background: #fbf0e9; }
.cmp td { font: 400 0.9rem/1.3 var(--mono); }
.cmp td small { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--ink-soft); }
.cmp td.yes { font-weight: 700; color: #2e7d43; }
.cmp td.no { color: #a3a19a; }
.cmp .grp th { padding: 1.75rem 0.9rem 0.5rem; text-align: left; font: 700 0.75rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); border-bottom: 1px solid var(--ink); background: var(--paper); }
.cmp tfoot td { padding: 1.5rem 0.9rem 1.25rem; border-bottom: 0; }
.cmp tfoot .btn { padding: 0.75rem 1rem; font-size: 0.85rem; white-space: nowrap; }
.cmp tfoot .btn.ghost { padding: calc(0.75rem - 1px) calc(1rem - 1px); }

.pr-onprem { background: var(--paper-2); }
.pr-onprem .inner p:not(.kicker):not(.cost) { text-align: center; }
.pr-onprem .kicker { margin-bottom: 0.75rem; }
.pr-onprem .ctas { justify-content: center; }

@media (max-width: 860px) {
	.plans { grid-template-columns: minmax(0, 1fr); max-width: 30rem; gap: 2.25rem; }
	/* Team first on a phone: it is the plan to look at */
	.plan.team { order: -1; }
	.plan .for { min-height: 0; }
}
@media (max-width: 600px) {
	.cmp { font-size: 0.85rem; }
	.cmp th, .cmp td { padding: 0.6rem 0.35rem; }
	.cmp thead th { font-size: 1.05rem; }
	.cmp td { font-size: 0.78rem; }
	.cmp td small { font-size: 0.68rem; }
	.cmp .grp th { padding-left: 0.35rem; }
	/* the cards above already carry the buttons */
	.cmp tfoot { display: none; }
}

/* ---------- contact page ----------
   A letter with its fields inside the sentences, then a review panel laid out like an email. */

.ct .pr-hero { padding-bottom: 0; }
.letter, .review { max-width: 44rem; margin: 3rem auto 0; padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--ink); border-top: 4px solid var(--orange); border-radius: var(--radius); background: var(--paper); box-shadow: var(--soft); }
.letter[hidden], .review[hidden] { display: none; }
.letter p { margin: 0 0 1.25rem; line-height: 2.1; }
.letter input, .letter select {
	font: 400 1.05rem/1.3 var(--mono); color: #bf5524;
	padding: 0.15rem 0.2rem; border: 0; border-bottom: 2px dashed #e3b49c; border-radius: 0; background: transparent;
	vertical-align: baseline;
}
.letter input::placeholder { color: #b9b5ab; }
.letter select:invalid { color: #b9b5ab; }
.letter select option { color: var(--ink); }
.letter input:focus, .letter select:focus, .letter textarea:focus { outline: none; border-color: var(--orange); border-bottom-style: solid; background: #fbf0e9; }
.letter .w-name { width: 11ch; }
.letter .w-co { width: 26ch; }
.letter select { cursor: pointer; max-width: 100%; }
.letter .w-msg { line-height: 1.6; }
.letter .w-msg label { display: block; margin-bottom: 0.5rem; }
.letter textarea {
	display: block; width: 100%; padding: 0.85rem 1rem; resize: vertical;
	font: 400 1.05rem/1.6 var(--serif); color: var(--ink);
	border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2);
}
.letter textarea::placeholder { color: #9d998f; font-style: italic; }
.letter textarea:focus { border-color: var(--orange); border-style: solid; }
.letter .sign { line-height: 1.6; }
#signature { font: italic 400 1.3rem/1.6 var(--serif); }
#signature.sig-empty { color: #b9b5ab; }
.w-error { padding: 0.6rem 0.9rem; border-radius: 8px; background: #f6dccd; font: 700 0.9rem/1.4 var(--mono); line-height: 1.4 !important; }
.w-actions { display: flex; justify-content: flex-end; }
.w-actions .btn, .r-open .btn { border: 0; cursor: pointer; }

.review:focus { outline: none; }
.review h2 { margin: 0 0 0.5rem; font: 300 clamp(1.9rem, 4vw, 2.4rem)/1.1 var(--title); }
.r-warn { margin: 0 0 1.5rem; padding: 0.7rem 1rem; border-radius: 8px; background: #fff3c4; }
.r-open { margin: 0 0 1.75rem; }
.r-or { margin: 0 0 0.75rem; font: 400 0.9rem/1.5 var(--mono); color: var(--ink-soft); }
.mail { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.cp {
	display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
	width: 100%; padding: 0.85rem 1rem; text-align: left; cursor: pointer;
	font: inherit; color: inherit; background: var(--paper); border: 0; border-bottom: 1px solid var(--rule);
	transition: background 0.15s ease;
}
.cp:last-child { border-bottom: 0; }
.cp:hover { background: #fbf0e9; }
.cp:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; }
.cp .k { font: 700 0.75rem/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.cp .v { font: 400 1rem/1.5 var(--serif); overflow-wrap: anywhere; user-select: text; }
.cp.body .v { white-space: pre-wrap; }
.cp .st { font: 700 0.78rem/1.5 var(--mono); color: #bf5524; white-space: nowrap; }
.cp .st::before { content: "\29C9  "; }
.cp.done { background: #eef6ef; }
.cp.done .st { color: #2e7d43; }
.cp.done .st::before { content: ""; }
.r-back { margin: 1.5rem 0 0; }
.link { padding: 0; border: 0; background: none; cursor: pointer; font: 700 0.9rem/1.4 var(--mono); color: var(--ink); }
.link:hover { color: #bf5524; text-decoration: underline; }

.plain { max-width: 44rem; margin: 2rem auto 5rem; padding: 0 var(--gutter); text-align: center; font: 400 0.95rem/1.5 var(--mono); color: var(--ink-soft); }
.ob { font-weight: 700; color: var(--ink); }
.ob i { display: none; }

@media (max-width: 600px) {
	.letter, .review { margin-left: var(--gutter); margin-right: var(--gutter); }
	.letter p { line-height: 1.7; }
	/* the fields stack under the words on a phone */
	.letter input, .letter select, .letter .w-name, .letter .w-co { display: block; width: 100%; margin: 0.2rem 0 0.6rem; }
	.letter .dot { display: none; }
	.cp { grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; }
	.cp .k { grid-column: 1; }
	.cp .st { grid-column: 2; grid-row: 1; }
	.cp .v { grid-column: 1 / -1; }
}

/* ---------- the footer ---------- */

.foot { padding: 3.5rem var(--gutter) 3rem; border-top: 1px solid var(--rule); background: #f4f3ef; text-align: center; font: 400 0.9rem/1.5 var(--mono); color: var(--ink-soft); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; margin-bottom: 0.6rem; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: #bf5524; text-decoration: underline; }
.foot p { margin: 1.5rem 0 0; font-size: 0.8rem; }

@media (max-width: 860px) {
	.tip { grid-template-columns: minmax(0, 1fr); }
	.top nav .opt { display: none; }
}
/* Phones: GitHub and Talk to us must stay on one line; Docs is still in the footer. */
@media (max-width: 480px) {
	.top nav { gap: 0.75rem; }
	.top nav .opt-s { display: none; }
	.top nav .gh { padding: 0.45rem 0.6rem; }
}
@media (max-width: 359px) {
	.brand span { display: none; }
}
