/* Paradev Pilots, public site. Plain CSS, no build step.
   The look follows Paradev's own site, https://paradev.com (read 2026-11-25): its dark neutrals, Geist and Geist Mono,
   light headlines, square buttons and wide section spacing. Why each choice was made: site/README.md. */

/* Geist and Geist Mono, the typefaces of paradev.com, self-hosted under the SIL Open Font License (assets/fonts/OFL.txt). */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--bg: #111111;
	--fg: #fafafa;
	--card: #171717;
	--muted: #bebebe;
	--border: rgb(255 255 255 / 0.10);
	--input: rgb(255 255 255 / 0.15);
	--hover: rgb(255 255 255 / 0.06);
	--accent: #e8804a;
	--glow: rgb(232 128 74 / 0.07);
	--built: #00bb7f;
	--approved: #fcbb00;
	--sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--wrap: 76rem;
	--gutter: 2rem;
	--section: 6rem;
	color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 400 1rem/1.5 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--bg); }

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

a { color: inherit; text-decoration: underline; text-decoration-color: rgb(250 250 250 / 0.35); text-underline-offset: 3px; transition: text-decoration-color 150ms, color 150ms, background-color 150ms, border-color 150ms; }
a:hover { text-decoration-color: var(--fg); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

code, pre { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--card); border: 1px solid var(--border); padding: 0.1em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--card); border: 1px solid var(--border); padding: 1rem 1.25rem; overflow-x: auto; line-height: 1.7; margin: 1.25rem 0 0; }
pre code { background: none; border: 0; padding: 0; font-size: 0.8125rem; overflow-wrap: normal; }

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

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--fg); color: var(--bg); padding: 0 0.75rem; min-height: 44px; display: inline-flex; align-items: center; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* The maker line: one sentence on who made this site, at the top and the bottom of every page.
   Set in Geist Mono, like the small notices on paradev.com, on the card colour so it reads as its own strip. */
.maker-line { background: var(--card); color: var(--muted); font: 400 0.75rem/1.5 var(--mono); text-align: center; padding: 0.625rem var(--gutter); margin: 0; }
body > .maker-line { border-bottom: 1px solid var(--border); }
.site-footer .maker-line { border-top: 1px solid var(--border); }

/* Header: the product name as text (no logo), and the two pages. Translucent with a blur, as on paradev.com;
   the only blurred surface on the page. */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(17 17 17 / 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark { font-weight: 500; letter-spacing: -0.01em; text-decoration: none; font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; gap: 0.25em; }
.site-nav { display: flex; gap: 0.25rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.01em; padding: 0 1rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--fg); }
/* The header's one button, at its right: Join the waitlist. paradev.com's header ends with a small solid button. */
.header-end { display: flex; align-items: center; gap: 0.5rem; }
.button.header-cta, .button.header-download { min-height: 2.5rem; padding: 0 1rem; font-size: 0.8125rem; white-space: nowrap; }
/* Download for macOS beside it, outlined, so the waitlist stays the one solid button. It needs the room of a wide
   window: below 48rem it goes, and the page's own download link stays. */
@media (max-width: 47.999rem) { .button.header-download { display: none; } }
.site-nav a { white-space: nowrap; }
/* A phone has no room for the name, both links and the button. "Overview" goes first: the name at the left links
   there too. On the narrowest phones (under 384 px) the other link goes as well; every page still links to every
   feature further down, and the footer names both pages. */
@media (max-width: 30rem) {
	.site-header .wrap { gap: 0.75rem; }
	.site-nav a:first-child { display: none; }
	.button.header-cta { padding: 0 0.875rem; }
}
@media (max-width: 24rem) { .site-nav { display: none; } }

/* Type: light, tight headlines at paradev.com's sizes (36 to 72 px, 30 to 48 px, 24 to 30 px). */
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 6.4vw, 4.5rem); word-spacing: 0.15em; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; }
/* paradev.com keeps its headlines one colour; the emphasised word stays in the text colour. */
h1 em, h2 em { font-style: normal; color: inherit; }
.lede { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.45; color: var(--muted); max-width: 44rem; margin: 1.5rem 0 0; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
/* Section labels: Geist Mono, small capitals, in the one accent colour. paradev.com sets its small labels this way. */
.label { font: 400 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 1rem; }

/* Buttons: square, 48 px, the text colour as the primary, a 1 px border for the second. */
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font-weight: 400; font-size: 1rem; text-decoration: none; }
.button:hover { background: #e5e5e5; border-color: #e5e5e5; }
.button.ghost { background: var(--bg); color: var(--fg); border-color: var(--input); }
.button.ghost:hover { background: var(--card); border-color: rgb(255 255 255 / 0.3); }
/* The download button: Paradev's own shape (square, solid), with its download icon that slides on hover. */
.button.download { gap: 0.5rem; }
.download-icon { position: relative; display: inline-block; width: 1rem; height: 1rem; overflow: hidden; }
.download-icon svg { position: absolute; inset: 0; width: 1rem; height: 1rem; transition: transform 300ms ease-out; }
.download-icon svg + svg { transform: translateY(-100%); }
.button.download:hover .download-icon svg:first-child { transform: translateY(100%); }
.button.download:hover .download-icon svg + svg { transform: translateY(0); }
.download-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.875rem; }
.download-note .mono { font-family: var(--mono); font-size: 0.8125rem; margin-right: 0.5rem; }
.hero .download-note { text-align: center; }
@media (prefers-reduced-motion: reduce) { .download-icon svg { transition: none; } }

/* The waitlist form under the download button: one email field and its button, joined, square like every button.
   The field takes paradev.com's input colour (white at 15 %) for its edge. */
.waitlist { max-width: 30rem; margin: 2rem auto 0; }
.waitlist-row { display: flex; }
.field { flex: 1; min-width: 0; min-height: 48px; margin: 0; padding: 0 1rem; border: 1px solid var(--input); border-right: 0; border-radius: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.5 var(--sans); -webkit-appearance: none; appearance: none; }
.field::placeholder { color: #8a8a8a; opacity: 1; }
.field:hover { border-color: rgb(255 255 255 / 0.3); }
/* The field's focus ring is drawn inside its own edge: the button is joined to the field (beside it, or under it
   on a phone), and a ring outside the field ran under the button and was cut by it (the owner, 2026-11-26). */
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-color: var(--accent); }
.field[aria-invalid="true"] { border-color: var(--approved); }
.waitlist-row .button { flex: none; justify-content: center; cursor: pointer; font-family: inherit; }
.waitlist-row .button[aria-disabled="true"] { cursor: progress; background: #e5e5e5; border-color: #e5e5e5; }
.waitlist-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.875rem; }
.waitlist-status { margin: 0; color: var(--fg); font-size: 0.9375rem; }
.waitlist-status:not(:empty) { margin-top: 0.75rem; padding-left: 0.75rem; border-left: 2px solid var(--approved); text-align: left; }
.waitlist-done { margin: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 0 1rem; border: 1px solid var(--input); color: var(--fg); }
.waitlist [hidden] { display: none; }
.waitlist-done:focus { outline: none; }
.waitlist-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* The field a person never fills, for bots: out of sight, out of the tab order, out of the accessibility tree. */
.waitlist-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* On a narrow phone the button goes under the field, full width. */
@media (max-width: 26rem) {
	.waitlist-row { flex-direction: column; }
	.field { border-right: 1px solid var(--input); border-bottom: 0; }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

/* Screenshots sit in a window frame, as paradev.com frames its product (read 2026-11-25): 14 px corners, a 1 px border
   in white at 10 %, a near-black fill, a soft three-layer shadow below, and inside the edge a faint ring with a
   lighter top line, like light on the rim of a window. The ring sits on a pseudo-element because an inset shadow
   does not paint over an image. The frame is as wide as its image, never wider: a small screenshot stays small and sharp. */
.shot { margin: 0; }
.frame {
	position: relative; display: block; width: fit-content; max-width: 100%;
	border: 1px solid var(--border); border-radius: 14px; background: #0d0d0d; overflow: hidden;
	box-shadow: 0 1px 1px rgb(0 0 0 / 0.4), 0 16px 40px -12px rgb(0 0 0 / 0.6), 0 32px 90px -24px rgb(0 0 0 / 0.75);
}
.frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05), inset 0 1px 0 rgb(255 255 255 / 0.09); pointer-events: none; }
.shot figcaption { color: var(--muted); font-size: 0.8125rem; margin-top: 0.75rem; }

/* Front page */
/* The hero is centred, as on paradev.com. A faint warm light sits behind its screenshot, the strongest of the site's glows. */
.hero { padding: 4.5rem 0 var(--section); text-align: center; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 30% 0 0; background: radial-gradient(45% 40% at 50% 30%, var(--glow), rgb(232 128 74 / 0.02) 55%, transparent 78%); z-index: -1; pointer-events: none; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }

/* The page for an address the site does not have (404.html): the hero's centred type, no screenshot, no glow. */
.notfound { padding: 7rem 0 var(--section); text-align: center; min-height: 50vh; }
.notfound .lede { margin-left: auto; margin-right: auto; }
.notfound .actions { justify-content: center; }
/* The hero shows the Mac and the phone together: the desktop on the left, the phone's Pilots list on the right, at the
   same height. Their row is wider than the text above it, so the desktop stays about as large as it was alone. The
   columns share the width in the proportions of the two images (1920 x 920 and 375 x 812), so their heights match (0.465, not 0.4618, makes up for the frames' borders).
   Below 72rem the two stack: the desktop full width, the phone under it, centred and no wider than 18rem. */
.hero-shots { max-width: 90rem; margin: 4.5rem auto 0; padding: 0 var(--gutter); display: grid; gap: 3rem; justify-items: center; }
.hero .shot { text-align: left; min-width: 0; }
.hero .shot figcaption { text-align: center; }
/* The launch film: a thumbnail where the hero's buttons were, in the window frame of a screenshot, with a play mark.
   A click opens the film large in a dialog over the page and plays it (assets/film.js); Esc, Close or a click outside
   closes it and stops it. It never plays by itself. Under the thumbnail, Download stays one click away. */
.film-thumb {
	position: relative; display: block; width: min(100%, 44rem); margin: 2.5rem auto 0; overflow: hidden; color: var(--fg); text-decoration: none;
	border: 1px solid var(--border); border-radius: 14px; background: var(--bg);
	box-shadow: 0 1px 1px rgb(0 0 0 / 0.4), 0 16px 40px -12px rgb(0 0 0 / 0.6), 0 32px 90px -24px rgb(0 0 0 / 0.75), 0 0 120px 10px var(--glow);
}
.film-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.film-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to top, rgb(0 0 0 / 0.55), transparent 38%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05), inset 0 1px 0 rgb(255 255 255 / 0.09); pointer-events: none; }
.film-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: var(--fg); color: var(--bg); box-shadow: 0 8px 30px rgb(0 0 0 / 0.5); transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1); }
.film-play svg { width: 1.75rem; height: 1.75rem; margin-left: 0.2rem; }
.film-meta { position: absolute; left: 1.25rem; bottom: 1rem; z-index: 1; font-size: 0.9375rem; }
.film-meta .mono { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-left: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.film-thumb:hover img { transform: scale(1.02); }
.film-thumb:hover .film-play { transform: scale(1.08); }
.film-thumb:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.hero-download { margin: 1.5rem 0 0; font-size: 0.9375rem; }
.hero .lede.after-film { margin-top: 2.5rem; }
.hero-download .download { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 0.5rem; color: var(--fg); text-decoration: underline; text-decoration-color: var(--input); text-underline-offset: 0.3em; }
.hero-download .download:hover { text-decoration-color: var(--fg); }
.hero-download .download:hover .download-icon svg:first-child { transform: translateY(100%); }
.hero-download .download:hover .download-icon svg + svg { transform: translateY(0); }
.hero .hero-download + .download-note { margin-top: 0.25rem; }
.film-dialog { width: min(96vw, 100rem, calc((100vh - 9rem) * 16 / 9)); max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--fg); }
.film-dialog::backdrop { background: rgb(0 0 0 / 0.86); }
.film-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.film-dialog form { display: flex; justify-content: flex-end; margin: 0 0 0.5rem; }
.film-close { min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--input); border-radius: 2px; background: var(--bg); color: var(--fg); font: inherit; font-size: 0.875rem; cursor: pointer; }
.film-close:hover { background: var(--card); border-color: rgb(255 255 255 / 0.3); }
.film-note { margin: 0.75rem 0 0; text-align: center; color: var(--muted); font-size: 0.8125rem; }
@media (prefers-reduced-motion: reduce) { .film-thumb img, .film-play { transition: none; } .film-thumb:hover img, .film-thumb:hover .film-play { transform: none; } }
@media (max-width: 40rem) { .film-play { width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; } .film-play svg { width: 1.4rem; height: 1.4rem; } .film-meta { left: 0.9rem; bottom: 0.7rem; font-size: 0.8125rem; } .film-meta .mono { display: none; } }
.hero .shot-phone .frame { width: min(18rem, 75vw); border-radius: 18px; }
.hero .shot-phone img { width: 100%; }
@media (min-width: 72rem) {
	.hero-shots { grid-template-columns: minmax(0, 2.087fr) minmax(0, 0.465fr); gap: 1.5rem; align-items: start; }
	.hero .shot-phone .frame { width: auto; }
}
/* Below 72rem the two are one picture, not two shrunk ones (the owner, 2026-11-26): the Mac window is cropped to its
   left part (the rail, the Pilots sidebar, the start of the conversation) and drawn larger, so its text can be read;
   the whole phone stands over its lower right corner and hangs below it. Each caption sits under its own image. */
@media (max-width: 71.999rem) {
	.hero-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 26%); grid-template-rows: auto minmax(5rem, auto); gap: 0 1.25rem; justify-items: stretch; }
	.hero .shot-desktop { grid-column: 1 / -1; grid-row: 1; }
	.hero .shot-desktop .frame { width: 100%; aspect-ratio: 16 / 10; }
	.hero .shot-desktop img { display: block; width: auto; max-width: none; height: 100%; -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
	.hero .shot-desktop figcaption { text-align: left; padding-right: calc(26% + 1.25rem); }
	.hero .shot-phone { grid-column: 2; grid-row: 1 / 3; align-self: end; z-index: 1; margin-right: 1rem; }
	.hero .shot-phone .frame { width: 100%; background: var(--bg); box-shadow: 0 1px 1px rgb(0 0 0 / 0.5), 0 20px 50px -8px rgb(0 0 0 / 0.85), 0 0 0 6px rgb(17 17 17 / 0.9); }
	.hero .shot-phone figcaption { text-align: left; }
}
@media (max-width: 40rem) {
	.hero-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 0 0.75rem; padding: 0 1.5rem; }
	.hero .shot-desktop .frame { aspect-ratio: 1 / 1; }
	.hero .shot-desktop figcaption { padding-right: calc(44% + 0.75rem); }
	.hero .shot-phone { margin-right: 0.5rem; }
	.hero .shot-phone .frame { border-radius: 14px; }
}
.band { padding: var(--section) 0; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } .split.flip { grid-template-columns: 7fr 5fr; } }
.prose p { margin: 1.25rem 0 0; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted); }
.prose p:first-child { margin-top: 0; }

/* The places where Pilots show, as a numbered list. */
.places { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 48rem) { .places { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.places li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.places .n { display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font: 400 0.75rem/1.375rem var(--mono); text-align: center; }
.places strong { font-weight: 500; font-size: 1.0625rem; }
.places p { margin: 0.375rem 0 0; color: var(--muted); }

.layers { margin: 3rem 0 0; padding: 0; list-style: none; }
.layers li { padding: 1.75rem 0; border-top: 1px solid var(--border); display: grid; gap: 0.5rem; }
@media (min-width: 48rem) { .layers li { grid-template-columns: 16rem 1fr; gap: 3rem; } }
.layers h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.layers p { margin: 0; color: var(--muted); max-width: 44rem; }

.columns { display: grid; gap: 3rem; margin-top: 3rem; }
@media (min-width: 48rem) { .columns { grid-template-columns: 1fr 1fr; } }
.columns > div { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.columns > div > p:first-child { margin: 0; }
.columns ul { margin: 1rem 0 0; padding-left: 1.125rem; color: var(--muted); }
.columns li { margin: 0.5rem 0; }
.columns li::marker { color: rgb(255 255 255 / 0.3); }

/* States: one small dot, in paradev.com's own status colours, and a word in Geist Mono. */
.state { display: inline-flex; align-items: center; gap: 0.45rem; font: 400 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg); white-space: nowrap; }
.state::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.state.built::before { background: var(--built); }
.state.next::before { background: var(--approved); }
.state.later::before { border: 1px solid var(--muted); }
.state.idea::before { border: 1px dashed var(--muted); }

/* Product page */
.page-head { padding: 6rem 0 4rem; }
/* With the menu, the head is shorter, so the first feature starts on the first screen of a laptop. */
.has-menu .page-head { padding: 3.5rem 0 2.5rem; }
.has-menu .page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.has-menu .page-head .lede { margin-top: 1rem; }
.has-menu .page-head .actions { margin-top: 1.75rem; }
.has-menu .page-head .legend { margin-top: 1.75rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.legend li { display: flex; gap: 0.625rem; align-items: baseline; font-size: 0.875rem; color: var(--muted); }

.place { padding: 5rem 0 1.5rem; border-top: 1px solid var(--border); }
.place .wrap > header { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.place .wrap > header p { margin: 0; color: var(--muted); max-width: 40rem; font-size: 1.125rem; line-height: 1.55; }

.feature { padding: 3rem 0; display: grid; gap: 2rem; }
/* Grid cells may shrink below their content, so a long command scrolls inside its block, not the page. */
.feature > *, .split > *, .places li > div, .layers li > * { min-width: 0; }
.feature + .feature { border-top: 1px solid var(--border); }
/* Text beside the screenshot when the pane is wide enough. The pane, not the window, decides: beside the menu it is narrower. */
.feature-pane { container: pane / inline-size; min-width: 0; }
@container pane (min-width: 56rem) { .feature.with-shot { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
/* A feature's screenshot stands on a stage, as paradev.com shows each feature beside its text: 24 px of room
   (16 px on a phone), the frame centred, and a faint warm light behind it. Here the frame takes their feature
   card's shadow, shorter than the hero's. */
.feature .shot { position: relative; isolation: isolate; padding: 1.5rem; }
.feature .shot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 45% at 50% 40%, rgb(232 128 74 / 0.05), transparent 75%); pointer-events: none; }
.feature .frame { margin: 0 auto; box-shadow: 0 1px 1px rgb(0 0 0 / 0.4), 0 24px 70px -16px rgb(0 0 0 / 0.75); }
.feature .shot figcaption { text-align: center; margin-top: 1rem; }
.feature .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0 0; font: 400 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.feature .body p, .feature .body ul { margin: 1rem 0 0; max-width: 32rem; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); }
.feature .body .meta { margin-top: 1rem; font-size: 0.75rem; }
.feature .body ul { padding-left: 1.125rem; }
.feature .body li { margin: 0.375rem 0; }
.feature .body .limits { font-size: 0.9375rem; }

.next-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.next-list li { padding: 1.5rem 0; border-top: 1px solid var(--border); display: grid; gap: 0.375rem; }
@media (min-width: 48rem) { .next-list li { grid-template-columns: 16rem 1fr 7rem; gap: 2.5rem; align-items: baseline; } }
.next-list h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.next-list p { margin: 0; color: var(--muted); }

/* The product page as a menu and one feature at a time (assets/features.js). The class has-menu is set only when
   the script runs; without it the page is the long list above. A docs-style sidebar with folded groups: each place
   is one line with its count, and one group at a time unfolds in place, the one holding the feature on show unless
   the reader opens another. So the whole menu stands beside the feature, with no scroll of its own. Plain links,
   one line per feature, the current one in the text colour with a 1 px bar, no new colour. On a narrow screen the
   menu folds into one button under the header that names the feature on show. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.features { padding-top: 1rem; }
.has-menu .features .place { display: none; padding: 0; border: 0; }
.has-menu .features .place.is-current { display: block; }
.has-menu .features .feature { display: none; padding: 0; }
.has-menu .features .feature.is-current { display: grid; }
.has-menu .features .feature + .feature { border-top: 0; }
/* The outer wrap gives the page its width and gutter; a place inside it does not add them again. */
.features .wrap { max-width: none; padding: 0; }
.has-menu .features .place .wrap > header { gap: 0.75rem; margin-bottom: 2.5rem; }
/* A feature's place is a small label above it, with the place's one paragraph; the feature's name is the headline. */
.has-menu .features .place:not(.roadmap):not(.overview) h2 { font: 400 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.has-menu .features .place .wrap > header p { font-size: 1rem; line-height: 1.55; }
.has-menu .features .feature h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; }
.has-menu .features .feature h3 code { background: none; border: 0; padding: 0; font-size: 0.85em; }
.has-menu .features .feature .body p, .has-menu .features .feature .body ul { max-width: 40rem; }
.has-menu .features .feature .shot { justify-self: start; }
.has-menu .features .feature.with-shot { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@container pane (min-width: 46rem) {
	.has-menu .features .feature.with-shot.shot-narrow { grid-template-columns: minmax(0, 1fr) var(--shot-column, auto); gap: 3rem; align-items: start; }
}
.has-menu .features [tabindex="-1"]:focus { outline: none; }

.feature-menu[hidden] { display: none; }
/* A group's line: its place in small mono capitals, as before, and on the right how many features it holds and a
   chevron that turns when it unfolds. */
.menu-group { display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 1.875rem; padding: 0.25rem 0; background: none; border: 0; color: var(--muted); font: 400 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; text-align: left; cursor: pointer; }
.menu-group-name { flex: 1; min-width: 0; }
.menu-group-count { flex: none; min-width: 1.25rem; text-align: right; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.menu-group::after { content: ""; flex: none; width: 0.375rem; height: 0.375rem; margin: 0 0.25rem 0 0.125rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform 150ms; }
.menu-group[aria-expanded="true"]::after { transform: translateY(25%) rotate(-135deg); }
.menu-group:hover, .menu-group.is-current, .menu-group[aria-expanded="true"] { color: var(--fg); }
/* Folded while the reader looks into another group, the group of the feature on show takes the current item's own
   mark, the 1 px bar and the light fill, so where the reader is stays plain at a glance. */
.menu-group.is-current[aria-expanded="false"] { padding-left: 0.75rem; box-shadow: inset 1px 0 0 var(--fg); background: var(--hover); }
.menu-group:focus-visible { outline-offset: 2px; }
.menu-section .menu-items { margin: 0.125rem 0 0.5rem; }
.menu-items[hidden] { display: none; }
.menu-items { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.menu-items a { display: flex; align-items: center; min-height: 2rem; padding: 0.3rem 0.75rem; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.875rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.menu-items a.mono { font-family: var(--mono); font-size: 0.8125rem; }
.menu-items a:hover { color: var(--fg); border-left-color: var(--input); }
.menu-items a[aria-current="page"] { color: var(--fg); border-left-color: var(--fg); background: var(--hover); }
.menu-items a:focus-visible { outline-offset: -2px; }
.menu-overview { margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); border-left: 0; }
.menu-overview a, .menu-overview a:hover, .menu-overview a[aria-current="page"] { margin-left: -0.5rem; padding-left: 0.5rem; border-left: 0; }
.menu-overview a { font-weight: 500; }
/* The Overview: the demo film in a window frame, at the pane's width, with its chapters as jump links under it. */
.demo { margin-top: 2rem; }
.demo-frame { width: 100%; }
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--bg); }
.demo-play { border: 0; padding: 0; cursor: pointer; }
.demo-play:hover { transform: scale(1.08); }
.demo-play:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.demo-play[hidden] { display: none; }
.demo-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.demo-note .mono { font-family: var(--mono); }
.demo-chapters-title { margin: 2.5rem 0 0.75rem; font: 400 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.demo-chapters { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
.demo-chapters a { display: flex; align-items: baseline; gap: 1rem; min-height: 44px; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; }
.demo-chapters a:hover { background: var(--hover); }
.demo-chapters .mono { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); min-width: 3rem; font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .demo-chapters { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .demo-play:hover { transform: none; } }
.menu-roadmap { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--border); border-left: 0; }
/* Roadmap is not in a group: its text starts on the groups' edge, and on show it takes the light fill without the bar. */
.menu-roadmap a, .menu-roadmap a:hover, .menu-roadmap a[aria-current="page"] { margin-left: -0.5rem; padding-left: 0.5rem; border-left: 0; }
.menu-roadmap a { font-weight: 500; }
.menu-toggle { display: none; }
.menu-list { position: relative; }

.pager { display: none; }
.has-menu .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.pager a { display: grid; gap: 0.25rem; align-content: start; min-height: 44px; padding: 0.5rem 0; text-decoration: none; }
.pager .pager-next { text-align: right; }
/* Not in capitals: the state "Next" on the roadmap is set that way, and this is not a state. */
.pager-label { font-size: 0.8125rem; color: var(--muted); }
.pager-title { font-size: 1rem; color: var(--fg); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 150ms; }
.pager a:hover .pager-title { text-decoration-color: var(--fg); }

/* Wide: the menu on the left, whole, sticky under the header. It has no scroll of its own: in a window too short
   for it with its longest group unfolded, the script sets menu-unstuck and it goes up with the page instead. */
@media (min-width: 52rem) {
	.has-menu .features { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
	.has-menu .feature-menu { position: sticky; top: 5rem; padding-bottom: 1rem; }
	.has-menu .feature-menu.menu-unstuck { position: static; }
}
@media (min-width: 72rem) { .has-menu .features { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; } }

/* Narrow: one button under the header; the list opens below it and closes on a pick, on Escape or on a tap outside. */
@media (max-width: 51.999rem) {
	.has-menu .feature-menu { position: sticky; top: 4rem; z-index: 4; margin: 0 calc(-1 * var(--gutter)) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); }
	.has-menu .menu-toggle { display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.25rem; padding: 0.5rem var(--gutter); background: none; border: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
	.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
	.menu-toggle-place { flex: none; font: 400 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
	.menu-toggle-place:empty { display: none; }
	.menu-toggle-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; }
	.menu-toggle-chevron { flex: none; width: 0.5rem; height: 0.5rem; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-25%) rotate(45deg); transition: transform 150ms; }
	.feature-menu.open .menu-toggle-chevron { transform: translateY(25%) rotate(-135deg); }
	.has-menu .menu-list { display: none; }
	.has-menu .feature-menu.open .menu-list { display: block; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem var(--gutter) 1.5rem; border-top: 1px solid var(--border); }
	.has-menu .menu-items a, .has-menu .menu-group { min-height: 44px; }
	.has-menu .features { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle-chevron, .menu-group::after { transition: none; } }

.site-footer { border-top: 1px solid var(--border); margin-top: var(--section); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; font-size: 0.875rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 0.25rem 1.5rem; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer nav a:hover { color: var(--fg); }
.site-footer p { margin: 0; color: var(--fg); font-weight: 500; }

/* paradev.com halves its section spacing on a phone and keeps 24 px at the sides. */
@media (max-width: 40rem) {
	:root { --gutter: 1.5rem; --section: 4rem; }
	.hero { padding-top: 4rem; }
	.hero-shots { margin-top: 3rem; }
	.page-head, .has-menu .page-head { padding: 3.5rem 0 2.5rem; }
	.place { padding-top: 3.5rem; }
	.feature { padding: 2.25rem 0; }
	.feature .shot { padding: 1rem; }
	.site-nav a { padding: 0 0.625rem; }
	.prose p { font-size: 1.0625rem; }
}
