/*
  Peira site design system.
  One token layer, then base, components and sections in page order, then breakpoints, motion and print.
  Rules: one brand hue (cobalt). Red, green and amber only carry meaning (problem, same, change). Result cards stay neutral.
  The README describes the system in words.
*/
@font-face { font-family: "Geist"; src: url("fonts/Geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/BigShouldersDisplay-latin.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

/* ===== Tokens ===== */
:root {
  /* Neutrals, cooled slightly toward the brand hue. */
  --bg: #f2f3f5;
  --surface: #fff;
  --sunk: #f7f8fa;
  --line: #e2e4e9;
  --line2: #cbcfd7;
  --dotc: #cdd1d9;
  --ink: #0b0d12;
  --ink2: #454a55;
  --ink3: #626a79;
  --hover: color-mix(in srgb, var(--ink) 6%, transparent);

  /* Brand: cobalt. 600 is the primary; 900 is the dark band. */
  --brand-50: #eef1ff;
  --brand-100: #dfe4ff;
  --brand-200: #c4cdff;
  --brand-300: #9eabff;
  --brand-600: #2f4bff;
  --brand-700: #2238d6;
  --brand-900: #0b1033;
  --on-brand: #fff;

  /* Meaning, never decoration. */
  --ok: #2b7a4b; --ok-soft: #e7f3ec; --ok-line: #b9d9c5; --ok-ink: #1d5a37;
  --warn: #8f5e00; --warn-soft: #fbf1dc; --warn-line: #e8cf9a; --warn-ink: #6b4600; --warn-bar: #d9a43a;
  --red: #d71921; --red-soft: #fcebec; --red-line: #f1b3b6;

  /* Type */
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --t-2xs: 11px;   /* mono labels, tags */
  --t-xs: 12px;    /* captions, mono data */
  --t-sm: 13px;    /* small UI text */
  --t-base: 15px;  /* body */
  --t-md: 17px;    /* lede */
  --t-lg: 26px;    /* display h3, one size for every h3 */
  --t-xl: clamp(28px, 2.6vw, 34px);   /* panel titles */
  --t-2xl: clamp(40px, 4.6vw, 64px);  /* h2 */
  --t-3xl: clamp(48px, 4.9vw, 72px);  /* h1 */
  --t-num: 56px;  /* outlined step numerals: under the h2, so the heading reads first */

  /* Space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --nav: 61px;  /* the fixed header's height */
  --padt: 120px; --padb: 72px;  /* a section's padding above its heading and below its content */

  /* Radius: inner rows, panels, cards and stages, pills. */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation */
  --e-1: 0 1px 2px rgb(11 13 18 / .05);
  --e-2: 0 1px 2px rgb(11 13 18 / .05), 0 18px 40px -18px rgb(11 13 18 / .35);
  --e-3: 0 30px 80px -30px rgb(11 13 18 / .35), 0 2px 8px rgb(11 13 18 / .06);
  --e-brand: 0 8px 24px -10px color-mix(in srgb, var(--brand-600) 70%, transparent);

  /* Surfaces */
  --dots: radial-gradient(var(--dotc) 1px, transparent 1.2px) 0 0 / 22px 22px;
  --stage-bg: radial-gradient(color-mix(in srgb, var(--brand-600) 22%, var(--dotc)) 1px, transparent 1.3px) 0 0 / 20px 20px, linear-gradient(180deg, var(--brand-50), var(--surface) 70%);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --container: 1200px;
  --gut: 40px;     /* the page's side margin */
  --gutter: 24px;  /* the gap between grid columns */
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 0; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--t-base); line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand-100); color: var(--ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--disp); font-weight: 700; text-transform: uppercase; line-height: .95; text-wrap: balance; }
h1 { margin-top: 22px; font-size: var(--t-3xl); }
h1 span { display: block; color: var(--brand-600); }
h2 { font-size: var(--t-2xl); letter-spacing: .005em; }
h2 span { color: var(--ink3); }
h3 { font-family: var(--disp); font-weight: 700; font-size: var(--t-lg); line-height: 1.1; letter-spacing: .01em; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
svg { display: block; flex-shrink: 0; }
code { font-family: var(--mono); font-size: .86em; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 26px; height: 26px; color: var(--ink); }
.mark-sm { width: 18px; height: 18px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
.skip-link { position: fixed; top: -100px; left: max(var(--gut), (100vw - var(--container)) / 2); z-index: 100; padding: 10px 16px; background: var(--brand-600); color: var(--on-brand); border-radius: var(--r-md); }
.skip-link:focus { top: 12px; }
.container { width: min(var(--container), calc(100% - var(--gut) * 2)); margin-inline: auto; }

/* ===== Screens =====
   Every section after the hero is one or two screens tall, its heading --padt under its top. At 1440x900 one
   screen holds 708px of content (900 - 120 - 72). min-height, not height: a shorter window grows the box
   rather than lay a section over the next. A .g2 section is two screens in two groups; the second group
   starts --padt under the second screen's top. The closing (call and footer) is one screen too. */
main > .section, footer.closing { display: flex; flex-direction: column; min-height: calc(var(--h, 1) * 100svh); padding: var(--padt) 0 var(--padb); }
main > .section > .container, footer.closing > .container { display: flex; flex: 1 0 auto; flex-direction: column; }
.g2 { --h: 2; }
main > .g2 > .container { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb)); }
.group { display: flex; flex-direction: column; min-height: 0; }
.fill { flex: 1 1 0; min-height: 0; }
/* One split line for the page: twelve columns, the right column starts at column 7 (x 732 at 1440). */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.cols > .col-a { grid-column: 1 / span 6; min-width: 0; }
.cols > .col-b { grid-column: 7 / -1; min-width: 0; }
main > .section > .container.cols { display: grid; align-content: start; }

/* ===== Components ===== */

/* Section index: a numbered pill, the name, and a hairline to the edge of the column. */
.lab { display: flex; align-items: center; gap: var(--s-3); margin-bottom: 22px; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.lab::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.k { display: inline-block; margin-bottom: var(--s-1); font-family: var(--mono); font-size: var(--t-2xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.head h2 { max-width: 900px; }

.lede { margin-top: var(--s-4); max-width: 560px; font-size: var(--t-md); line-height: 1.6; color: var(--ink2); }
.head-split .lede { margin: 0; max-width: none; font-size: 16px; }
.lede a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.lede a:hover { color: var(--brand-600); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-pill); font-family: var(--disp); font-size: 18px; font-weight: 700; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .16s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 15px; height: 15px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 21px; }
.btn-acc { background: var(--brand-600); color: var(--on-brand); }
.btn-acc:hover { background: var(--brand-700); }
.btn-lg.btn-acc { box-shadow: var(--e-brand); }
.btn-ghost { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-600); background: var(--brand-50); }

/* Pills, tags, chips and levels */
.pill { display: block; font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r-pill); font-family: var(--mono); font-size: var(--t-2xs); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink2); }
.tag-real { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--line2); border-radius: var(--r-pill); font-family: var(--mono); font-size: var(--t-xs); white-space: nowrap; color: var(--ink2); }
.lvl { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-pill); font-family: var(--mono); font-size: var(--t-2xs); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lvl-red { background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.lvl-ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.lvl-warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.ok { color: var(--ok); }

/* Cards, bars and stages */
.app-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e-2); }
.app-bar, .shot-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 0 14px; border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); }
.app-bar { height: 46px; }
.shot-bar { height: 40px; font-size: var(--t-sm); }
.app-crumbs { display: flex; align-items: center; gap: var(--s-2); min-width: 0; font-size: var(--t-sm); color: var(--ink3); white-space: nowrap; overflow: hidden; }
.app-crumbs b, .shot-bar b { font-family: var(--disp); font-size: 17px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.app-cur { color: var(--ink2); font-weight: 500; }
.mock { padding: 18px; }
.mock-foot { margin-top: 14px; font-size: var(--t-xs); color: var(--ink3); text-align: right; }
.shot { margin: 0; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
/* A tall screen is cropped from the top, so every tour panel keeps the section to one screen. */
.tour-panel .shot img { max-height: 420px; object-fit: cover; object-position: 50% 0; }
/* A stage frames product screens: a brand tint fading to white, under a brand dot grid. */
.stage { border: 1px solid var(--brand-200); border-radius: var(--r-lg); background: var(--stage-bg); }
main > .tour { background: var(--stage-bg); }

/* Tabs: pills, the selected one in brand. */
.seg { display: flex; gap: 6px; }
.seg button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r-pill); background: var(--surface); font-family: var(--disp); font-size: 17px; font-weight: 700; letter-spacing: .02em; color: var(--ink2); white-space: nowrap; }
.seg button:hover { border-color: var(--ink); color: var(--ink); }
.seg button[aria-selected="true"] { border-color: var(--brand-600); background: var(--brand-600); color: var(--on-brand); }
.seg-n { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1px solid currentColor; border-radius: 50%; font-family: var(--disp); font-size: 12px; line-height: 1; }
.seg button[aria-selected="true"] .seg-n { border-color: var(--on-brand); background: var(--on-brand); color: var(--brand-600); opacity: 1; }

/* Pins: numbered callouts on screenshots. */
.pin { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-600); color: var(--on-brand); font-family: var(--disp); font-size: 16px; font-weight: 700; box-shadow: 0 0 0 4px rgb(255 255 255 / .9), var(--e-brand); }

/* Meters and bars */
.meter { display: block; width: 96px; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--brand-600); }
.trend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; height: 84px; margin-top: 10px; padding: 22px 14px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.trend span { position: relative; height: var(--h); min-height: 20px; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--dotc); }
.trend span:last-child { background: var(--brand-600); }
.trend b { position: absolute; top: 4px; left: 0; right: 0; font-family: var(--mono); font-size: var(--t-2xs); font-weight: 500; text-align: center; color: var(--ink2); }
.trend span:last-child b { color: var(--on-brand); }

/* Ticks: a brand disc with a white check. */
.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 26px; font-size: var(--t-base); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Product UI pieces inside mocks */
.feed, .checks, .pr, .issue, .scene-ok, .outcome, .sbs > div, .whatif li, .mock .tbl, .call { border-radius: var(--r-md); }
.feed { margin-top: 10px; border: 1px solid var(--line); overflow: hidden; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: baseline; padding: 7px 12px; font-size: var(--t-sm); }
.feed li + li { border-top: 1px solid var(--line); }
.feed time, .feed span { font-family: var(--mono); font-size: var(--t-xs); }
.feed time { color: var(--ink3); }
.feed b { font-size: var(--t-xs); font-weight: 600; }
.feed .is-bad { background: var(--red-soft); }
.feed .is-bad b { color: var(--red); }
.issue { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--red); background: var(--red-soft); }
.issue div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--t-sm); }
.issue b { font-weight: 600; }
.issue div span { color: var(--ink3); font-size: var(--t-xs); }
.checks { display: grid; margin-top: 10px; border: 1px solid var(--line); overflow: hidden; }
.checks > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: 8px 12px; font-size: var(--t-sm); }
.checks > div + div { border-top: 1px solid var(--line); }
.checks dt { color: var(--ink2); }
.checks dd { display: flex; align-items: center; gap: var(--s-3); }
.checks b { min-width: 66px; text-align: right; font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.scene-ok { display: flex; align-items: center; gap: var(--s-2); margin-top: 10px; padding: 8px 12px; background: var(--sunk); color: var(--ink); font-size: var(--t-sm); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line2); }
.scores { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.scores span { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; box-shadow: inset 0 0 0 1px var(--ink); }
.pr { border: 1px solid var(--line); overflow: hidden; }
.pr-head { display: flex; align-items: center; gap: var(--s-2); padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pr-head .icon { color: var(--ink); }
.pr-head b { min-width: 0; font-weight: 600; }
.pr-head span { margin-left: auto; color: var(--ink3); font-family: var(--mono); font-size: var(--t-xs); }
.diff { font-family: var(--mono); font-size: var(--t-xs); line-height: 1.5; }
.diff p { position: relative; padding: 6px 12px 6px 26px; }
.diff p::before { position: absolute; left: 11px; }
.diff .del { background: var(--red-soft); color: var(--red); }
.diff .del::before { content: "−"; }
.diff .add { background: var(--ok-soft); color: var(--ok); }
.diff .add::before { content: "+"; }
.pr-checks { display: grid; gap: var(--s-1); padding: 10px 12px 0; font-size: var(--t-sm); }
.pr-checks li { display: flex; align-items: center; gap: var(--s-2); }
.pr-checks .icon { width: 14px; height: 14px; color: var(--ink); stroke-width: 2.2; }
.pr-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 12px; }
.pr-status, .pr-btn { display: grid; }
.pr-status > span, .pr-btn > span { grid-area: 1 / 1; }
.pr-status { font-size: var(--t-sm); color: var(--ink3); }
.pr-status .pr-done { color: var(--ink); font-weight: 600; }
.pr-btn { padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: .02em; text-align: center; box-shadow: inset 0 0 0 1.5px var(--ink); }
/* The resting state is the end state: approved. Motion only replays how it got there. */
.pr .pr-wait { opacity: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.tbl th { padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--sunk); color: var(--ink3); font-size: var(--t-xs); font-weight: 500; text-align: left; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--ink2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl code { color: var(--ink); }
.mock .tbl { border: 1px solid var(--line); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.whatif { display: grid; gap: var(--s-2); }
.whatif li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px dashed var(--line2); font-size: var(--t-sm); }
.whatif b { color: var(--warn); font-weight: 600; }
.outcome { display: flex; align-items: flex-start; gap: 10px; margin-top: var(--s-3); padding: 10px 12px; border: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink2); }
.sbs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.sbs > div { padding: var(--s-3); border: 1px solid var(--line); background: var(--sunk); }
.call { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 6px; padding: 7px 10px; border: 1px solid var(--line); border-left: 3px solid var(--ink); background: var(--surface); }
.call code { font-weight: 500; color: var(--ink); }
.call span { font-size: var(--t-xs); color: var(--ink3); }
.call.is-changed { border-left-color: var(--warn); background: var(--warn-soft); }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header:has(.mobile-menu:not([hidden])) { background: var(--bg); }
.nav-inner { min-height: 60px; display: flex; align-items: center; gap: var(--s-6); }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 0; }
/* The Peira logo: the magnifying-glass P and "Peira", traced from the brand file (viewBox 1136.1 x 341.5). */
.wordmark .logo { display: block; width: 100px; height: 30px; }
.desktop-nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.desktop-nav a { padding: 7px 14px; border-radius: var(--r-pill); color: var(--ink2); font-size: 14px; font-weight: 500; text-decoration: none; }
.desktop-nav a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line2); border-radius: 50%; background: var(--surface); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-menu { padding-block: var(--s-1) var(--s-4); }
.mobile-menu a { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; text-decoration: none; }
.mobile-menu a:last-child { border-bottom: 0; color: var(--brand-600); }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: clip; padding-top: calc(var(--nav) + 72px); background: var(--dots); }
.hero-wrap { display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 30% 30%, var(--bg) 30%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, transparent), linear-gradient(to bottom, transparent 70%, var(--bg)); }
.hero > * { position: relative; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.hero-copy { grid-column: 1 / span 6; }
.demo-wrap { grid-column: 7 / -1; }
.hero-copy { min-width: 0; }
.hero-lede { margin-top: 22px; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.hero-sub { margin-top: var(--s-3); max-width: 520px; font-size: var(--t-base); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: var(--t-sm); color: var(--ink3); }

/* The demo card sits on a short stack of two paper layers. */
.demo-wrap { position: relative; z-index: 0; min-width: 0; }
.demo-wrap::before, .demo-wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transform-origin: 50% 100%; }
.demo-wrap::before { transform: translateY(10px) scale(.96); opacity: .85; }
.demo-wrap::after { transform: translateY(20px) scale(.92); opacity: .5; }
.demo-tabs { margin: 14px 14px 0; }
.demo-tabs button { flex: 1 1 0; min-width: 0; overflow: hidden; padding-inline: 6px; }
.demo-progress { position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 1px; }
.demo-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--on-brand); }
.demo.is-auto [aria-selected="true"] .demo-progress { background: color-mix(in srgb, var(--on-brand) 25%, transparent); }
.demo.is-auto [aria-selected="true"] .demo-progress i { animation: demo-fill var(--scene-time, 6s) linear forwards; }
.demo-stage { padding: 16px 16px 6px; }
.demo.is-ready .demo-stage { display: grid; }
.demo.is-ready .scene { grid-area: 1 / 1; }
.demo.is-ready .scene.is-off { visibility: hidden; opacity: 0; }
.scene + .scene { margin-top: 20px; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.demo.is-ready .scene + .scene { margin-top: 0; padding-top: 0; border-top: 0; }
.scene-title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-family: var(--disp); font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.scene-title > span:not(.live-dot) { font-family: var(--mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 8px 16px 12px; font-size: var(--t-xs); color: var(--ink3); }
.demo-pause { flex: none; height: 26px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r-pill); background: var(--surface); font-size: var(--t-xs); font-weight: 500; color: var(--ink2); }
.demo-pause:hover { border-color: var(--ink); color: var(--ink); }
/* Pause and hold stop the rotation and the ambient loops; a scene that is building finishes (under 4 s), so a chosen scene never freezes half drawn. */
.demo.is-paused .demo-progress i, .demo.is-hold .demo-progress i { animation-play-state: paused !important; }

/* Works with: a static list by default. main.js makes it a slow strip that fades at both edges, with a Pause button, only without reduced motion. */
.works-with { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); margin-top: 72px; padding-block: 18px 20px; border-top: 1px solid var(--line); }
.works-with .lab { flex: none; margin: 0; color: var(--ink3); }
.works-with .lab::after { display: none; }
.works-with ul { display: flex; flex-wrap: wrap; gap: 6px 22px; min-width: 0; }
.works-with li { font-size: var(--t-sm); font-weight: 500; color: var(--ink2); }
.works-with li a { color: var(--brand-600); }

/* ===== 01 Product snapshot: a real screen, framed and annotated, wider than the text column ===== */
.snapshot .head h2 { max-width: none; }
.snapshot .stage { position: relative; margin-top: var(--s-7); padding: 64px 96px 0; overflow: hidden; }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 96px; background: linear-gradient(to bottom, rgb(255 255 255 / 0), var(--surface)); pointer-events: none; }
.browser { position: relative; margin: 0; border: 1px solid var(--line2); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); box-shadow: var(--e-3); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.browser-bar b { flex: 1; margin-left: 8px; text-align: left; font-size: var(--t-xs); font-weight: 500; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: auto; }
.stage .pin { position: absolute; z-index: 3; }
/* Screen 2: a close-up of each marked part, so every note shows what it names. */
.snap-notes { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.snap-notes li { display: flex; flex-direction: column; min-width: 0; }
.crop { position: relative; flex: 1; min-height: 240px; margin-bottom: var(--s-5); border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--surface) url("img/app-overview.webp") no-repeat; background-size: 250% auto; box-shadow: var(--e-2); overflow: hidden; }
.crop-1 { background-position: 17% 4%; }
.crop-2 { background-position: 86% 22%; }
.crop-3 { padding-top: 56px; background: var(--surface); }
.crop-3 img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.crop .pin { position: absolute; top: 14px; left: 14px; }
.snap-notes p { margin-top: var(--s-1); font-size: 14px; color: var(--ink2); }
.snap-note { margin-top: var(--s-5); font-size: var(--t-sm); color: var(--ink3); }
/* Pins sit on fixed points of the screenshot: top = bar height + a share of the image height - half a pin. The bar is 36px (28px on phones). */
.pin-1 { top: calc(15% + 16px); left: calc(30.9% - 14px); }
.pin-2 { top: calc(29.4% + 11px); left: calc(68.7% - 14px); }

/* ===== 02 The gap: one lead quote, set large; two beside it ===== */
.quotes { margin-top: 44px; align-items: stretch; }
.quote-stack { display: grid; gap: var(--s-4); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.quote blockquote { font-size: 16px; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; height: 30px; font-family: var(--disp); font-size: 56px; line-height: 1; color: var(--brand-600); }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: var(--t-sm); color: var(--ink3); }
.quote figcaption b { color: var(--ink); font-weight: 600; }
.src-ic { width: 24px; height: 24px; align-self: center; }
.quote figcaption a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 -12px auto; color: var(--ink); font-weight: 500; text-decoration: none; }
.quote figcaption a:hover { text-decoration: underline; }
.quote-lead { padding: 40px; border-color: var(--brand-200); background: var(--brand-50); }
.quote-lead blockquote { font-family: var(--disp); font-size: clamp(30px, 3vw, 42px); font-weight: 700; line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; }
.quote-lead blockquote::before { height: 52px; font-size: 96px; }
.quotes-note { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--ink3); }

/* ===== 03 How it works: one line through three stages ===== */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-8); }
/* The line is a background, so motion can draw it from left to right. */
.steps > li { position: relative; padding: 36px 40px 0 0; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat; }
.steps > li::before { content: ""; position: absolute; top: -4.75px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--brand-600); box-shadow: 0 0 0 4px var(--bg); }
.steps > li:last-child::after { content: ""; position: absolute; top: -4.25px; right: 0; width: 10px; height: 10px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
.step-n { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--brand-600); font-family: var(--disp); font-size: var(--t-num); font-weight: 700; line-height: .8; }
.steps h3 { margin-top: 28px; }
.step-sub { margin-top: var(--s-1); font-weight: 500; }
.steps ul { display: grid; gap: var(--s-2); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.steps ul li { position: relative; font-size: 14px; color: var(--ink2); }
.steps ul li::before { content: ""; position: absolute; left: -13px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.loop-note { display: flex; align-items: center; gap: 10px; margin-top: var(--s-5); font-size: 14px; color: var(--ink2); }
.loop-note .icon { color: var(--brand-600); }

/* ===== 04 Self-improving: four steps as a grid, the history card at full height beside them ===== */
.loop-grid { align-items: stretch; }
.cycle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--s-6); }
.cycle { row-gap: var(--s-5); column-gap: var(--s-5); }
.cycle li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.cycle-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-600); color: var(--on-brand); font-family: var(--disp); font-size: 22px; font-weight: 700; }
.cycle p { margin-top: 2px; font-size: 14px; color: var(--ink2); }
.cycle-back { display: flex; align-items: center; gap: 10px; margin-top: var(--s-5); font-size: 14px; font-weight: 500; }
.cycle-back .icon { color: var(--brand-600); }
.timeline-card { display: flex; flex-direction: column; overflow: hidden; }
.timeline { padding: 4px 20px; }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline .k { margin: 3px 0 0; }
.timeline p { font-size: 14px; color: var(--ink2); }
.timeline b { color: var(--ink); font-weight: 600; }
.timeline .is-held p { margin: -10px 0 -10px -12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--ok-soft); }
.timeline .is-held b { color: var(--ok-ink); }
.timeline-trend { display: flex; flex: 1; flex-direction: column; margin-top: var(--s-2); padding: 12px 20px 0; }
.timeline-trend .trend { flex: 1; min-height: 132px; padding-top: 26px; background: var(--sunk); }
.timeline-card .mock-foot { margin: 0; padding: 0 20px 16px; }

/* ===== 05 Product tour: tabs and panels share one stage ===== */
.tour-box { margin-top: 44px; }
.tour-tabs { width: max-content; max-width: 100%; flex-wrap: wrap; }
.tour-panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: stretch; margin-top: var(--s-6); }
.tour-panel > :first-child { grid-column: 1 / span 6; }
.tour-panel > :last-child { grid-column: 7 / -1; }
.tour-box:not(.is-ready) .tour-panel + .tour-panel { padding-top: 40px; border-top: 1px solid var(--line); }
.tour-copy { min-width: 0; padding: var(--s-5); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.tour-copy h3 { text-transform: uppercase; }
.tour-copy > p { margin-top: var(--s-3); font-size: 16px; color: var(--ink2); }

/* ===== Proved: four points under a brand rule, beside how a fix is judged ===== */
.judge { display: flex; flex-direction: column; }
.judge-flow { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 18px var(--s-5); }
.node { display: flex; align-items: flex-start; gap: var(--s-3); padding: 10px 14px; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--surface); font-size: 14px; color: var(--ink2); }
.node b { display: block; font-family: var(--disp); font-size: 19px; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.node .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-600); }
.node-engine { border-color: var(--brand-200); background: var(--brand-50); }
.node-out { border-color: var(--ok-line); background: var(--ok-soft); }
.node-out .icon { color: var(--ok-ink); }
.wire { display: block; width: 100%; height: 22px; overflow: visible; }
.wire path { fill: none; stroke: var(--brand-300); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lanes li { padding: 10px 12px; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--surface); font-size: 13px; color: var(--ink2); }
.lanes b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.proved-grid { margin-top: var(--s-7); align-items: stretch; }
.proof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px var(--s-5); }
.proof-list li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1.5px solid var(--brand-600); }
.proof-list .icon { width: 20px; height: 20px; color: var(--brand-600); }
.proof-list p { margin-top: var(--s-1); font-size: 14px; color: var(--ink2); }

/* ===== 07 Security: a bento. The approval tile is the largest; the audit log runs the full width ===== */
.sec-grid { margin-top: var(--s-7); align-items: stretch; }
.sec-feature { display: flex; flex-direction: column; padding: var(--s-6); border-color: var(--brand-200); background: var(--brand-50); }
.sec-feature > .icon, .sec-list .icon { width: 22px; height: 22px; color: var(--brand-600); }
.sec-feature h3 { margin-top: 14px; }
.sec-feature > p:not(.sec-cap) { margin-top: 6px; max-width: 440px; font-size: 15px; color: var(--ink2); }
.sec-pr { margin-top: auto; padding-top: 28px; }
.sec-pr .pr-head, .sec-pr-foot { border: 1px solid var(--line); background: var(--surface); }
.sec-pr .pr-head { border-radius: var(--r-md) var(--r-md) 0 0; }
.sec-pr-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 12px; border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); font-size: var(--t-sm); color: var(--ink3); }
.sec-pr-btn { padding: 5px 14px; border-radius: var(--r-pill); background: var(--brand-600); color: var(--on-brand); font-family: var(--disp); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.sec-feature .sec-log { margin-top: var(--s-3); background: var(--surface); }
.sec-cap { margin-top: 10px; font-size: var(--t-xs); color: var(--ink3); text-align: right; }
.sec-list { display: grid; align-content: start; }
.sec-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-4); padding-block: 18px; border-bottom: 1px solid var(--line); }
.sec-list li:first-child { padding-top: 4px; }
.sec-list p { margin-top: 4px; font-size: 14px; color: var(--ink2); }
.sec-log { border: 1px solid var(--line); border-radius: var(--r-md); font-family: var(--mono); font-size: var(--t-xs); }
.sec-log li { display: flex; gap: var(--s-4); padding: 7px 14px; }
.sec-log li + li { border-top: 1px solid var(--line); }
.sec-log time { color: var(--ink3); }

/* ===== 08 Real results: neutral by rule. Black is the same action, amber a confirmed change. ===== */
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: 44px; }
.result { padding: var(--s-5); box-shadow: var(--e-1); }
.result-route { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink3); }
.result h3 { margin-top: 6px; }
.split { display: flex; gap: 2px; height: 8px; margin-top: var(--s-4); overflow: hidden; border-radius: 4px; }
.split i { display: block; height: 100%; }
.split .same { background: var(--ink); }
.split .changed { background: var(--warn-bar); }
.figs { margin-top: 14px; }
.figs > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-block: 9px; border-top: 1px solid var(--line); font-size: 14px; }
.figs dt { color: var(--ink2); }
.figs dd { font-family: var(--mono); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.figs dd span { font-weight: 400; color: var(--ink3); font-size: var(--t-sm); }
.finding { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.6; }
.finding strong { display: block; font-weight: 600; }
.finding-ok { background: var(--ok-soft); color: var(--ok-ink); box-shadow: inset 0 0 0 1px var(--ok-line); }
.finding-warn { background: var(--warn-soft); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-line); }
.caveat { margin-top: 10px; font-size: var(--t-sm); color: var(--ink2); }
.results-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-top: 20px; }
.results-foot p { max-width: 760px; font-size: var(--t-sm); line-height: 1.7; color: var(--ink2); }
.results-foot .tag { margin-right: var(--s-2); vertical-align: 1px; }

/* ===== 09 FAQ: the heading stays in view while the answers scroll ===== */
.faq-side { align-self: start; }
.stack { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.stack li { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--surface); font-size: 15px; font-weight: 500; }
.stack img { width: auto; height: 26px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; font-family: var(--disp); font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.faq-list summary > span::before, .faq-list summary > span::after { content: ""; position: absolute; background: var(--ink); }
.faq-list summary > span::before { width: 12px; height: 1.5px; top: 5px; }
.faq-list summary > span::after { width: 1.5px; height: 12px; left: 5px; transition: transform .2s var(--ease-out); }
.faq-list details[open] summary > span::after { transform: rotate(90deg); }
.faq-list summary:hover { color: var(--brand-600); }
.faq-list details p { padding: 0 28px 20px 0; font-size: var(--t-base); line-height: 1.65; color: var(--ink2); }

/* ===== The brand band: the closing call and the footer ===== */
/* ===== The closing: the call and the footer share one brand-900 screen ===== */
footer.closing { position: relative; isolation: isolate; overflow: clip; color: #fff; background: radial-gradient(rgb(255 255 255 / .1) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--brand-900); }
footer.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 20% 0%, color-mix(in srgb, var(--brand-600) 45%, transparent), transparent 70%); }
footer.closing > .container { display: grid; grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--s-8); }
.close h2 { font-size: clamp(40px, 4.6vw, 64px); }
.close h2 span { color: var(--brand-300); }
.close .col-a > p { margin-top: var(--s-4); max-width: 480px; font-size: 16px; color: rgb(255 255 255 / .72); }
.close .btn { margin-top: 28px; }
.close .btn-acc { background: #fff; color: var(--ink); box-shadow: none; }
.close .btn-acc:hover { background: var(--brand-100); }
.close .col-a > .email-fallback { margin-top: var(--s-4); font-size: 14px; color: rgb(255 255 255 / .6); }
.agenda { padding: var(--s-6); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--r-lg); background: rgb(255 255 255 / .05); }
.agenda .k { color: rgb(255 255 255 / .7); }
.agenda ol { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.agenda > p:last-child { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgb(255 255 255 / .12); font-size: 15px; color: rgb(255 255 255 / .72); }
.agenda li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: var(--s-3); font-size: 17px; line-height: 1.5; color: rgb(255 255 255 / .88); }
.agenda li span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-600); font-family: var(--disp); font-size: 18px; font-weight: 700; color: #fff; }
.footer-links { padding-top: var(--s-6); border-top: 1px solid rgb(255 255 255 / .12); }
.closing .wordmark { color: #fff; }
.footer-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; padding-bottom: var(--s-6); }
.footer-main > div { grid-column: 1 / span 6; }
.footer-main > nav { grid-column: span 3; }
.footer-main > div > p { margin-top: var(--s-3); font-size: 14px; color: rgb(255 255 255 / .6); }
.footer-main nav { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.footer-main nav > span { margin-bottom: var(--s-1); font-family: var(--mono); font-size: var(--t-2xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.footer-main nav a { font-size: 14px; color: rgb(255 255 255 / .8); text-decoration: none; }
.footer-main nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: var(--s-4); font-size: var(--t-sm); color: rgb(255 255 255 / .6); }
.footer-bottom a { color: rgb(255 255 255 / .8); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.closing :focus-visible { outline-color: #fff; }

/* ===== Breakpoints ===== */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover:active { transform: scale(.97); }
}
/* The hero glow sits behind the demo card, so it shows only where the card is beside the text. */
@media (min-width: 961px) {
  /* The hero fills the first screen under the header, no more and no less; the tool row sits on its floor. */
  .hero { display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--nav) + clamp(24px, 4svh, 72px)) 0 var(--padb); }
  .hero-wrap { flex: 1; }
  .hero-grid { flex: 1; }
  .works-with { margin-top: clamp(16px, 3svh, 48px); padding-bottom: 0; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 42% 60% at 78% 42%, color-mix(in srgb, var(--brand-600) 22%, transparent), transparent 70%); }
}
/* Laptop-height desktop windows keep the hero card above the fold. */
@media (min-width: 961px) and (max-height: 850px) {
  h1 { margin-top: 18px; font-size: clamp(46px, 4.6vw, 66px); }
  .hero-lede { margin-top: 18px; }
  .hero-actions { margin-top: var(--s-5); }
}
@media (max-width: 1100px) {
  :root { --gut: 32px; }
  .snapshot .stage { padding: 56px 56px 0; }
}
@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav) + 32px); }
  .tour-panel { row-gap: 40px; }
  .tour-panel > :first-child, .tour-panel > :last-child { grid-column: 1 / -1; }
  .hero-grid { row-gap: 40px; }
  .hero-copy, .demo-wrap { grid-column: 1 / -1; }
  /* Stacked, the two screens of a .g2 section are one column that grows with its content. */
  main > .g2 > .container { display: flex; row-gap: var(--s-7); }
  .stage.fill { flex: none; }
  .cols > .col-a, .cols > .col-b { grid-column: 1 / -1; }
  .cols { row-gap: 40px; }
  .head-split.cols { row-gap: 0; }
  .demo-wrap { width: 100%; max-width: 600px; }
  .tour-panel .app-card, .timeline-card { max-width: 600px; }
  .head-split .lede { margin-top: var(--s-4); }
  .works-with { margin-top: 32px; }
  .snapshot .stage { padding: 36px 32px 0; }
  /* Below 961px the insight card would hide the panel that pin 2 marks, so it moves under the screen. */
  .snap-notes { grid-template-columns: 1fr; gap: var(--s-6); }
  .crop { flex: none; height: 260px; }
  .quotes { row-gap: var(--s-4); }
  .quote-lead { padding: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps > li { padding: 0 0 40px 32px; background-size: 1.5px 100%; }
  .steps > li::before { top: 0; left: -4.75px; }
  .steps > li:last-child { padding-bottom: 0; }
  .steps > li:last-child::after { top: auto; right: auto; bottom: -6px; left: -3.75px; transform: rotate(135deg); }
  .steps h3 { margin-top: 20px; }
  .results-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}
@media (max-width: 700px) {
  :root { --gut: 20px; --padt: 96px; --padb: 48px; }
  /* Phone screens: these sections hold just under two screens of content, so they take two whole screens. */
  #loop { --hm: 2; }
  /* Without JavaScript the menu button stays hidden and the links wrap to a second header row. */
  html:not(.m-enter) { --nav: 104px; }
  .snap-note { display: none; }
  .crop { height: 160px; }
  .result { padding: 16px; }
  .figs > div { padding-block: 7px; }
  main > .section, footer.closing { min-height: calc(var(--hm, var(--h, 1)) * 100lvh); }
  main > .g2 > .container { display: flex; row-gap: var(--s-6); }
  .nav-inner { min-height: 56px; gap: var(--s-3); }
  .site-header:has(.nav-toggle:not([hidden])) .desktop-nav { display: none; }
  .site-header:has(.nav-toggle[hidden]) .nav-inner { flex-wrap: wrap; padding-block: 10px; row-gap: var(--s-2); }
  .site-header:has(.nav-toggle[hidden]) .desktop-nav { order: 3; flex-basis: 100%; justify-content: space-between; margin-left: 0; }
  .site-header:has(.nav-toggle[hidden]) .desktop-nav a { padding-inline: 4px; font-size: var(--t-sm); }
  .nav-cta { margin-left: auto; }
  .nav-toggle:not([hidden]) { display: flex; }
  .hero { padding-top: calc(var(--nav) + 40px); }
  h1 { font-size: clamp(48px, 13vw, 64px); }
  h2 { font-size: clamp(36px, 10vw, 48px); }
  .hero-lede { font-size: var(--t-md); }
  .hero-actions .btn { flex: 1 1 auto; }
  .btn-lg { font-size: 19px; }
  .seg button { padding: 0 12px; font-size: 15px; }
  .demo-tabs { gap: 4px; margin-inline: 10px; }
  .demo-tabs button { flex-direction: column; gap: 3px; min-height: 56px; padding: 6px 4px 8px; border-radius: var(--r-md); font-size: 14px; line-height: 1.05; text-align: center; white-space: normal; }
  .demo-stage, .demo-foot { padding-inline: var(--s-3); }
  /* A phone needs a 44px target for Pause. */
  .demo-pause { height: 44px; padding: 0 16px; }
  .meter { width: 56px; }
  .feed li { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .feed time { grid-column: 1 / -1; }
  .snapshot .stage { margin-top: var(--s-6); padding: 20px 14px 0; }
  .stage::after { height: 48px; }
  .browser-bar { height: 28px; }
  .browser-bar span { width: 7px; height: 7px; }
  .browser-bar b { margin-right: var(--s-5); font-size: var(--t-2xs); }
  .stage .pin { width: 22px; height: 22px; font-size: var(--t-2xs); }
  .pin-1 { top: calc(15% + 8px); left: calc(30.9% - 11px); }
  .pin-2 { top: calc(29.4% + 9px); left: calc(68.7% - 11px); }
  .quote-lead { padding: 22px; }
  .quote-lead blockquote { font-size: 34px; }
  .step-n { font-size: 36px; }
  .cycle { grid-template-columns: 1fr; }
  .timeline { padding-inline: var(--s-4); }
  .timeline li { grid-template-columns: 1fr; gap: var(--s-1); }
  .timeline .is-held p { margin: 0 -12px; }
  .tour-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-block: 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: none; }
  .tour-copy { padding: var(--s-4); }
  .mock { padding: 14px; }
  .sbs { grid-template-columns: 1fr; }
  .whatif li { grid-template-columns: 1fr auto; }
  .whatif li .chip { grid-column: 1 / -1; justify-self: start; }
  .proof-list { grid-template-columns: 1fr; }
  .figs > div { flex-direction: column; gap: 2px; }
  .figs dd { text-align: left; }
  .footer-main > div { grid-column: 1 / -1; }
  .footer-main > nav { grid-column: span 6; }
}
/* Below 414px the scene name does not fit beside the agent name and the Illustration tag; the selected tab names the scene. */
@media (max-width: 413px) {
  .app-crumbs > span[aria-hidden], .app-cur { display: none; }
}
@media (max-width: 370px) {
  :root { --gut: 16px; }
  .nav-cta { padding-inline: 10px; }
  /* Logo, Book a demo and the menu button fit 288px only without the arrow; the new-tab notice stays for screen readers. */
  .nav-cta .icon { display: none; }
  .nav-toggle { flex-shrink: 0; }
  .demo-tabs button { font-size: var(--t-2xs); }
  .checks .meter { display: none; }
  .tbl th, .tbl td { padding-inline: 7px; }
}

/* ===== Motion: the hero scenes replay how each end state was reached ===== */
@media (prefers-reduced-motion: no-preference) {
  .scene.is-playing .feed li { animation: rise .45s var(--ease-out) both; }
  .scene.is-playing .feed li:nth-child(2) { animation-delay: .5s; }
  .scene.is-playing .feed li:nth-child(3) { animation-delay: 1s; }
  .scene.is-playing .feed li:nth-child(4) { animation: rise .45s var(--ease-out) 1.6s both, flash 1s ease 2s both; }
  .scene.is-playing .issue { animation: rise .45s var(--ease-out) 2.6s both; }
  .scene.is-playing .scene-ok { animation: rise .45s var(--ease-out) 2.4s both; }
  .scene.is-playing .checks .meter i { animation: grow 1s var(--ease-out) both; }
  .scene.is-playing .checks b { animation: fade .3s ease both; }
  .scene.is-playing .checks > div:nth-child(1) i { animation-delay: .2s; }
  .scene.is-playing .checks > div:nth-child(1) b { animation-delay: 1.1s; }
  .scene.is-playing .checks > div:nth-child(2) i { animation-delay: .6s; }
  .scene.is-playing .checks > div:nth-child(2) b { animation-delay: 1.5s; }
  .scene.is-playing .checks > div:nth-child(3) i { animation-delay: 1s; }
  .scene.is-playing .checks > div:nth-child(3) b { animation-delay: 1.9s; }
  .scene.is-playing .checks > div:nth-child(4) i { animation-delay: 1.4s; }
  .scene.is-playing .checks > div:nth-child(4) b { animation-delay: 2.3s; }
  .scene.is-playing .scores span { animation: grow-in .3s var(--ease-out) both; }
  .scene.is-playing .scores span:nth-child(1) { animation-delay: 2.5s; }
  .scene.is-playing .scores span:nth-child(2) { animation-delay: 2.6s; }
  .scene.is-playing .scores span:nth-child(3) { animation-delay: 2.7s; }
  .scene.is-playing .scores span:nth-child(4) { animation-delay: 2.8s; }
  .scene.is-playing .scores span:nth-child(5) { animation-delay: 2.9s; }
  .scene.is-playing .pr { animation: rise .5s var(--ease-out) both; }
  .scene.is-playing .pr-checks li { animation: fade .35s ease both; }
  .scene.is-playing .pr-checks li:nth-child(1) { animation-delay: .7s; }
  .scene.is-playing .pr-checks li:nth-child(2) { animation-delay: 1.1s; }
  .scene.is-playing .pr .pr-wait { animation: swap-out 2.6s step-end both; }
  .scene.is-playing .pr .pr-done { animation: swap-in 2.6s step-end both; }
  .scene.is-playing .pr-btn { animation: press 2.9s ease both; }
  .scene.is-playing .trend span { animation: grow-h .7s var(--ease-out) both; }
  .scene.is-playing .trend span:nth-child(2) { animation-delay: .3s; }
  .scene.is-playing .trend span:nth-child(3) { animation-delay: .6s; }
  .scene.is-playing .trend span:nth-child(4) { animation-delay: .9s; }
  .tour-panel.is-entering .app-card { animation: rise .35s var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes grow-in { from { transform: scale(.6); } }
@keyframes grow { from { width: 0; } }
@keyframes grow-h { from { height: 0; } }
@keyframes flash { 0% { background: #f7c4c7; } 100% { background: var(--red-soft); } }
@keyframes swap-out { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes swap-in { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes press { 0%, 80% { background: var(--brand-600); color: var(--on-brand); box-shadow: none; transform: none; } 86% { background: var(--brand-600); color: var(--on-brand); box-shadow: none; transform: scale(.94); } 100% { transform: none; } }
@keyframes demo-fill { to { width: 100%; } }


/* ===== The hero enters once on load (html.m-enter is set by the head script; without it nothing waits) ===== */
@media (prefers-reduced-motion: no-preference) {
  .m-enter .hero[data-enter] .hero-copy > * { animation: rise .7s var(--ease-out) both; }
  .m-enter .hero[data-enter] .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .m-enter .hero[data-enter] .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .m-enter .hero[data-enter] .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .m-enter .hero[data-enter] .hero-copy > :nth-child(n+5) { animation-delay: .24s; }
}

/* ===== Motion for the supporting graphics =====
   Two kinds, both subtle and both off with reduced motion:
   ambient motion (the hero float and glow stop with the hero's Pause button; the closing glow breathes once and rests);
   hover moments on the supporting graphics, which run only while the pointer is on them. Nothing moves because the page scrolled. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: the card floats a few pixels and the glow behind it breathes, only while the scenes autoplay. */
  .hero:has(.demo.is-auto) .demo-wrap { animation: float 7s ease-in-out infinite; }
  .hero:has(.demo.is-auto)::after { animation: breathe 9s ease-in-out infinite alternate; }
  .hero:has(.demo.is-paused) .demo-wrap, .hero:has(.demo.is-hold) .demo-wrap,
  .hero:has(.demo.is-paused)::after, .hero:has(.demo.is-hold)::after { animation-play-state: paused; }
  .demo.is-auto .live-dot { animation: ping 2s ease-out infinite; }

  /* The supporting graphics answer the pointer: the snapshot pins pulse, the held check glows and the Approve button rings while you point at them. */
  @media (hover: hover) and (pointer: fine) {
    .snapshot .stage:hover .pin { animation: ring 2.4s ease-out infinite; }
    .snapshot .stage:hover .pin-2 { animation-delay: .15s; }
    .timeline-card:hover .is-held p { animation: held 1.6s ease infinite; }
    .sec-feature:hover .sec-pr-btn { animation: ring-btn 2.4s ease-out infinite; }
  }

  /* The closing band: the glow under the call breathes once, out and back. */
  footer.closing::before { animation: breathe 5s ease-in-out 2 alternate; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.05); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes ring { 0% { box-shadow: 0 0 0 4px rgb(255 255 255 / .9), 0 0 0 4px color-mix(in srgb, var(--brand-600) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 4px rgb(255 255 255 / .9), 0 0 0 16px transparent; } }
@keyframes ring-btn { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-600) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes held { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px var(--ok-line); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity !important; animation: none !important; }
  .btn:hover, .btn:active { transform: none; }
}
@media print {
  .site-header, .hero-actions, footer.closing, .demo-tabs, .tour-tabs, .demo-pause { display: none !important; }
  html { scroll-behavior: auto; }
  .hero { background: none; }
  .container { width: 100%; }
  main > .section, footer.closing { min-height: 0; padding-block: 32px; }
  .app-card, .result, .quote { break-inside: avoid; box-shadow: none; }
}
