/*
	Semami — product family site (semami.io).

	Design: "Nameplate" (direction 1a), handed off by Claude Design on
	2026-09-23. Tokens, type scale and spacing follow that spec exactly
	(docs/design/README.md summarises it); colour is Semami Architect's
	"Milled Cobalt" (diagrams-2/docs/design-briefs/accent-blue). Verdigris
	teal is reserved for app status UI and is not used here.

	Type: Archivo (variable, 400-700) and IBM Plex Mono, self-hosted so no
	visitor request goes to a third party. Font sizes are in rem (1rem =
	16px at the browser default) so the page follows the visitor's
	font-size setting; spacing sits on an 8px grid.
*/

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/archivo-latin-var.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}

:root {
	color-scheme: light;

	--ink: #1a1c1d;
	--ink-2: #33363a;
	--muted: #5b5e63;
	--surface: #f9f9fb;
	--white: #ffffff;
	--hairline: #e2e3e7;
	--border-strong: #d3d5db;
	--primary: #2e4edd;
	--primary-hover: #1e33b5;
	--primary-gradient: linear-gradient(180deg, #2e4edd, #4059f2);
	--primary-gradient-hover: linear-gradient(180deg, #1e33b5, #2e4edd);
	--primary-gradient-dark: linear-gradient(180deg, #3a50d9, #2b3fbf);
	--primary-fixed: #dce2ff;
	--dark-accent: #b4c2ff;
	--dark-text: #f2f2f4;
	--dark-muted: #a6a9ae;
	--dark-rule: #3a3d40;

	--content: 1200px;
	--gutter: 48px;
	--section: 96px;
	--header: 72px;

	--shadow-hero: 0 1px 2px rgba(26, 28, 29, 0.08), 0 40px 80px -24px rgba(26, 28, 29, 0.28);
	--shadow-card-shot: 0 1px 2px rgba(26, 28, 29, 0.08), 0 24px 48px -16px rgba(26, 28, 29, 0.22);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.625rem;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

h1,
h2 {
	text-wrap: balance;
}

p,
li,
dd {
	text-wrap: pretty;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color 120ms ease-out;
}

a:hover {
	color: var(--primary-hover);
}

:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.mono {
	font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

code {
	font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 0.875em;
	color: var(--ink);
}

kbd {
	font-family: inherit;
	font-weight: 600;
	color: var(--ink);
}

section[id],
h2[id] {
	scroll-margin-top: 88px;
}

.wrap {
	max-width: var(--content);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

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

/* The eyebrow echoes the +0.24em tracked caps of the "ARCHITECT"
   designation. Use it for these labels and nowhere else. */
.eyebrow {
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow.accent {
	color: var(--primary);
}

.display {
	font-size: 4.5rem;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.h1-support {
	font-size: 2.8rem;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.h1-privacy {
	font-size: 2.8rem;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.h2 {
	font-size: 2.75rem;
	line-height: 3.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.h2-row {
	font-size: 2.25rem;
	line-height: 2.75rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.h3-card {
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 600;
}

.lead {
	font-size: 1.125rem;
	line-height: 1.875rem;
	color: var(--muted);
}

.muted {
	color: var(--muted);
}

.small {
	font-size: 0.875rem;
	line-height: 1.375rem;
}

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

.btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 12px;
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 600;
	transition: background 120ms ease-out, border-color 120ms ease-out;
}

.btn-primary {
	background: var(--primary-gradient);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--primary-gradient-hover);
	color: var(--white);
}

.btn-secondary {
	border: 1px solid var(--border-strong);
	color: var(--ink);
	padding: 13px 23px;
}

.btn-secondary:hover {
	border-color: var(--ink);
	color: var(--ink);
}

/* Before the app is on the store: the buy button's place and shape, but a
   quiet, non-clickable label (data-prelaunch in the HTML marks each one;
   see docs/HANDOFF.md "Launch checklist"). */
.btn-soon {
	padding: 13px 23px;
	border: 1px solid var(--border-strong);
	background: transparent;
	color: var(--muted);
	cursor: default;
	user-select: none;
}

.btn-soon.btn-header {
	padding: 9px 17px;
}

.btn-soon-dark {
	margin-top: 32px;
	border-color: var(--dark-rule);
	color: var(--dark-text);
}

.btn-dark {
	background: var(--primary-gradient-dark);
}

.btn-small {
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 0.9375rem;
	line-height: 1.375rem;
}

.btn-header {
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 0.9375rem;
	line-height: 1.25rem;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(249, 249, 251, 0.88);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
	height: var(--header);
	display: flex;
	align-items: center;
	gap: 32px;
}

.site-header .logo img {
	height: 22px;
	width: auto;
}

/* Product pages: "semami" + "ARCHITECT" on one line, baselines aligned
   (images/brand/architect.svg is semami-assets' architect-only-black.svg
   in the lockup's cobalt). */
.logo-product {
	display: flex;
	align-items: flex-end;
	gap: 7px;
}

.site-header .logo-product .architect {
	height: 16px;
	margin-bottom: 1px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-left: auto;
	font-size: 0.9375rem;
	font-weight: 500;
}

.site-nav a {
	color: var(--ink);
}

.site-nav a:hover {
	color: var(--primary-hover);
}

.site-nav a[aria-current="page"] {
	color: var(--primary);
}

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

.site-footer {
	border-top: 1px solid var(--hairline);
	background: var(--surface);
}

.site-footer .wrap {
	padding-top: 48px;
	padding-bottom: 32px;
}

/* Logo on the same left edge as the header's, links on the right. */
.footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
}

.site-footer .logo img {
	height: 22px;
	width: auto;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	font-size: 0.875rem;
	font-weight: 500;
}

.site-footer nav a {
	color: var(--ink);
}

.site-footer nav a:hover {
	color: var(--primary-hover);
}

.site-footer .legal {
	margin-top: 48px;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.125rem;
	color: var(--muted);
	text-wrap: balance;
}

/* ---- Screenshots ------------------------------------------------------ */

a.zoom {
	display: block;
	cursor: zoom-in;
}

.shot {
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--hairline);
}

.shot-hero {
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: var(--shadow-hero);
}

figcaption {
	margin-top: 12px;
	font-size: 0.875rem;
	line-height: 1.375rem;
	color: var(--muted);
}

/* ---- Sections --------------------------------------------------------- */

.section {
	padding-top: var(--section);
	padding-bottom: var(--section);
}

/* White band: rhythm comes from alternating surface and white. */
.band {
	background: var(--white);
	border-top: 1px solid var(--hairline);
	border-bottom: 1px solid var(--hairline);
}

.section-head .eyebrow {
	margin-bottom: 16px;
}

.section-head .h2 {
	max-width: 720px;
}

.section-head .lead {
	margin-top: 24px;
	max-width: 680px;
}

/* Four-up items with an ink rule on top. */
.items {
	list-style: none;
	padding: 0;
	margin-top: 64px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
}

/* Each item spans two rows of the list's grid (heading, paragraph) as a
   subgrid, so paragraphs in the same row start on the same line even
   when one heading wraps. */
.items li {
	border-top: 1px solid var(--ink);
	padding-top: 24px;
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	row-gap: 12px;
	align-content: start;
}

.items .num {
	font-size: 0.8125rem;
	line-height: 1.25rem;
	color: var(--muted);
}

.items h3 {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 600;
}

.items p {
	color: var(--muted);
}

/* Text beside a screenshot. */
.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 64px;
	align-items: start;
}

.split .eyebrow {
	margin-bottom: 16px;
}

.split .lead {
	margin-top: 24px;
}

.rows {
	display: flex;
	flex-direction: column;
	gap: var(--section);
}

.row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 64px;
	align-items: start;
}

.row .lead {
	margin-top: 16px;
}

.row.flip .copy {
	order: 2;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
}

.card {
	background: var(--white);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	padding: 40px;
}

.card p,
.card ul {
	margin-top: 12px;
	color: var(--muted);
}

.card ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ---- Product page ----------------------------------------------------- */

/* Hero: the headline and one line, then the product as large as a
   1440x900 first screen allows. The buy button lives in the header. */
.hero {
	padding-bottom: var(--section);
	position: relative;
	isolation: isolate;
}

/* A faint dot grid behind the hero, like a diagram canvas. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(circle, #d3d5db 1px, transparent 1.2px);
	background-size: 24px 24px;
	background-position: 12px 12px;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 70%, transparent 100%);
	opacity: 0.7;
}

.hero-top {
	padding-top: 48px;
}

/* One 960px column for headline, paragraph and product, so they share
   a left and right edge; the headline is sized down from .display so it
   does not shout (the home page keeps the full display size). */
.hero-text {
	max-width: 60rem;
}

.hero-top .display {
	font-size: 2.8rem;
	line-height: 1.1;
}

.hero-top .lead {
	margin-top: 20px;
}

.hero-top .hero-shot {
	margin-top: 24px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.rows-after-items {
	margin-top: 96px;
}

/* Two feature cards with a screenshot each, then an items row. */
.cards-media {
	margin-top: 64px;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.cards-media .card {
	padding: 24px 24px 32px;
}

.cards-media .card .zoom {
	margin-bottom: 24px;
}

.cards-media .card h3 {
	padding: 0 8px;
}

.cards-media .card p {
	padding: 0 8px;
}

.cards-media + .items {
	margin-top: 64px;
}

.dark .maker {
	margin-top: 24px;
	font-size: 0.9375rem;
	line-height: 1.5rem;
	color: var(--dark-muted);
}

.dark .maker a {
	color: var(--dark-accent);
}

.dark .maker a:hover {
	color: var(--white);
}

.dark {
	background: var(--ink);
	color: var(--dark-text);
}

.dark .wrap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 64px;
}

.dark .eyebrow {
	color: var(--dark-accent);
	margin-bottom: 16px;
}

.dark .btn {
	margin-top: 32px;
}

.reqs > div {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 24px;
	padding: 20px 0;
	border-top: 1px solid var(--dark-rule);
}

.reqs dt.eyebrow {
	color: var(--dark-muted);
	margin-bottom: 0;
	padding-top: 4px;
}

.reqs dd {
	font-size: 1.0625rem;
	line-height: 1.75rem;
}

/* ---- Syntax colours (the app's SyntaxHighlighter light palette) ----- */

.d {
	color: #4d66a6;
}

.i {
	color: rgba(102, 102, 122, 0.85);
}

.k {
	color: #6b40cc;
	font-weight: 500;
}

.s {
	color: #147a52;
}

.t {
	color: rgba(115, 115, 128, 0.85);
	font-style: italic;
}

.c {
	color: #8a8d93;
}

/* ---- Nothing to set up ---------------------------------------------- */

.setup {
	margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.setup-label {
	font-size: 0.875rem;
	line-height: 1.375rem;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 16px;
}

.setup-usual,
.setup-here {
	border-radius: 16px;
	padding: 32px 36px;
}

.setup-usual {
	display: flex;
	flex-direction: column;
	background: var(--ink);
	color: var(--dark-text);
}

.setup-usual .setup-label {
	color: var(--dark-muted);
}

.term {
	margin: 0;
	font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	font-size: 0.9375rem;
	line-height: 1.75rem;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.term code {
	color: var(--dark-text);
	font-size: inherit;
}

.term .prompt {
	color: var(--dark-accent);
	user-select: none;
}

.term .comment {
	color: var(--dark-muted);
}

.setup-here {
	background: var(--surface);
	border: 1px solid var(--hairline);
}

.setup-big {
	font-size: 2.25rem;
	line-height: 2.75rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.ticks {
	list-style: none;
	padding: 0;
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--muted);
}

.ticks li {
	position: relative;
	padding-left: 28px;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 7px;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--primary);
	border-bottom: 2px solid var(--primary);
	transform: rotate(-45deg);
}

/* ---- Gestures -------------------------------------------------------- */

.split-gestures {
	align-items: center;
}

.gestures {
	list-style: none;
	padding: 0;
	margin-top: 32px;
}

.gestures li {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--hairline);
	color: var(--muted);
}

.gestures li:last-child {
	border-bottom: 1px solid var(--hairline);
}

.gesture {
	font-size: 0.8125rem;
	line-height: 1.625rem;
	font-weight: 500;
	color: var(--primary);
}

/* ---- Diagram gallery ------------------------------------------------- */

.gallery {
	margin-top: 48px;
}

.tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--hairline);
	overflow-x: auto;
	scrollbar-width: none;
}

.tabs button {
	flex: none;
	padding: 12px 16px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--muted);
	cursor: pointer;
	box-shadow: inset 0 -2px 0 transparent;
	transition: color 120ms ease-out, box-shadow 120ms ease-out;
}

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

.tabs button[aria-selected="true"] {
	color: var(--ink);
	box-shadow: inset 0 -2px 0 var(--primary);
}

.panel-type {
	margin-top: 32px;
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	grid-template-areas:
		"copy render"
		"listing render";
	grid-template-rows: auto 1fr;
	gap: 24px 32px;
}

.panel-type[hidden] {
	display: none;
}

.type-copy {
	grid-area: copy;
}

.type-copy h3 {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 600;
}

.type-copy p {
	margin-top: 8px;
	color: var(--muted);
}

.type-copy .file {
	margin-top: 16px;
	font-size: 0.75rem;
	line-height: 1rem;
}

.listing {
	grid-area: listing;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	margin: 0;
	max-height: 440px;
	overflow: auto;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: 12px;
	font-family: ui-monospace, "SF Mono", Menlo, "IBM Plex Mono", monospace;
	font-size: 0.75rem;
	line-height: 1.25rem;
	overscroll-behavior: contain;
}

.listing code {
	font-family: inherit;
	font-size: inherit;
}

.render {
	grid-area: render;
	display: grid;
	place-items: center;
	min-height: 560px;
	padding: 20px;
	background: var(--white);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	box-shadow: var(--shadow-card-shot);
}

a.render.zoom {
	display: grid;
}

.render img {
	max-height: 620px;
	width: auto;
	height: auto;
}

.row-library {
	margin-top: 96px;
	align-items: center;
}

.zoom-library {
	max-width: 420px;
	justify-self: center;
}

.shot-detail {
	max-width: 480px;
	margin: 0 auto;
}

.row-library .lead {
	margin-top: 16px;
}

/* ---- Plain files, Agent Access --------------------------------------- */

.split-files,
.split-ai {
	align-items: center;
}

.facts {
	list-style: none;
	padding: 0;
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--muted);
}

.facts strong {
	color: var(--ink);
	font-weight: 600;
}

.diff,
.config {
	background: var(--white);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-card-shot);
}

.diff-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 20px;
	background: #f6f7f9;
	border-bottom: 1px solid var(--hairline);
	font-size: 0.75rem;
	line-height: 1.25rem;
}

.diff-stat .add {
	color: #1a7f37;
}

.diff-stat .del {
	color: #cf222e;
}

.diff pre,
.config pre {
	margin: 0;
	padding: 16px 20px;
	overflow-x: auto;
	font-family: ui-monospace, "SF Mono", Menlo, "IBM Plex Mono", monospace;
	font-size: 0.78rem;
	line-height: 1.375rem;
}

.diff pre code,
.config pre code {
	font-family: inherit;
	font-size: inherit;
}

.diff pre .add,
.diff pre .del,
.diff pre .hunk {
	display: inline-block;
	width: calc(100% + 40px);
	min-width: max-content;
	margin: 0 -20px;
	padding: 0 20px;
}

.diff pre .add {
	background: #e6ffec;
	color: #116329;
}

.diff pre .del {
	background: #ffebe9;
	color: #82071e;
}

.diff pre .hunk {
	color: var(--muted);
	background: #f2f4ff;
}

.diff figcaption {
	margin: 0;
	padding: 12px 20px;
	border-top: 1px solid var(--hairline);
}

/* ---- Price ----------------------------------------------------------- */

.dark .h2.price {
	font-size: 4.5rem;
	line-height: 1;
	letter-spacing: -0.03em;
}

.price-line {
	margin-top: 24px;
	max-width: 30rem;
	font-size: 1.125rem;
	line-height: 1.875rem;
	color: var(--dark-text);
}

.reqs dd a {
	color: var(--dark-accent);
	white-space: nowrap;
}

.reqs dd a:hover {
	color: var(--white);
}

.section-faq .h2-row {
	margin-bottom: 32px;
}

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

.faq-more {
	margin-top: 16px;
	font-weight: 600;
}

/* ---- Home ------------------------------------------------------------- */

.home .wrap {
	padding-top: var(--section);
	padding-bottom: 96px;
}

.home .eyebrow {
	margin-bottom: 24px;
}

.home .display {
	max-width: none;
}

.home-lead {
	margin-top: 24px;
	max-width: 760px;
	text-wrap: balance;
}

.product-card {
	margin-top: 96px;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px;
	align-items: center;
	background: var(--white);
	border: 1px solid var(--hairline);
	border-radius: 20px;
	padding: 48px;
	color: var(--ink);
}

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

.product-card .copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
}

.product-card .lockup {
	height: 52px;
	width: auto;
}

.product-card .pitch {
	font-size: 1.25rem;
	line-height: 2rem;
}

.product-card .meta {
	font-size: 0.8125rem;
	line-height: 1.25rem;
	color: var(--muted);
}

.product-card .more {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--primary);
}

.product-card:hover .more {
	color: var(--primary-hover);
}

.product-card .shot-card {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: var(--shadow-card-shot);
}

/* ---- Support ---------------------------------------------------------- */

.support .wrap,
.policy-page .wrap {
	padding-top: 96px;
	padding-bottom: var(--section);
}

.support .cards {
	margin-top: 48px;
}

.support .contact {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.support .contact p {
	margin-top: 0;
}

.support .bug > p {
	margin: 8px 0 16px;
}

.steps {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.steps li {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	color: var(--ink);
}

.steps .num {
	font-size: 0.8125rem;
	color: var(--primary);
	padding-top: 1px;
}

.faq-title {
	margin: 96px 0 32px;
}

.faq {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	column-gap: 64px;
}

.faq > div {
	border-top: 1px solid var(--hairline);
	padding: 24px 0 32px;
}

.faq h3 {
	font-size: 1.125rem;
	line-height: 1.625rem;
	font-weight: 600;
}

.faq p {
	margin-top: 8px;
	color: var(--muted);
}

.panel {
	margin-top: 64px;
	background: var(--primary-fixed);
	border-radius: 16px;
	padding: 32px 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
}

.panel p {
	font-size: 1.0625rem;
	line-height: 1.75rem;
	color: var(--primary-hover);
	max-width: 720px;
}

.panel a {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--primary-hover);
}

/* ---- Privacy ---------------------------------------------------------- */

.policy {
	display: grid;
	grid-template-columns: 240px minmax(0, 720px);
	gap: 96px;
}

.toc {
	position: sticky;
	top: 120px;
	align-self: start;
}

.toc .eyebrow {
	margin-bottom: 20px;
}

.toc ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.toc a {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--ink);
}

.toc a:hover {
	color: var(--primary);
}

/* Narrow screens get the contents as a collapsible list instead. */
.toc-mobile {
	display: none;
}

.policy article > .eyebrow {
	margin-bottom: 16px;
}

.policy .intro {
	margin-top: 24px;
}

.short-version {
	margin-top: 40px;
	background: var(--white);
	border: 1px solid var(--hairline);
	border-radius: 16px;
	padding: 32px;
}

.short-version .eyebrow {
	margin-bottom: 12px;
}

.short-version p:not(.eyebrow) {
	font-size: 1.25rem;
	line-height: 2rem;
}

.policy section {
	margin-top: 56px;
}

.policy h2 {
	font-size: 1.625rem;
	line-height: 2.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}

.policy section p,
.policy section li {
	font-size: 1.0625rem;
	line-height: 1.8125rem;
	color: var(--ink-2);
}

.policy section p + p,
.policy section p + ul,
.policy section p + dl {
	margin-top: 16px;
}

.policy section ul {
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.policy section dl {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.policy section dl > div {
	border-left: 2px solid var(--primary-fixed);
	padding-left: 20px;
}

.policy dt {
	font-size: 1.0625rem;
	line-height: 1.625rem;
	font-weight: 600;
}

.policy dd {
	margin-top: 4px;
	font-size: 1rem;
	line-height: 1.6875rem;
	color: var(--muted);
}

/* ---- 404 -------------------------------------------------------------- */

.not-found .wrap {
	padding-top: var(--section);
	padding-bottom: var(--section);
}

.not-found .lead {
	margin-top: 24px;
}

.not-found .actions {
	margin-top: 32px;
}

/* ---- Lightbox --------------------------------------------------------- */

dialog.lightbox {
	border: none;
	padding: 0;
	background: transparent;
	max-width: none;
	max-height: none;
	cursor: zoom-out;
}

dialog.lightbox::backdrop {
	background: rgba(26, 28, 29, 0.88);
}

dialog.lightbox img {
	background: var(--white);
	max-width: 94vw;
	max-height: 94vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* ---- Responsive (not drawn in the design; rules from the handoff) ----- */

@media (max-width: 1024px) {
	.panel-type {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"copy"
			"render"
			"listing";
	}

	.render {
		min-height: 0;
	}

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

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

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

	.toc {
		display: none;
	}

	.toc-mobile {
		display: block;
		margin-top: 32px;
		background: var(--white);
		border: 1px solid var(--hairline);
		border-radius: 16px;
		padding: 16px 24px;
	}

	.toc-mobile summary {
		cursor: pointer;
		list-style-position: outside;
	}

	.toc-mobile ul {
		margin-top: 16px;
	}
}

@media (max-width: 768px) {
	:root {
		--gutter: 24px;
		--section: 64px;
	}

	.display {
		font-size: 2.75rem;
		line-height: 3rem;
	}

	.hero-top .display {
		font-size: 1.8rem;
		line-height: 1.15;
	}

	.h1-support,
	.h1-privacy {
		font-size: 1.8rem;
		line-height: 1.15;
	}

	.h2 {
		font-size: 2rem;
		line-height: 2.375rem;
	}

	.h2-row {
		font-size: 1.75rem;
		line-height: 2.125rem;
	}

	/* Logo and App Store button on the first row, pages on a second. */
	.site-header .wrap {
		height: auto;
		flex-wrap: wrap;
		row-gap: 0;
		padding-top: 14px;
	}

	.site-header .btn-header {
		margin-left: auto;
	}

	.site-nav {
		order: 3;
		width: 100%;
		margin-left: 0;
		gap: 24px;
		padding: 10px 0 12px;
	}

	section[id],
	h2[id] {
		scroll-margin-top: 120px;
	}

	.reqs > div {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.gestures li {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.setup-usual,
	.setup-here {
		padding: 24px;
	}

	.term {
		font-size: 0.8125rem;
		line-height: 1.5rem;
	}

	.render {
		padding: 16px;
	}

	.diff pre,
	.config pre {
		font-size: 0.6875rem;
		line-height: 1.25rem;
		padding: 12px 16px;
	}

	.render img {
		max-height: none;
	}

	.dark .h2.price {
		font-size: 3.25rem;
	}

	.product-card,
	.card {
		padding: 24px;
	}

	.split,
	.row {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.row.flip .copy {
		order: 0;
	}

	.cards,
	.faq,
	.section-faq .faq,
	.dark .wrap {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	/* Wordmark and App Store button must share one row at 390px. */
	.site-header .wrap {
		column-gap: 16px;
	}

	.site-header .logo img {
		height: 18px;
	}

	.site-header .logo-product {
		gap: 6px;
	}

	.site-header .logo-product .architect {
		height: 13px;
	}

	.site-header .btn-header {
		padding: 8px 14px;
		font-size: 0.875rem;
	}

	.site-header .btn-soon.btn-header {
		padding: 7px 13px;
	}

}
