/* Augment AI Labs — the whole design system in one file.
   Order: typeface · tokens · base · layout · header and footer · statement · product pieces ·
   long-form text · motion · other media.
   No framework, no build step. A new page needs no new CSS unless it introduces a new piece. */

/* ── Typefaces ────────────────────────────────────────────────────────────── */

/* Two faces, each one file, both SIL Open Font License: Newsreader, a serif, for the statement
   and the headings; Figtree, a sans, for everything else. This Figtree's capital I has serifs, so
   "AI" is never read as "Al" (the design document says how the file is built). */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* The system faces, resized to the web fonts' widths, so that where a system has Georgia and
   Arial or Helvetica, text does not re-wrap when a font arrives. */
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 97.41%; ascent-override: 75.46%; descent-override: 27.21%; line-gap-override: 0%;
}
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 101.25%; ascent-override: 93.83%; descent-override: 24.69%; line-gap-override: 0%;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  /* Colour: one warm neutral scale. The chrome carries no brand colour; products bring their own. */
  --ground: light-dark(oklch(98.4% 0.004 85), oklch(17% 0.004 75));
  --raised: light-dark(oklch(96% 0.006 85), oklch(21.5% 0.005 75));
  --ink: light-dark(oklch(22% 0.008 75), oklch(94% 0.006 85));
  --ink-quiet: light-dark(oklch(45% 0.01 75), oklch(74% 0.01 80));
  --line: light-dark(oklch(89% 0.007 85), oklch(29% 0.006 75));
  --line-strong: light-dark(oklch(58% 0.01 80), oklch(56% 0.01 80));
  --accent: var(--ink);

  /* Type */
  --font: "Figtree", "Figtree Fallback", system-ui, sans-serif;
  --font-statement: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --type-statement: clamp(1.5rem, 0.95rem + 2.4vw, 2.75rem);
  --type-names: clamp(1.125rem, 1rem + 0.4vw, 1.5rem);
  --type-title: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --type-group: clamp(1.375rem, 1.1rem + 1.3vw, 2rem);
  --type-heading: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --type-name: 1.125rem;
  --type-lead: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --type-body: 1.0625rem;
  --type-small: 0.9375rem;
  --type-fine: 0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --page: 80rem;
  --measure: 40rem;
  --gap: clamp(1.25rem, 2.5vw, 2rem);
  --stack: 1rem;
  --stack-loose: 2rem;
  --section: clamp(3rem, 6vw, 5rem);
  --target: 2.75rem; /* the smallest thing a finger is asked to hit: 44 px */

  /* Shape and motion */
  --radius-icon: 22.5%;
  --radius-plate: 0.875rem;
  --radius-picture: 0.5rem;
  --radius-control: 0.5rem;
  --quick: 150ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* Two colours made from a product's own: the wash behind its picture and the line under its
   name. Declared wherever a product is named, so each is worked out from that product's colour. */
:root, [data-product] {
  --wash: color-mix(in oklab, var(--accent) 16%, var(--raised));
  --accent-line: color-mix(in oklab, var(--accent) 72%, var(--ink));
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* A browser without light-dark() gets the light theme, the same six colours written out
   (and site.js keeps the toggle hidden). */
@supports not (color: light-dark(#fff, #000)) {
  :root {
    color-scheme: light;
    --ground: #fbfaf7; --raised: #f3f1ed; --ink: #1d1a17; --ink-quiet: #59554f;
    --line: #dddad6; --line-strong: #7d7a74;
  }
}

@media (prefers-contrast: more) {
  :root { --ink-quiet: var(--ink); --line: var(--line-strong); }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--type-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  /* A word too long for its box (a domain, an address) breaks rather than widening the page. */
  overflow-wrap: anywhere;
  /* The page fills the whole screen of a phone (viewport-fit=cover), so it keeps clear of the
     rounded corners and the camera housing itself. */
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
fieldset { min-inline-size: 0; padding: 0; border: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
img, svg, picture { display: block; max-inline-size: 100%; }
img { block-size: auto; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* The ring's corners are eased where the element has no shape of its own; :where() weighs nothing,
   so this never outranks a shape an element is given, wherever that rule stands. */
:where(:focus-visible) { border-radius: 2px; }
[id] { scroll-margin-block-start: 1.5rem; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; z-index: 5;
  padding: 0.75rem 1rem; background: var(--ink); color: var(--ground); border-radius: var(--radius-control);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.wrap { inline-size: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.section { padding-block: var(--section); border-block-start: 1px solid var(--line); }
.hero + .section { padding-block-start: 0; border: 0; }

/* Split: a heading on the left, its content on the right, on screens wide enough for both. */
.split { display: grid; gap: var(--stack) var(--gap); }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; }
}

/* ── Header and footer ────────────────────────────────────────────────────── */

/* On a wide screen the header stays at the top of the window, and as the page moves under it a
   hairline settles in: a scroll-driven animation where there is one, a hairline that is simply
   there where not. On a phone the header is the top of the page and the bar below is what stays. */
/* The header wraps, so with very large text the theme toggle goes under the name, not off the side. */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; padding-block: 0.625rem; }
.site-header .brand { margin-inline-end: auto; }
@media (min-width: 48rem) {
  /* Nothing a link or the keyboard brings into view hides under the header. */
  html { scroll-padding-block-start: 5rem; }
  .site-header { position: sticky; inset-block-start: 0; z-index: 3; background: var(--ground); view-transition-name: site-header; }
  .site-header::after { content: ""; position: absolute; inset: auto 0 0; block-size: 1px; background: var(--line); }
}
@keyframes settle { from { opacity: 0; } }

/* The company's mark is one file, assets/brand/mark.svg, drawn in the text colour through a
   mask: replace that file and every page carries the new mark. Only the products sit on tiles. */
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: var(--target); overflow-wrap: normal;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none;
}
.mark {
  flex: none; inline-size: 1.5rem; block-size: 1.25rem; background: currentColor;
  -webkit-mask: url("brand/mark.svg") left center / contain no-repeat;
  mask: url("brand/mark.svg") left center / contain no-repeat;
}

/* Main navigation. One list, two presentations. On a wide screen it is a row in the header. On
   a phone it is a bar along the bottom of the window, where a thumb is: Products, About and
   Contact are each one tap from any page, and "More" opens a sheet with the rest. The sheet is a
   popover: it opens and closes without script, on Escape and on a tap outside, it is tied to the
   bar (anchor positioning) and it moves as it opens (@starting-style). */
.site-nav {
  position: fixed; inset: auto 0 0; z-index: 3;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--ground); border-block-start: 1px solid var(--line); anchor-name: --site-bar; view-transition-name: site-bar;
}
/* Equal items in one row. Their type never outgrows the width of a small phone, so a word is
   never broken and the bar is always one row tall, however large the visitor's text. */
.site-nav ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.site-nav a, .menu-button {
  display: grid; place-items: center; inline-size: 100%; min-block-size: 3.5rem; padding: 0; border: 0; background: none; overflow-wrap: normal;
  color: var(--ink-quiet); font: 500 min(var(--type-small), 4.2vw)/1 var(--font); text-decoration: none; cursor: pointer;
}
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 2px var(--ink); }
/* The bar's items reach the edges of the window, so their focus ring is drawn inside them. */
.site-nav :focus-visible { outline-offset: -4px; }
.site-nav a:hover, .menu-button:hover { color: var(--ink); }
/* The room the bar takes, in one place: the page ends above it, nothing scrolled into view hides
   under it, and the sheet sits on it. */
:root { --bar: calc(3.5rem + env(safe-area-inset-bottom)); }
body { padding-block-end: var(--bar); }
html { scroll-padding-block-end: calc(var(--bar) + 1rem); }

.more-sheet {
  position: fixed; inset: auto 0 var(--bar); inset-block-end: anchor(--site-bar top); inline-size: auto; max-block-size: 70dvb;
  /* Open, it is in the top layer and needs no z-index. Closing, a browser without `overlay` takes
     it out of that layer while it still fades: this keeps it over the page for those 200 ms. */
  z-index: 4;
  margin: 0; padding: 0.75rem calc(var(--gutter) + env(safe-area-inset-right)) 0.5rem calc(var(--gutter) + env(safe-area-inset-left));
  border: 0; border-radius: var(--radius-plate) var(--radius-plate) 0 0;
  background: var(--ground); color: var(--ink); overflow-y: auto;
  box-shadow: 0 0 0 1px var(--line), 0 -0.75rem 2rem oklch(0% 0 0 / 0.12);
}
/* Nothing is dimmed behind it: the bar stays as it is, and its last item reads "Close". */
.more-sheet::backdrop { background: none; }
.menu-button .when-open, body:has(.more-sheet:popover-open) .menu-button .when-closed { display: none; }
body:has(.more-sheet:popover-open) .menu-button { color: var(--ink); }
body:has(.more-sheet:popover-open) .menu-button .when-open { display: inline; }
/* When the page is one of the sheet's, "More" is the bar's current item while the sheet is shut; the
   homepage is marked by the brand. */
body:has(.more-sheet a[aria-current="page"]:not([href="/"])):not(:has(.more-sheet:popover-open)) .menu-button { color: var(--ink); box-shadow: inset 0 2px var(--ink); }
.more-sheet a {
  display: flex; align-items: center; justify-content: space-between; min-block-size: 3.25rem;
  border-block-end: 1px solid var(--line); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
}
.more-sheet a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.more-sheet li:last-child a { border: 0; }
/* A browser without popovers has no sheet to open: there the footer, which lists the same pages, is the way. */
@supports not selector(:popover-open) {
  .site-nav .more, .more-sheet { display: none; }
}
@media (min-width: 48rem) {
  :root { --bar: 0px; }
  html { scroll-padding-block-end: 0; }
  .site-nav { position: static; padding: 0; border: 0; background: none; view-transition-name: none; }
  .site-nav ul { display: flex; }
  .site-nav :focus-visible { outline-offset: 3px; }
  .site-nav a { inline-size: auto; min-block-size: var(--target); padding-inline: 0.625rem; font-size: var(--type-small); font-weight: 400; }
  .site-nav a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.45em; }
  .site-nav .more, .more-sheet { display: none; }
}

/* The toggle is a button with an edge, so it reads as something to press. It is shown only once
   site.js, which runs before the header is drawn, has marked the root: so its place is known from
   the first paint, and a page without the script or without two themes offers no switch. */
.theme-toggle {
  display: none; place-items: center; flex: none; inline-size: var(--target); block-size: var(--target); padding: 0;
  background: none; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); cursor: pointer;
}
.themed .theme-toggle { display: inline-grid; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-toggle .half { fill: currentColor; stroke: none; }

/* Footer: the products, the site, the legal pages and an address to write to, then the company's
   own line. Two columns on a phone, four from a tablet up. */
.site-footer { border-block-start: 1px solid var(--line); color: var(--ink-quiet); font-size: var(--type-small); }
.site-footer .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "products site" "products legal" "write write" "company company";
  gap: var(--stack-loose) var(--gap); padding-block: 2.5rem 3rem;
}
.footer-products { grid-area: products; }
.footer-site { grid-area: site; }
.footer-legal { grid-area: legal; }
.footer-write { grid-area: write; }
.footer-company { grid-area: company; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem var(--gap); }
@media (min-width: 48rem) {
  .site-footer .wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    grid-template-areas: "products site legal write" "company company company company";
  }
  .footer-company { padding-block-start: var(--stack-loose); border-block-start: 1px solid var(--line); }
}
/* A link's target is made by padding, not by a flex box: a flex box would drop the spaces between
   a link's words and the places an address may break. */
.site-footer a { display: inline-block; padding-block: calc((var(--target) - 1lh) / 2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer h2 { font-size: var(--type-fine); font-weight: 500; letter-spacing: 0; line-height: 1.55; color: var(--ink-quiet); }
/* The name is the page's last link. Firefox leaves a link where it is when only its lower edge
   is behind the bar; the scroll margin makes it bring this one clear. Seen in Firefox 155
   (November 2026); no bug number is known. To see whether it is still needed: in a window 320 by
   568, Tab from the phone number to this link; if the link and its ring come clear of the bar
   without the margin, delete it. */
.site-footer .brand { display: inline-flex; padding-block: 0; scroll-margin-block-end: 1rem; color: var(--ink); font-size: var(--type-small); line-height: 1.35; }
.site-footer small { font-size: var(--type-fine); }
/* A mouse needs less room than a finger: the lists close up where the pointer is fine. */
@media (pointer: fine) {
  .site-footer a { padding-block: calc((2rem - 1lh) / 2); }
}

/* ── Statement, names and stage: the first screen ─────────────────────────── */

/* Statement: the headline, in the serif: the one large thing on a page. Calm enough to be read as
   a sentence; a little lighter as it grows, as a serif should be. Closing: a page's last words,
   in the same face a step smaller. */
.closing { max-inline-size: 26em; font-family: var(--font-statement); font-size: var(--type-group); font-weight: 480; line-height: 1.15; letter-spacing: -0.01em; }
.closing + .lead { margin-block-start: var(--stack); }
/* The statement stops growing where its longest word, "Corporation", would no longer fit a narrow
   phone, so the legal name is not broken inside a word with text enlarged to twice its size on a
   320 px screen. */
.statement {
  max-inline-size: 24.5em;
  font-family: var(--font-statement); font-size: min(var(--type-statement), 13.5vw); font-weight: 480; line-height: 1.1; letter-spacing: -0.012em;
}
@media (min-width: 48rem) { .statement { font-weight: 450; } }
@media (min-width: 100rem) { .statement { font-weight: 430; } }
.hero { padding-block: clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 4vw, 3.5rem); }

.page-title { font-family: var(--font-statement); font-size: var(--type-title); font-weight: 450; letter-spacing: -0.012em; line-height: 1.08; }
.lead { max-inline-size: var(--measure); font-size: var(--type-lead); line-height: 1.45; color: var(--ink-quiet); }
.page-title + .lead, .statement + .lead { margin-block-start: var(--stack); }
.lead a, .lead [translate] { color: var(--ink); }
.lead + .actions { margin-block-start: var(--stack-loose); }

/* Chooser: the sentence that names every product, one picture of the chosen product, and its few
   words. Each name is a choice (a radio button inside its label), so choosing works by touch, by
   arrow key and with no script. On a wide screen the sentence runs across the page, a line per
   group, with the words and the picture side by side under it. On a phone the picture sits
   between the headline and the sentence, so a name and the picture it changes are on the screen
   together, and the words are left out. */
.chooser { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stack) var(--gap); margin-block-start: clamp(1rem, 2.5vw, 2rem); }
@media not all and (min-width: 40rem) {
  .stage { order: -1; --plate-share: 0.33; }
  /* The register follows at once and says every product's name, status, line, any required
     line and address, so the chosen product's words are not shown here: picture, sentence, then
     the register. Nothing moves when the choice does. (.chooser so this outranks the grid the
     captions get under Stage.) */
  .chooser .captions { display: none; }
}
@media (min-width: 56rem) {
  .chooser {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "names names" "captions stage";
    align-items: start; gap: var(--stack-loose) clamp(2rem, 5vw, 5rem);
  }
  .names { grid-area: names; }
  .stage { grid-area: stage; }
  .captions { grid-area: captions; align-self: center; }
}

/* Names: the sentence, set a size below the statement, in the quiet ink with the names in ink. */
.names p { color: var(--ink-quiet); font-size: var(--type-names); font-weight: 400; line-height: 2.1; }
@media (min-width: 40rem) { .names p { line-height: 1.8; } }
/* A name here is a choice, not a link, so it is not underlined until it is chosen or pointed at.
   Its target is the whole height of its line (::after), so a finger has room. */
.names .token {
  display: inline; padding-block: calc((1lh - 1.2em) / 2); border-radius: 0.3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  color: var(--ink); font-weight: 500; cursor: pointer;
}
.names .token::after { content: ""; position: absolute; inset: 0; }
.names .token [translate] { text-decoration-line: none; }
.pick { position: relative; display: inline-block; max-inline-size: 100%; border-radius: 0.3em; }
/* The radio button is unseen and takes its name's whole box, so a browser that scrolls focus
   into view brings the whole name, and its ring, clear of the bar. */
.pick input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; pointer-events: none; }
/* The chosen name sits on its product's wash, over a line in its colour; the focused one carries
   the focus ring, drawn round the name and its own comma so it crosses neither that nor the next name. */
.pick:has(:checked) .token { background: var(--wash); box-shadow: 0 0 0 0.22em var(--wash); }
.names .token:hover [translate], .pick:has(:checked) .token [translate] { text-decoration-line: underline; text-decoration-thickness: 0.09em; }
.pick:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 0.1em; }
/* WebKit stops reporting keyboard focus on a radio button once an arrow key has moved it, and never
   focuses one on a click. So there, and only there (the query is one only WebKit answers), plain
   focus draws the ring. Seen in WebKit 26 (November 2026); no bug number is known. To see whether
   it is still needed: in Safari, Tab to a name and press an arrow key; if the ring stays without
   this rule, delete it. */
@supports (font: -apple-system-body) {
  .pick:has(:focus) { outline: 2px solid var(--ink); outline-offset: 0.1em; }
}

/* Stage: one figure, the chosen product's: a plate in its wash with one picture of it, and directly
   under it the line that says what the picture is. Every product's figure lies in the same place
   and only the chosen one shows. Captions: the chosen product's name,
   status, a line and its links, laid in one place the same way; beside the picture that place is
   as tall as the tallest, so nothing moves when the choice does, and under it only the chosen
   one takes room. On a phone they are not shown (see Chooser). */
.stage, .captions { display: grid; grid-template-columns: minmax(0, 1fr); }
.stage > figure, .caption { grid-area: 1 / 1; }
/* Every figure is as tall as the one with the longest label, so nothing moves when the choice
   does; a figure with a shorter label gives the room to its plate, and the label stays directly
   under the picture. */
.stage > figure { display: flex; flex-direction: column; visibility: var(--shown, hidden); opacity: var(--shown-opacity, 0); }
.stage .plate { flex: 1 0 auto; aspect-ratio: 3 / 2; }
/* Where the picture is the full width, a short screen caps its height at a share of the room a
   visitor can see, so the picture and the names it answers to fit on the screen together. That
   room is the screen with the browser's own bars showing (svh) less this site's bar: Safari counts
   the room behind its floating toolbar as screen and reports it as the bottom safe area, which
   --bar includes. */
@supports (inline-size: 1cqi) and (block-size: 1svh) {
  @media not all and (min-width: 56rem) {
    .stage { container-type: inline-size; }
    .stage .plate { aspect-ratio: auto; flex-basis: min(66.667cqi, (100svh - var(--bar)) * var(--plate-share, 0.62)); }
  }
  /* Beside its words on a wide screen the cap is the room left under the header, the statement
     and the names (26rem with the label), so on a laptop the picture and the label under it end
     above the fold. Never under 12rem; a tall window is not affected. */
  @media (min-width: 56rem) {
    .stage { container-type: inline-size; }
    .stage .plate { aspect-ratio: auto; flex-basis: min(66.667cqi, max(12rem, 100svh - 26rem)); }
  }
}
.caption { display: var(--shown-display, none); align-content: start; gap: 0.5rem; max-inline-size: 30em; }
@media (min-width: 56rem) {
  .caption { display: grid; visibility: var(--shown, hidden); opacity: var(--shown-opacity, 0); }
}
.caption-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.875rem; }
.caption-id { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--type-heading); view-transition-name: var(--travel, none); }
.caption-id .icon { font-size: 1.3em; }

/* Where :has() is missing nothing can be chosen, so the first product is simply shown. */
@supports not selector(:has(*)) {
  .caption:first-child { display: grid; visibility: visible; opacity: 1; }
  .stage > figure:first-child { visibility: visible; opacity: 1; }
  .pick input { display: none; }
  .names .token { pointer-events: none; }
}

/* ── Product pieces ───────────────────────────────────────────────────────── */

/* Two rules per product. The first: its own colour, and the name its icon and name travel under
   between pages. The second: choosing its name on the homepage shows its figure and its caption
   (the two elements that carry its data-product inside the chooser). The system holds these
   colours; it never repaints the products. */
[data-product="crewtron"] { --accent: #04ab70; --morph: crewtron; }
[data-product="invoicing-free"] { --accent: #04ab70; --morph: invoicing-free; }
[data-product="quoting-free"] { --accent: #2b4c7e; --morph: quoting-free; }
[data-product="tightyard"] { --accent: #2d46c8; --morph: tightyard; }
[data-product="ingle"] { --accent: #f05a28; --morph: ingle; }
[data-product="pay-down-or-invest"] { --accent: #2a78d6; --morph: pay-down-or-invest; }
[data-product="see-what-you-feel"] { --accent: #39c6d6; --morph: see-what-you-feel; }

.chooser:has(#pick-crewtron:checked) [data-product="crewtron"] { --shown: visible; --shown-opacity: 1; --shown-display: grid; --travel: var(--morph); }
.chooser:has(#pick-invoicing-free:checked) [data-product="invoicing-free"] { --shown: visible; --shown-opacity: 1; --shown-display: grid; --travel: var(--morph); }
.chooser:has(#pick-quoting-free:checked) [data-product="quoting-free"] { --shown: visible; --shown-opacity: 1; --shown-display: grid; --travel: var(--morph); }
.chooser:has(#pick-tightyard:checked) [data-product="tightyard"] { --shown: visible; --shown-opacity: 1; --shown-display: grid; --travel: var(--morph); }
.chooser:has(#pick-ingle:checked) [data-product="ingle"] { --shown: visible; --shown-opacity: 1; --shown-display: grid; --travel: var(--morph); }
.chooser:has(#pick-pay-down-or-invest:checked) [data-product="pay-down-or-invest"] { --shown: visible; --shown-opacity: 1; --shown-display: grid; --travel: var(--morph); }
.chooser:has(#pick-see-what-you-feel:checked) [data-product="see-what-you-feel"] { --shown: visible; --shown-opacity: 1; --shown-display: grid; --travel: var(--morph); }

/* Icon: a product's own mark, always a rounded tile (the smoother app-icon corner where the
   browser can draw it). */
.icon {
  display: inline-block; inline-size: 1em; block-size: 1em; flex: none;
  border-radius: var(--radius-icon); object-fit: cover;
  outline: 1px solid color-mix(in oklab, var(--ink) 16%, transparent); outline-offset: -1px;
}
@supports (corner-shape: squircle) {
  .icon { border-radius: 32%; corner-shape: squircle; }
}
/* A product with no icon of its own gets its initial on a plain tile in the site's ink:
   a stand-in in the site's system, not a logo drawn for it. The letter comes from data-letter,
   so it is drawn but is not part of the sentence a reader, a crawler or a translator reads. */
.icon-letter { overflow: hidden; background: var(--ink); color: var(--ground); font-weight: 600; letter-spacing: 0; text-align: center; }
.icon-letter::before { content: attr(data-letter); display: block; font-size: 0.58em; line-height: 1.724; }

/* Token: a product named as a link, icon first, its name underlined in its own colour.
   Unit: a few words that stay on one line while they fit, and wrap inside themselves only when
   they cannot, so enlarged text never pushes the page sideways. A line may break after a unit,
   so a comma or full stop that belongs to it goes inside it. */
.token, .unit { display: inline-block; max-inline-size: 100%; }
.token { text-decoration: none; }
.token .icon { font-size: 0.84em; vertical-align: -0.085em; margin-inline-end: 0.2em; }
.token [translate] {
  text-decoration: underline; text-decoration-thickness: 0.055em; text-decoration-color: var(--accent-line);
  text-underline-offset: 0.2em; text-decoration-skip-ink: none;
}
.token:hover [translate] { text-decoration-thickness: 0.11em; }

/* Status: always a word, in ink and bold; the marker only repeats it (filled: live, hollow: not yet).
   The marker is all border, so it keeps its two shapes when a system forces its own colours. */
.status {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--ink); font-size: var(--type-small); font-weight: 650; letter-spacing: 0; line-height: 1.3;
}
.status::before {
  content: ""; flex: none; inline-size: 0.55em; block-size: 0.55em; border-radius: 50%;
  border: 0.275em solid currentColor;
}
.status[data-state="development"]::before { border-width: 0.12em; }

.meta { color: var(--ink-quiet); font-size: var(--type-small); }
.credit { color: var(--ink-quiet); font-size: var(--type-fine); line-height: 1.45; }
figcaption { margin-block-start: 0.5rem; }

/* Plate: a wash of the product's own colour that holds one picture of the product, shown whole.
   The picture keeps its own shape and its own colours in both themes: nothing is laid over it. */
.plate { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-plate); background: var(--wash); }
.plate img {
  position: absolute; inset: 0; margin: auto; inline-size: auto; block-size: auto;
  max-inline-size: 88%; max-block-size: 86%; border-radius: var(--radius-picture);
  filter: drop-shadow(0 1px 2px oklch(0% 0 0 / 0.1)) drop-shadow(0 0.5rem 1.25rem oklch(0% 0 0 / 0.1));
}

/* Group: a heading, and on the Products page a line saying what the group is for. */
.group-head { margin-block-end: var(--stack); }
.group-title { font-family: var(--font-statement); font-size: var(--type-group); font-weight: 480; letter-spacing: -0.01em; }
.group-title + .lead { margin-block-start: 0.5rem; }

/* Register: a group's products as rows, each one: its name and status, a line about it, where it
   runs and what it costs, and its own address. Stacked on a phone, four columns on a wide screen. */
.register { border-block-start: 1px solid var(--line); }
.register:last-child .entry:last-child { border-block-end: 0; padding-block-end: 0; }
.register + .group-head { margin-block-start: clamp(2rem, 4vw, 3rem); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.375rem; padding-block: 1rem; border-block-end: 1px solid var(--line); font-size: var(--type-small); line-height: 1.45; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.125rem 0.5rem; }
.entry-head .icon { font-size: 1.5rem; }
.entry-head h3 { font-size: var(--type-name); }
.entry-head .status { margin-inline-start: 0.25rem; }
.entry-text { display: grid; gap: 0.25rem; }
.entry-door a { font-weight: 550; text-decoration-color: var(--accent-line); }
.entry-door a:hover { text-decoration-color: currentColor; }
@media (pointer: coarse) {
  .entry-door a { display: inline-block; padding-block: calc((var(--target) - 1lh) / 2); }
}
@media (min-width: 48rem) {
  .entry { grid-template-columns: 14rem minmax(0, 1fr); gap: 0.25rem var(--gap); padding-block: 0.875rem; }
  /* Two lines for every product, the status under the name, so no row is built unlike the next. */
  .entry-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-row: span 2; align-self: start; }
  .entry-head .icon { grid-row: span 2; align-self: start; }
  .entry-head .status { grid-column: 2; justify-self: start; margin-inline-start: 0; }
  .entry-text, .entry .meta, .entry-door { grid-column: 2; }
}
@media (min-width: 72rem) {
  .entry { grid-template-columns: min(14rem, 22%) minmax(0, 1fr) min(17.5rem, 27%) min(11.5rem, 18%); gap: 0 var(--gap); }
  .entry-head { grid-row: auto; }
  .entry-text, .entry .meta, .entry-door { padding-block-start: 0.1875rem; }
  .entry .meta { grid-column: 3; }
  .entry-door { grid-column: 4; justify-self: end; text-align: end; }
}

/* Jump: the Products page's own index, one list per group: side by side as two short columns on a
   phone, one row each on a tablet, one row for all on a desktop. */
.jump { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin-block-start: var(--stack-loose); font-weight: 500; letter-spacing: -0.015em; }
.jump ul { display: flex; flex-direction: column; }
.jump a { display: flex; align-items: center; min-block-size: var(--target); }
.jump .icon { font-size: 1.15em; margin-inline-end: 0.35em; }
@media (min-width: 40rem) {
  .jump ul { flex-flow: row wrap; gap: 0 1.75rem; }
}

/* Product: one product in full (the Products page). Name and status first, then its picture,
   then the words; on a wide screen the picture stands beside both. */
.group { padding-block: var(--section); }
.group + .group { border-block-start: 1px solid var(--line); }
.hero + .group { padding-block-start: 0; }
.product {
  display: grid; grid-template-areas: "head" "figure" "body"; gap: var(--stack) var(--gap);
  padding-block: clamp(2.5rem, 6vw, 4.5rem); border-block-start: 1px solid var(--line);
}
.product:last-child { padding-block-end: 0; }
.product-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; }
/* The icon and the name are one piece: together they are what travels here from the homepage. */
.product-id { display: inline-flex; align-items: center; gap: 0.75rem; }
.product-id .icon { font-size: 2.75rem; }
.product-id h3 { font-size: var(--type-heading); }
.product-head .meta { flex-basis: 100%; }
.product figure { grid-area: figure; }
/* On a phone a tall screen gets a tall plate, so it is drawn large enough to read. */
@media not all and (min-width: 40rem) { .product .plate-tall { aspect-ratio: 4 / 5; } }
.product-body { grid-area: body; display: grid; align-content: start; gap: var(--stack); max-inline-size: var(--measure); }
.product-words { font-size: var(--type-lead); line-height: 1.4; letter-spacing: -0.01em; }
.product-points { display: grid; gap: 0.375rem; padding-inline-start: 1.1em; list-style: disc; }
.product-points ::marker { color: var(--line-strong); }
.caution { padding-inline-start: 0.875rem; border-inline-start: 2px solid var(--line-strong); }
@media (min-width: 52rem) {
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head figure" "body figure";
    grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
/* Links: a row of second links under a button; it wraps as words do. */
.links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: var(--type-small); }
.links a { display: inline-block; padding-block: calc((var(--target) - 1lh) / 2); padding-inline: 0.375rem; margin-inline: -0.375rem; }
.links a:focus-visible { outline-offset: -4px; } /* inside the target, clear of a button above and of the words */
.button {
  display: inline-block; min-block-size: var(--target); padding: 0.75rem 1.125rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 var(--type-small)/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
}
.button:hover { border-color: var(--ink); }
.button-primary { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.button-primary:hover { background: color-mix(in oklab, var(--ink) 86%, var(--ground)); }
/* The arrow says "leaves this site" to the eye; the second value keeps it out of the link's spoken
   name. It follows a no-break space (\00a0), so it is never left alone on a line. */
.out::after { content: "\00a0↗"; content: "\00a0↗" / ""; font-size: 0.9em; }

/* ── Long-form text (the long pages are built from these) ── */

.prose { max-inline-size: 36rem; } /* about 70 characters a line of long text; --measure (40rem) runs to 78 */
.prose > * + * { margin-block-start: var(--stack); }
.prose h2 { font-size: var(--type-heading); margin-block-start: 3rem; }
.prose h3 { font-size: var(--type-name); margin-block-start: 2rem; }
.prose > :first-child { margin-block-start: 0; }
.prose ul { display: grid; gap: 0.375rem; padding-inline-start: 1.25em; list-style: disc; }
.prose ::marker { color: var(--ink-quiet); }

/* Contents: a long page's own index, beside the text on a wide screen. A narrow screen has no
   list: there the text itself starts on the first screen. A second line of an entry hangs
   indented, so that it is not read as an entry of its own. The last line stands a paragraph's
   space under the list: it names another page. */
.contents { display: none; font-size: var(--type-small); }
.contents a { display: flex; align-items: center; min-block-size: var(--target); padding-inline-start: 1em; text-indent: -1em; }
@media (min-width: 56rem) {
  .contents { display: block; align-self: start; }
  .contents > :last-child { margin-block-start: var(--stack); }
}
@media (min-width: 56rem) and (pointer: fine) {
  .contents a { min-block-size: 2rem; }
}
/* The list stays in view while the text scrolls only where all of it can be seen at once: under a
   mouse (rows a finger can hit make it taller than a tablet's screen) in a window 45rem tall or
   more. Anywhere else it stands at the head of the text and scrolls away with it, whole. A list
   too long even for that scrolls within itself, and a box that scrolls clips what reaches past
   its edge: so a focus ring has room inside it, at the sides by padding the margin takes back,
   at the end by padding in the last line. */
@media (min-width: 56rem) and (pointer: fine) and (min-height: 45rem) {
  .contents {
    position: sticky; inset-block-start: 5rem; max-block-size: calc(100dvb - 6rem); overflow-y: auto;
    padding-inline: 0.375rem; margin-inline: -0.375rem;
  }
  .contents > :last-child { padding-block-end: 0.375rem; }
}

/* The head of a document: the title block of a long text an <article> holds. On a phone it is
   kept short, so that the text starts as high on the first screen as it can (the first section
   of the Privacy Policy is what a registration reviewer opens that page to find); a section
   heading that comes directly under it keeps a heading's space above. */
@media not all and (min-width: 48rem) {
  article > .hero { padding-block: 0.75rem; }
  article > .hero .lead { margin-block-start: 0.25rem; }
  article > .hero + .section .prose > h2:first-child { margin-block-start: 1.5rem; }
}

/* Reach: an address or a number to reach the company by, on a line of its own, close under its
   label with its note close under it: a size up, and a full target for a finger, with its focus
   ring drawn inside the target so that it crosses neither the label nor the note. */
.reach { font-size: var(--type-lead); line-height: 1.45; }
.prose .reach, .prose .reach + p { margin-block-start: 0; }
.reach a { display: inline-block; max-inline-size: 100%; padding-block: calc((var(--target) - 1lh) / 2); }
.reach a:focus-visible { outline-offset: -4px; }

/* ── Motion: only to explain where something went ─────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: the chosen product's icon and name travel to their place on the Products page;
     everything else cross-fades. */
  @view-transition { navigation: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 280ms; animation-timing-function: var(--ease); }
  a, .button, .theme-toggle, .menu-button { transition: color var(--quick) var(--ease), border-color var(--quick) var(--ease), background-color var(--quick) var(--ease), text-decoration-color var(--quick) var(--ease); }
  /* On a wide screen a hairline settles under the header as the page moves beneath it. */
  @supports (animation-timeline: scroll()) {
    @media (min-width: 48rem) {
      .site-header::after { animation: settle linear both; animation-timeline: scroll(root); animation-range: 0 4rem; }
    }
  }
  /* The phone's sheet rises from the bar. */
  .more-sheet {
    opacity: 0; translate: 0 1rem;
    transition: opacity 200ms var(--ease), translate 200ms var(--ease), overlay 200ms allow-discrete, display 200ms allow-discrete;
  }
  .more-sheet:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .more-sheet:popover-open { opacity: 0; translate: 0 1rem; } }
  /* The chosen product's picture and words fade in. Nothing slides. Pictures cross-fade; words do
     not (the ones leaving are gone at once), so two captions are never read through each other. */
  .stage > figure { transition: opacity 240ms var(--ease), visibility 240ms; }
  .caption { transition: opacity calc(var(--shown-opacity, 0) * 240ms) var(--ease); }
  .names .token { transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease); }
}
.product:target .product-id { view-transition-name: var(--morph); }

/* ── Other media ──────────────────────────────────────────────────────────── */

@media (forced-colors: active) {
  .plate, .button, .icon-letter { border: 1px solid CanvasText; }
  /* A background is repainted in the page's colour, so the mark is told to keep its own, in the text's. */
  .mark { forced-color-adjust: none; background: CanvasText; }
  /* Shadows are dropped: the sheet gets an edge and the bar's current page an underline. */
  .more-sheet { border: 1px solid CanvasText; }
  .site-nav a[aria-current="page"] { text-decoration: underline; }
  body:has(.more-sheet a[aria-current="page"]:not([href="/"])):not(:has(.more-sheet:popover-open)) .menu-button { text-decoration: underline; }
}

/* Paper is light, whatever theme the visitor chose on screen. A printer leaves backgrounds out:
   the lettered tile is drawn with one, so it asks to be printed as it is, and the solid button,
   which would lose its fill and keep its pale text, prints as an outlined one.
   The picture is kept short, so the first sheet holds the names and the picture together. No
   picture or row is cut in two by the end of a sheet; for that a product's article and its
   words are plain blocks on paper (a grid that will not split leaves most of a sheet blank). */
@media print {
  :root, :root[data-theme] { color-scheme: light; }
  .site-nav, .more-sheet, .theme-toggle, .themed .theme-toggle, .skip-link { display: none; }
  .icon-letter { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .button-primary { background: none; color: var(--ink); }
  .stage { --plate-share: 0.3; }
  .product, .product-body { display: block; }
  .product > * + *, .product-body > * + * { margin-block-start: var(--stack); }
  figure, .entry { break-inside: avoid; }
  a[href^="http"]:not(.address)::after { content: " (" attr(href) ")"; font-size: var(--type-fine); }
  /* Long text on paper: the lists of links are left out and the contact details kept in one piece,
     and the text takes the place its contents list leaves, on a sheet wide enough for two
     columns too; the mark is a background, which a browser prints only when told to; a heading
     stays with the text it heads, and a list's last line with the line before it. */
  .contents, .site-footer nav { display: none; }
  .contents + .prose { grid-column: 1 / -1; }
  .site-footer { break-inside: avoid; }
  .site-footer .wrap { display: block; }
  .footer-company { margin-block-start: var(--stack-loose); }
  .mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  h1, h2, h3 { break-after: avoid; }
  .prose li:last-child { break-before: avoid; }
  @page { margin: 2cm; }
}
