/* quoroom.org: the family pages, built by tools/family.py. Static, no script,
   no framework.

   The look is the one the founder chose for the home (direction C, "bold
   brand"): a navy band carries the header, the home's opening, its "How it
   works" and the footer; the brand's orange marks the one main action, the
   rules and the links set apart; between the bands the page is light, or
   dark, with cards on a soft tint. The band stays navy in both themes,
   because it is the brand, not the page. Everything else follows the
   reader's system theme: there is no switch, since a switch needs a script.

   The three typefaces are the reference's (site/fonts), so that quoroom.org
   and hoa.quoroom.org read as one family. They are served from this origin,
   so a page loads nothing from anywhere else, which is what /trust says.
   Only the latin subsets ship, as these pages are English, and only the
   faces declared below: tools/family.py's FONTS copies exactly these files.

   What the fragments in family/src/ can use besides plain HTML:
     .wrap                  the column every band's content sits in
     .lede, .crumb          a page's first paragraph; the trail above its title
     .btn                   a filled button: navy, white in the dark theme
       .btn-primary         the orange one, for a page's one main action
       .btn-ghost           an outlined one, on the navy band
     .link, .links          a link set apart, underlined in orange; a row of
                            them, a .sep between each two (dropped on a phone)
     .nw                    words kept on one line
     .actions               a row of buttons and links
     .note                  an aside: a tinted box, or in .page-head a line
                            with its mark, as the home's note on the band
     .label                 a status, from <!--label KEY-->: a pill with a dot.
                            On a <span> in a .legend it is the key to them; in
                            .status and in .dates it is a row
     .tag                   a small outlined tag: Sample, Not yet
     .i                     a stroke icon: an inline <svg viewBox="0 0 24 24">
     .tile, .soft           an icon's square: navy, or the soft orange
     .promises              a list with a mark on each line: li.do a check,
                            li.dont no entry, li.info what is true today
     .signpost              a link card: a .soft, then words whose link covers it
     .scroll                the box a <table> sits in, which scrolls if it must
     .sec-head, .sec-title  a section's heading row, and its big title
   The home is main.home: bands that run edge to edge, each with its own
   .wrap (.hero with its .samples, .who with the .doors, .how, .products,
   .trust). Every other page opens with .page-head on the band, the title
   beside a .status box where it has a status and an action, then runs in
   .sec bands (.sec-tint, .sec-wash, .sec-band), each with its own .wrap:
     .groups > .group > .plist  the products, as on the home, with their labels
     .qs > .q, .limits, .used   a product page's questions, its limits, where it is used
     #sample .sc                Voice intake's sample, the home's pitch card
     .parts > .part             the docs, a card for each part
     .row                       a long page's rows: the heading left, the words right
     .row > .nevers             trust's "What we do not do", as the home's band
     .soon, .terms > .log       trust's Not yet lines; the change log in its box
     .ways > .door              Talk to us: the ways to write, as the home's doors */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(/fonts/poppins-800-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url(/fonts/source-serif-4-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url(/fonts/source-serif-4-600-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }

/* ---------- tokens ---------- */

:root {
  /* Both themes, from the reader's system. This also moves what the browser
     draws itself, such as scrollbars and form controls. */
  color-scheme: light dark;

  /* The band, the same in both themes. */
  --band:       #16243F;
  --band-line:  #2D4270;
  --band-ink:   #FFFFFF;
  --band-body:  #CAD3E4;
  --band-muted: #9DABC5;
  --orange:     #EE6B24;
  --orange-hi:  #FF8443;
  --on-orange:  #16243F;

  --page:      #FFFFFF;
  --tint:      #F6F5F1;
  --wash:      #FDF1E8;
  --trust-bg:  #FDF1E8;
  --surface:   #FFFFFF;
  --rule:      #E4E2DC;
  --rule-soft: #EFEDE8;
  --ink:       #16243F;
  --body:      #3A4357;
  --muted:     #5F6878;
  --accent:    #B84C16;

  --tile:          #16243F;
  --tile-ink:      #EE6B24;
  --soft-tile:     #FDF1E8;
  --soft-tile-ink: #B84C16;
  /* the filled button: navy on the light page, near white on the dark one */
  --solid-bg:      #16243F;
  --solid-fg:      #FFFFFF;
  --solid-hi:      #2A4170;

  /* The labels: a pilot on the orange pair, in development on the grey-blue one. */
  --pilot-fg:  #9A3F10;
  --pilot-bg:  #FDF1E8;
  --pilot-dot: #EE6B24;
  --dev-fg:    #34455F;
  --dev-bg:    #EAEEF4;
  --dev-dot:   #6B7A95;

  --yes: #1C6B45;     --yes-bg: #E2F1E8;
  --no: #A83A22;      --no-bg: #FBE8E3;
  --unclear: #8A4A12; --unclear-bg: #FCF0DE;

  /* The focus ring: on the light page the accent, since the brand orange
     falls under 3:1 on the tint and the wash; in the dark theme, and on the
     band in both, the orange. --ring is the page's, --focus the one where
     the ring is drawn. */
  --ring:  #B84C16;
  --focus: var(--ring);

  /* the samples on the band */
  --s-bg:       #FFFFFF;
  --s-ink:      #16243F;
  --s-muted:    #667085;
  --s-rule:     #ECEAE5;
  --s-hl:       #FDF1E8;
  --s-chip:     #F1EFEA;
  --s-chip-ink: #4A5468;
  --s-shadow:   0 1px 2px rgba(4, 10, 24, .28), 0 28px 56px -20px rgba(2, 6, 18, .62);

  --brand: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --read:  "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap:    1200px;
  --gutter:  40px;
  --measure: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page:      #0C1321;
    --tint:      #0F1828;
    --wash:      #1B2640;
    /* a warm dark wash, as the light theme's is a warm light one: the tint
       would all but match the products band above it */
    --trust-bg:  #1E1813;
    --surface:   #141F35;
    --rule:      #283551;
    --rule-soft: #1F2A42;
    --ink:       #F1F4F9;
    --body:      #C3CAD8;
    --muted:     #98A3B8;
    --accent:    #FF9A5C;
    --tile:          #22365C;
    --tile-ink:      #FF8A4C;
    --soft-tile:     #2A1D14;
    --soft-tile-ink: #FF9A5C;
    --solid-bg:      #F1F4F9;
    --solid-fg:      #16243F;
    --solid-hi:      #FFFFFF;
    --pilot-fg:  #FFBA90;
    --pilot-bg:  #2E1D12;
    --pilot-dot: #FF8A4C;
    --dev-fg:    #C3CDE0;
    --dev-bg:    #1F2B47;
    --dev-dot:   #8C9BB8;
    --yes: #7FD8A8;     --yes-bg: #13291E;
    --no: #F29A86;      --no-bg: #35191A;
    --unclear: #E9B272; --unclear-bg: #2C2213;
    --ring: var(--orange);
    --s-bg:       #1C2B49;
    --s-ink:      #F1F4F9;
    --s-muted:    #9AA8C2;
    --s-rule:     #2B3D62;
    --s-hl:       #35271D;
    --s-chip:     #26375A;
    --s-chip-ink: #C9D2E3;
    --s-shadow:   0 1px 2px rgba(0, 0, 0, .45), 0 28px 56px -20px rgba(0, 0, 0, .75);
  }
}

/* ---------- base ---------- */

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

/* The canvas is the band, so that a page shorter than the window ends in
   the footer's navy, and so does the overscroll above the header; the page
   itself is on the body. */
html {
  background: var(--band);
  color: var(--body);
  font-family: var(--read);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { margin: 0; background: var(--page); }

/* No element brings margins of its own: each part sets the space around it.
   :where() keeps this at no specificity, so that any class wins over it; the
   inner pages' prose gets its spacing back further down. */
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
h1, h2, h3, h4 { font-family: var(--brand); color: var(--ink); text-wrap: balance; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* on the navy band the ring is the orange, 4.9:1 there; the menus' panels
   are the page's surface again */
.skip, .top, .hero, .how, .page-head, .sec-band, .foot { --focus: var(--orange); }
.panel { --focus: var(--ring); }
/* Source Serif ships at 400 and 600 only; a heavier weight would be faked */
b, strong { font-weight: 600; color: var(--ink); }

/* One column for every page, so the brand and the text start at the same
   point everywhere. */
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.i {
  display: block; flex: none; width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Off screen until a keyboard reaches it, then the first thing in the tab order. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; border-radius: 0 0 10px 0;
  background: var(--orange); color: var(--on-orange);
  font: 600 0.9375rem/1 var(--brand); text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- buttons and links ---------- */

/* A button is filled unless it says otherwise: navy on the light page, near
   white on the dark one. Its two to four words keep one line, unless a
   reader's larger text would push it out of its column. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  background: var(--solid-bg); color: var(--solid-fg);
  font: 600 1rem/1.2 var(--brand); text-align: center; text-decoration: none;
}
.btn:hover { background: var(--solid-hi); color: var(--solid-fg); }
/* the one orange action on a page: navy on orange clears 4.9:1 */
.btn-primary, .btn-primary:hover { color: var(--on-orange); }
.btn-primary { background: var(--orange); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-ghost, .btn-ghost:hover { background: transparent; color: var(--band-ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .34); }
.btn-ghost:hover { border-color: var(--band-ink); }

.link, .built a {
  font-family: var(--brand); font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link { font-size: 0.9375rem; line-height: 1.35; }
.link:hover, .built a:hover { color: var(--accent); }
/* A link standing on its own is a line of text, about 20 px tall: a little
   padding, taken back by the margin, makes it easier to hit without moving
   anything. */
.link, .f-links a, .crumb a { padding-block: 2px; margin-block: -2px; }

/* words that stay together on a line: "sign-in" is not broken at its hyphen */
.nw { white-space: nowrap; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }

/* ---------- header ---------- */

/* Above the band that follows it, so that an open menu lies over the page. */
.top { position: relative; z-index: 20; background: var(--band); color: var(--band-body); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 36px; min-height: 76px; }

.brand {
  font: 800 1.25rem/1 var(--brand); letter-spacing: -0.02em;
  color: var(--band-ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--orange); }
.brand .mark { display: inline-block; width: 1.6em; height: auto; margin-right: 0.4em; vertical-align: -0.36em; }
/* the ring takes the link's colour, which a forced palette changes with it */
.brand .mark path { fill: currentColor; }
.brand .mark polygon { fill: var(--orange); }

/* The two menus, Docs and Trust; then Sign in at the far end, and Talk to us
   after the navigation. */
.top nav { flex: 1 1 auto; display: flex; align-items: center; gap: 0 30px; font: 500 0.9375rem/1 var(--brand); }
.top nav > a, .menu > summary {
  display: flex; align-items: center; gap: 8px; padding-block: 16px;
  color: var(--band-body); text-decoration: none;
}
.top nav > a:hover, .menu > summary:hover, .menu[open] > summary { color: var(--band-ink); }
/* the page being read, and the menu that holds it */
.top nav > a[aria-current="page"], .menu:has([aria-current="page"]) > summary {
  color: var(--band-ink); box-shadow: inset 0 -2px var(--orange);
}
/* the sign-in link starts the group at the far end (family.py's SIGN_IN) */
.top nav > a[href="https://air.quoroom.org/"] { margin-left: auto; color: var(--band-ink); }

.cta {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 20px;
  border: 1.5px solid rgba(255, 255, 255, .42); border-radius: 999px;
  color: var(--band-ink); font: 600 0.9375rem/1.2 var(--brand); text-decoration: none; white-space: nowrap;
}
.cta:hover, .cta[aria-current="page"] { border-color: var(--band-ink); background: rgba(255, 255, 255, .08); }

/* A <details> opens and closes with no script. On a wide screen its panel
   hangs under the summary; on a narrow one, under the whole header, from
   gutter to gutter (below). Either way it lies over the page, and nothing
   in the header moves. */
.menu { position: relative; }
.menu > summary { cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid; border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}
.menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }

.panel {
  position: absolute; z-index: 30; top: calc(100% + 4px); left: -16px;
  min-width: 248px; padding: 12px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(4, 10, 24, .38);
}
.panel a {
  display: block; padding: 9px 12px; border-radius: 10px;
  font: 600 0.9375rem/1.3 var(--brand); color: var(--ink); text-decoration: none;
}
.panel a:hover, .panel a[aria-current="page"] { background: var(--wash); color: var(--ink); }
.panel .group { padding: 8px 12px 4px; font: 500 0.8125rem/1.3 var(--brand); color: var(--muted); }
.panel .all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--rule-soft); border-radius: 0 0 10px 10px; color: var(--accent); }
.panel .all:hover, .panel .all[aria-current="page"] { color: var(--accent); }

@media (min-width: 561px) {
  /* Products: its two groups side by side, a heading and three links to a
     column (family.py's PRODUCTS), and All products under both; on a phone,
     one column. */
  .panel:has(> .group) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 8px;
    width: 468px;
  }
  .panel .all { grid-column: 1 / -1; grid-row: 5; }
}

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

/* What Quoroom.org is and who runs it on the left, where to go on the right. */
.foot { padding: 56px 0 64px; background: var(--band); color: var(--band-muted); font: 500 0.875rem/1.6 var(--brand); }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 56px; }
.f-note { font-size: 1rem; font-weight: 600; color: var(--band-ink); }
.f-company { margin-top: 4px; }
.f-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; list-style: none; }
.f-links a { color: var(--band-body); text-decoration: none; }
.f-links a:hover { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--orange); }

/* ---------- statuses and tags ---------- */

/* A label states a status, worded as data/family.json has it. Its dot says
   which: filled orange for a pilot, an empty ring for in development. A
   long one wraps inside its pill rather than running off a phone. */
.label {
  display: flex; align-items: baseline; gap: 8px;
  width: fit-content; max-width: 100%;
  margin: 0 0 16px; padding: 5px 12px 5px 10px; border-radius: 16px;
  font: 600 0.8125rem/1.35 var(--brand); text-wrap: pretty;
}
/* An empty box has no baseline of its own, so its bottom edge sits on the
   text's: the dot rests on the line the way a lowercase letter does. The
   pilot's dot is a ring as thick as its radius, which a forced palette
   draws where it would drop a background. */
.label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.label-pilot { color: var(--pilot-fg); background: var(--pilot-bg); }
.label-pilot::before { border: 4px solid var(--pilot-dot); }
.label-in-development { color: var(--dev-fg); background: var(--dev-bg); }
.label-in-development::before { border: 1.5px solid var(--dev-dot); }
/* labels in a run sit closer to each other than to what follows them */
.label:has(+ .label) { margin-bottom: 8px; }
span.label { display: inline-flex; margin: 0; }
/* In a .status box and in the HOA door's .dates a label is a row, not a
   pill: the dot, then the words. */
:is(.status, .dates) .label {
  gap: 12px; width: auto; margin: 0; padding: 0; border-radius: 0; background: none; text-wrap: pretty;
}

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font: 500 0.875rem/1.4 var(--brand); color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 10px; }
/* a key's chips are a word or two: they keep their line, the explanation wraps */
.legend .label { flex: none; white-space: nowrap; }

.tag {
  display: inline-block; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px;
  font: 600 0.6875rem/1.2 var(--brand); color: var(--muted); vertical-align: 0.1em;
}

/* ---------- the inner pages ---------- */

/* Every page but the home opens as the home does, on the band, only
   shorter: the trail, the title and its paragraph, and where the page has
   them, its status and its one action, in a .status box that stands beside
   the title on a wide screen. Under the band the page runs in .sec bands,
   light, tinted, washed or navy again, each with its own .wrap, so that an
   inner page keeps the home's rhythm.

   An address written out as a link's text has no space to wrap at, and
   would run off a phone: on these pages it may break inside a word. */
main:not(.home) { overflow-wrap: break-word; }
main:not(.home) [id] { scroll-margin-top: 24px; }

/* Plain prose gets back the spacing the base took away, at no specificity
   again, so that any class still wins: a heading has space above it only
   when something comes before it. The one exception is the last rule, which
   weighs as much as a class (its :last-child): a class declared after it
   still wins, one declared before it does not, and an element rule such as
   table's never does. */
:where(main:not(.home)) :where(p, ul, ol, table) { max-width: var(--measure); }
:where(main:not(.home)) :where(p) { margin: 0 0 16px; }
/* no paragraph or item ends on a word alone, where the browser can help it */
:where(main:not(.home)) :where(p, li) { text-wrap: pretty; }
:where(main:not(.home)) :where(ul, ol) { margin: 0 0 20px; padding-left: 22px; }
:where(main:not(.home)) :where(li) { margin-bottom: 6px; }
:where(main:not(.home)) :where(h2) { margin: 0 0 16px; font-size: 1.625rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
:where(main:not(.home)) :where(h3) { margin: 0 0 8px; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
:where(main:not(.home)) :where(* + h2) { margin-top: 48px; }
:where(main:not(.home)) :where(* + h3) { margin-top: 24px; }
:where(main:not(.home)) :where(p, ul, ol, table):last-child { margin-bottom: 0; }

.crumb { margin: 0 0 18px; font: 500 0.875rem/1.4 var(--brand); color: var(--muted); }
.crumb a { color: var(--muted); }
.lede { max-width: 36em; margin: 0 0 28px; font: 400 1.3125rem/1.55 var(--read); color: var(--body); }

.note {
  padding: 14px 18px; border: 1px solid var(--rule-soft); border-radius: 14px; background: var(--tint);
  font: 500 0.9375rem/1.55 var(--brand); color: var(--body);
}

/* ---------- the inner pages: the opening ---------- */

.page-head { padding: 56px 0 80px; background: var(--band); color: var(--band-body); }
.page-head h1 {
  max-width: 15em; margin: 0;
  color: var(--band-ink);
  font-size: clamp(2.25rem, 2.5vw + 1.6rem, 3.75rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -0.04em;
}
.page-head .crumb { color: var(--band-muted); }
.page-head .crumb a { color: var(--band-body); text-decoration-color: rgba(255, 255, 255, .35); }
.page-head .crumb a:hover { color: var(--band-ink); }
.page-head .lede { max-width: 34em; margin: 22px 0 0; color: var(--band-body); }
/* a link in the band's words: white, underlined in orange, as on the home */
.page-head :is(.lede, .note) a {
  color: var(--band-ink); text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.page-head :is(.lede, .note) a:hover { color: var(--orange-hi); }
/* An aside on the band, under a rule: its mark, then the words. The home's
   note under How it works, and on an inner page the one under the
   paragraph, which leaves the box a .note is elsewhere. */
:is(.how-note, .page-head .note) {
  display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--band-line);
  font: 500 0.9375rem/1.55 var(--brand); color: var(--band-body);
}
:is(.how-note, .page-head .note) .i { width: 20px; height: 20px; margin-top: 1px; color: var(--band-muted); }
.page-head .note { max-width: 40em; margin: 28px 0 0; padding: 20px 0 0; border-width: 1px 0 0; border-radius: 0; background: none; }

/* With a status, the title and its paragraph keep the left, and the box
   with the status and the page's one action stands beside them, level with
   the paragraph's last line. A box taller than the title's column leaves the
   title where every product page has it, at the top. */
.page-head > .wrap:has(> .status) {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: 36px 72px; align-items: end;
}
.page-head > .wrap:has(> .status) > :not(.status) { align-self: start; }
.status {
  padding: 24px 26px 26px; border: 1px solid var(--band-line); border-radius: 20px;
  background: rgba(255, 255, 255, .04);
}
/* The labels as rows, the way the HOA door sets its dates. The band is
   navy in both themes, so the dots are the band's. */
.status .label { font: 500 0.9375rem/1.5 var(--brand); color: var(--band-ink); }
.status .label + .label { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--band-line); }
.status .label-pilot::before { border-color: var(--orange); }
.status .label-in-development::before { border-color: var(--band-muted); }
.status > p:not(.label) { margin: 24px 0 0; }

/* ---------- the inner pages: the bands under it ---------- */

.sec { padding: 72px 0 88px; }
.sec-tint { background: var(--tint); }
/* a plain band after a tinted one starts on a hairline, as the home's last
   band does, since the two are close in the dark theme */
.sec-tint + .sec:not(.sec-band, .sec-tint, .sec-wash) { border-top: 1px solid var(--rule-soft); }
.sec-wash { background: var(--trust-bg); border-block: 1px solid var(--rule-soft); }
.sec-band { background: var(--band); color: var(--band-body); }
.sec-band h2 { color: var(--band-ink); }

/* A link card: the two under the home's doors (.also > a, each a link
   itself), and on the inner pages a .signpost, whose link covers the whole
   card. Each has the soft tile, then its words. A card with no link, a use
   with no page of its own, is dashed. */
:is(.also > a, .signpost) {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 18px;
  max-width: none; margin: 0; padding: 20px 24px; border: 1px solid var(--rule); border-radius: 18px;
  font: 500 0.9375rem/1.45 var(--brand); color: var(--muted);
}
:is(.also > a, .signpost:has(a)):hover { border-color: var(--ink); background: var(--surface); }
.signpost:not(:has(a)) { border-style: dashed; }
.signpost a {
  color: var(--ink); font-weight: 600; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.signpost a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* the ring goes round the card; a browser that cannot say so keeps it on the link */
@supports selector(:has(*)) {
  .signpost a:focus-visible { outline: none; }
  .signpost:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
}
.signpost :is(h2, p) { max-width: none; margin: 0; }
.signpost h2 { font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
/* One on its own is as wide as its words, not the page; under a grid of
   cards, as wide as one of its columns, as the home's two lines under its
   doors are; on a phone, the column's width (below). */
.signpost:not(li) { width: fit-content; }
* + .signpost:not(li) { margin-top: 24px; }
.groups + .signpost { width: auto; }
@media (min-width: 981px) { .groups + .signpost { width: calc((100% - 24px) / 2); } }
@media (min-width: 761px) { .ways + .signpost { width: calc((100% - 24px) / 2); } }

/* A product page's questions: rows in one card, as the home lists its
   products, each with its soft tile, the question, and the answer beside
   it, the first line level with the tile's middle. Rows rather than cards
   side by side, because the answers run from three words to four lines,
   and cards of one height would stand half empty. How to leave, from
   <!--fact leave:…-->, is one more row, with its own tile (family.py's
   LEAVE_TILE). */
.qs { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; }
.q {
  display: grid; grid-template-columns: 44px minmax(0, 15rem) minmax(0, 1fr); align-items: start; gap: 6px 24px;
  padding: 24px 28px;
}
.q + .q { border-top: 1px solid var(--rule-soft); }
.q > h2 { margin: 0; padding-top: 10px; font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.q > p { max-width: 44em; margin: 0; padding-top: 8px; font: 400 1.0625rem/1.6 var(--read); color: var(--body); }
/* a link in what an answer or a row says: ink underlined in orange, as
   every other link on these pages */
:is(.q > p, .row > div > p:not([class])) a {
  color: var(--ink); text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
:is(.q > p, .row > div > p:not([class])) a:hover { color: var(--accent); }

/* what a product cannot do yet, and where it is used, under the questions */
* + :is(.limits, .used) { margin-top: 64px; }
:is(.limits, .used) > h2 { margin: 0 0 20px; font-size: 1.5rem; }
.limits .promises { margin: 0; }
.used ul {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px;
  max-width: none; margin: 0; padding: 0; list-style: none;
}
.used .signpost:not(:has(a)) > span:last-child { color: var(--ink); font-weight: 600; }

/* Voice intake's sample: the home's pitch card at reading size, on the band
   as the home's samples are, beside what it shows. */
#sample > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px 72px; align-items: center; }
#sample h2 { margin: 0; font-size: clamp(1.875rem, 1.4vw + 1.25rem, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.032em; }
#sample > .wrap > div > p { max-width: 30em; margin: 18px 0 0; font: 400 1.125rem/1.6 var(--read); color: var(--band-body); }
#sample .sc { --sc-pad: 26px; justify-self: end; width: 100%; max-width: 580px; font-size: 0.9375rem; }
#sample .sc-title { font-size: 1.0625rem; }
#sample .facts { gap: 9px 16px; margin-top: 16px; }
#sample .facts dt { font-size: 0.8125rem; }
#sample .sc .when { font-size: 0.75rem; }
#sample .sc h3 {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--s-rule);
  font: 600 0.8125rem/1.3 var(--brand); letter-spacing: 0; color: var(--s-muted);
}
#sample .marks { gap: 10px; margin: 10px 0 0; padding: 0; border: 0; }
/* the marks are typed in capitals here, so their column is wider than the home's */
#sample .marks li { grid-template-columns: 5.5rem minmax(0, 1fr) auto; margin: 0; }
#sample .m { font-size: 0.6875rem; letter-spacing: 0.04em; }
#sample .sc-foot { max-width: none; margin: 18px 0 0; font-size: 0.8125rem; }

/* ---------- the inner pages: docs, trust, contact ---------- */

/* The docs: a card for each part, side by side, its name beside the soft
   tile, then how you add it, what your site gets and where the data is. */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.part { padding: 28px 28px 30px; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; }
.part-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-soft); }
.part-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.part h3 { margin: 20px 0 4px; padding: 0; font: 600 0.875rem/1.35 var(--brand); letter-spacing: 0; color: var(--muted); }
.part p { margin: 0; }
/* how to leave, from <!--fact leave:…-->, reads here as one more line,
   without the tile it has among a product page's questions */
.part .q { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
.part .q > .soft { display: none; }
.part .q > p { max-width: none; padding: 0; font-size: 1rem; }

/* A long page in rows: each heading on the left and what it says on the
   right, the way the home sets "What we do not do" beside its list. */
.row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.2fr); gap: 14px 64px;
  padding: 40px 0; border-top: 1px solid var(--rule);
}
.row:first-child { padding-top: 0; border-top: 0; }
.row:last-child { padding-bottom: 0; }
.row > h2 { margin: 0; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; }
/* what a row says is read, not scanned: a size up, and its lists and tables
   take the whole column, so that their rules end where the change log's
   box does */
.row > div { font-size: 1.0625rem; }
.row :is(ul, ol, table) { max-width: none; }
/* its paragraphs and marked lists keep to about 85 characters a line */
.row > div > :is(p:not([class]), .promises) { max-width: 41em; }
/* a block a fact adds inside a row, the subprocessors: a smaller heading */
.row section > h3 { margin: 32px 0 12px; font-size: 1.125rem; }
/* a plain list in a row: lines between its items, as the samples' rows */
.row ul:not([class]) { padding: 0; list-style: none; }
.row ul:not([class]) > li { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.row ul:not([class]) > li:first-child { padding-top: 0; border-top: 0; }
/* trust's "What we do not do": the home's band, title and all */
.sec-wash .row > h2 { font-size: clamp(1.75rem, 1.2vw + 1.25rem, 2.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.032em; }
.row > .nevers { max-width: none; margin: 0; }
.row > div > .promises { margin: 0; }

/* what we will add, each line led by its Not yet, as the HOA door's dates
   lead theirs */
.soon { padding: 0; list-style: none; }
.soon li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: baseline; gap: 16px;
  margin: 0; padding: 12px 0; border-top: 1px solid var(--rule-soft);
}
.soon li:first-child { padding-top: 0; border-top: 0; }
.soon .tag { justify-self: start; }

/* The change log in the HOA door's dated rows: the date, then the change,
   in a tinted box as the door's terms are. On the page, not on a door, the
   box needs an edge: in the dark theme its tint is all but the page's. A
   date fits its column on one line; a reader's wider spacing wraps it
   rather than run it into the change. */
.row .terms { margin: 0; border: 1px solid var(--rule-soft); }
.terms:empty { display: none; }
.log { max-width: none; padding: 0; list-style: none; }
.log li {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: baseline; gap: 2px 20px;
  margin: 0; padding: 14px 0; border-top: 1px solid var(--rule);
  font: 500 0.9375rem/1.5 var(--brand); color: var(--body);
}
.log li:first-child { padding-top: 0; border-top: 0; }
.log time { font-weight: 700; color: var(--ink); }

/* The ways to write to us: the home's doors, side by side, each button at
   its door's foot. */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ways .door { display: flex; flex-direction: column; }
/* no status under the heading: the heading stands level with its tile */
.ways .door-head { grid-template-areas: "tile title"; align-items: center; }
.ways .door-line { margin: 18px 0 26px; }
.ways .actions { margin: auto 0 0; }

/* a row of links set apart, the way .link is */
.links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; font: 500 1rem/1.4 var(--brand); color: var(--muted); }
.links a {
  font-weight: 600; color: var(--ink); text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.links a:hover { color: var(--accent); }

/* A table sits in a .scroll: if its words cannot fit a phone's width, a
   reader's larger text, say, or a subprocessor's long name, it scrolls in
   its own box rather than push the page sideways or break a name. */
.scroll { margin: 0 0 24px; overflow-x: auto; }
.scroll:last-child { margin-bottom: 0; }
table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.scroll > table { margin: 0; }
th {
  padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); text-align: left;
  font: 600 0.8125rem/1.3 var(--brand); color: var(--muted);
}
td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); }

/* ---------- section heads ---------- */

.sec-title {
  font-size: clamp(2rem, 1.9vw + 1.25rem, 2.875rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.032em;
}
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 56px; margin-bottom: 44px; }

/* ---------- the home: its opening ---------- */

.hero { background: var(--band); color: var(--band-body); padding: 56px 0 112px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 52px; align-items: center; }

/* Two lines, the break after "meeting": the measure is wide enough for "From
   the meeting" and too narrow for "From the meeting to", and balance keeps
   the two lines even wherever the column is narrower still. */
.hero h1 {
  max-width: 9.1em;
  color: var(--band-ink);
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.042em;
}
.hero .lede { max-width: 30em; margin: 28px 0 0; color: var(--band-body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.for {
  max-width: 32em; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--band-line);
  font: 500 0.9375rem/1.75 var(--brand); color: var(--band-muted);
}
.for a {
  color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap;
}
.for a:hover { color: var(--orange-hi); }

/* The samples, left to right as the work goes: the roll call on item 3, the
   draft minutes whose third line is drawn from it, and a pitch card. The
   cards are hidden from screen readers; the visible caption says what they
   are, and on a wide screen it sits in the corner the roll call leaves. On
   a phone the three stand one under another, in the caption's order. */
.samples { --sc-pad: 18px; --sc-gap: 22px; position: relative; }
.samples-grid {
  display: grid; grid-template-columns: minmax(0, 0.64fr) minmax(0, 1fr);
  grid-template-areas: "roll min" "roll pitch";
  gap: var(--sc-gap); align-items: start;
}
.sc {
  padding: var(--sc-pad); border-radius: 16px;
  background: var(--s-bg); color: var(--s-ink); box-shadow: var(--s-shadow);
  font: 500 0.8125rem/1.45 var(--brand);
}
.sc-roll { grid-area: roll; margin-top: 118px; }
.sc-minutes { grid-area: min; position: relative; z-index: 2; }
.sc-pitch { grid-area: pitch; }

.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-title { font: 700 0.9375rem/1.2 var(--brand); letter-spacing: -0.01em; color: var(--s-ink); }
.sc .tag { border-color: var(--s-rule); color: var(--s-muted); vertical-align: baseline; }
.sc-sub { margin-top: 3px; font-size: 0.75rem; color: var(--s-muted); text-wrap: balance; }

.lines { margin-top: 12px; padding: 0; list-style: none; }
.lines li {
  display: grid; grid-template-columns: 1.3em minmax(0, 1fr); gap: 4px;
  padding: 10px 0; border-top: 1px solid var(--s-rule);
  font-size: 0.84375rem; line-height: 1.5;
}
.lines .n { color: var(--s-muted); font-variant-numeric: tabular-nums; }
.lines .t { text-wrap: pretty; }
.src {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; vertical-align: 1px;
  padding: 2px 8px 2px 6px; border-radius: 6px;
  background: var(--s-chip); color: var(--s-chip-ink);
  font: 600 0.6875rem/1.25 var(--brand); white-space: nowrap;
}
.src .i { width: 12px; height: 12px; stroke-width: 2.2; }
.lines .linked {
  position: relative;
  margin-inline: calc(-1 * var(--sc-pad)); padding-inline: var(--sc-pad);
  background: var(--s-hl); box-shadow: inset 3px 0 0 var(--orange);
}
.lines .linked .src { background: var(--orange); color: var(--on-orange); }
/* from the line to the roll call it cites, and the dot where it lands */
.lines .linked::before {
  content: ""; position: absolute; top: 50%; right: 100%;
  width: var(--sc-gap); height: 2px; margin-top: -1px; background: var(--orange);
}
.lines .linked::after {
  content: ""; position: absolute; top: 50%; right: calc(100% + var(--sc-gap) - 5px);
  width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--orange);
}
.sc-foot { padding-top: 10px; border-top: 1px solid var(--s-rule); font-size: 0.75rem; color: var(--s-muted); }

.votes { margin-top: 10px; padding: 0; list-style: none; }
.votes li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--s-rule);
}
.v, .m { flex: none; padding: 4px 9px; border-radius: 999px; font: 600 0.6875rem/1.1 var(--brand); }
.v-yes, .m-yes { color: var(--yes); background: var(--yes-bg); }
.v-no, .m-no { color: var(--no); background: var(--no-bg); }
.m-unclear { color: var(--unclear); background: var(--unclear-bg); }
.sc-result {
  display: flex; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--s-rule); font-weight: 700;
}

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; margin-top: 12px; }
.facts dt { font-size: 0.75rem; color: var(--s-muted); }
/* the moment each line was said; Voice intake's card sets it a size up */
.sc .when { font: 500 0.6875rem/1 var(--mono); color: var(--s-muted); font-variant-numeric: tabular-nums; }
.marks { display: grid; gap: 8px; margin-top: 12px; padding: 12px 0 0; border-top: 1px solid var(--s-rule); list-style: none; }
/* the marks' column is 66 px at the default text size, and grows with it */
.marks li { display: grid; grid-template-columns: 4.125rem minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.marks .m { justify-self: start; }

.samples figcaption { max-width: 34em; margin-top: 22px; font: 500 0.8125rem/1.5 var(--brand); color: var(--band-muted); }

/* ---------- the home: who it's for ---------- */

.who { padding: 104px 0 112px; background: var(--tint); }

/* Two columns of equal width. The HOA door, the one with a price and dates,
   holds the left; the other three stack on the right. Their tops align and
   so do their feet: when the right column is the taller, the HOA door takes
   its height, the space going above its terms rather than under its
   buttons; when the HOA door is the taller, the space goes between the
   three doors beside it. */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.doors-side { display: grid; gap: 24px; align-content: space-between; }

.door {
  scroll-margin-top: 24px;
  padding: 30px 34px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 22px;
}
/* The icon, the heading and the door's status, from its <!--label-->; the
   HOA door's statuses are dated, so they go with its terms instead. The
   headings are whole sentences, said by the reader ("I run a company
   team"), so the status sits under the heading rather than beside it, where
   it would leave a long heading too little of the row. */
.door-head {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "tile title" "tile pill";
  align-items: start; gap: 0 18px;
}
.door-head .tile { grid-area: tile; }
.door-head :is(h2, h3) { grid-area: title; margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.022em; }
.door-head .label { grid-area: pill; margin: 8px 0 0; }
/* a door with no status there, the HOA door: its heading level with its tile */
@media (min-width: 761px) {
  .door-head:not(:has(.label)) { grid-template-areas: "tile title"; align-items: center; }
}
.tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--tile); color: var(--tile-ink); }
.door-line { max-width: 34em; margin-top: 18px; font: 400 1.0625rem/1.55 var(--read); color: var(--body); }

.built { margin-top: 14px; font: 500 0.9375rem/1.6 var(--brand); color: var(--muted); }
/* the founder's line that closes the HOA door */
.fine { margin-top: 14px; font: 500 0.8125rem/1.5 var(--brand); color: var(--muted); }

.more { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }
/* the only way to a door's whole paragraph: 44 px to tap, the padding taken
   back by the margin */
.more > summary {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding-block: 12px; margin-block: -12px;
  font: 600 0.875rem/1.4 var(--brand); color: var(--muted);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 1.6px solid; border-bottom: 1.6px solid; transform: rotate(-45deg);
}
.more[open] > summary::before { transform: translateY(-2px) rotate(45deg); }
.more > summary:hover { color: var(--ink); }
.more > p { max-width: 40em; margin-top: 12px; font: 400 1rem/1.62 var(--read); color: var(--body); }

.door-hoa { display: flex; flex-direction: column; }
.promises { display: grid; gap: 12px; margin: 24px 0 28px; padding: 0; list-style: none; }
.promises li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; font: 500 0.96875rem/1.45 var(--brand); color: var(--ink); }
.promises .i { width: 22px; height: 22px; stroke-width: 2; }
.promises .do .i { color: var(--orange); }
.promises .dont .i { color: var(--muted); }
.promises .info .i { color: var(--muted); }

/* The price, then the dated statuses as rows, each label whole, between
   rules, in ink: a column read down the way the door's list is. Each keeps
   the legend's in-development ring as its mark. */
.terms { margin-top: auto; padding: 22px 24px; border-radius: 16px; background: var(--tint); }
.price { font: 500 1rem/1.3 var(--brand); color: var(--muted); }
.price b { margin-right: 4px; font: 800 2.5rem/1 var(--brand); letter-spacing: -0.035em; color: var(--ink); }
.dates { display: grid; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.dates .label { padding: 10px 0; font: 500 0.875rem/1.45 var(--brand); color: var(--ink); }
.dates .label:first-child { padding-top: 0; }
.dates .label:last-child { padding-bottom: 0; }
.dates .label + .label { border-top: 1px solid var(--rule); }
.dates .label::before { width: 9px; height: 9px; }

/* the two lines under the doors, each a link card (with .signpost, above) */
.also { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.also > a { text-decoration: none; }
.also .go { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.soft {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--soft-tile); color: var(--soft-tile-ink);
}
.soft .i { width: 22px; height: 22px; }

/* ---------- the home: how it works ---------- */

.how { padding: 104px 0 96px; background: var(--band); color: var(--band-body); }
.how .sec-title { color: var(--band-ink); }

.steps {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  margin-top: 60px; padding: 0; list-style: none;
}
/* one line through the three marks: from the first to the last */
.steps::before {
  content: ""; position: absolute; top: 27px; left: 28px;
  width: calc((100% - 96px) * 2 / 3 + 96px); height: 2px;
  background: linear-gradient(90deg, var(--band-line), var(--orange));
}
.step { position: relative; }
.step-mark {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--band); border: 2px solid var(--band-line); color: var(--band-ink);
}
.step:last-child .step-mark { border-color: var(--orange); color: var(--orange); }
.step h3 { margin-top: 28px; color: var(--band-ink); font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.step p { max-width: 24em; margin-top: 10px; font: 400 1.0625rem/1.6 var(--read); color: var(--band-body); }

/* the note under the steps (with .page-head .note, in the inner pages' opening) */
.how-note { margin-top: 64px; padding-top: 26px; }

/* ---------- the home: products ---------- */

.products { padding: 112px 0 120px; background: var(--page); }
.products-intro { max-width: 36em; margin-top: 16px; font: 400 1.125rem/1.6 var(--read); color: var(--body); }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.group > :is(h2, h3) { margin: 0 0 14px; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.plist { max-width: none; margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; }
/* the whole row is the link: its heading's link covers it */
.plist li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin: 0; padding: 24px 28px; }
.plist li + li { border-top: 1px solid var(--rule-soft); }
/* the first and last rows round as the card does, so that the ring of a
   focused row follows its corners */
.plist li:first-child { border-radius: 21px 21px 0 0; }
.plist li:last-child { border-radius: 0 0 21px 21px; }
.plist li:hover { background: var(--tint); }
.plist :is(h3, h4) { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.plist :is(h3, h4) a { color: var(--ink); text-decoration: none; }
.plist :is(h3, h4) a::after { content: ""; position: absolute; inset: 0; }
.plist li:hover :is(h3, h4) a { color: var(--accent); }
@supports selector(:has(*)) {
  .plist :is(h3, h4) a:focus-visible { outline: none; }
  .plist li:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
}
.plist p:not(.label) { max-width: none; margin: 4px 0 0; font: 400 1rem/1.55 var(--read); color: var(--body); }
/* the products page gives each product its status, under its line */
.plist .label { margin: 14px 0 0; }

/* ---------- the home: what we do not do ---------- */

.trust { padding: 88px 0 96px; background: var(--trust-bg); border-top: 1px solid var(--rule-soft); }
.trust-in {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.2fr);
  grid-template-areas: "title list" "more list";
  gap: 18px 64px; align-items: start;
}
.trust .sec-title { grid-area: title; font-size: clamp(1.75rem, 1.2vw + 1.25rem, 2.25rem); }
.trust-more { grid-area: more; }
.trust .nevers { grid-area: list; }
.nevers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0; list-style: none; }
.nevers li {
  margin: 0; padding-top: 20px; border-top: 3px solid var(--orange);
  font: 700 1.25rem/1.32 var(--brand); letter-spacing: -0.012em; color: var(--ink);
  overflow-wrap: break-word;
}

/* ---------- wide and medium screens ---------- */

@media (min-width: 1121px) {
  .samples figcaption {
    position: absolute; left: 0; bottom: 0; margin: 0;
    width: calc((100% - var(--sc-gap)) * 0.64 / 1.64 - 8px);
    padding-top: 14px; border-top: 1px solid var(--band-line);
  }
}

@media (max-width: 1120px) {
  :root { --gutter: 32px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .samples { max-width: 660px; }
  .for { max-width: 40em; }
}

@media (max-width: 980px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door-hoa .terms { margin-top: 0; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* Down the left, the line is drawn a gap at a time, from under one mark
     to the next, so that it ends at the last mark however tall the last
     step's words are. */
  .steps::before { display: none; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 27px; top: 56px; bottom: -40px; width: 2px;
    background: var(--band-line);
  }
  .step:nth-last-child(2)::after { background: linear-gradient(180deg, var(--band-line), var(--orange)); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; }
  .step-mark { grid-row: 1 / span 2; }
  .step h3 { margin-top: 12px; }
  .groups { grid-template-columns: minmax(0, 1fr); }
  .trust-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "list" "more"; gap: 28px; }

  .page-head > .wrap:has(> .status) { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .status { max-width: 32rem; }
  .parts { grid-template-columns: minmax(0, 1fr); }
  #sample > .wrap { grid-template-columns: minmax(0, 1fr); }
  #sample .sc { justify-self: start; }
}

/* The header folds before the rest does: the brand and Talk to us share the
   first row, and the navigation runs under them. An open menu's panel hangs
   under the header, from gutter to gutter, over the page: the summary just
   tapped stays where it was, to be tapped again to close it. */
@media (max-width: 860px) {
  .top-in { position: relative; gap: 0 16px; min-height: 0; padding-block: 14px 2px; }
  .cta { order: 1; margin-left: auto; min-height: 44px; padding: 10px 16px; font-size: 0.875rem; }
  .top nav { order: 2; flex-basis: 100%; flex-wrap: wrap; gap: 0 15px; font-size: 0.875rem; }
  .top nav > a, .menu > summary { gap: 6px; padding-block: 12px; }
  .top nav > a[href="https://air.quoroom.org/"] { margin-left: 0; }
  .menu { position: static; }
  .panel { top: calc(100% - 2px); left: var(--gutter); right: var(--gutter); min-width: 0; }
}
/* From 561 px a panel keeps its own width, as on the desktop, and hangs from
   the left gutter: Solutions holds a single link, and a sheet the width of
   the header would stand nearly empty. */
@media (min-width: 561px) and (max-width: 860px) {
  .panel { right: auto; min-width: 248px; }
}
/* On the narrowest phones the five links keep one row: closer under 375 px,
   and under 360 px a size smaller, with the brand, so that Talk to us keeps
   the brand's row too. */
@media (max-width: 374px) {
  .top nav { gap: 0 12px; }
}
@media (max-width: 359px) {
  .brand { font-size: 1.125rem; }
  .top nav { gap: 0 8px; font-size: 0.8125rem; }
  .top nav > a, .menu > summary { gap: 4px; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .hero { padding: 36px 0 64px; }
  .hero h1 { font-size: clamp(2.125rem, 9.6vw, 3.25rem); line-height: 1.04; letter-spacing: -0.04em; }
  .hero .lede { margin-top: 20px; font-size: 1.125rem; }
  .hero-actions { margin-top: 28px; }
  .for { margin-top: 32px; padding-top: 18px; font-size: 0.875rem; }

  /* the three samples one under another, as the caption lists them; the
     line from the minutes to the roll call is for the side-by-side cards */
  .samples { --sc-pad: 16px; }
  .samples-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "roll" "min" "pitch"; gap: 14px; }
  .sc-roll { margin-top: 0; }
  .lines .linked::before, .lines .linked::after { display: none; }

  .sec-head { margin-bottom: 32px; }
  .legend { flex-direction: column; align-items: flex-start; gap: 8px; }
  .who, .how, .products { padding: 72px 0 80px; }
  .trust { padding: 64px 0 72px; }
  .door { padding: 22px; border-radius: 18px; }
  /* the icon and the status share a row, the heading takes the width under them */
  .door-head { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "tile pill" "title title"; align-items: center; gap: 16px 12px; }
  .door-head :is(h2, h3) { font-size: 1.375rem; }
  .door-head .label { justify-self: end; margin: 0; }
  .tile { width: 44px; height: 44px; border-radius: 12px; }
  .door-line { margin-top: 10px; }
  .terms { padding: 18px; }
  :is(.also > a, .signpost) { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .soft { width: 40px; height: 40px; }
  .steps { margin-top: 44px; }
  .how-note { margin-top: 48px; }
  .plist li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .nevers { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nevers li { padding-top: 14px; font-size: 1.125rem; }
  .foot-in { flex-direction: column; }

  .page-head { padding: 36px 0 52px; }
  .page-head .lede { margin-top: 16px; font-size: 1.125rem; }
  .page-head .note { margin-top: 22px; padding-top: 16px; font-size: 0.875rem; }
  .status { padding: 20px 20px 22px; border-radius: 18px; }
  .sec { padding: 52px 0 64px; }
  /* the question beside its tile, the answer under the question */
  .qs { border-radius: 18px; }
  .q { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; padding: 20px; }
  .q > h2 { grid-column: 2; align-self: center; padding-top: 0; }
  .q > p { grid-column: 2; padding-top: 0; font-size: 1rem; }
  * + :is(.limits, .used) { margin-top: 48px; }
  :is(.limits, .used) > h2 { font-size: 1.375rem; }
  /* a link card on its own takes the column, as the home's do */
  .signpost:not(li) { width: auto; }
  #sample .sc { --sc-pad: 18px; font-size: 0.875rem; }
  /* a fact's name over its value, so that the value has the card's width */
  #sample .facts { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  #sample .facts dt { grid-column: 1 / -1; margin-top: 10px; }
  #sample .facts dt:first-child { margin-top: 0; }
  #sample .marks li { grid-template-columns: 5rem minmax(0, 1fr) auto; }
  .part { padding: 22px; border-radius: 18px; }
  .row { grid-template-columns: minmax(0, 1fr); padding: 32px 0; }
  /* the big title stands as far from its rules as the home's does */
  .sec-wash .row { row-gap: 28px; }
  .soon li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .log li { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* the 404's links, one under another, without the dots between them */
  .links { flex-direction: column; align-items: flex-start; gap: 14px; }
  .links .sep { display: none; }
  /* A table of four columns, the subprocessors' once they are printed, sets
     smaller type; still too wide, it scrolls in its .scroll. */
  table:has(th:nth-child(4)) { font-size: 0.8125rem; }
  table:has(th:nth-child(4)) :is(th, td) { padding-right: 8px; }
  table:has(th:nth-child(4)) th { font-size: 0.6875rem; }
}

/* A forced palette (a system's high contrast theme) drops backgrounds and
   shadows, so what they alone drew gets an edge in the system's colour: a
   status pill, a sample card, and in the header the mark of the page being
   read. A label set as a row has no box to draw. */
@media (forced-colors: active) {
  .label, .sc { border: 1px solid; }
  :is(.status, .dates) .label { border: 0; }
  .top nav > a[aria-current="page"], .menu:has([aria-current="page"]) > summary, .panel a[aria-current="page"] {
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .more > summary::before, .menu > summary::after { transition: transform .15s ease; }
}
