/* ==================================================================
   THE AURORA INSTRUMENT, public edition
   ------------------------------------------------------------------
   The shared sheet for the home page and the apply page. Tokens are
   lifted verbatim from the org app's reference shell
   (chatverse-apps dashboard/templates/base.html, 2026-09-02 harden
   pass); only the PORTABLE set travels here: the aurora ground and its
   low-power path, the glass panel, the Sora/Archivo pairing, the
   eyebrow, the pill button, the pill, the segmented toggle, the
   wordmark chrome. The ops-only set (receipt, origin badges, mono data
   voice, heat cells) stays in the org app.

   Two voices on this surface: Sora for what a human reads,
   Archivo for what a thing is called. There is no data voice here
   because a public page asserts nothing from a store.

   The scheme is decided on the server: the route handler reads the
   cv-theme cookie and stamps data-theme on <html> with the document,
   so a pinned reader never sees a flash and no script is needed. With
   no cookie, color-scheme: light dark follows the OS.
   ================================================================== */

/* The two voices, SELF-HOSTED from this origin. Latin subset, two
   variable files, no italic because nothing here sets one. `swap`
   shows the fallback stack until the file lands. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Sora is the reading voice (operator, 2026-09-23, from a six-font
   specimen page, after Newsreader, Geist and Bricolage Grotesque): a
   geometric sans, the closest cousin to the wordmark's geometry. Latin
   subset of the variable file, weight 100-800. */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 100 800;
  font-display: swap;
  src: url(/fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The ground, straight off the deck. Dark drops the same gradient to
     ink and dims the same four aurora hues; the hues and their order
     never change, which is what keeps the two schemes one world. */
  --g1: light-dark(#E8E6EF, #1B1E28);
  --g2: light-dark(#D6DBE8, #171C24);
  --g3: light-dark(#E9E2D8, #241F1A);
  --aurora-1: light-dark(rgba(147,197,253,.45), rgba(147,197,253,.14));  /* blue   */
  --aurora-2: light-dark(rgba(196,181,253,.45), rgba(196,181,253,.14));  /* violet */
  --aurora-3: light-dark(rgba(251,207,232,.45), rgba(251,207,232,.11));  /* rose   */
  --aurora-4: light-dark(rgba(217,197,160,.45), rgba(217,197,160,.13));  /* gold   */
  --aurora-blur: 140px;

  /* Every dual-valued token is ONE declaration, so a token cannot exist
     in one scheme and not the other. */
  --bg:    light-dark(#E8E6EF, #171A22);
  --card:  light-dark(rgba(255,255,255,.5), rgba(255,255,255,.055));
  /* The one blur token every glass surface reads; the phone rule at the
     foot of the sheet turns all of them off in one declaration. The
     saturate lifts the aurora's colour through the glass. */
  --glass: blur(18px) saturate(1.6);
  /* GLASS TABLETS: panels and cards are lit slabs, not flat grounds. A
     sheen from hi (top-left) to lo, a hairline rim, a brighter top edge
     where the light lands, and a soft offset shadow that lifts the slab
     off the aurora. */
  --tab-hi:   light-dark(rgba(255,255,255,.62), rgba(255,255,255,.11));
  --tab-lo:   light-dark(rgba(255,255,255,.28), rgba(255,255,255,.03));
  --tab-edge: light-dark(rgba(255,255,255,.72), rgba(255,255,255,.12));
  --tab-top:  light-dark(rgba(255,255,255,.95), rgba(255,255,255,.24));
  --tab-drop: light-dark(rgba(60,50,110,.18), rgba(0,0,0,.5));
  --solid: light-dark(#F2F1F6, #1F232C);
  --fg:    light-dark(#14161C, #ECEBF0);
  /* .66 in both schemes: measured against the worst aurora composite,
     4.77 light / 4.58 dark. */
  --muted: light-dark(rgba(20,22,28,.66), rgba(236,235,240,.66));
  --line:  light-dark(rgba(20,22,28,.12), rgba(236,235,240,.14));
  --rule:  light-dark(rgba(20,22,28,.28), rgba(236,235,240,.34));
  /* Signal pigments, held to 4.5:1 on the worst composite: accent
     4.65 light / 4.85 dark, warn 4.65 / 4.90. */
  --accent: light-dark(#2D5A7C, #8FBEDF);
  --warn:   light-dark(#874416, #EDAB76);
  --on-accent: light-dark(#fff, #12151C);

  --sans:  "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text:  "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp:  var(--sans);
  --r-pill: 999px;

  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }
/* Engines without light-dark() get the light scheme in full. This is
   the ONE place the light values are repeated, and it repeats them all. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --g1: #E8E6EF; --g2: #D6DBE8; --g3: #E9E2D8;
    --aurora-1: rgba(147,197,253,.45); --aurora-2: rgba(196,181,253,.45);
    --aurora-3: rgba(251,207,232,.45); --aurora-4: rgba(217,197,160,.45);
    --bg: #E8E6EF; --card: rgba(255,255,255,.5); --solid: #F2F1F6;
    --fg: #14161C; --muted: rgba(20,22,28,.66); --line: rgba(20,22,28,.12);
    --rule: rgba(20,22,28,.28); --accent: #2D5A7C; --warn: #874416;
    --on-accent: #fff;
    --tab-hi: rgba(255,255,255,.62); --tab-lo: rgba(255,255,255,.28);
    --tab-edge: rgba(255,255,255,.72); --tab-top: rgba(255,255,255,.95);
    --tab-drop: rgba(60,50,110,.18);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 1.5rem 1.25rem 4rem; color: var(--fg);
  background: var(--bg);
  background-image: linear-gradient(140deg, var(--g1) 0%, var(--g2) 40%, var(--g3) 100%);
  background-attachment: fixed;
  font: 16px/1.55 var(--text);
  font-optical-sizing: auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
/* The aurora. Fixed so it holds while the page scrolls past it; z-index
   -1 puts it behind content and in front of the gradient. */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 1600px; height: 1200px; left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--aurora-4), var(--aurora-1));
  filter: blur(var(--aurora-blur));
}
@keyframes aurora {
    0%   { transform: translate(-50%,-50%) rotate(0deg); }
   33%   { transform: translate(-46%,-54%) rotate(14deg); }
   66%   { transform: translate(-54%,-47%) rotate(-10deg); }
  100%   { transform: translate(-50%,-50%) rotate(0deg); }
}
/* Motion is opt-in, and only above phone widths on fast displays. The
   still aurora IS the phone design, not a degraded one. */
@media (prefers-reduced-motion: no-preference) and (min-width: 701px) and (update: fast) {
  body::before { animation: aurora 20s ease-in-out infinite; will-change: transform; }
}
.wrap { max-width: 1080px; margin: 0 auto; position: relative; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
      overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
img, svg { max-width: 100%; }
a { color: var(--accent); }

/* HIT AREAS. Text controls are 18-31px tall; each gets a 44x44 box,
   centred, that catches the tap without changing its metrics. */
.sectionnav a, .mastactions a, .themetoggle a, .foot a { position: relative; }
.sectionnav a::after, .mastactions a::after, .themetoggle a::after, .foot nav a::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px);
  transform: translate(-50%, -50%); }

/* ---- Masthead: wordmark row, then the section nav ------------------ */
/* Row 1: the wordmark stands alone on the left; on the right, the three
   actions on one line with the scheme toggle centred beneath them.
   Row 2: the section nav, centred. No rules: spacing does the work.
   The header breaks out of the content column to span the viewport
   with a modest inset; body padding is symmetric, so the column's
   centre is the viewport's centre and the break-out stays exact. */
header { --mast-inset: 32px;
         margin-inline: calc(50% - 50vw + var(--mast-inset)); }
.mast { display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; }
/* The original Chatverse wordmark (Brent, 2026-09-23), drawn as a mask
   over the foreground ink so one file serves both schemes and follows the
   toggle. The PNG is the logo's alpha, trimmed to the letters; its
   1222:129 ratio sets the width from the height. */
.wordmark { display: block; flex: none; height: 1.3rem; aspect-ratio: 1222 / 129;
            background: var(--fg);
            -webkit-mask: url(/uploads/chatverse-wordmark.png) center / contain no-repeat;
                    mask: url(/uploads/chatverse-wordmark.png) center / contain no-repeat; }
/* The right-hand cluster: a column, actions above, toggle centred under. */
.mastright { margin-left: auto; display: flex; flex-direction: column;
             align-items: center; gap: .55rem; }
/* Two quiet tracked links and one small filled pill, all one height. */
.mastactions { display: flex; align-items: center; gap: 1.25rem; }
.mastactions a { font-family: var(--sans); font-size: .66rem; text-transform: uppercase;
                 letter-spacing: .14em; font-weight: 500; line-height: 1;
                 color: var(--muted); text-decoration: none; white-space: nowrap;
                 padding: .45rem 0; border-bottom: 1px solid transparent; }
.mastactions a:hover { color: var(--fg); border-bottom-color: currentColor; }
.mastactions a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.mastactions .btn { font-size: .66rem; font-weight: 600; padding: 0 .9rem; min-height: 0;
                    height: 1.75rem; color: var(--on-accent); border-bottom-color: var(--accent); }
.mastactions .btn:hover { color: var(--on-accent); }
.themetoggle { display: flex; gap: 0; flex: none;
               border: 1px solid var(--line); border-radius: 999px;
               background: var(--card);
               -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
/* Compact by decision: the one label under the .66rem floor; the 44px hit
   box above is what makes it tappable at that size. The outline sits on
   the control, not on each segment. */
.themetoggle a { font-family: var(--sans); font-size: .5rem;
                 text-transform: uppercase; letter-spacing: .08em;
                 font-weight: 500; color: var(--muted); text-decoration: none;
                 padding: .18rem .42rem; white-space: nowrap;
                 border-radius: 999px; }
.themetoggle a:hover { color: var(--fg); }
.themetoggle a[aria-current] { background: var(--accent);
                 color: var(--on-accent); font-weight: 600; }
/* Row 2: the section nav, centred, held off the hero by space alone. */
.sectionnav { display: flex; gap: .5rem 2.5rem; flex-wrap: wrap; justify-content: center;
              min-width: 0; padding: 1.75rem 0 1rem; }
.sectionnav a { font-family: var(--sans); font-size: .95rem; text-transform: uppercase;
                letter-spacing: .18em; font-weight: 500;
                color: var(--muted); text-decoration: none;
                padding-bottom: .1rem; border-bottom: 2px solid transparent; }
.sectionnav a:hover { color: var(--fg); }
.sectionnav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 700px) {
  header { --mast-inset: 16px; }
  .mast { gap: .85rem; }
  .wordmark { height: 1.05rem; }
  .mastright { margin-left: 0; flex-basis: 100%; gap: .6rem; }
  .mastactions { gap: 1rem; }
  .mastactions a { font-size: .66rem; letter-spacing: .12em; }
  .themetoggle a { padding: .22rem .5rem; font-size: .54rem; }
  .sectionnav { gap: .3rem 1.4rem; padding: 1.1rem 0 .5rem; }
  .sectionnav a { padding: .35rem .1rem .3rem; font-size: .8rem; letter-spacing: .14em; }
}

/* ---- Type ------------------------------------------------------------ */
/* Headings at 600. Sora is wide and open, so display sizes take firm
   negative tracking, as on the specimen page. */
h1, h2, h3, h4 { font-family: var(--text); font-weight: 600; margin: 0;
                 letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.45; max-width: 62ch; text-wrap: pretty; }
.prose { color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.prose strong, .lead strong { color: var(--fg); font-weight: 500; }
/* The deck's eyebrow: Archivo, uppercase, tracked wide, with the accent
   mark. Section labels only. */
.eyebrow { font-family: var(--sans); font-size: .7rem; text-transform: uppercase;
           letter-spacing: .2em; color: var(--muted); font-weight: 500;
           margin: 0 0 .9rem; }
.eyebrow::before { content: "\2237\00a0"; content: "\2237\00a0" / "";
                   color: var(--accent); font-weight: 400; }
/* Field labels and column heads: the same voice at the .66rem floor. */
.label { font-family: var(--sans); font-size: .66rem; text-transform: uppercase;
         letter-spacing: .16em; font-weight: 500; color: var(--muted); }

/* ---- Pills and buttons ---------------------------------------------- */
/* A pill names a state; it is not a control, so it carries no outline.
   Stage and warn speak through a tinted ground, never an edge. */
.pill { display: inline-block; padding: .24rem .7rem; border-radius: 999px;
        background: var(--card);
        -webkit-backdrop-filter: var(--glass);
        backdrop-filter: var(--glass);
        font-family: var(--sans); font-size: .66rem; text-transform: uppercase;
        letter-spacing: .14em; font-weight: 500; color: var(--muted);
        max-width: 100%; overflow-wrap: anywhere; line-height: 1.4; }
.pill.stage { background: color-mix(in srgb, var(--accent) 14%, var(--card));
              color: var(--accent); font-weight: 600; }
.pill.warn { background: color-mix(in srgb, var(--warn) 14%, var(--card));
             color: var(--warn); font-weight: 600; }
/* Buttons are the one deliberately opaque surface: a thing that commits
   an action must not read as another pane of glass. */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; line-height: 1;
  padding: .85rem 1.4rem; min-height: 44px; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: 999px; text-decoration: none;
  white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { cursor: default; }
/* The secondary action is glass, so the primary stays the only solid. */
.btn.ghost { background: var(--card); color: var(--fg); border-color: var(--line);
             -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 8%, var(--card)); filter: none; }
.btn.wide { width: 100%; }

/* ---- Glass containers ----------------------------------------------- */
.panel { border-radius: 12px; }
.panel, .card, .tablet {
  background: linear-gradient(155deg, var(--tab-hi), var(--tab-lo));
  box-shadow: inset 0 0 0 1px var(--tab-edge), inset 0 1px 0 var(--tab-top),
              0 28px 56px -30px var(--tab-drop), 0 2px 6px -3px var(--tab-drop);
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
.phead { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap;
         padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.phead .ph { margin: 0; font-family: var(--sans); font-size: .66rem;
             text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
             color: var(--fg); }
.phead .sub { margin-left: auto; }
.pbody { padding: .8rem .9rem .9rem; }
.card { border-radius: 12px; padding: 1.4rem 1.4rem 1.5rem; color: inherit;
        text-decoration: none; display: flex; flex-direction: column; gap: .7rem;
        position: relative; min-width: 0; }
/* Hover and the lit state speak through the glass itself: the accent
   mixed into both ends of the sheen, 10% and 20%. */
a.card:hover { background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 10%, var(--tab-hi)),
                                                   color-mix(in srgb, var(--accent) 10%, var(--tab-lo))); }
.card.lit { background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 20%, var(--tab-hi)),
                                                color-mix(in srgb, var(--accent) 20%, var(--tab-lo))); }
a.card.lit:hover { background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 26%, var(--tab-hi)),
                                                       color-mix(in srgb, var(--accent) 26%, var(--tab-lo))); }
.card .corner { position: absolute; top: 1rem; right: 1rem; }
.card h3 { padding-right: 0; }
.card.lit h3 { padding-right: 7rem; }
.card .more { font-family: var(--sans); font-size: .66rem; text-transform: uppercase;
              letter-spacing: .16em; font-weight: 600; color: var(--accent);
              margin-top: auto; }
/* The tile: a total on glass, full radius, no rule. Numbers here are read,
   not asserted, so they take the serif at display weight. */
.tile { background: var(--card);
        -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
        border-radius: 12px; padding: .9rem 1rem 1rem; min-width: 0; }
.tile .n { font-family: var(--text); font-size: 2.4rem; font-weight: 500;
           letter-spacing: -.02em; line-height: 1.05; }
.tile .k { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
.idx { font-family: var(--sans); font-size: .66rem; letter-spacing: .16em;
       font-weight: 600; color: var(--accent); }
.tile .idx { margin-bottom: .6rem; }

/* Bands of equal things. `auto-fit` collapses to one column on phones
   with no breakpoint to maintain. */
.band { display: grid; gap: 1rem; }
.band.two   { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.band.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.band.four  { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.section { margin-top: 5rem; }
.section > .eyebrow + h2 { margin-bottom: 1rem; }
.section > h2 + .prose, .section > h2 + .lead { margin-top: .75rem; }
.section .band { margin-top: 2rem; }
.measure { max-width: 62ch; }

/* Lists a human reads: an accent rule marks each item. Drawn, not a glyph. */
.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.marks li { position: relative; padding-left: 1.4rem; color: var(--muted); text-wrap: pretty; }
.marks li strong { color: var(--fg); font-weight: 500; }
.marks li::before { content: ""; position: absolute; left: 0; top: .72em;
                    width: .7rem; height: 2px; background: var(--accent); }
.marks.check li::before { width: .45rem; height: .8rem; top: .28em; left: .15rem;
                          background: none; border: solid var(--accent);
                          border-width: 0 2px 2px 0; transform: rotate(40deg); }

/* ---- Client lockups ---------------------------------------------------
   Each client mark is a single-colour silhouette: the asset is a CSS mask
   filled with the scheme's ink, so all four arrive at the same weight in
   either theme and no ground is forced under them (the org app's device).
   Every asset carries its shape in alpha with no canvas. */
.lockups { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; justify-content: center;
           align-items: center; margin-top: 1.4rem; }
.lockup { display: flex; align-items: center; justify-content: center;
          width: 150px; height: 44px; text-decoration: none; }
.lockup .logo { display: block; width: 100%; height: 100%;
                background-color: var(--fg); opacity: .88;
                -webkit-mask: var(--logo) center / contain no-repeat;
                mask: var(--logo) center / contain no-repeat; }
.lockup:hover .logo { opacity: 1; }
/* A compact badge-shaped mark is height-limited by `contain`; it takes a
   taller box so it arrives at the weight of the wide wordmarks beside it. */
.lockup.tall { height: 58px; }
.lockups .more { color: var(--muted); font-size: .95rem; padding: 0 .5rem; white-space: nowrap; }

/* ---- Tables (the comparison) ------------------------------------------ */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line);
         vertical-align: top; }
th { font-family: var(--sans); font-weight: 500; color: var(--muted);
     font-size: .66rem; text-transform: uppercase; letter-spacing: .15em; }
tbody th { font-family: var(--text); font-size: .95rem; text-transform: none;
           letter-spacing: 0; color: var(--fg); font-weight: 500; }
td { color: var(--muted); }
thead th { border-bottom: 0; background: color-mix(in srgb, var(--accent) 8%, transparent); }
th.us { color: var(--accent); font-weight: 600; }
td.us { color: var(--fg); background: color-mix(in srgb, var(--accent) 8%, transparent); }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ---- Forms ------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; min-width: 0; }
.field label, .field .label { font-family: var(--sans); font-size: .66rem;
        text-transform: uppercase; letter-spacing: .16em; font-weight: 500; color: var(--muted); }
.req { color: var(--accent); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="url"], .field input[type="file"], .field select {
    font: inherit; font-family: var(--sans); font-size: .95rem; line-height: 1.3;
    padding: .6rem .7rem; width: 100%; min-height: 44px;
    background: var(--card); color: var(--fg);
    -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
    border: 1px solid var(--line); border-radius: 8px; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.hint { color: var(--muted); font-size: .85rem; line-height: 1.5; }
/* The warning voice: an error names the problem, in warn, with the mark
   printed as a word-shaped badge rather than a bare glyph. */
.err { display: none; gap: .5rem; align-items: baseline; color: var(--warn);
       font-size: .9rem; line-height: 1.45; }
.err[data-show="true"] { display: flex; }
.err > span:first-child { flex: none; font-family: var(--sans); font-size: .66rem;
       font-weight: 700; letter-spacing: .1em;
       background: color-mix(in srgb, var(--warn) 16%, transparent);
       border-radius: 5px; padding: .06rem .4rem; line-height: 1.4; }
/* Choice chips: a segmented set of glass pills; the picked one fills. */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--sans); font-size: .66rem; text-transform: uppercase;
        letter-spacing: .12em; font-weight: 500; color: var(--muted);
        padding: .7rem 1rem; min-height: 44px; display: inline-flex; align-items: center;
        border: 1px solid var(--line); border-radius: 999px; background: var(--card);
        -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
        cursor: pointer; user-select: none; }
.chip:hover { color: var(--fg); background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.chip[data-active="true"] { background: var(--accent); color: var(--on-accent);
        border-color: var(--accent); font-weight: 600; }
.field .consent, .consent { display: flex; align-items: flex-start; gap: .8rem; cursor: pointer;
           font-family: var(--text); font-size: .95rem; line-height: 1.55;
           color: var(--muted); text-transform: none; letter-spacing: 0; }
.consent span { font-family: var(--text); font-size: .95rem; text-transform: none; letter-spacing: 0; }
.consent input { width: 18px; height: 18px; flex: none; margin: .2rem 0 0; accent-color: var(--accent); }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; width: 0%; background: var(--accent); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--muted); font-size: .85rem; text-align: center; }

/* ---- Footer ------------------------------------------------------------- */
.foot { margin-top: 5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.foot .cols { display: grid; gap: 1.5rem;
              grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* Below the four-column break the wordmark is wider than a 200px column,
   so the brand takes its own row above the three link columns. */
.foot .cols > div:first-child { grid-column: 1 / -1; }
.foot .prose { font-size: .95rem; margin-top: .8rem; max-width: 30ch; }
.foot nav { display: flex; flex-direction: column; gap: .55rem; margin-top: .8rem; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .95rem; width: fit-content; }
.foot nav a:hover { color: var(--fg); }
.foot .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem;
              margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line);
              color: var(--muted); font-size: .85rem; }
@media (min-width: 900px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
                            .foot .cols > div:first-child { grid-column: span 1; } }

@media (prefers-reduced-motion: no-preference) {
  .sectionnav a, .btn, .chip, .card, .foot nav a {
    transition: color .12s, background-color .12s, border-color .12s; }
  .lockup .logo { transition: opacity .12s; }
}

/* THE LOW-POWER PATH (phone widths). The look survives; the per-frame
   costs do not: every backdrop blur goes via the one --glass token (the
   light card rises so panels still read as panels), fixed attachment
   goes, and both loops are already off above. Palette, type and layout
   do not change. */
@media (max-width: 700px) {
  :root { --glass: none;
          --card: light-dark(rgba(255,255,255,.62), rgba(255,255,255,.055));
          --tab-lo: light-dark(rgba(255,255,255,.5), rgba(255,255,255,.05)); }
  body { background-attachment: scroll; padding: 1rem 1rem 3rem; }
  /* iOS Safari zooms on focusing any control under 16px. */
  .input, .field input, .field select { font-size: 16px; }
  .section { margin-top: 3.5rem; }
  .card { padding: 1.1rem 1.1rem 1.2rem; }
  .lockups { gap: .9rem 1.5rem; }
  .lockup { width: calc(50% - .75rem); height: 40px; }
  .lockup.tall { height: 52px; }
  .btn { white-space: normal; text-align: center; }
}
