/* ============================================================
   site.css - the page below the hero (rebuilt 2026-11-27).

   One system, on top of v3.css's tokens and type (.eyebrow, .display,
   .lead, .sec-head, .btn, the 4px corner, the tone tokens). Three kinds
   of thing live here:
     .ui   product views DRAWN in the application's own vocabulary
           (island white, hairlines, its accent and state colours)
     .ph   placeholders for assets to be supplied - photo, logo, the main
           capture, headshot, badge - each saying what belongs in it
     the section layouts, all simple grids
   ============================================================ */

:root {
  /* The application's tokens (transcribed in v3-app.css), page-wide here. */
  --app-island: #ffffff;
  --app-hairline: #eaebef;
  --app-hairline-strong: #dcdee4;
  --app-ink: #17181c;
  --app-ink-2: #5b5f6a;
  --app-ink-3: #8e919b;
  --app-accent: #3b4fd8;
  --app-adverse: #c0392f;
  --app-unresolved: #b57310;
  --app-favorable: #1f8a4c;
  --app-shadow: 0 1px 2px rgba(18,20,28,.06), 0 18px 44px -18px rgba(18,20,28,.30);
  /* Grounds. Mixed from tokens so they re-tone with the page. */
  --tint:   color-mix(in srgb, var(--brand-mark) 13%, var(--paper));
  --tint-2: color-mix(in srgb, var(--brand-mark) 6%, var(--paper));
  --warm:   color-mix(in srgb, #8b7d6b 12%, var(--paper));
  --warm-2: color-mix(in srgb, #8b7d6b 24%, var(--paper));
}

/* ---------- shared layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 112px);
  align-items: center;
}
.split--top { align-items: start; }
.split--flip > .split-copy { order: 2; }
.split-copy .eyebrow { margin-bottom: 22px; }
.split-copy .display + .lead { margin-top: 20px; }
.visual { position: relative; margin: 0; }
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip > .split-copy { order: 0; }
}

/* ---------- placeholders ---------- */
.ph-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-blue);
}
.ph-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid currentColor;
}
.ph-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.ph-spec { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-3); }

/* Photo: a warm ground, a faint picture glyph, and the brief in the top
   corner (out of the way of any product card laid over the lower half). */
.ph-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(90% 70% at 18% 8%, color-mix(in srgb, var(--paper) 70%, transparent), transparent 70%),
    linear-gradient(158deg, var(--warm) 0%, var(--warm-2) 100%);
}
.ph-photo--45 { aspect-ratio: 4 / 5; }
.ph-photo--43 { aspect-ratio: 4 / 3; }
/* The picture glyph sits in the corner, clear of the brief at any width
   (centred, it ran into the brief on small slots); where a product card is
   laid over the photo, the card simply covers it. */
.ph-glyph {
  position: absolute; right: 18px; bottom: 16px;
  width: 30px; height: 30px;
  color: color-mix(in srgb, var(--ink) 26%, transparent);
  stroke-width: 1.1;
}
.ph-photo .ph-cap {
  position: absolute;
  left: clamp(14px, 4.5%, 26px); top: clamp(14px, 4.5%, 26px); right: clamp(14px, 4.5%, 26px);
  display: grid; justify-items: start; gap: 7px;
}

/* Logo slot */
.ph-logo {
  display: grid; place-items: center;
  height: 46px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-panel);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-4);
}

/* Headshot and badge slots */
.ph-face {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: grid; place-items: center;
  color: var(--ink-4);
}
.ph-face svg { width: 24px; height: 24px; }
.ph-badge {
  width: 76px; height: 76px; flex: none;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
}

/* The main capture: the application's window, its layout sketched behind
   a centred brief card. Centred by margin-inline: auto - no other rule on
   this element sets a margin. */
.ph-shot {
  position: relative;
  margin: clamp(44px, 5vw, 76px) auto 0;
  max-width: 1120px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 50px 100px -60px rgba(var(--shadow-rgb), .5);
}
.ph-shot-bar {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.ph-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ph-shot-body {
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr) 40%;
}
.sk { padding: clamp(12px, 2vw, 26px); display: grid; align-content: start; gap: 11px; }
.sk i, .sk b { display: block; height: 8px; border-radius: 2px; background: rgba(var(--ink-rgb), .07); }
.sk-side { border-right: 1px solid var(--line); background: var(--paper-2); }
.sk-side b { height: 12px; width: 70%; margin-bottom: 10px; background: rgba(var(--ink-rgb), .12); }
.sk-side i.is-on { background: color-mix(in srgb, var(--brand-mark) 45%, transparent); }
.sk-chat { gap: 14px; }
.sk-q { height: 30px !important; width: 62%; justify-self: end; background: rgba(var(--ink-rgb), .06) !important; }
.sk-a { height: 10px !important; width: 92%; }
.sk-a--2 { width: 74%; }
.sk-cite { width: 38%; height: 18px !important; background: color-mix(in srgb, var(--brand-mark) 28%, transparent) !important; }
.sk-in { height: 40px !important; margin-top: 40%; border: 1px solid var(--line); background: transparent !important; }
.sk-doc { border-left: 1px solid var(--line); background: var(--paper-3); }
.sk-page { background: var(--paper); border: 1px solid var(--line); padding: 18px 16px; display: grid; gap: 10px; aspect-ratio: 8.5 / 11; }
.sk-hl { background: color-mix(in srgb, var(--brand-mark) 40%, transparent) !important; height: 12px !important; }
.ph-cap--card {
  position: absolute; inset: 0; margin: auto;
  width: min(470px, 84%); height: fit-content;
  padding: clamp(18px, 2.2vw, 28px);
  display: grid; justify-items: center; gap: 10px; text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: 0 24px 60px -30px rgba(var(--shadow-rgb), .45);
}
.ph-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.012em;
  color: var(--ink);
}
@media (max-width: 640px) {
  .ph-shot-body { grid-template-columns: 0 minmax(0, 1fr) 46%; }
  .sk-side { display: none; }
  .ph-cap--card .ph-desc { display: none; }
}

/* ---------- product views (.ui) ----------
   Drawn in the application's own vocabulary and kept simple: each card
   shows one thing, recognisable before a word of it is read - a list of
   flags, a question and its answer, a timeline, a sum, a plan, a page, a
   change. One line per row; a source only where the source is the point.

   LIQUID GLASS (v6 exploration, 2026-11-28). Each card is a glass shell
   holding a white panel, concentric with it:
     .ui      the glass: backdrop blur + saturation, a faint tint, a rim of
              light (brightest top-left, catching again bottom-right), an
              inner sheen, a soft shadow. glass.js adds refraction at the
              bezel in Chromium.
     .ui-h    the card's title, sitting on the glass
     .ui-in   the white panel with the content, inset by --glass-pad
   Light glass (ink title) on the gradient plates; .ui--dark is smoke
   glass (white title) for cards laid over photographs.
   Radii are Apple's, not the page's 4px: the glass layer is the product,
   floating over the page. Shell 18px, panel 18 - 7 = 11px (concentric). */
:root {
  --glass-r: 18px;
  --glass-pad: 7px;
  --glass-r-in: calc(var(--glass-r) - var(--glass-pad));
  --glass-tint-1: rgba(255, 255, 255, .42);
  --glass-tint-2: rgba(255, 255, 255, .22);
  /* controls inside the glass layer follow its geometry, not the page's */
  --ui-r-sm: 6px;   /* tags, counts, citation marks */
  --ui-r: 8px;      /* buttons, chips, the source chip */
  --ui-r-lg: 10px;  /* fields, the drop zone */
  --glass-title: var(--app-ink);
  --glass-title-2: rgba(23, 24, 28, .70);
  /* read by glass.js (unitless px) */
  --glass-bezel: 22;
  --glass-depth: 10;
  --glass-blur: 12;
  --glass-sat: 1.8;
}
.ui {
  position: relative;
  isolation: isolate;
  /* the shell no longer clips (the panel does), so its minimum width must
     not grow to the longest file name: long names end in an ellipsis */
  min-width: 0;
  font-family: var(--sans);
  font-size: 13.5px; line-height: 1.45;
  color: var(--app-ink);
  text-align: left;
  padding: 0 var(--glass-pad) var(--glass-pad);
  border-radius: var(--glass-r);
  /* the tint is held across the title, then thins toward the foot */
  background: linear-gradient(180deg, var(--glass-tint-1) 0, var(--glass-tint-1) 34px, var(--glass-tint-2) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
          backdrop-filter: blur(12px) saturate(180%);
  box-shadow:
    0 0 0 .5px rgba(14, 16, 24, .10),
    0 1px 2px rgba(14, 16, 24, .08),
    0 10px 24px -10px rgba(14, 16, 24, .28),
    0 32px 64px -32px rgba(14, 16, 24, .30);
}
/* rim: a 1px ring of light, painted as a gradient border */
.ui::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .50) 16%,
    rgba(255, 255, 255, .14) 38%,
    rgba(255, 255, 255, .10) 62%,
    rgba(255, 255, 255, .42) 86%,
    rgba(255, 255, 255, .80) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* thickness: a sheen under the top edge and a glow along the bottom */
.ui::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  box-shadow:
    inset 0 12px 20px -14px rgba(255, 255, 255, .55),
    inset 0 -10px 18px -14px rgba(255, 255, 255, .45);
  pointer-events: none;
}
.ui--dark {
  /* smoke where the title is; nearly clear below, so where the card hangs
     past the photo the glass over the white page reads as glass, not metal */
  --glass-tint-1: rgba(20, 22, 28, .50);
  --glass-tint-2: rgba(20, 22, 28, .06);
  --glass-title: #fff;
  --glass-title-2: rgba(255, 255, 255, .72);
}
.ui-in {
  position: relative;
  background: var(--app-island);
  border-radius: var(--glass-r-in);
  overflow: hidden;
  box-shadow:
    0 0 0 .5px rgba(14, 16, 24, .07),
    0 1px 2px rgba(14, 16, 24, .07),
    0 6px 16px -8px rgba(14, 16, 24, .20);
}
.ui-in > :first-child { border-top: 0; }
.ui .ic { width: 14px; height: 14px; flex: none; }
.ui em { font-style: normal; }
.ui-h {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  min-height: 42px; padding: 9px 16px;
  font-weight: 600; font-size: 13px; letter-spacing: -.005em;
  color: var(--glass-title);
}
.ui--dark .ui-h { text-shadow: 0 0 8px rgba(0, 0, 0, .30), 0 1px 2px rgba(0, 0, 0, .30); }
.ui-h > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-h .ic { color: var(--glass-title-2); }
.ui-h small { font-weight: 500; font-size: 11.5px; color: var(--glass-title-2); white-space: nowrap; }
.ui-b { padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ui-b > * { min-width: 0; }
@media (prefers-reduced-transparency: reduce) {
  .ui { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #eef0f3; }
  .ui--dark { background: #2a2d34; }
}

/* states and small marks */
.ui-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ui-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ui-state--src { color: var(--app-accent); }
.ui-state--differ { color: var(--app-adverse); }
.ui-state--missing { color: var(--app-unresolved); }
.ui-state--ok { color: var(--app-favorable); }
.ui-cite {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: var(--ui-r);
  background: rgba(59, 79, 216, .08); color: var(--app-accent);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ui-cite .ic { width: 13px; height: 13px; }
.ui-count, .ui-tag, .ui-new {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--ui-r-sm);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.ui-count { background: #fbeceb; color: var(--app-adverse); }
.ui-tag { background: rgba(59, 79, 216, .08); color: var(--app-accent); }
.ui-new { background: rgba(31, 138, 76, .1); color: var(--app-favorable); }
/* on the glass, small marks are white chips with their colour in the text */
.ui-h .ui-count, .ui-h .ui-tag {
  height: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 .5px rgba(14, 16, 24, .08), 0 1px 2px rgba(14, 16, 24, .10);
  text-shadow: none;
}

/* a list: one line per row, a subject and where it stands */
.ui-li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 14px;
  padding: 13px 16px;
  border-top: 1px solid var(--app-hairline);
}
.ui-li-k { font-weight: 500; }

/* upload */
.ui-drop {
  display: grid; justify-items: center; gap: 8px;
  padding: 18px 12px;
  border: 1px dashed #b9c1f0; border-radius: var(--ui-r-lg);
  background: rgba(59, 79, 216, .04);
  color: var(--app-accent); text-align: center;
}
.ui-drop .ic { width: 18px; height: 18px; }
.ui-drop b { font-size: 13px; font-weight: 600; color: var(--app-ink); }
/* The three views in "How it works" are one height: 02's, the tallest,
   whose rows never wrap (258.6px at every width, so 259px). 01's drop zone and
   03's composer take up the difference. */
.step-stage > .ui { min-height: 259px; display: flex; flex-direction: column; }
.ui-upload .ui-b, .ui-compose .ui-b { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.ui-upload .ui-in, .ui-compose .ui-in { flex: 1 1 auto; display: flex; flex-direction: column; }
.ui-upload .ui-drop { flex: 1 1 auto; align-content: center; }
.ui-compose .ui-input { margin-top: auto; }

/* 01: files being dragged in, the way a desktop shows them - a fanned,
   translucent stack under the cursor with a count - and the zone lights up
   as a drop target does. site.js plays it once on arrival; without the
   script (or with reduced motion) the end state shows. */
.ui-drop[data-drag] { position: relative; transition: border-color .3s ease, background-color .3s ease; }
.ui-drop-art { display: grid; place-items: center; width: 100%; height: 70px; }
.ui-drop-art > * { grid-area: 1 / 1; }
.ui-drop-up { transition: opacity .25s ease; }
.ui-ghost { position: relative; width: 70px; height: 56px; transition: opacity .45s ease, transform .9s cubic-bezier(.2, .75, .2, 1); }
.ui-ghost-files { position: absolute; inset: 0; opacity: .82; }
.ui-gf { position: absolute; top: 5px; width: 34px; height: 43px; overflow: visible; filter: drop-shadow(0 4px 6px rgba(18, 20, 28, .16)); }
.ui-gf--1 { left: 3px; transform: rotate(-8deg); }
.ui-gf--2 { left: 17px; top: 2px; transform: rotate(2deg); }
.ui-gf--3 { left: 31px; transform: rotate(11deg); }
.ui-ghost-n {
  position: absolute; right: -9px; top: -7px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--app-accent); color: #fff;
  font: normal 600 10.5px/1 var(--sans);
  box-shadow: 0 1px 3px rgba(18, 20, 28, .3);
}
.ui-ghost-cur { position: absolute; left: 35px; top: 35px; width: 14px; height: 20px; overflow: visible; }
.ui-drop[data-drag] { border-color: var(--app-accent); background: rgba(59, 79, 216, .07); }
.ui-drop[data-drag] .ui-drop-up { opacity: 0; transition-delay: .3s; }
.ui-drop[data-drag] { transition-delay: .45s; }
.ui-drop.is-armed:not(.is-over) { border-color: #b9c1f0; background: rgba(59, 79, 216, .04); transition-delay: 0s; }
.ui-drop.is-armed:not(.is-over) .ui-drop-up { opacity: 1; transition-delay: 0s; }
.ui-drop.is-armed:not(.is-over) .ui-ghost { opacity: 0; transform: translate(56px, -42px) rotate(6deg) scale(.94); }
/* the drop: the files sink into the zone and are gone */
.ui-drop.is-over.is-dropped .ui-ghost { opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .3s ease, transform .35s ease; }

/* on its own (01), the drop zone is the whole card: a generous target */
.ui-drop:only-child { padding: 20px 16px; gap: 10px; }
.ui-drop:only-child .ic { width: 22px; height: 22px; }
.ui-file { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--app-ink); }
.ui-file .ic { color: var(--app-ink-3); }
.ui-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-file em { margin-left: auto; font-size: 11.5px; color: var(--app-ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ui-file em.is-ok { color: var(--app-favorable); }
.ui-file em.is-ok .ic { width: 12px; height: 12px; color: inherit; }
.ui-file em.is-busy { color: var(--app-accent); }
.ui-file--row { padding: 9px 16px; border-top: 1px solid var(--app-hairline); }

/* reading */
.ui-prog { font-size: 12.5px; color: var(--app-ink-2); }
.ui-prog b { font-weight: 600; color: var(--app-ink); font-variant-numeric: tabular-nums; }
.ui-bar { height: 5px; border-radius: 3px; background: var(--app-hairline); overflow: hidden; }
.ui-bar i { display: block; height: 100%; background: var(--app-accent); border-radius: 3px; transition: width .4s linear; }

/* ask */
.ui-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-chip { padding: 6px 10px; border: 1px solid var(--app-hairline-strong); border-radius: var(--ui-r); font-size: 12px; color: var(--app-ink-2); background: #fff; white-space: nowrap; }
.ui-input {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; padding: 7px 7px 7px 12px;
  border: 1px solid var(--app-hairline-strong); border-radius: var(--ui-r-lg);
  box-shadow: 0 6px 18px -10px rgba(18,20,28,.25);
}
.ui-type { flex: 1; min-width: 0; display: inline-flex; align-items: center; font-size: 13px; color: var(--app-ink-3); white-space: nowrap; overflow: hidden; }
/* a field waiting: the caret sits before the placeholder; once typing, after the words */
.ui-type:not(.is-typing) .ui-caret { order: -1; margin: 0 2px 0 0; }
.ui-type.is-typing { color: var(--app-ink); }
.ui-caret { width: 1.5px; height: 15px; margin-left: 1px; background: var(--app-ink-2); flex: none; animation: ui-blink 1.1s steps(1) infinite; }
@keyframes ui-blink { 50% { opacity: 0; } }
.ui-send { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--app-accent); color: #fff; }

/* a question and its answer: the question is the user's bubble, on the
   glass; the answer and the reply box are on the white panel */
.ui-h--ask { justify-content: flex-end; padding: 10px 0 10px 24px; }
.ui-chat .ui-q {
  max-width: 100%;
  padding: 8px 13px 9px;
  border-radius: 14px 14px 4px 14px;
  background: var(--app-accent); color: #fff;
  font-size: 13.5px; font-weight: 500; line-height: 1.35; letter-spacing: 0;
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(14, 16, 24, .18), 0 6px 14px -8px rgba(30, 40, 140, .55);
}
.ui-a { padding: 16px 16px 14px; display: grid; gap: 12px; justify-items: start; }
.ui-a p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.ui-reply {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 10px 10px; padding: 5px 5px 5px 12px;
  border: 1px solid var(--app-hairline-strong); border-radius: var(--ui-r-lg);
  font-size: 13px; color: var(--app-ink-3);
}
.ui-reply .ui-send { width: 26px; height: 26px; border-radius: 6px; }

/* a timeline */
.ui-rail { list-style: none; margin: 0; padding: 18px 18px 20px; display: grid; gap: 16px; }
.ui-rail li {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px;
  padding-left: 28px;
}
.ui-rail li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid var(--app-accent); background: #fff;
}
.ui-rail li::after {
  content: ""; position: absolute; left: 5px; top: 19px; bottom: -13px;
  width: 1px; background: var(--app-hairline-strong);
}
.ui-rail li:last-child::after { display: none; }
.ui-rail time { font-family: var(--mono); font-size: 11px; line-height: 17px; color: var(--app-ink-3); white-space: nowrap; }
.ui-rail li > span { flex: 0 0 100%; order: 3; font-size: 14px; }
.ui-rail .ui-state { font-size: 11.5px; }
.ui-rail li.is-flag::before { border-color: var(--app-adverse); background: var(--app-adverse); box-shadow: 0 0 0 4px #fbeceb; }
.ui-rail li.is-flag time { color: var(--app-adverse); }

/* a sum, worked as a chain: a figure, what is done to it, the next figure.
   Figures are tiles; between two tiles a connector carries the operation,
   and a source sits beside whatever it backs (a figure or a rule). */
.ui-flow { list-style: none; margin: 0; padding: 14px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr); }
.ui-fv {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 12px;
  padding: 11px 13px;
  border: 1px solid var(--app-hairline-strong); border-radius: 3px;
  background: #fafbfc;
}
.ui-fv > span { color: var(--app-ink-2); }
.ui-fv b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-fv .ui-cite { grid-column: 1 / -1; justify-self: start; }
.ui-fv.is-total { border-color: rgba(59, 79, 216, .42); background: rgba(59, 79, 216, .05); }
.ui-fv.is-total > span { color: var(--app-ink); font-weight: 600; }
.ui-fv.is-total b { font-size: 18px; color: var(--app-accent); }
.ui-fo {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding-left: var(--fo-x, 14px);
}
.ui-fo::before { content: ""; position: absolute; left: calc(var(--fo-x, 14px) + var(--fo-w, 54px) / 2 - .75px); top: 0; bottom: 3px; width: 1.5px; background: #c4c9d3; }
.ui-fo::after { content: ""; position: absolute; left: calc(var(--fo-x, 14px) + var(--fo-w, 54px) / 2 - 4px); bottom: 0; border: 4px solid transparent; border-top: 5px solid #c4c9d3; border-bottom: 0; }
.ui-fo i {
  position: relative; z-index: 1;
  flex: none; width: var(--fo-w, 54px); padding: 3px 0; text-align: center;
  border: 1px solid var(--app-hairline-strong); border-radius: 3px;
  background: var(--app-island);
  font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--app-ink); white-space: nowrap;
}
@media (max-width: 400px) { .ui-flow { padding: 12px 12px 14px; } .ui-fo { gap: 8px; } }
/* its title is long: on a narrow card it wraps rather than being cut short */
.ui-calc .ui-h > span:first-child { white-space: normal; }
/* phones: the rule's source has to fit beside its operation */
@media (max-width: 420px) { .ui-fo { --fo-x: 0px; --fo-w: 48px; gap: 6px; } .ui-fo .ui-cite .ic { display: none; } }
/* the narrowest phones: each figure drops under its label, and a rule is
   cited by its section alone */
@media (max-width: 350px) { .ui-cite-pre { display: none; } .ui-fv { grid-template-columns: minmax(0, 1fr); gap: 4px; } .ui-fv .ui-cite { margin-top: 4px; } }
/* beside text at laptop widths a 5:4 stage is shorter than this card: there
   the stage takes its height from the card instead */
@media (min-width: 961px) and (max-width: 1240px) { .stage.stage--tall { aspect-ratio: auto; } }

/* a conversation about what to do next: two bubbles laid straight on the
   stage, with no card around them - the person's on the right, the
   product's on the left. */
.ui-talk {
  width: min(430px, 100%);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.45;
  color: var(--app-ink); text-align: left;
}
.ui-talk .ui-q {
  /* the bubble is exactly as wide as its longest line: the lines are broken
     by hand and never re-wrap, so no empty space is left beside them */
  justify-self: end; white-space: nowrap;
  padding: 9px 14px 10px;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(180deg, rgba(74, 94, 226, .94), rgba(55, 74, 210, .94));
  -webkit-backdrop-filter: blur(10px) saturate(180%);
          backdrop-filter: blur(10px) saturate(180%);
  color: #fff; font-weight: 500; line-height: 1.4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 0 0 .5px rgba(255, 255, 255, .22),
    0 1px 2px rgba(14, 16, 24, .18),
    0 12px 24px -12px rgba(30, 40, 140, .60);
}
/* the answer is a pane of the same glass as the cards: frost, a rim of
   light, a soft shadow; glass.js bends the plate at its edge */
.ui-say {
  position: relative; isolation: isolate;
  justify-self: start; max-width: 94%;
  display: grid; gap: 9px;
  padding: 13px 16px 15px;
  border-radius: var(--glass-r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .62));
  -webkit-backdrop-filter: blur(14px) saturate(180%);
          backdrop-filter: blur(14px) saturate(180%);
  line-height: 1.5;
  box-shadow:
    0 0 0 .5px rgba(14, 16, 24, .10),
    0 1px 2px rgba(14, 16, 24, .08),
    0 10px 24px -10px rgba(14, 16, 24, .26),
    0 32px 64px -32px rgba(14, 16, 24, .28);
}
.ui-say::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .50) 16%,
    rgba(255, 255, 255, .14) 38%,
    rgba(255, 255, 255, .10) 62%,
    rgba(255, 255, 255, .42) 86%,
    rgba(255, 255, 255, .80) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.ui-say p { margin: 0; }
.ui-say b { font-weight: 600; }
.ui-say ul { margin: 0; padding: 0 0 0 1.25em; display: grid; gap: 7px; }
.ui-say li { padding-left: 1px; }
.ui-say li::marker { color: var(--app-ink-2); }
@media (prefers-reduced-transparency: reduce) {
  .ui-say { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #f4f5f7; }
  .ui-talk .ui-q { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--app-accent); }
}

/* finished work: the documents themselves, each a file with its name and
   a way to download it */
.ui-doc { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.ui-doc-i { width: 17px; height: 19px; flex: none; overflow: visible; filter: drop-shadow(0 1px 1px rgba(18, 20, 28, .14)); }
/* each one can be taken away: a download control, drawn and not live */
.ui-dl {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--app-hairline-strong); border-radius: var(--ui-r);
  background: var(--app-island); color: var(--app-ink-2);
}
.ui-dl .ic { width: 15px; height: 15px; }

/* the newest version: how much is new, and the way in to what changed */
.ui-added { justify-content: flex-start; gap: 6px 10px; }
.ui-added > span { color: var(--app-ink-2); }
.ui-go { color: var(--app-accent); font-weight: 600; }
.ui-go .ic { width: 15px; height: 15px; }

/* the stack: what the file was before sits behind what it is now, each
   sheet a little narrower and a little higher. Once the stack is
   properly in view the sheets rise out from behind it, nearest first. */
.ui-stack { --peek: 15px; position: relative; width: min(400px, 100%); padding-top: calc(var(--peek) * 3); }
.ui-stack > .ui { position: relative; z-index: 3; width: 100%; }
.ui-sheet {
  position: absolute; top: calc(var(--peek) * (3 - var(--n))); left: calc(4.5% * var(--n)); right: calc(4.5% * var(--n));
  z-index: calc(3 - var(--n));
  transition: transform .9s var(--ease-out);
}
.ui-sheet--1 { --n: 1; transition-delay: .05s; }
.ui-sheet--2 { --n: 2; transition-delay: .16s; }
.ui-sheet--3 { --n: 3; transition-delay: .27s; }
@media (prefers-reduced-motion: no-preference) {
  .ui-stack.is-armed:not(.is-fanned) .ui-sheet { transform: translateY(calc(var(--peek) * var(--n))); }
}
.ui-sheet {
  height: calc(var(--peek) + var(--glass-r));
  border-radius: var(--glass-r) var(--glass-r) 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(.80 - .12 * var(--n))) 0, rgba(255, 255, 255, calc(.62 - .10 * var(--n))) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(170%);
          backdrop-filter: blur(10px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .80),
    inset 1px 0 0 rgba(255, 255, 255, .34),
    inset -1px 0 0 rgba(255, 255, 255, .22),
    0 0 0 .5px rgba(14, 16, 24, .09),
    0 6px 14px -8px rgba(14, 16, 24, .22);
}
@media (prefers-reduced-transparency: reduce) {
  .ui-sheet { -webkit-backdrop-filter: none; backdrop-filter: none; background: #eef0f3; }
}

/* case outline */
.ui-ol { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
.ui-nav { padding: 8px 6px; border-right: 1px solid var(--app-hairline); background: #fafbfc; display: grid; align-content: start; gap: 1px; }
.ui-nav span { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 7px; font-size: 12.5px; color: var(--app-ink-2); white-space: nowrap; }
.ui-nav span.is-on { background: rgba(59, 79, 216, .09); color: var(--app-accent); font-weight: 600; }
.ui-nav em { font-size: 11.5px; color: var(--app-ink-3); }
.ui-pane { padding: 8px 14px; display: grid; align-content: start; }
.ui-kv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--app-hairline); color: var(--app-ink-2); }
.ui-kv:last-child { border-bottom: 0; }
.ui-kv b { font-weight: 600; color: var(--app-ink); font-variant-numeric: tabular-nums; }

/* A card laid over a photo, as the product sits in the real room. */
/* It hangs a little below the photo's edge: that keeps the brief in the
   top corner clear even under the tallest card, and reads as the product
   sitting in the room rather than pasted onto a picture. */
.ui-float {
  position: absolute;
  right: 6%; bottom: -8%;
  width: min(372px, 80%);
}
.ui-outline.ui-float { width: min(430px, 88%); }
/* Beside text at laptop widths the photo column is narrow; squarer photos
   keep the brief in the top corner clear of the card laid over them. */
@media (min-width: 961px) and (max-width: 1240px) {
  .feature .ph-photo, .comp .ph-photo { aspect-ratio: 1 / 1; }
  .ui-float { width: min(340px, 80%); }
  .ui-outline.ui-float { width: min(410px, 90%); }
}
@media (max-width: 560px) {
  .ui-float, .ui-outline.ui-float {
    position: relative; right: auto; bottom: auto;
    width: auto; margin: -72px 12px 0;
  }
}

/* A stage, for a view shown on its own: a gradient plate (a soft, blurred
   field of colour - v6: generated, replaceable with supplied images of the
   same name) under a fine film grain. The glass card floats on it. */
.stage {
  display: grid; place-items: center;
  aspect-ratio: 5 / 4;
  padding: clamp(18px, 6%, 48px);
  border-radius: var(--r-panel);
}
.stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.stage > .ui { width: min(400px, 100%); }
@media (max-width: 560px) { .stage { aspect-ratio: auto; } }
.plate {
  position: relative; isolation: isolate;
  background-color: #c9d3dc;
  background-image: var(--plate);
  background-size: cover; background-position: center;
}
.plate::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay; opacity: .32;
}
.plate > * { position: relative; z-index: 1; }
.plate--sky     { --plate: url("img/plates/sky.webp"); }
.plate--sky2    { --plate: url("img/plates/sky2.webp"); }
.plate--meadow  { --plate: url("img/plates/meadow.webp"); }
.plate--meadow2 { --plate: url("img/plates/meadow2.webp"); }
.plate--ember   { --plate: url("img/plates/ember.webp"); }
.plate--ember2  { --plate: url("img/plates/ember2.webp"); }
.plate--dusk    { --plate: url("img/plates/dusk.webp"); }

/* ---------- logos ---------- */
/* The hero is an ordinary first screen now (opening.js, .opening--static):
   one stage-high block, not pinned, and the tone marker re-sized so the page
   turns to paper when the hero's foot has passed ~33% of the viewport - the
   point where the next section holds two thirds of the screen. Measured. */
.opening.opening--static { height: auto; }
.opening--static .opening-stage { position: relative; }
.opening--static .opening-tone { height: 145svh; }

.logos {
  position: relative; z-index: 2;
  background: var(--paper);
  padding-block: clamp(34px, 4vw, 54px) clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}
.logos-in { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 56px); }
.logos-cap {
  flex: none; margin: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; line-height: 1.6;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.logos-row {
  flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
}
.logos-note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-3); }
.logos-note .ph-tag { margin-right: 6px; }
@media (max-width: 900px) {
  .logos-in { flex-direction: column; align-items: stretch; gap: 18px; text-align: center; }
  .logos-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- the problem ---------- */
.intro .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.misses {
  list-style: none; margin: clamp(32px, 3.4vw, 46px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px clamp(20px, 2.6vw, 40px);
}
.miss { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.miss-ic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  color: var(--brand-blue);
}
.miss-ic svg { width: 17px; height: 17px; }
.miss h3 { margin: 5px 0 5px; font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.miss p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 960px) { .intro .split { grid-template-columns: minmax(0, 1fr); } }
/* Two columns of misses need ~560px; beside the photo at laptop widths the
   copy column is narrower than that, so they stack there. */
@media (min-width: 961px) and (max-width: 1240px) { .misses { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 560px) { .misses { grid-template-columns: minmax(0, 1fr); } }

/* ---------- how it works ---------- */
.steps {
  list-style: none;
  margin: clamp(44px, 5vw, 76px) 0 0;
  padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.step {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.step-stage {
  height: 318px;
  display: grid; place-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.step-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
/* a colour plate is its own edge: no divider between it and the words;
   and enough of it around the card for the glass to read as floating */
.step-stage.plate { border: 0; height: 340px; }
@media (max-width: 1100px) { .step-stage.plate { height: auto; } }
@media (min-width: 881px) and (max-width: 1100px) { .step-stage.plate { padding: 30px 32px; } }
@media (min-width: 481px) and (max-width: 880px) { .step-stage.plate { padding: 36px 32px; } }
.step-stage > .ui { width: 100%; max-width: 340px; }
@media (max-width: 480px) { .step-stage { padding: 14px; } }
.step-copy { padding: 24px 26px 28px; }
.step-n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--brand-blue); }
.step h3 {
  margin: 10px 0 9px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 1.8vw, 27px); line-height: 1.14; letter-spacing: -0.01em;
  color: var(--ink); text-wrap: balance;
}
.step-copy p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
/* Three across while each card has room for its view; then one card per
   row, view beside words while the view still reads at that width; then
   the view on top. */
@media (max-width: 1100px) { .steps { grid-template-columns: minmax(0, 1fr); } .step { flex-direction: row; } .step-stage { flex: 0 0 48%; width: auto; height: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); } .step-copy { flex: 1 1 0; min-width: 0; align-self: center; } }
@media (max-width: 880px) { .step { flex-direction: column; } .step-stage { flex: none; width: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } }
.formats {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px;
}
.formats-l { margin-right: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.fmt {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  font-size: 13px; color: var(--ink-2); background: var(--paper);
}
.fmt-i { width: 15px; height: 17px; flex: none; overflow: visible; }

/* ---------- the product ---------- */
.features { margin-top: clamp(84px, 9vw, 150px); display: grid; gap: clamp(84px, 9vw, 150px); }
.feature .eyebrow { margin-bottom: 18px; }
.feature h3 {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 3vw, 46px); line-height: 1.06; letter-spacing: -0.016em;
  color: var(--ink); text-wrap: balance;
}
.feature .split-copy p { margin: 18px 0 0; max-width: 44ch; font-size: clamp(15.5px, 1.1vw, 17.5px); line-height: 1.62; color: var(--ink-2); }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; align-items: baseline; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.ticks li::before {
  content: ""; flex: none;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--brand-blue); border-bottom: 1.5px solid var(--brand-blue);
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- workers' comp ---------- */
.views {
  list-style: none;
  margin: clamp(26px, 3vw, 36px) 0 clamp(28px, 3vw, 36px); padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  border-top: 1px solid var(--line);
  counter-reset: v;
}
.views li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
  counter-increment: v;
}
.views li::before { content: counter(v, decimal-leading-zero); font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
/* One name is too long for a narrow column ("Exposure or case value" wraps
   and makes its row taller than the rest): there it becomes the shorter
   "Case value". The column is the query container (.split-copy). */
.views .v-short { display: none; }
@container (max-width: 440px) { .views .v-long { display: none; } .views .v-short { display: inline; } }
@media (max-width: 340px) { .views { column-gap: 20px; } .views li { gap: 8px; font-size: 14px; } }

/* ---------- beyond ---------- */
/* The industries are one row that slides: three cards in view (two on a
   tablet, one and the edge of the next on a phone), the rest reached with
   the arrows under the row, a swipe, or the keyboard. */
.rail { --rail-gap: clamp(18px, 2.4vw, 36px); margin-top: clamp(44px, 5vw, 76px); }
.beyond-grid {
  display: grid; grid-auto-flow: column;
  grid-template-columns: none; margin-top: 0;   /* clears the old three-column grid in v3-sections.css */
  grid-auto-columns: calc((100% - 2 * var(--rail-gap)) / 3);
  gap: var(--rail-gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.beyond-grid::-webkit-scrollbar { display: none; }
.beyond-grid:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.beyond-grid > .use { scroll-snap-align: start; min-width: 0; }
.rail-nav {
  margin-top: clamp(26px, 2.6vw, 38px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* where you are in the row: a hairline with a darker run for what is in view */
.rail-bar { position: relative; flex: 0 1 132px; height: 2px; background: var(--line); overflow: hidden; }
.rail-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 33.333%; background: var(--ink-2); transition: transform .25s var(--ease-out); }
.rail-btns { display: inline-flex; gap: 8px; }
.rail-btn {
  width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .25s var(--ease), opacity .25s var(--ease);
}
.rail-btn svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.rail-btn--prev svg { transform: scaleX(-1); }
.rail-btn:hover:not(:disabled) { border-color: var(--ink); }
.rail-btn:hover:not(:disabled) svg { transform: translateX(2px); }
.rail-btn--prev:hover:not(:disabled) svg { transform: scaleX(-1) translateX(2px); }
.rail-btn:disabled { opacity: .32; cursor: default; }
.rail-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* a row with nothing more to show needs no controls */
.rail.is-static .rail-nav { display: none; }
@media (max-width: 860px) { .beyond-grid { grid-auto-columns: calc((100% - var(--rail-gap)) / 2); } }
@media (max-width: 560px) { .beyond-grid { grid-auto-columns: 84%; } }
.use { display: flex; flex-direction: column; align-items: flex-start; }
.use .ph-photo { width: 100%; }
.use h3 {
  margin: 24px 0 8px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ink);
}
.use p { margin: 0; max-width: 38ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- nav: sign in ----------
   "Sign in" is not a menu link: it sits beside the button, as the same
   shape drawn in outline, so the filled button stays the one thing that
   asks for a click. The links get the same breathing room after them as
   before them, so the pair on the right reads as its own group. */
.nav-links { margin-inline: clamp(24px, 4.6vw, 80px); }
.nav.scrolled .nav-links { margin-inline: 14px; }
.nav-right { gap: 6px; }
.nav .btn-nav.btn-nav--quiet {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1px rgba(20, 32, 48, .16);
}
.nav .btn-nav.btn-nav--quiet:hover { background: rgba(20, 32, 48, .06); }
.nav.over-dark .btn-nav.btn-nav--quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.nav.over-dark .btn-nav.btn-nav--quiet:hover { background: rgba(255, 255, 255, .08); }
/* in the phone menu the pair are two full-width buttons, the outlined one second */
.mnav .btn-ghost { margin-top: 10px; color: var(--ink); border-color: var(--line-strong); }

/* ---------- the email forms' messages ----------
   The validation nudge and the submit result, under the hero form and the
   closing one: a single quiet line in the page's own type - a small mark in
   the state's colour, then the words - with no box around it. (The older
   boxed, monospaced treatment is in v3-sections.css and hero-streams.css;
   these rules take over from it.) */
.hero-input-tip, .hero-form-msg,
.hero--streams .hero-input-tip, .hero--streams .hero-form-msg,
.hero--streams .hero-form-msg.is-success {
  padding: 0; border: 0; border-radius: 0; background: none;
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  letter-spacing: 0; line-height: 1.45;
  color: var(--ink); text-align: center; text-wrap: balance;
}
.hero-input-tip, .hero-form-msg { margin-left: auto; margin-right: auto; }
.hero-input-tip, .hero-form-msg.is-error { --msg-mark: var(--warn); color: var(--ink); }
.hero-form-msg.is-success { --msg-mark: var(--ember); color: var(--ink); }
.hero-input-tip::before, .hero-form-msg::before {
  content: ""; display: inline-block;
  width: 15px; height: 15px; margin-right: 8px; vertical-align: -2.5px;
  background: var(--msg-mark, var(--warn));
  -webkit-mask: var(--msg-icon) center / contain no-repeat;
          mask: var(--msg-icon) center / contain no-repeat;
  --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm-.75 3.6h1.5v4.5h-1.5V4.6ZM8 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'/%3E%3C/svg%3E");
}
.hero-form-msg.is-success::before {
  --msg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm3.6 5.3-4.2 4.4a.75.75 0 0 1-1.08 0L4.4 8.7l1.08-1.04 1.38 1.44 3.66-3.84L11.6 6.3Z'/%3E%3C/svg%3E");
}

/* ---------- start (dark) ---------- */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--brand-mark) 12%, transparent), transparent 70%);
}
.cta-in { display: grid; justify-items: center; }
.cta .display { max-width: 15ch; }
.cta .lead { margin-top: 22px; max-width: 46ch; }
.cta .hero-form { margin-top: 36px; width: min(520px, 100%); }
.cta-alt { margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }
.cta-alt a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.cta-alt a:hover { color: var(--ink); }

/* ---------- the last screen: the close and a quiet footer ----------
   One screen, one dark run: the invitation centred in the space, the footer
   a small left-aligned stack at the bottom with open space around it (the
   v3 footer's composition). The page's end always shows the whole close. */
.finale { min-height: 100svh; display: flex; flex-direction: column; }
.finale > .cta {
  flex: 1 0 auto; display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + clamp(40px, 6vh, 88px)) clamp(48px, 7vh, 96px);
}
.finale > .cta > .container { width: 100%; }
.cta-alt { display: inline-flex; align-items: center; gap: 8px; }
.cta-alt .ic { width: 14px; height: 14px; flex: none; }

.site-foot { position: relative; z-index: 1; padding: 0 0 clamp(32px, 4.5vh, 56px); }
/* one dark run: no hairline between the close and the footer */
.finale > .site-foot { border-top: 0; }
.foot-stack { display: flex; flex-direction: column; align-items: flex-start; }
.foot-logo svg { display: block; width: 36px; height: 18px; overflow: visible; }
.foot-contact {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.foot-contact:hover { color: var(--ink); border-bottom-color: var(--ink); }
.foot-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { font-size: 14px; color: var(--ink-2); padding: 6px 0; transition: color .25s; }
.foot-links a:hover { color: var(--ink); }
.foot-legal {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em; line-height: 1.5;
  color: var(--ink-4);
}
@media (max-width: 720px) { .foot-legal { font-size: 11.5px; } }

/* Rows can be linked to; clear the fixed nav when they are. */
.feature { scroll-margin-top: calc(var(--nav-h) + 40px); }
/* Short headings that run to two lines split evenly, not one word alone. */
.miss h3, .faq-q { text-wrap: balance; }


/* =========================================================================
   PASS 3 (2026-11-27): product-led. No section labels; each section shows
   the product doing something. Components for the new example cards.
   ========================================================================= */

/* ---------- the product band (dark) ----------
   The application, whole, over the old opening's contour drawing (light
   linework on transparent, so it reads as is on the dark tone). */
.showband { position: relative; overflow: hidden; padding-bottom: clamp(120px, 14vw, 220px); }
.showband-ground {
  position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 50%);
}
.showband-ground img { display: block; width: 100%; height: auto; }
.showband .container { position: relative; }
.showband .ph-shot { box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .6); }

/* ---------- what you can do ---------- */
.capabilities .features { margin-top: 0; }
.feature .split-copy > h3:first-child { margin-top: 0; }
.caps-grid {
  margin-top: clamp(96px, 10vw, 160px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(20px, 3vw, 48px);
}
.cap h3 {
  margin: 26px 0 8px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.012em;
  color: var(--ink); text-wrap: balance;
}
.cap > p { margin: 0; max-width: 44ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.stage--short { aspect-ratio: auto; min-height: 380px; }
@media (max-width: 860px) { .caps-grid { grid-template-columns: minmax(0, 1fr); } .stage--short { min-height: 0; } }

/* A real photo in a photo slot */
.ph-photo.has-img { background: var(--warm-2); }
.ph-photo.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* "Every field is complex. / Go deep into yours." holds two lines, one
   sentence each. The first line is 10.46em wide in the display face -
   about 6% wider than the copy column allows at the page's h2 size wherever
   the column sits beside the photo, and on phones 375px and narrower - so
   this heading's size is capped to its column (100cqi / 10.46, set a hair
   under); elsewhere it is the page's h2 size. Its leading is opened from
   1.03 to 1.1: at 1.03 the tail of the "y" in "Every" sits on the "d" of
   "deep" (0.2-0.5px apart, measured), as the "p" and "d" did in the
   previous heading. */
.comp .split-copy { container-type: inline-size; }
.comp .split-copy > h2.display { font-size: min(clamp(32px, 4.1vw, 60px), 9.5cqi); line-height: 1.1; }

/* ---------- descenders ----------
   With these tight line heights the tail of a g or a y hangs a pixel or two
   below the heading's own box (1.8px at 32px type). Each heading is its own
   layer while it reveals, and Safari on iPhone trims whatever ink falls
   outside the layer - a sliver off the bottom of the last line. A little
   bottom padding, taken back as margin, puts the tails inside the box and
   moves nothing. */
h2.display, .feature h3 { padding-bottom: .1em; margin-bottom: -.1em; }
