/* FinnSight public site. One stylesheet, first-party, no build step.
   The look is "Daylight" (chosen 28 November 2026, from the mock-up in wwwroot/mockups/c-daylight): bright and photographic,
   every band a framed rounded white card on warm grey, product screens inside CSS laptop and phone frames laid over photos,
   green for actions, soft navy for type. Green, amber and red mean status only inside drawings of the product's own screens.

   How to use it. Page writers build pages from the components in Components/Site and never edit this file (sales-site/FinnSight.Sales/DAYLIGHT.md
   is the guide). A new kind of block is a new component with its own numbered section here.

   TOKENS (section 1). --bg warm grey page, --bg2 darker warm grey, --card white, --edge and --edge-strong the two rule colours, --ink body type
   (soft navy), --ink-deep headings, --soft secondary type, --green and --green-deep actions and marks, --green-wash the pale green ground of
   "available" things, --radius and --shadow for framed cards. The Field manual tokens (--navy, --paper, --ok, --warn, --bad, the --s1..--s8
   spacing steps) remain only for the legacy part at the foot of the file.

   PHONE (720 px and under; the steps before it are 1280, 1100 and 900 px):
   - The masthead keeps the logo, a Menu button (the Modules menu) and Book a demo. The Menu opens as a full-width framed list under the
     header holding every module, then the main pages, the phone number and Log in.
   - Laptop frames lose their keyboard base. In a photo band the picture stacks over the laptop, which runs full width.
   - Before and after becomes two stacked lists (all of Before, then all of After). No slider.
   - Picture cards stack one under another and still expand in place.
   - A walkthrough's step tabs become a one-row scroller (swipe along, snap to each tab). The laptop sits above its caption,
     and Play/Pause, Back and Next sit under it.

   RULES this file keeps.
   - No inline styles anywhere (the Content-Security-Policy is default-src 'self'). Positions travel in data attributes (data-x, data-y,
     data-w, data-h, data-t and so on) that site.js turns into custom properties.
   - Without the script every walkthrough step, every picture card's screens and both halves of a before and after show, one under another
     (the .no-js class on <html>, which the script removes).
   - prefers-reduced-motion shows the finished state of everything and starts nothing by itself.

   Sections: 1 tokens and fonts · 2 base · 3 buttons, labels and small parts · 4 masthead, Modules menu and phone menu · 5 footer ·
   6 bands, page headers, links and the closing band · 7 laptop and phone frames · 8 the photo band · 9 before and after ·
   10 picture cards · 11 the walkthrough · 12 forms, contact and plain pages · 13 the preview sign-in page · 14 narrower screens and
   reduced motion · 15 LEGACY (Field manual parts still used by pages that have not been converted). */


/* ===== 1 · tokens and fonts ===== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  /* Daylight: light, warm, photographic. White cards on warm grey, green for actions, soft navy for type. */
  --bg: #f6f3ee;
  --bg2: #efebe4;
  --card: #ffffff;
  --edge: #ddd6c9;
  --edge-strong: #c9c0af;
  --ink: #23384f;
  --ink-deep: #0b1b2c;
  --soft: #5b6b7c;
  --green-deep: #5f8a07;
  --green-wash: #eef6d9;
  --amber: #c98a12;
  --radius: 18px;
  --shadow: 0 1px 0 #fff inset, 0 10px 30px -18px rgba(11, 27, 44, .35);

  /* Field manual tokens. Still read by the legacy part at the foot of this file. */
  /* brand: the logo's navy and the FinnSight greens */
  --navy: #0b1b2c;
  --navy-2: #15293d;
  --navy-3: #2a4158;
  --green: #84c00d;
  --green-2: #74ab0a;
  --green-ink: #3d6806;

  /* ink and paper */
  --ink-2: #33475b;
  --ink-3: #56677a;
  --paper: #f2f5f8;
  --paper-2: #e6ecf1;
  --sheet: #ffffff;
  --rule: #c5cfd9;
  --rule-soft: #dde4ea;
  --on-navy: #dce4ec;
  --on-navy-2: #a9b8c6;

  /* status, used for status only, as the product uses it */
  --ok: #1f9d57;     --ok-ink: #14693a;   --ok-bg: #e2f3e9;
  --warn: #d68a00;   --warn-ink: #855300; --warn-bg: #fcefd3;
  --bad: #d8443c;    --bad-ink: #a82a23;  --bad-bg: #fbe4e2;
  --idle: #9aa7b4;   --idle-ink: #4a5a68; --idle-bg: #e9edf1;

  /* the product's own colours, inside drawings of its screens */
  --app-bg: #f6f7f2;
  --app-ink: #1d2415;
  --app-ink-2: #5c6653;
  --app-line: #dfe3da;
  --app-line-2: #edf0e8;
  --app-brand: #5c8a0a;
  --app-brand-ink: #2f4a03;

  /* type: one scale, Inter for text, JetBrains Mono for labels and figures */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --t-xs: 12px;   /* mono labels */
  --t-sm: 13px;
  --t-cap: 14.5px; /* captions, notes */
  --t-body: 16px;
  --t-md: 17px;   /* body on a desktop */
  --t-lg: 19px;
  --t-xl: 22px;
  --t-2xl: 28px;
  --t-3xl: 36px;
  --t-4xl: 48px;

  /* spacing, on an 8 px grid */
  --s-half: 4px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;

  --pad: var(--s4);     /* the inner edge of every block */
  --mast-h: 64px;
  --bar-h: 32px;        /* a frame's title bar */
  --measure: 70ch;
  --ledge: 2px solid var(--navy);
  --hair: 1px solid var(--rule);
}


/* ===== 2 · base ===== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink-deep); letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--green-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink-deep); }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.wrap { width: min(1360px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border: 2px solid var(--green); border-radius: 10px; z-index: 50; color: var(--ink-deep); font-weight: 700; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===== 3 · buttons, labels and small parts ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--green); color: var(--ink-deep); border: 2px solid var(--green); border-radius: 999px; padding: .75rem 1.5rem;
  transition: background .15s, transform .15s;
}
.btn:hover { background: #93d315; border-color: #93d315; color: var(--ink-deep); transform: translateY(-1px); }
.btn--line { background: var(--card); border-color: var(--edge-strong); color: var(--ink); }
.btn--line:hover { background: var(--bg2); border-color: var(--edge-strong); color: var(--ink-deep); }
.btn--sm { padding: .45rem 1rem; font-size: .95rem; }
.btn--go { }   /* the older name for the green button: the plain .btn is green now */
.btn .arr { font-weight: 600; }
.btn[disabled] { color: var(--soft); background: var(--card); border: 2px dashed var(--edge-strong); cursor: default; pointer-events: none; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: .4rem; }
.cta--stacked { flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-tel { font-size: .98rem; color: var(--soft); white-space: nowrap; }
.cta-tel a, .tel { font-weight: 700; text-decoration: none; color: var(--ink-deep); }
.cta-tel a:hover, .tel:hover { text-decoration: underline; }

.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin-bottom: .6rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 38ch; }
.crumbs, .crumb { font-size: .9rem; color: var(--soft); }
.crumbs a, .crumb a { color: var(--soft); text-decoration: none; }
.crumbs a:hover, .crumb a:hover { text-decoration: underline; }

/* A status label (StatusLabel): Available now, In testing, Planned, Design. The words carry the meaning, the shape of the dot repeats it. */
.stat {
  display: inline-flex; align-items: center; gap: .45rem; padding: .15rem .7rem .15rem .55rem; border-radius: 999px;
  border: 1px solid #c9e28b; background: var(--green-wash); color: #3f5f06;
  font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.stat::before { content: ""; width: .6em; height: .6em; border-radius: 50%; border: 1.5px solid currentColor; background: currentColor; }
.stat--test { background: #fff4dc; border-color: #ecd195; color: #7a5200; }
.stat--test::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.stat--plan { background: var(--bg2); border-color: var(--edge-strong); color: var(--soft); }
.stat--plan::before { background: transparent; }
.stat--design { background: var(--card); border: 1px dashed var(--edge-strong); color: var(--soft); }
.stat--design::before { border-radius: 0; background: transparent; border-style: dashed; }
.stat-for { margin: 0 1rem 0 .5rem; font-size: .9rem; color: var(--soft); white-space: nowrap; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.stat-pair { display: inline-flex; align-items: center; white-space: nowrap; }

/* A plain pill, for a key or a tag that is not a status (the Before and With FinnSight key). */
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; border: 1px solid var(--edge-strong); background: var(--card); color: var(--ink); }
.pill--now { background: var(--green-wash); border-color: #c9e28b; color: #3f5f06; }
.pill--test { background: #fff4dc; border-color: #ecd195; color: #7a5200; }

/* ===== 4 · masthead, the Modules menu and the phone menu ===== */

.top { background: var(--card); border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { height: 34px; width: auto; }
.topnav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.topnav > a, .mods > summary {
  font-weight: 600; font-size: .98rem; text-decoration: none; padding: .5rem .9rem; border-radius: 999px; cursor: pointer; list-style: none;
  border: 1px solid transparent; color: var(--ink); white-space: nowrap;
}
.topnav > a:hover, .mods > summary:hover, .mods[open] > summary { background: var(--bg); border-color: var(--edge); color: var(--ink-deep); }
.topnav > a[aria-current] { border-color: var(--edge); background: var(--bg); }
.topnav > .btn { margin-left: .5rem; padding: .55rem 1.2rem; border-color: var(--green); background: var(--green); }
.topnav > .tel { padding-inline: .6rem; }
.topnav > .login { color: var(--soft); }
.mods { position: relative; }
.mods > summary::-webkit-details-marker { display: none; }
.mods > summary::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .55em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.mods-m { display: none; }
.mods-panel {
  position: absolute; left: 0; top: calc(100% + 12px); width: min(640px, 92vw); background: var(--card); border: 1px solid var(--edge-strong);
  border-radius: var(--radius); padding: 1rem; box-shadow: 0 24px 50px -20px rgba(11, 27, 44, .4); display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem;
}
.mods-panel h2 { grid-column: 1 / -1; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: .2rem .6rem; }
.mods-panel a { display: block; text-decoration: none; padding: .55rem .6rem; border-radius: 10px; font-weight: 600; color: var(--ink); }
.mods-panel a small { display: block; font-weight: 400; color: var(--soft); font-size: .85rem; line-height: 1.3; }
.mods-panel a:hover, .mods-panel a[aria-current] { background: var(--green-wash); color: var(--ink-deep); }
.mods-panel .mods-all { grid-column: 1 / -1; border-top: 1px solid var(--edge); border-radius: 0 0 10px 10px; margin-top: .3rem; padding-top: .8rem; color: var(--green-deep); }
.mods-panel .mods-page, .mods-panel .mods-contact { display: none; }
.mods-panel .mods-login { grid-column: 1 / -1; color: var(--soft); }

/* the plain masthead of the locked site: the logo and the phone number */
.top--plain .top-in { justify-content: space-between; }

/* ===== 5 · footer ===== */

.foot { margin-block: 22px 40px; background: var(--card); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(20px, 2.6vw, 38px); color: var(--ink); }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--ink-deep); text-decoration: underline; }
.foot-in { display: grid; grid-template-columns: 260px repeat(4, minmax(0, 1fr)); gap: 2rem; }
.foot h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: .5rem; }
.foot li { font-size: .95rem; line-height: 1.7; }
.foot .brand img { height: 34px; }
.foot-tel { display: inline-block; margin-top: 1rem; font-size: 1.3rem; font-weight: 700; }
.foot-mail { display: block; font-size: .95rem; margin-top: .2rem; }
.foot address { margin-top: .5rem; font-style: normal; font-size: .95rem; line-height: 1.5; color: var(--soft); }
.foot-small { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--edge); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.small { font-size: .85rem; line-height: 1.45; color: var(--soft); }
.foot-base { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .88rem; color: var(--soft); }
.foot-base nav { display: flex; gap: 1.2rem; }
.foot--plain { padding: 16px 24px; }
.foot--plain .foot-base { margin: 0; padding: 0; border: 0; }

/* ===== 6 · bands, page headers, links and the closing band ===== */

.band { margin-block: 22px; background: var(--card); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(20px, 2.6vw, 38px); }
.band--warm { background: var(--bg2); }
.band--flush { padding: 0; overflow: hidden; }
.band--bar { padding: 0; overflow: hidden; }   /* a Field manual band (navy bar) until its page is converted */
.panel-head { margin-bottom: 1.2rem; }
.panel-head h2, .band > h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.panel-head p { margin-top: .6rem; max-width: 60ch; }
.band--close { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.4rem; background: var(--ink-deep); color: #fff; border-color: var(--ink-deep); }
.band--close h2 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.band--close p { color: #c9d4df; margin-top: .4rem; }
.band--close .tel, .band--close .cta-tel a { color: #fff; font-size: 1.3rem; }
.band--close .cta-tel { color: #c9d4df; }
.band--close .cta-row { margin: 0; }
.page-head { display: flex; flex-direction: column; gap: 1rem; max-width: 70ch; padding: clamp(6px, 1.4vw, 18px); }
.page-head h1 { font-size: clamp(2.1rem, 3.3vw, 3.1rem); }
.page-head .lead { max-width: 52ch; }

.link-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.link-card { text-decoration: none; border: 1px solid var(--edge-strong); border-radius: 16px; padding: 1rem 1.2rem; background: var(--card); display: block; color: var(--ink); }
.link-card:hover { border-color: var(--green-deep); background: var(--green-wash); color: var(--ink); }
.link-card b { display: block; color: var(--ink-deep); }
.link-card span { color: var(--soft); font-size: .95rem; }

/* Running text on a converted page (Panel Class="prose"): headings, paragraphs and lists at a readable width. */
.prose > * + * { margin-top: .9rem; }
.prose > :not(.panel-head) { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.prose ul { display: grid; gap: .4rem; }
.prose li { position: relative; padding-left: 1.2rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); }
.prose ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: .4rem; }

/* ===== 7 · device frames: laptop and phone ===== */

.laptop { filter: drop-shadow(0 22px 28px rgba(11, 27, 44, .35)); }
.laptop-lid { background: #14202e; border: 2px solid #2b3b4e; border-radius: 14px 14px 4px 4px; padding: 9px 9px 11px; }
.laptop-screen { aspect-ratio: 16 / 9; background: #fff; border-radius: 4px; overflow: hidden; position: relative; }
.laptop-screen--tall { aspect-ratio: 16 / 10; }
.laptop-screen > img, .laptop-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop-screen > .contain { object-fit: contain; background: var(--bg2); object-position: center; }
.laptop-base { height: 13px; margin-inline: -5%; background: linear-gradient(#d8dde2, #b9c0c8); border-radius: 0 0 16px 16px; position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: #9aa3ad; border-radius: 0 0 8px 8px; }
.dphone { width: 200px; max-width: 100%; background: #14202e; border: 2px solid #2b3b4e; border-radius: 34px; padding: 9px; filter: drop-shadow(0 18px 24px rgba(11, 27, 44, .3)); position: relative; }
.dphone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 52px; height: 13px; transform: translateX(-50%); background: #14202e; border-radius: 8px; z-index: 2; }
.dphone img { border-radius: 26px; width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; object-position: top; }

/* ===== 8 · the photo band (PhotoHero) ===== */

.photo-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; padding: 14px; }
.ph-copy { padding: clamp(14px, 2.4vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.ph-copy h1 { font-size: clamp(2.1rem, 3.4vw, 3.2rem); }
.ph-copy .lead { max-width: 36ch; font-size: 1.15rem; }
.photo-hero--big .ph-copy h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.photo-hero--big .ph-copy .lead { font-size: 1.2rem; max-width: 34ch; }
.ph-photo { position: relative; border: 1px solid var(--edge-strong); border-radius: 20px; overflow: hidden; min-height: 400px; background: var(--bg2); }
.photo-hero--big .ph-photo { min-height: 520px; }
.ph-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.ph-device { position: absolute; right: 5%; bottom: 8%; width: min(64%, 560px); }
.ph-device--phone { width: min(30%, 220px); }
.ph-note { position: absolute; left: 14px; top: 14px; background: var(--card); border: 1px solid var(--edge); border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; font-weight: 600; z-index: 2; }

/* ===== 9 · before and after (BeforeAfter) ===== */

.ba-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.3rem; }
.ba-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.ba-key { display: flex; gap: .6rem; }
.ba { position: relative; border: 1px solid var(--edge-strong); border-radius: 20px; overflow: hidden; background: var(--bg); --pos: 50%; touch-action: pan-y; }
.ba-layer { display: grid; grid-auto-rows: 4.6rem; }
.ba-row { display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; padding: 0 1.4rem 0 0; border-top: 1px solid var(--edge); }
.ba-row:first-child { border-top: 0; }
.ba-row b { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--soft); }
.ba-row p { font-size: 1.12rem; line-height: 1.3; max-width: 46ch; }
.ba-layer--before { background: #e9e5de; }
.ba-layer--before p { color: #55606b; }
.ba-layer--after { position: absolute; inset: 0; background: var(--green-wash); clip-path: inset(0 0 0 var(--pos)); }
.ba-layer--after .ba-row { border-color: #cfe39c; }
.ba-layer--after .ba-row b { color: var(--green-deep); }
.ba-layer--after p { font-weight: 600; color: var(--ink-deep); }
/* Before text sits in the left half, After text in the right half, so each reads whole at the middle and the handle wipes between them. */
.ba-layer--before .ba-row { padding-right: 50%; }
.ba-layer--after .ba-row { padding-left: 50%; padding-right: 1.4rem; }
.ba-tag { position: absolute; bottom: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px; z-index: 2; }
.ba-tag--b { left: 10px; background: var(--card); border: 1px solid var(--edge-strong); }
.ba-tag--a { right: 10px; background: var(--green); color: var(--ink-deep); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--ink-deep); z-index: 3; pointer-events: none; }
.ba-line::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); background: var(--ink-deep); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; border: 3px solid var(--card); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 4; }
.ba:focus-within { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.ba-fine { margin-top: .9rem; font-size: .9rem; color: var(--soft); }
/* without the script there is no slider: the two lists show one under the other, as on a phone */
.no-js .ba { overflow: visible; border: 0; background: none; display: grid; gap: 14px; }
.no-js .ba input, .no-js .ba-line, .no-js .ba-tag { display: none; }
.no-js .ba-layer { display: block; border: 1px solid var(--edge-strong); border-radius: 16px; padding: 12px; }
.no-js .ba-layer::before { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.no-js .ba-layer--before::before { content: "Before"; }
.no-js .ba-layer--after::before { content: "After"; color: var(--green-deep); }
.no-js .ba-layer--before .ba-row, .no-js .ba-layer--after .ba-row { padding: .6rem 0; }
.no-js .ba-layer--after { position: static; clip-path: none; }

/* ===== 10 · picture cards that expand in place (PictureCards, PictureCard) ===== */

.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { border: 1px solid var(--edge-strong); border-radius: 22px; background: var(--card); overflow: hidden; display: flex; flex-direction: column; }
.pcard.open { grid-column: 1 / -1; }
.pcard-pic { position: relative; aspect-ratio: 16 / 10; background: var(--bg2); border-bottom: 1px solid var(--edge); overflow: hidden; }
.pcard-pic > img { width: 100%; height: 100%; object-fit: cover; }
.pcard-pic .dphone { position: absolute; right: 6%; bottom: 8%; width: 31%; min-width: 96px; }
.pcard-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; align-items: flex-start; }
.pcard-body h3 { font-size: 1.45rem; }
.pcard-body p { color: var(--ink); }
.pcard-body .btn { margin-top: auto; }
.pcard-more { display: none; padding: 0 1.4rem 1.6rem; }
.pcard.open .pcard-more, .no-js .pcard-more { display: block; }
.pcard.open .pcard-pic { aspect-ratio: 16 / 5; }
.pcard.open .pcard-pic .dphone { display: none; }
.no-js .pcard-body .btn { display: none; }
.no-js .pcard { grid-column: 1 / -1; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shots--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pshot { margin: 0; border: 1px solid var(--edge-strong); border-radius: 14px; overflow: hidden; background: var(--bg); }
.pshot > img, .pshot > video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.pshot--phone { display: grid; place-items: center; padding: 18px; background: var(--bg2); }
.pshot--phone > .dphone { margin: 0 auto; }
.pshot figcaption { padding: .7rem .9rem; font-size: .95rem; border-top: 1px solid var(--edge); background: var(--card); }
.pshot--phone figcaption { width: calc(100% + 36px); margin: 18px -18px -18px; }
.pcard-more .cta-row { margin-top: 1.1rem; }

/* ===== 11 · the walkthrough: step tabs, each an animated tour (Walkthrough, WalkTab, WalkStep) ===== */

.walk { padding: 0; overflow: hidden; }
.walk-top { padding: clamp(20px, 2.6vw, 34px) clamp(20px, 2.6vw, 38px) 18px; }
.walk-top h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 1rem; }
.wk-tabs { display: grid; grid-template-columns: repeat(var(--tabs, 5), minmax(0, 1fr)); gap: 12px; }
.wk-tab {
  font: inherit; text-align: left; cursor: pointer; background: var(--bg); border: 2px solid var(--edge); border-radius: 16px; padding: .9rem 1rem; color: var(--ink);
  display: flex; flex-direction: column; gap: .15rem; transition: border-color .15s, background .15s;
}
.wk-tab:hover { border-color: var(--edge-strong); background: #fff; }
.wk-tab .n { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--green-deep); }
.wk-tab .t { font-size: 1.15rem; font-weight: 700; color: var(--ink-deep); line-height: 1.2; }
.wk-tab .s { font-size: .85rem; color: var(--soft); }
.wk-tab[aria-selected="true"] { background: var(--green-wash); border-color: var(--green); box-shadow: 0 0 0 3px rgba(132, 192, 13, .22); }
.wk-panes { border-top: 1px solid var(--edge); background: var(--bg2); }
.wk-pane { padding: clamp(20px, 2.6vw, 38px); }
/* the script builds the stage and caption and hides the plain list of steps */
.wk-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.wk-slide { opacity: 0; transition: opacity .35s; pointer-events: none; }
.wk-slide.on { opacity: 1; pointer-events: auto; }
.wk-cap { display: flex; flex-direction: column; gap: 1rem; min-height: 15rem; }
.wk-cap-step { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.wk-cap h3 { font-size: 1.7rem; }
.wk-cap p { font-size: 1.1rem; max-width: 40ch; }
.wk-prog { height: 8px; background: var(--card); border: 1px solid var(--edge-strong); border-radius: 999px; overflow: hidden; margin-top: auto; }
.wk-prog > i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--green); transition: width .12s linear; }
.wk-ctrl { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wk-ctrl button { font: inherit; font-weight: 700; cursor: pointer; background: var(--card); color: var(--ink); border: 2px solid var(--edge-strong); border-radius: 999px; padding: .45rem 1.1rem; min-width: 5.2rem; }
.wk-ctrl button:hover { background: var(--bg); border-color: var(--ink); }
.wk-ctrl .play { background: var(--green); border-color: var(--green); color: var(--ink-deep); }
.wk-ctrl .count { margin-left: auto; font-size: .95rem; color: var(--soft); text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 400; }

/* the plain list of steps: what shows without the script, and what a screen reader can still reach */
.wk-pane-h { font-size: 1.5rem; margin-bottom: 1rem; }
.no-js .wk-tabs { display: none; }
.wk-tabs:empty { min-height: 5.2rem; }
.no-js .wk-pane + .wk-pane { border-top: 1px solid var(--edge-strong); margin-top: 1.5rem; padding-top: 1.5rem; }
.js .wk-pane-h { display: none; }
.wk-steps { display: grid; gap: 22px; }
.wk-step { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.wk-media { border: 1px solid var(--edge-strong); border-radius: 14px; overflow: hidden; background: #fff; }
.wk-media img, .wk-media video { width: 100%; height: auto; }
.wk-text { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.wk-text h4 { font-size: 1.3rem; }
.wk-text p { max-width: 40ch; }

/* ===== 12 · forms, the contact page and the plain pages ===== */

.page-top { margin-block: 22px; background: var(--card); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(24px, 3vw, 40px); }
.page-top h1 { margin-top: .6rem; font-size: clamp(2rem, 3vw, 2.8rem); max-width: 24ch; }
.page-top .lead { margin-top: .8rem; max-width: 62ch; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; padding: 0; overflow: hidden; }
.contact-main { padding: clamp(20px, 2.6vw, 38px); border-right: 1px solid var(--edge); }
.contact-main h2 { font-size: 1.5rem; }
.form-intro { margin-top: .4rem; color: var(--soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-top: 1.5rem; max-width: 760px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 650; color: var(--ink-deep); }
.field .optional { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--edge-strong); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
.field textarea { min-height: 144px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(132, 192, 13, .45); outline-offset: 0; border-color: var(--green-deep); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--bad); background: #fffafa; }
.field-hint { font-size: .88rem; color: var(--soft); }
.validation-message { color: var(--bad-ink); font-size: .9rem; font-weight: 620; line-height: 1.4; }
.form-alert { margin-top: 1.5rem; padding: 14px 16px; border-left: 4px solid var(--bad); border-radius: 0 12px 12px 0; background: var(--bad-bg); max-width: 760px; }
.form-alert strong { display: block; margin-bottom: 2px; }
.form-alert a { color: var(--bad-ink); font-weight: 650; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-note { font-size: .9rem; color: var(--soft); }
.field-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-fallback { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--edge); max-width: 760px; }
.form-fallback .cta { margin-top: .8rem; }
.contact-card { background: var(--bg2); align-self: stretch; }
.contact-card > div { padding: 1rem 1.5rem; border-bottom: 1px solid var(--edge); }
.contact-card small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.contact-card a, .contact-card span { color: var(--ink-deep); }
.contact-card a { font-weight: 650; }
.options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--edge); }
.option { padding: 1.2rem 1.4rem 1.5rem; border-left: 1px solid var(--edge); display: flex; flex-direction: column; gap: .5rem; }
.option:first-child { border-left: 0; }
.option h2 { font-size: 1.15rem; }
.option p { font-size: .95rem; color: var(--ink); }
.option a { margin-top: auto; display: flex; align-items: center; min-height: 44px; font-weight: 650; }
.option.is-chosen { background: var(--green-wash); box-shadow: inset 0 4px 0 var(--green); }

.simple { margin-block: 22px; background: var(--card); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(40px, 6vw, 80px) 24px; text-align: center; }
.simple h1 { margin-top: .6rem; font-size: clamp(2rem, 3vw, 2.8rem); }
.simple p { margin: .8rem auto 0; max-width: 56ch; color: var(--ink); }
.simple .lead { margin-inline: auto; }
.simple .cta { justify-content: center; margin-top: 1.5rem; }

/* the plain notice pages (Privacy, Terms) until they are converted */
.notice { margin-block: 22px; display: grid; grid-template-columns: 264px minmax(0, 1fr); background: var(--card); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.notice-toc { padding: 1.5rem; border-right: 1px solid var(--edge); background: var(--bg2); }
.notice-toc ol { position: sticky; top: 90px; display: grid; gap: 2px; }
.notice-toc a { display: block; padding: 6px 0; font-size: .95rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.notice-toc a:hover { color: var(--ink-deep); text-decoration: underline; }
.notice-body { padding: 1.2rem clamp(20px, 3vw, 40px) 2.5rem; }
.notice-body > section { padding-top: 1.5rem; }
.notice-body > section + section { margin-top: 1.5rem; border-top: 1px solid var(--edge); }
.notice-body h2 { font-size: 1.7rem; }
.notice-body h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.notice-body p, .notice-body li { max-width: 70ch; }
.notice-body p { margin-top: .8rem; }
.notice-body ul { margin-top: .8rem; display: grid; gap: .4rem; }
.notice-body li { position: relative; padding-left: 1.3rem; }
.notice-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); }

/* ===== 13 · the private preview's sign-in page, in Daylight (the locked holding page keeps its own look, in the legacy part) ===== */

.holding.holding--daylight { background: var(--bg); }
.holding--daylight .holding-card { background: var(--card); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--shadow); }
.holding--daylight .holding-card h1 { margin-top: .4rem; }

/* ===== 14 · narrower screens and reduced motion for the parts above ===== */

@media (max-width: 1400px) {
  .topnav > .tel { display: none; }
  .mods-panel .mods-contact { display: block; grid-column: 1 / -1; }
}
@media (max-width: 1280px) {
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1120px) {
  .topnav > a.hide-m { display: none; }
  .mods-panel { left: auto; right: 0; }
  .mods-d { display: none; }
  .mods-m { display: inline; }
  .mods-panel .mods-page { display: block; }
  .mods-panel h2.mods-page { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .wk-tabs { grid-template-columns: repeat(var(--tabs, 5), minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .wk-tab { scroll-snap-align: start; }
  .wk-body, .wk-step { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-main { border-right: 0; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option:nth-child(odd) { border-left: 0; }
  .option { border-top: 1px solid var(--edge); }
}
@media (max-width: 900px) {
  .photo-hero { grid-template-columns: 1fr; }
  .ph-photo, .photo-hero--big .ph-photo { min-height: 400px; }
  .pcards { grid-template-columns: 1fr; }
  .shots, .shots--two { grid-template-columns: 1fr; }
  .link-strip { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; }
  .notice-toc { border-right: 0; border-bottom: 1px solid var(--edge); }
  .form-grid { grid-template-columns: 1fr; }
  .foot-small { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 24px); }
  .band, .page-top, .simple, .notice { margin-block: 14px; border-radius: 20px; }
  .band, .page-top { padding: 16px; }
  .band--bar, .band--flush, .contact, .walk { padding: 0; }
  .top-in { gap: .6rem; min-height: 60px; }
  .brand img { height: 30px; }
  .topnav > a { display: none; }
  .topnav > a.btn { display: inline-flex; }
  .topnav > .btn { padding: .5rem .9rem; font-size: .92rem; margin-left: 0; }
  .mods-panel { position: fixed; left: 12px; right: 12px; top: 66px; width: auto; grid-template-columns: 1fr; max-height: 78vh; overflow-y: auto; }
  .mods-panel .mods-page small { display: none; }
  .photo-hero { padding: 8px; }
  .ph-copy { padding: 10px; }
  /* the picture stacks over the screen: the photo, then the laptop on a plain ground, no keyboard base */
  .ph-photo, .photo-hero--big .ph-photo { min-height: 0; display: flex; flex-direction: column; }
  .ph-photo > img { position: static; height: 220px; }
  .ph-device { position: static; width: 100%; padding: 14px; background: var(--bg2); }
  .ph-device--phone { width: 100%; display: grid; place-items: center; }
  .ph-device .laptop { filter: none; }
  .laptop-base { display: none; }
  .laptop-lid { border-radius: 12px; }
  .ph-note { z-index: 3; }

  /* before and after: two stacked lists, no slider */
  .ba { overflow: visible; border: 0; background: none; display: grid; gap: 14px; }
  .ba input, .ba-line, .ba-tag { display: none; }
  .ba-layer { display: block; border: 1px solid var(--edge-strong); border-radius: 16px; padding: 12px; }
  .ba-layer::before { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
  .ba-layer--before::before { content: "Before"; }
  .ba-layer--after::before { content: "After"; color: var(--green-deep); }
  .ba-layer--before .ba-row, .ba-layer--after .ba-row { padding: .6rem 0; }
  .ba-layer--after { position: static; clip-path: none; order: 2; }
  .ba-layer--before { order: 1; }
  .ba-row { grid-template-columns: 3.4rem 1fr; min-height: 0; }
  .ba-row p { font-size: 1rem; }
  .ba-head { margin-bottom: .8rem; }

  .pcard.open .pcard-pic { aspect-ratio: 16 / 10; }
  .wk-tabs { grid-template-columns: repeat(var(--tabs, 5), 72%); gap: 10px; }
  .walk-top, .wk-pane { padding: 14px; }
  .wk-cap { min-height: 0; }
  .wk-cap h3 { font-size: 1.35rem; }
  .wk-ctrl .count { width: 100%; margin-left: 0; }
  .band--close { padding: 18px; }
  .foot { margin-block: 14px 28px; border-radius: 20px; padding: 16px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  .foot-in > :first-child { grid-column: 1 / -1; }
  .foot-base { flex-direction: column; }
  .contact-main { padding: 16px; }
  .options { grid-template-columns: 1fr; }
  .option { border-left: 0; }
}

/* Reduced motion: nothing fades or glides, and every picture shows its finished state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wk-slide, .wk-prog > i, .wk-tab { transition: none; }
  .btn:hover { transform: none; }
}


/* ===== 15 · LEGACY: Field manual parts that pages not yet converted still use =====
   Everything below belongs to pages that have not been converted to Daylight (DAYLIGHT.md lists them and the old components).
   Delete a block once no page uses it. Nothing above this line depends on anything below it. */

/* ----- legacy 3 · small parts ----- */

.fig { font: 700 var(--t-xs)/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.cap { font-size: var(--t-cap); line-height: 22px; color: var(--ink-2); }
.cap .fig { margin-right: 10px; }
.cap .stat { margin-right: var(--s1); vertical-align: 1px; }




.note {
  border-left: 3px solid var(--green); padding: 2px 0 2px 14px;
  font-size: var(--t-cap); line-height: 22px; color: var(--ink-2); max-width: 60ch;
}
.note b { font: 700 var(--t-xs)/22px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-right: var(--s1); }

/* status chips in the product's own style */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font: 600 var(--t-xs)/1 var(--sans); white-space: nowrap; }
.chip--ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip--warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip--bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip--idle { background: var(--idle-bg); color: var(--idle-ink); }
.chip--line { background: var(--sheet); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
.chip s { margin-right: 6px; }
.swap { position: relative; display: inline-grid; }
.swap > * { grid-area: 1 / 1; justify-self: start; }
.swap .from { opacity: 0; }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--green); color: var(--navy); }
.tick::before { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

/* the green, amber and red key */
.key { display: grid; border-top: var(--hair); }
.key--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.key--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.key > li { padding: 12px var(--s3) 14px var(--pad); border-left: var(--hair); font-size: var(--t-body); line-height: 24px; color: var(--ink-2); }
.key > li:first-child { border-left: 0; }
.key b { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: var(--t-lg); line-height: 24px; font-weight: 740; letter-spacing: -.015em; color: var(--ink); }
.key b i { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--navy), inset 0 0 0 3px var(--sheet); }
.key-ok b i { background: var(--ok); } .key-warn b i { background: var(--warn); }
.key-bad b i { background: var(--bad); } .key-idle b i { background: var(--idle); }

/* a plain table inside a section */
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.table th, .table td { text-align: left; padding: 8px 12px 8px 0; border-top: var(--hair); vertical-align: top; }
.table thead th { border-top: 0; font: 600 11.5px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.table td.num { font: 500 13.5px/22px var(--mono); white-space: nowrap; }
.table-row { display: grid; grid-template-columns: 200px minmax(0, 640px); gap: var(--s1) var(--s3); padding: var(--s2) var(--pad); border-top: var(--hair); }
.table-row h3 { font-size: var(--t-lg); line-height: 26px; font-weight: 720; letter-spacing: -.015em; }
/* a run of short statements in a table row: one paragraph each, with space between */
.paras > p { font-size: var(--t-body); line-height: 24px; color: var(--ink-2); }
.paras > p + p { margin-top: 10px; }
.paras > .cta { margin-top: var(--s2); }
/* short inline code does not break across lines (a long path still may, see .inline-code) */
.table-row p code, .route-body > p code { white-space: nowrap; }



.bar { display: flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 4px var(--pad); background: var(--navy); color: #fff; }
.bar-no { font: 600 var(--t-sm)/1 var(--mono); color: var(--green); letter-spacing: .06em; }
.bar-title { font-size: var(--t-lg); line-height: 24px; font-weight: 680; letter-spacing: -.01em; }
.bar-say { font-size: var(--t-cap); color: var(--on-navy-2); margin-left: var(--s1); }
.bar-side { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.ctl {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: 32px; padding: 0 12px;
  border: 1.5px solid var(--navy-3); border-radius: 2px; background: var(--navy-2); color: #fff;
  font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
}
.ctl:hover { border-color: var(--green); }
.ctl--icon { width: 36px; padding: 0; justify-content: center; font-size: 15px; }
.ico-pause, .ico-play { width: 10px; height: 11px; flex: none; }
.ico-pause { border-inline: 3px solid currentColor; }
.ico-play { display: none; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.is-held .ico-pause { display: none; }
.is-held .ico-play { display: block; }
.count { font: 600 var(--t-xs)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-2); white-space: nowrap; }
.count--ink { color: var(--ink-3); }


/* ----- legacy 6 · figures and frames ----- */

.figure { margin: 0; background: var(--sheet); }
.fbar {
  display: flex; align-items: center; gap: 12px; height: var(--bar-h); padding: 0 12px;
  background: var(--paper-2); border-bottom: var(--hair); font: 500 var(--t-xs)/1 var(--mono); color: var(--ink-2);
}
.fdots { display: flex; gap: 5px; }
.fdots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.ftitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftag { margin-left: auto; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }

.screen { position: relative; background: var(--app-bg); }
.crop { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.crop > .canvas { position: absolute; inset: 0; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }

/* a short recording of the real product (FigClip), small, in the foot of a figure beside its caption */
.clip { position: relative; flex: 0 0 var(--clip-w, 400px); width: var(--clip-w, 400px); max-width: 100%; border: 1.5px solid var(--navy); background: var(--sheet); }
.clip-screen { position: relative; background: var(--app-bg); }
.clip-screen video { display: block; width: 100%; height: auto; }
.clip .cap { padding: 6px 10px 8px; font-size: 14px; line-height: 20px; border-top: var(--hair); }
.ctl--clip { position: absolute; right: 8px; bottom: 8px; min-height: 28px; padding: 0 10px; }
.ctl[hidden] { display: none; }

/* a ruled bench that parts of screens, phones and drawings sit on */
.bench {
  position: relative; background-color: var(--paper);
  background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px), linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.bench--pad { padding: 56px var(--pad) var(--s4); }
.bench-row { position: relative; height: 100%; padding: 6% 3% 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 3%; }
.piece { position: relative; min-width: 0; flex: 0 0 auto; align-self: flex-start; }
.piece--phone { align-self: flex-end; }
.g2 { width: 27%; } .g3 { width: 33%; } .g4 { width: 44%; } .g5 { width: 52%; } .g6 { width: 64%; } .g7 { width: 72%; }

/* part of a screen */
.detail { position: relative; background: var(--app-bg); border: 1.5px solid var(--navy); }
.detail > img { width: 100%; }
/* a part of a screen in a Part or Design figure is never shown larger than its 1x size: the box hugs the picture,
   centred on the bench, so a small crop stays sharp and its markers stay on it */
.bench--pad > .detail:not(.detail--dia) { width: fit-content; max-width: 100%; margin-inline: auto; }
.bench--pad > .detail:not(.detail--dia) > img { width: auto; max-width: 100%; height: auto; }
.detail-tag {
  position: absolute; left: -1.5px; top: -24px; padding: 4px var(--s1); background: var(--navy); color: #fff;
  font: 600 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.detail-tag--design { background: var(--sheet); color: var(--navy); border: 1.5px dashed var(--navy); top: -26px; }
.detail--dia { background: var(--sheet); border-style: dashed; padding: 6px; }

/* a phone rising from the bottom edge of its figure, or a whole phone */
.phone { position: relative; background: var(--navy); border-radius: 30px 30px 0 0; padding: 12px 12px 0; }
.phone::before { content: ""; position: absolute; left: 50%; top: 5px; width: 44px; height: 3px; margin-left: -22px; border-radius: 2px; background: var(--navy-3); }
.phone-screen { position: relative; border-radius: 19px 19px 0 0; overflow: hidden; background: var(--app-bg); }
.phone-screen img { width: 100%; }
.phone--whole { border-radius: 30px; padding: 12px; }
.phone--whole .phone-screen { border-radius: 19px; }
.phone--top .phone-screen { aspect-ratio: 4 / 5; }
.phone--top .phone-screen img { height: 100%; object-fit: cover; object-position: 50% 0; }

/* a drawn label, an arrow and the page it opens in a phone (ScanToPhone): places are shares of the 16:10 frame */
.stp { position: absolute; inset: 0; }
.stp-label { position: absolute; left: 7%; top: 17%; width: 34%; }
.stp-label .drawn-tag { display: inline-block; margin-top: 14px; }
.stp-arrow { position: absolute; left: 42.4%; top: 42%; width: 9.2%; height: 0; border-top: 1.5px solid var(--navy); transform-origin: 0 50%; }
.stp-arrow::after { content: ""; position: absolute; right: -1px; top: -6px; width: 10px; height: 10px; border-top: 1.5px solid var(--navy); border-right: 1.5px solid var(--navy); transform: rotate(45deg); }
.stp-steps { position: absolute; left: 7%; top: 64%; display: grid; gap: 22px; }
.stp-steps li { display: flex; align-items: center; gap: 10px; font: 600 var(--t-xs)/16px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.mk.mk--flow { position: static; margin: 0; flex: none; }
.stp-phone { position: absolute; left: 53%; bottom: 0; width: 41%; }

/* a drawn label: every measure is a share of the label's own width */
.qrl { display: flex; align-items: center; background: #fff; color: #000; border: 1.5px solid var(--navy); border-radius: 5px; container-type: inline-size; }
.qrl-code { width: 38cqw; height: 38cqw; margin: 7.5cqw 5cqw 7.5cqw 7cqw; flex: none; }
.qrl-t { display: grid; gap: 3cqw; min-width: 0; margin-right: 5cqw; font: 500 6.4cqw/1.15 var(--sans); }
.qrl-t b { font: 700 10.4cqw/1 var(--mono); letter-spacing: -.03em; }
.qrl-t span:last-child { font: 600 6.2cqw/1 var(--mono); }
.drawn-tag { font: 600 10.5px/14px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding: 2px 6px; border: 1.5px dashed var(--ink-3); background: rgba(255, 255, 255, .92); white-space: nowrap; }

/* a drawn screen: the set-up strip on a building's page and its card on the overview (how it works, step 7) */
.setup { position: absolute; left: 4%; top: 7%; width: 92%; background: #fff; border: 1px solid var(--app-line); border-radius: 12px; padding: 3.2% 3.4% 3.4%; font: 500 14px/20px var(--sans); color: var(--app-ink); box-shadow: 0 1px 2px rgba(29, 36, 21, .05); }
.setup-h { display: flex; align-items: baseline; gap: 12px; font-size: var(--t-lg); line-height: 26px; font-weight: 700; }
.setup-h .of { font: 600 14px/20px var(--sans); color: var(--app-ink-2); }
.setup-bar { height: 8px; margin: 14px 0 var(--s2); border-radius: 4px; background: #e9ecdf; overflow: hidden; }
.setup-bar i { display: block; height: 100%; width: 50%; background: var(--app-brand); border-radius: 4px; }
.setup-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.setup-steps li { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: var(--s1) 12px; border: 1px solid var(--app-line); border-radius: 9px; font-size: 13.5px; line-height: 18px; font-weight: 600; }
.setup-steps .done { background: #eef4e0; border-color: #cfe0a8; }
.setup-steps .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid #9aa48c; display: grid; place-items: center; }
.setup-steps .done .dot { background: var(--app-brand); border-color: var(--app-brand); }
.setup-steps .done .dot::before { content: ""; width: 7px; height: 4px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.setup-next { margin-top: var(--s2); font-size: 13.5px; color: var(--app-ink-2); }
.setup-next b { color: var(--app-brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.setup--card { top: 57%; width: 43%; }
.setup-big { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--app-ink-2); }
.setup-big b { margin-right: 6px; font: 760 34px/40px var(--sans); letter-spacing: -.03em; color: var(--app-ink); }
.setup-list { margin-top: var(--s1); }
.setup-list li { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--app-line-2); font-size: 13.5px; font-weight: 600; }

/* ----- legacy 7 · the annotation layer: highlights, rings, pointer, markers, strips ----- */

.ov { position: absolute; inset: 0; pointer-events: none; }
.ov > * { position: absolute; }
/* site.js turns data-x, data-y, data-w and data-h into these properties */
.ov [data-x], .screen > [data-x] { left: var(--x); }
.ov [data-y], .screen > [data-y] { top: var(--y); }
.ov [data-w], .screen > [data-w] { width: var(--w); }
.ov [data-h] { height: var(--h); }
@supports (left: attr(data-x type(<percentage>), 0%)) {
  [data-x] { --x: attr(data-x type(<percentage>), 0%); }
  [data-y] { --y: attr(data-y type(<percentage>), 0%); }
  [data-w] { --w: attr(data-w type(<percentage>), 0%); }
  [data-h] { --h: attr(data-h type(<percentage>), 0%); }
  [data-fx] { --fx: attr(data-fx type(<percentage>), 0%); }
  [data-fy] { --fy: attr(data-fy type(<percentage>), 0%); }
}

.hl { border: 2.5px solid var(--green); border-radius: 7px; box-shadow: 0 0 0 1.5px var(--navy), inset 0 0 0 1px rgba(11, 27, 44, .55); background: rgba(132, 192, 13, .09); }
.hl--temp { opacity: 0; }
.ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid var(--green); box-shadow: 0 0 0 1.5px var(--navy), inset 0 0 0 1.5px var(--navy); }
.ptr { width: 24px; height: 24px; margin: -3px 0 0 -5px; z-index: 7; }
.ptr svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 1px rgba(11, 27, 44, .45)); }
.ptr path { fill: var(--navy); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.ptr--click::after { content: ""; position: absolute; left: -18px; top: -20px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--green); opacity: 0; }
.mk {
  width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--navy);
  font: 700 var(--t-sm)/1 var(--mono); font-style: normal; z-index: 6;
}
.brace { right: -1.5px; width: 7px; background: var(--green); box-shadow: 0 0 0 1.5px var(--navy); }
.ov > .qrl { z-index: 3; }

/* a strip of cells drawn over the empty part of a capture, or under it on a phone */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: var(--navy); color: #fff; border-left: 4px solid var(--green); z-index: 4;
}
.strip-cell { display: block; padding: 10px 14px 12px; border-left: 1px solid var(--navy-3); font: 500 var(--t-sm)/19px var(--sans); }
.strip-cell:first-child { border-left: 0; }
.strip-lab { display: block; margin-bottom: var(--s1); font: 600 10.5px/14px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.screen > .strip { position: absolute; }

/* a drawn count over a picture (Tally) */
@property --n { syntax: "<integer>"; inherits: true; initial-value: 0; }
.tally {
  display: flex; align-items: baseline; gap: 12px; padding: 8px 12px 9px; z-index: 4;
  background: var(--navy); color: #fff; border-left: 4px solid var(--green); white-space: nowrap;
  font: 600 10.5px/14px var(--mono); letter-spacing: .07em; text-transform: uppercase;
}
.tally-n { font: 700 22px/22px var(--mono); color: var(--green); letter-spacing: 0; }
.js .tally-n { --n: var(--to, 0); counter-reset: n var(--n); }
.js .tally-n::after { content: counter(n); }
.js .tally-num { display: none; }

/* a drawn note over an empty part of a picture (Callout) */
.call { z-index: 4; padding: 10px 14px 12px; background: var(--navy); color: #fff; border-left: 4px solid var(--green); font: 500 var(--t-sm)/19px var(--sans); }
.call-h { display: block; margin-bottom: 6px; font: 600 10.5px/14px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--green); }
.call-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.call-row + .call-row { margin-top: 7px; }
.call code { font: 600 var(--t-xs)/1 var(--mono); color: #fff; }
.call-row--small { font-size: 12.5px; color: var(--on-navy-2); }
.call-line { height: 0; border-top: 1.5px solid var(--navy); transform-origin: 0 50%; }

/* ----- legacy 8 · notes and leader lines ----- */

.afig { border-top: var(--hair); }
.afig-pic { min-width: 0; }
.afig-notes { border-top: var(--hair); }
.afig-foot { display: flex; gap: var(--s4); align-items: flex-start; justify-content: space-between; padding: var(--s2) var(--pad); border-top: var(--hair); }
.afig-foot .cap { max-width: var(--measure); }
.afig-foot .note { max-width: 46ch; }
/* a caption with two or more notes beside it takes a line of its own, and the notes share the line under it */
.afig-foot:has(> :nth-child(3)) { display: grid; grid-template-columns: repeat(var(--fn, 2), minmax(0, 1fr)); gap: 12px var(--s4); }
.afig-foot:has(> :nth-child(4)) { --fn: 3; }
.afig-foot:has(> :nth-child(3)) > .cap { grid-column: 1 / -1; }
.afig-foot:has(> :nth-child(3)) > :not(.cap) { max-width: none; }

.notes { counter-reset: note; display: grid; }
.notes > li { position: relative; padding: var(--s2) 20px 14px 66px; font-size: var(--t-cap); line-height: 21px; color: var(--ink-2); }
.notes > li::before {
  counter-increment: note; content: counter(note); position: absolute; left: 28px; top: var(--s2);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: var(--navy); box-shadow: 0 0 0 1.5px var(--navy); font: 700 var(--t-sm)/1 var(--mono);
}
.notes b { display: block; font-size: var(--t-body); line-height: 22px; font-weight: 680; color: var(--ink); margin-bottom: 2px; letter-spacing: -.005em; }

[data-leaders] { position: relative; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.leaders path { fill: none; }
.leaders .halo { stroke: #fff; stroke-width: 5; opacity: .92; }
.leaders .line { stroke: var(--navy); stroke-width: 1.5; }

@media (min-width: 1280px) {
  .afig--wide { display: grid; grid-template-columns: minmax(0, 900fr) minmax(0, 276fr); }
  .afig--wide .afig-pic { border-right: var(--hair); }
  .afig--wide .afig-notes { border-top: 0; }
  .afig--wide .notes > li { padding: var(--s2) var(--s2) 12px 66px; }
  .afig--wide .notes > li + li { border-top: var(--hair); }
  .afig--role { display: grid; grid-template-columns: minmax(0, 740fr) minmax(0, 436fr); }
  .afig--role .afig-pic { border-right: var(--hair); }
  .afig--role .afig-notes { border-top: 0; }
  .afig--role .notes { border-block: var(--hair); }
  .afig--role .notes > li { padding: 14px var(--s3) 14px 66px; font-size: var(--t-body); line-height: 24px; }
  .afig--role .notes > li::before { top: 14px; }
  .afig--role .notes b { font-size: var(--t-md); line-height: 24px; }
}
@media (min-width: 880px) and (max-width: 1279.98px) {
  .afig--wide .notes { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .afig--below .notes { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .afig--below .notes > li + li { border-left: var(--hair); }
}
.role-lead { padding: 20px var(--s3) var(--s2) 28px; font-size: var(--t-lg); line-height: 28px; font-weight: 560; letter-spacing: -.01em; }
.afig--role .afig-notes .note { margin: var(--s2) var(--s3) var(--s3) 28px; }
.afig--role .bench { height: 100%; padding: 36px var(--s3) 12px; display: flex; flex-direction: column; justify-content: center; }
.afig--role .cap { margin-top: var(--s2); }

/* the hosting diagram */
.dia { width: 100%; height: auto; }
.dia .box { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.dia .box--in { fill: var(--paper-2); }
.dia .zone { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dia .wire { fill: none; stroke: var(--navy); stroke-width: 2; }
.dia .wire--priv { stroke-dasharray: 2 5; stroke-linecap: round; stroke-width: 3; }
.dia .head { fill: var(--navy); }
.dia text { font: 600 13px var(--sans); fill: var(--navy); }
.dia .t-big { font: 720 15px var(--sans); letter-spacing: -.01em; }
.dia .t-mono { font: 600 10.5px var(--mono); letter-spacing: .07em; fill: var(--ink-3); text-transform: uppercase; }
.dia .t-sm { font: 500 var(--t-xs) var(--sans); fill: var(--ink-2); }

/* ----- legacy 9 · the stage: a framed picture that plays through its steps ----- */

.st-prog { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--green); }
.st-head { margin: 0; }
.st { border-top: var(--ledge); }

/* the tour on the home page: the headline and the rail on the left, the playing picture on the right */
.stage-hero { padding: var(--s3) var(--pad); }
.stage-hero h1 { margin-top: 12px; font-size: var(--t-4xl); line-height: 50px; font-weight: 780; letter-spacing: -.035em; text-wrap: balance; }
.stage-hero .lead-line { margin-top: var(--s2); font-size: var(--t-lg); line-height: 27px; font-weight: 600; letter-spacing: -.01em; }
.stage-hero .more-line { margin-top: var(--s1); font-size: 15.5px; line-height: 23px; color: var(--ink-2); }
.stage-hero .cta { margin-top: 20px; }

.tour-head { min-height: 48px; padding: 4px 12px 4px var(--pad); gap: 12px; }
.tour-head .bar-title { font-size: var(--t-body); }

.stage--tour .st-link {
  position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 10px;
  min-height: 48px; padding: var(--s1) 20px var(--s1) var(--pad);
  color: var(--ink-2); text-decoration: none; font-size: 16.5px; line-height: 22px; font-weight: 620;
}
.stage--tour .st-link:hover { color: var(--navy); background: var(--sheet); }
.st-no { font: 600 var(--t-sm)/1 var(--mono); color: var(--ink-3); }

.st-pic { min-width: 0; flex: none; }
.st-copy { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-top: var(--ledge); flex: 1; }
.st-say { padding: var(--s2) var(--s3) 20px; }
.st-n { font: 700 var(--t-xs)/16px var(--mono); letter-spacing: .06em; color: var(--green-ink); }
.st-h { margin-top: 6px; font-size: var(--t-xl); line-height: 28px; font-weight: 740; letter-spacing: -.02em; }
.st-say p:not(.st-n):not(.st-h) { margin-top: 6px; font-size: var(--t-md); line-height: 25px; color: var(--ink-2); max-width: 62ch; }
.st-on { padding: var(--s2) var(--s3) 20px; border-left: var(--hair); background: var(--paper); }
.st-lab { font: 600 11px/16px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.st-on p:not(.st-lab):not(.stats) { margin-top: 6px; font-size: var(--t-cap); line-height: 21px; color: var(--ink-2); }
.st-on .stats { margin-top: 12px; }

/* without the script the steps read one under another; with it they sit in a grid */
.js .st-body { display: flex; flex-direction: column; background: var(--sheet); visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s .3s; }
.js .st.is-on .st-body { visibility: visible; opacity: 1; transition: opacity .3s ease; }
.st:nth-child(1) { --i: 1; } .st:nth-child(2) { --i: 2; } .st:nth-child(3) { --i: 3; } .st:nth-child(4) { --i: 4; }
.st:nth-child(5) { --i: 5; } .st:nth-child(6) { --i: 6; } .st:nth-child(7) { --i: 7; } .st:nth-child(8) { --i: 8; }
.st:nth-child(9) { --i: 9; } .st:nth-child(10) { --i: 10; }
.stage:has(.st:nth-child(5)) { --steps: 5; } .stage:has(.st:nth-child(6)) { --steps: 6; }
.stage:has(.st:nth-child(7)) { --steps: 7; } .stage:has(.st:nth-child(8)) { --steps: 8; }
.stage:has(.st:nth-child(9)) { --steps: 9; } .stage:has(.st:nth-child(10)) { --steps: 10; }

@media (min-width: 1100px) {
  .js .stage--tour {
    display: grid; grid-template-columns: minmax(0, 540fr) minmax(0, 900fr);
    grid-template-rows: auto auto repeat(var(--steps, 6), auto) 1fr;
    min-height: max(640px, calc(100svh - var(--mast-h)));
  }
  .js .stage--tour > .stage-hero { grid-column: 1; grid-row: 1; border-right: var(--ledge); }
  .js .stage--tour > .tour-head { grid-column: 1; grid-row: 2; }
  .js .stage--tour .steps, .js .stage--tour .st { display: contents; }
  .js .stage--tour .st-head { grid-column: 1; grid-row: calc(var(--i) + 2); background: var(--paper); border-bottom: var(--hair); border-right: var(--ledge); }
  .js .stage--tour .st.is-on .st-head { background: var(--sheet); border-right-color: var(--sheet); box-shadow: inset 5px 0 0 var(--green); }
  .js .stage--tour .st.is-on .st-link { color: var(--navy); font-weight: 720; }
  .js .stage--tour .st.is-on .st-no { color: var(--green-ink); }
  .js .stage--tour > .stage-fill { grid-column: 1; grid-row: -2 / -1; border-right: var(--ledge); background: var(--paper); }
  .js .stage--tour .st-body { grid-column: 2; grid-row: 1 / -1; }
}

/* the walk-through on /how-it-works: a rail of steps, one panel open */
.stage--walk .st-head { border-top: 0; }
/* only the open step takes room, so the page is as long as that step */
.js .stage--walk .st:not(.is-on) .st-body { display: none; }
@media (min-width: 880px) {
  .js .stage--walk {
    display: grid; grid-template-columns: minmax(240px, 264fr) minmax(0, 1176fr);
    grid-template-rows: auto repeat(var(--steps, 7), auto) 1fr;
  }
  .js .stage--walk > .rs-top { grid-column: 1; grid-row: 1; border-right: var(--ledge); border-bottom: var(--hair); }
  .js .stage--walk .steps, .js .stage--walk .st { display: contents; }
  .js .stage--walk .st-head { grid-column: 1; grid-row: calc(var(--i) + 1); background: var(--paper); border-bottom: var(--hair); border-right: var(--ledge); }
  .js .stage--walk .st.is-on .st-head { background: var(--sheet); border-right-color: var(--sheet); box-shadow: inset 5px 0 0 var(--green); }
  .js .stage--walk > .rs-fill { grid-column: 1; grid-row: -2 / -1; border-right: var(--ledge); background: var(--paper); }
  .js .stage--walk .st-body { grid-column: 2; grid-row: 1 / -1; }
}
.stage-ctl { display: flex; align-items: center; gap: 14px; margin-top: var(--s2); }

/* a few frames inside a rail section (Stage Variant="inline"): numbered step buttons in a row over one picture */
.stage--inline { border-top: var(--hair); }
.stage--inline .st { border-top: var(--hair); }
.stage--inline .st-link {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px var(--s2);
  color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 620;
}
.stage--inline .st-link:hover { color: var(--navy); background: var(--paper); }
.sti-say { padding: 12px var(--pad) var(--s2); border-top: var(--hair); font-size: var(--t-body); line-height: 24px; color: var(--ink-2); }
.sti-say p { max-width: var(--measure); }
.sti-ctl { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 10px var(--pad); border-top: var(--hair); background: var(--paper); }
.js .stage--inline .steps { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); }
.js .stage--inline .st { display: contents; }
.js .stage--inline .st-head { grid-row: 1; background: var(--paper); border-bottom: var(--hair); border-left: var(--hair); }
.js .stage--inline .st:first-child .st-head { border-left: 0; }
.js .stage--inline .st.is-on .st-head { background: var(--sheet); border-bottom-color: var(--sheet); box-shadow: inset 0 3px 0 var(--green); }
.js .stage--inline .st.is-on .st-link { color: var(--navy); font-weight: 720; }
.js .stage--inline .st.is-on .st-no { color: var(--green-ink); }
/* every frame shares one cell, so the panel keeps the height of its tallest frame and nothing jumps */
.js .stage--inline .st-body { grid-column: 1 / -1; grid-row: 2; }
.stage--inline:has(.st:nth-child(2)) { --steps: 2; } .stage--inline:has(.st:nth-child(3)) { --steps: 3; } .stage--inline:has(.st:nth-child(4)) { --steps: 4; }
.stage--inline:has(.st:nth-child(5)) { --steps: 5; } .stage--inline:has(.st:nth-child(6)) { --steps: 6; } .stage--inline:has(.st:nth-child(7)) { --steps: 7; }

/* ----- legacy 10 · rails: sections down the left, one open at a time ----- */

.rs-link {
  position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: var(--s1); align-content: center;
  min-height: 64px; padding: 10px 18px 10px var(--s3); color: var(--ink-2); text-decoration: none;
}
.rs-no { grid-row: 1 / span 2; align-self: start; padding-top: 4px; font: 600 var(--t-sm)/1 var(--mono); color: var(--ink-3); }
.rs-title { font-size: 16.5px; line-height: 22px; font-weight: 680; color: var(--ink); letter-spacing: -.005em; }
.rs-sum { font-size: 13.5px; line-height: 19px; font-weight: 500; color: var(--ink-2); }
.rs-link:hover { background: var(--sheet); }
.rs-row { margin: 0; border-top: var(--ledge); }
.rs-panel { min-width: 0; }
.rs-top { padding: var(--s3) var(--s3) 20px; }
.rs-top { container-type: inline-size; }
.rs-top h1 { margin-top: 10px; font-size: min(var(--t-3xl), 14cqi); line-height: 1.06; font-weight: 780; letter-spacing: -.035em; overflow-wrap: break-word; }
.rs-top p { margin-top: 10px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.rs-top .stats { margin-top: 14px; }
/* the rail's top is narrow: a label's words may go under it rather than out of the column */
.rs-top .stat-pair { flex-wrap: wrap; white-space: normal; row-gap: 4px; }
.rs-top .stat-for { white-space: normal; margin-right: 0; }
.rs-fill { padding: 20px var(--s3); }
.rs-end { display: none; }
/* a Note or Also written straight into a section or band sits inside the edge like everything else */
.rs-panel > .note, .st-body > .note, .band > .note { margin: var(--s2) var(--pad); }
.rs-panel > .note + .note, .band > .note + .note { margin-top: calc(-1 * var(--s1)); }
.rs-panel > p:not([class]), .band > p:not([class]) { margin: var(--s2) var(--pad); max-width: var(--measure); color: var(--ink-2); }

.ph { display: flex; align-items: center; gap: 20px; padding: var(--s2) var(--pad); border-bottom: var(--hair); }
.ph-of { font: 700 var(--t-xs)/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); white-space: nowrap; }
.ph-t { font-size: 30px; line-height: 36px; font-weight: 760; letter-spacing: -.028em; }
.ph-side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ph .btn { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-width: 1.5px; }
/* a panel head with two labels keeps its title on one line: the labels' words wrap instead */
@media (min-width: 880px) {
  .ph-t { flex: 0 0 auto; max-width: 55%; }
  .ph .stats { flex: 0 1 auto; min-width: 0; }
  .ph .stat-pair { white-space: normal; }
  .ph .stat-for { white-space: normal; }
}

.rs-item:nth-of-type(1) { --i: 1; } .rs-item:nth-of-type(2) { --i: 2; } .rs-item:nth-of-type(3) { --i: 3; } .rs-item:nth-of-type(4) { --i: 4; }
.rs-item:nth-of-type(5) { --i: 5; } .rs-item:nth-of-type(6) { --i: 6; } .rs-item:nth-of-type(7) { --i: 7; } .rs-item:nth-of-type(8) { --i: 8; }
.rs-item:nth-of-type(9) { --i: 9; } .rs-item:nth-of-type(10) { --i: 10; } .rs-item:nth-of-type(11) { --i: 11; } .rs-item:nth-of-type(12) { --i: 12; }
.rs-item:nth-of-type(13) { --i: 13; } .rs-item:nth-of-type(14) { --i: 14; } .rs-item:nth-of-type(15) { --i: 15; } .rs-item:nth-of-type(16) { --i: 16; }
.rs:has(> .rs-item:nth-of-type(3)) { --rows: 3; } .rs:has(> .rs-item:nth-of-type(4)) { --rows: 4; }
.rs:has(> .rs-item:nth-of-type(5)) { --rows: 5; } .rs:has(> .rs-item:nth-of-type(6)) { --rows: 6; }
.rs:has(> .rs-item:nth-of-type(7)) { --rows: 7; } .rs:has(> .rs-item:nth-of-type(8)) { --rows: 8; }
.rs:has(> .rs-item:nth-of-type(9)) { --rows: 9; } .rs:has(> .rs-item:nth-of-type(10)) { --rows: 10; }
.rs:has(> .rs-item:nth-of-type(11)) { --rows: 11; } .rs:has(> .rs-item:nth-of-type(12)) { --rows: 12; }
.rs:has(> .rs-item:nth-of-type(13)) { --rows: 13; } .rs:has(> .rs-item:nth-of-type(14)) { --rows: 14; }
.rs:has(> .rs-item:nth-of-type(15)) { --rows: 15; } .rs:has(> .rs-item:nth-of-type(16)) { --rows: 16; }
/* a long rail (eleven sections or more, a guide by regime) drops the summaries so every row still fits beside the panel */
.rs:has(> .rs-item:nth-of-type(11)) .rs-sum { display: none; }
.rs:has(> .rs-item:nth-of-type(11)) .rs-link { min-height: 44px; padding-block: 8px; }
.rs:has(> .rs-item:nth-of-type(11)) .rs-no { grid-row: auto; padding-top: 3px; }
.rs--top { --off: 1; }

@media (min-width: 880px) {
  .js .rs { display: grid; grid-template-columns: minmax(240px, 264fr) minmax(0, 1176fr); grid-template-rows: repeat(calc(var(--rows, 8) + var(--off, 0)), auto) 1fr; }
  .js .rs > .rs-top { grid-column: 1; grid-row: 1; border-right: var(--ledge); border-bottom: var(--hair); }
  .js .rs .rs-item { display: contents; }
  .js .rs .rs-row { grid-column: 1; grid-row: calc(var(--i) + var(--off, 0)); border-top: 0; border-bottom: var(--hair); border-right: var(--ledge); background: var(--paper); }
  .js .rs .rs-item.is-open .rs-row { background: var(--sheet); border-right-color: var(--sheet); box-shadow: inset 5px 0 0 var(--green); }
  .js .rs > .rs-fill { grid-column: 1; grid-row: -2 / -1; border-right: var(--ledge); background: var(--paper); }
  .js .rs .rs-panel { grid-column: 2; grid-row: 1 / -1; }
}
.js .rs .rs-item:not(.is-open) > .rs-panel { display: none; }

/* ----- legacy 11 · sections' parts ----- */

.lede { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--s5); padding: 20px var(--pad); }
.lede p { font-size: var(--t-md); line-height: 26px; color: var(--ink-2); max-width: 68ch; }
.lede p.first { font-size: var(--t-lg); line-height: 28px; color: var(--ink); font-weight: 560; letter-spacing: -.01em; }
.lede--one { grid-template-columns: minmax(0, 1fr); }

.how-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--hair); }
.how-two > div { padding: var(--s2) var(--pad) 20px; }
.how-two > div + div { border-left: var(--hair); }
.how-two h3 { font: 700 var(--t-xs)/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 6px; }
.how-two p { font-size: var(--t-md); line-height: 26px; max-width: 62ch; }
.how-two p + p { margin-top: var(--s1); color: var(--ink-2); font-size: 15.5px; line-height: 23px; }
.how-two .cta { margin-top: 12px; }

.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--hair); }
.limits > section { padding: var(--s3) var(--pad); }
.limits > section + section { border-left: var(--hair); }
.limits h3 { font-size: var(--t-lg); line-height: 26px; font-weight: 720; letter-spacing: -.015em; margin-bottom: 6px; }
.limits li { position: relative; padding: 10px 0 10px 26px; border-top: var(--hair); font-size: var(--t-body); line-height: 24px; color: var(--ink-2); }
.limits li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; border-top: 2px solid var(--navy); }
.limits li b { color: var(--ink); font-weight: 650; }
.limits li .stat { margin-right: var(--s1); }
.limits .note { margin-top: var(--s2); }

/* ----- legacy 12 · benefit tiles and their drawings ----- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { display: flex; flex-direction: column; border-right: var(--hair); border-top: var(--hair); }
.tile:nth-child(-n + 3) { border-top: 0; }
.tile:nth-child(3n) { border-right: 0; }
.ill { position: relative; min-height: 192px; padding: 22px 12px; border-bottom: var(--hair); overflow: hidden; display: grid; place-items: center; }
.ill > * { transform: scale(.96); }
/* the title is a button only on a phone; on a wider screen it reads as the heading's plain text */
.tile-btn { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: left; cursor: default; }
.tile-body { padding: var(--s2) var(--pad); display: flex; flex-direction: column; flex: 1; }
.tile h3 { font-size: var(--t-xl); line-height: 28px; font-weight: 740; letter-spacing: -.02em; }
.tile p { margin-top: var(--s1); font-size: var(--t-body); line-height: 24px; color: var(--ink-2); }
.tile p.fine { margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--green); font-size: var(--t-cap); line-height: 21px; }
.tile .stats { margin-top: auto; padding-top: var(--s2); }

/* a card drawn in the product's own style */
.pc { background: #fff; border: 1px solid var(--app-line); border-radius: 10px; box-shadow: 0 1px 2px rgba(29, 36, 21, .06); color: var(--app-ink); font: 500 var(--t-sm)/18px var(--sans); }
.pc code { font: 600 var(--t-xs)/18px var(--mono); color: var(--app-ink); }

/* A · statuses */
.ia { width: 344px; padding: 4px 14px; }
.ia li { display: grid; grid-template-columns: 74px 1fr auto auto; align-items: center; gap: var(--s1); height: 36px; border-top: 1px solid var(--app-line-2); }
.ia li:first-child { border-top: 0; }
.ia li > .chip, .ia li > .swap { grid-column: 4; }
.ia li > .lg { grid-column: 3; }
.ia .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia .lg { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--app-brand-ink); font-weight: 600; }
.ia .lg .tick { width: 15px; height: 15px; background: var(--app-brand); color: #fff; }
.ia .lg .tick::before { width: 7px; height: 4px; }

/* B · evidence */
.ib { position: relative; }
.ib .pc { width: 216px; padding: 12px 14px; }
.ib .pc b { display: block; font-size: 13.5px; }
.ib .pc small { display: block; font-size: var(--t-xs); color: var(--app-ink-2); }
.ib .hold { position: relative; margin-top: 10px; height: 34px; border: 1.5px dashed #9aa48c; border-radius: 7px; display: flex; align-items: center; padding-left: 38px; font-size: var(--t-xs); font-weight: 600; color: var(--app-ink-2); }
.ib .hold .ok { color: var(--app-brand-ink); }
.ib .hold .need { opacity: 0; position: absolute; }
.paper {
  position: relative; width: 74px; height: 96px; flex: none; background: #fff; border: 1.5px solid var(--navy); border-radius: 3px;
  background-image: linear-gradient(var(--navy), var(--navy)), linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule)), linear-gradient(var(--rule), var(--rule));
  background-size: 34px 3px, 50px 2px, 50px 2px, 30px 2px; background-position: 10px 12px, 10px 26px, 10px 34px, 10px 42px; background-repeat: no-repeat;
}
.paper::after { content: ""; position: absolute; right: 9px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1.5px var(--navy), inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--navy); }
.paper--mini { position: absolute; left: var(--s1); top: 4px; width: 20px; height: 25px; background-size: 9px 1.5px, 12px 1.5px, 12px 1.5px, 8px 1.5px; background-position: 3px 4px, 3px 9px, 3px 13px, 3px 17px; }
.paper--mini::after { right: 2px; bottom: 2px; width: 7px; height: 7px; box-shadow: 0 0 0 1px var(--navy); }
.paper--big { position: absolute; left: calc(100% + 18px); top: 50%; margin-top: -48px; opacity: 0; }

/* C · a type and its checks */
.ic { width: 356px; padding: 10px 14px 6px; }
.ic .hd { display: flex; align-items: center; gap: 10px; padding-bottom: var(--s1); font-weight: 700; font-size: 14px; }
.ic .hd code { padding: 1px 5px; background: #eef1e8; border-radius: 4px; }
.ic li { display: grid; grid-template-columns: 1fr 86px 70px; align-items: center; height: 30px; border-top: 1px solid var(--app-line-2); font-size: 12.5px; }
.ic .ev { color: var(--app-ink-2); }
.ic .stt { justify-self: end; font-size: 11px; font-weight: 600; color: var(--app-ink-2); padding: 1px 6px; border: 1px solid #cfd5c6; border-radius: 5px; }
.lock { position: relative; display: inline-block; width: 11px; height: 9px; margin-left: 6px; background: var(--navy); border-radius: 2px; vertical-align: -1px; }
.lock::before { content: ""; position: absolute; left: 2px; top: -6px; width: 7px; height: 8px; border: 1.8px solid var(--navy); border-bottom: 0; border-radius: 4px 4px 0 0; }

/* D · a label being scanned */
.id { position: relative; display: flex; align-items: center; gap: 26px; }
.id .qrl { width: 232px; }
.id .ret { position: absolute; left: var(--s1); top: 50%; width: 104px; height: 104px; margin-top: -52px; }
.id .ret::before, .id .ret::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--green); }
.id .ret::before { clip-path: polygon(0 0, 26% 0, 26% 100%, 0 100%); }
.id .ret::after { clip-path: polygon(74% 0, 100% 0, 100% 100%, 74% 100%); }
.id .beam { position: absolute; left: 11px; top: 50%; width: 98px; height: 3px; margin-top: -45px; background: var(--green); box-shadow: 0 0 0 1px var(--navy); opacity: 0; }
.id .res { display: grid; gap: var(--s1); font: 600 12.5px/16px var(--sans); color: var(--navy); }
.id .res span { display: flex; align-items: center; gap: var(--s1); }

/* E · a plan with pins */
.ie { width: 344px; height: 132px; }
.ie .wall { fill: #eef1ea; stroke: var(--navy); stroke-width: 2; }
.ie .room { fill: #fff; stroke: var(--ink-3); stroke-width: 1.2; }
.ie .bay { stroke: #fff; stroke-width: 1; }
.ie text { font: 600 8.5px var(--mono); fill: var(--ink-3); letter-spacing: .04em; }
.pin { stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.f-ok { fill: var(--ok); } .f-warn { fill: var(--warn); } .f-bad { fill: var(--bad); }

/* F · planned and spent */
.if { width: 344px; height: 132px; }
.if .axis { stroke: var(--ink-3); stroke-width: 1.2; }
.if .grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 3; }
.if .plan { fill: #fff; stroke: var(--navy); stroke-width: 1.5; }
.if .spent { fill: var(--app-brand); }
.if text { font: 600 8.5px var(--mono); fill: var(--ink-3); letter-spacing: .04em; }
.if .col { transform-box: fill-box; transform-origin: 50% 100%; }

/* ----- legacy 12b · cards: a framed grid of pages or things (Cards, Card) ----- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; border-top: var(--hair); border-left: var(--hair); }
.cards--3 > .card:nth-child(3n + 1), .cards--2 > .card:nth-child(2n + 1) { border-left: 0; }
.cards--3 > .card:nth-child(-n + 3), .cards--2 > .card:nth-child(-n + 2) { border-top: 0; }
.card-pic { position: relative; margin: 40px var(--s3) 0; border: 1.5px solid var(--navy); background: var(--app-bg); }
.card-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: var(--s1); padding: var(--s2) var(--s3) 20px; }
.card-h { font-size: var(--t-xl); line-height: 28px; font-weight: 740; letter-spacing: -.02em; }
.card-h a { color: var(--navy); text-decoration-color: var(--green); }
.card-h a:hover { color: var(--green-ink); }
.card-body > p:not(.stats) { font-size: var(--t-body); line-height: 24px; color: var(--ink-2); max-width: 62ch; }
.card-body .table { margin-top: 4px; font-size: 14px; }
.card-stats { margin-top: auto; padding-top: var(--s1); }
.card-foot { padding-top: var(--s1); }
.card-foot .note { font-size: 14px; line-height: 21px; }

/* ----- legacy 13 · facts and price ----- */

.facts { display: grid; grid-template-columns: minmax(0, 900fr) minmax(0, 540fr); }
.facts > .spec { border-right: var(--ledge); }
.spec-h { padding: var(--s2) var(--pad) 6px; font-size: var(--t-lg); line-height: 26px; font-weight: 720; letter-spacing: -.015em; }
.spec-h + dl .spec-row:first-of-type { border-top: var(--hair); }
/* a FactTable inside a table row already has the row's padding */
.table-row .spec-row, .table-row .spec-foot, .table-row .spec-h { padding-inline: 0; }
.spec-row { display: grid; grid-template-columns: 208px 1fr; align-items: baseline; gap: var(--s2); padding: 10px var(--pad); border-top: var(--hair); }
.spec-row:first-of-type { border-top: 0; }
.spec dt { font: 600 var(--t-xs)/20px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { font-size: var(--t-md); line-height: 25px; max-width: 68ch; }
/* a table or fact table in a table row takes the panel's width (up to 960 px), not the 640 px of a text column */
.table-row:has(> .spec), .table-row:has(> .table), .table-row:has(> div > .table) { grid-template-columns: 200px minmax(0, 960px); }
.spec-foot { padding: 12px var(--pad) var(--s2); border-top: var(--hair); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.price { padding: var(--s3) var(--pad); display: flex; flex-direction: column; background: var(--paper); }
.price-fig { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; }
.price-fig b { font: 760 76px/72px var(--sans); letter-spacing: -.05em; }
.price-fig span { font-size: var(--t-md); line-height: 24px; color: var(--ink-2); max-width: 12em; }
.price ul { margin-top: var(--s2); border-top: var(--hair); }
.price li { padding: var(--s1) 0; border-bottom: var(--hair); font-size: var(--t-body); line-height: 24px; }
/* a panel beside a long fact table sits at the top of its column instead of filling it */
.price--top { align-self: start; }
/* a plan: its price as a band across the top, then the list of what it includes, framed together */
.plan { border-top: var(--ledge); }
.plan + .plan { margin-top: var(--s3); }
@media (min-width: 880px) {
  .price--band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s4); align-items: center; padding-block: 20px; }
  .price--band .eyebrow { grid-column: 1; }
  .price--band .price-fig { grid-column: 1; margin-top: 4px; }
  .price--band ul { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .price--band .price-foot { grid-column: 1 / -1; }
}
.price-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 20px; }


/* ----- legacy 16 · the holding page (Components/Pages/ComingSoon.razor, not edited here) ----- */

.holding { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--s4) var(--s2); background: var(--navy); }
.holding-card { max-width: 560px; width: 100%; background: var(--sheet); border: var(--ledge); padding: var(--s5) var(--s4); text-align: center; }
.holding-card img { display: block; margin: 0 auto var(--s3); width: 220px; height: auto; }
.holding-card h1 { font-size: var(--t-3xl); line-height: 42px; font-weight: 780; letter-spacing: -.03em; margin: 0 0 12px; }
.holding-lead { font-size: var(--t-md); margin: 0 0 var(--s2); }
.holding-contact, .holding-signin { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-2); }
.holding-contact a, .holding-signin a { font-weight: 650; }
.holding-foot { margin: var(--s3) 0 0; font-size: 13.5px; color: var(--ink-3); }


/* ----- legacy 17 · pages awaiting restyling (the two API pages): plain, readable, framed ----- */

.page-hero, .section { padding: var(--s5) var(--pad); border-bottom: var(--hair); }
.page-hero h1 { font-size: var(--t-3xl); line-height: 42px; font-weight: 780; letter-spacing: -.03em; margin: 12px 0; }
.section h2 { font-size: var(--t-2xl); line-height: 34px; font-weight: 760; margin: 0 0 12px; }
.section h3 { font-size: var(--t-lg); line-height: 26px; margin: var(--s2) 0 var(--s1); }
.section p, .page-hero p { max-width: var(--measure); margin-bottom: 12px; color: var(--ink-2); }
.section pre { overflow-x: auto; max-width: 100%; padding: var(--s2); background: var(--navy); color: var(--on-navy); font: 500 var(--t-sm)/20px var(--mono); }
.section table { border-collapse: collapse; font-size: 14.5px; }
.section .api-fields { display: block; max-width: 100%; overflow-x: auto; }
.section .wrap > *, .section .row > *, .section .api-layout > * { min-width: 0; }
.inline-code, .api-path, .section td code, .page-hero code { overflow-wrap: anywhere; }
pre.api-code { display: block; max-width: 100%; overflow-x: auto; }
.api-example, .api-section, .row-media, .row-copy, .text-card { min-width: 0; max-width: 100%; }
.section th, .section td { text-align: left; padding: 6px 12px 6px 0; border-top: var(--hair); vertical-align: top; }
.icon { width: 20px; height: 20px; flex: none; }

/* code panels (CodeBlock) and the API reference's routes */
.code { position: relative; min-width: 0; margin-top: 30px; border: 1.5px solid var(--navy); background: var(--navy); }
.code-tag { position: absolute; left: -1.5px; top: -24px; padding: 4px var(--s1); background: var(--navy); color: #fff; font: 600 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.code--answer .code-tag { background: var(--green); color: var(--navy); box-shadow: 0 0 0 1.5px var(--navy); }
.code--error .code-tag { background: var(--sheet); color: var(--navy); border: 1.5px solid var(--navy); top: -26px; }
.code pre { margin: 0; max-width: 100%; overflow-x: auto; padding: 14px var(--s2); color: var(--on-navy); font: 500 var(--t-sm)/20px var(--mono); tab-size: 2; }
.code pre:focus-visible { outline-color: var(--green); outline-offset: -3px; }
.figure .bench .code { margin-inline: 0; }
.table-row > .code { margin-top: 26px; }
.routes-h { padding: var(--s2) var(--pad) var(--s1); border-top: var(--hair); }
.routes-h .cap { margin-top: 4px; max-width: var(--measure); }
.route { border-top: var(--hair); }
.route-sum {
  display: grid; grid-template-columns: 64px minmax(0, 340px) minmax(0, 1fr); gap: 4px var(--s2); align-items: baseline;
  min-height: 48px; padding: 12px 48px 12px var(--pad); cursor: pointer; list-style: none; position: relative;
}
.route-sum::-webkit-details-marker { display: none; }
.route-sum::after { content: ""; position: absolute; right: 22px; top: 20px; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
.route[open] > .route-sum::after { transform: rotate(-135deg); top: 24px; }
.route-sum:hover { background: var(--paper); }
.route[open] > .route-sum { background: var(--paper); box-shadow: inset 5px 0 0 var(--green); }
.route-m { font: 700 var(--t-xs)/20px var(--mono); letter-spacing: .06em; color: var(--green-ink); }
.route-sum .api-path { font: 600 var(--t-sm)/20px var(--mono); color: var(--navy); overflow-wrap: anywhere; }
.route-p { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.route-body { display: grid; gap: var(--s1); padding: var(--s2) var(--pad) var(--s3) calc(var(--pad) + 80px); border-top: var(--hair); max-width: 1040px; }
.route-body > p { max-width: var(--measure); font-size: 15.5px; line-height: 23px; color: var(--ink-2); }
.route-body .eyebrow { margin-top: var(--s1); }
.route-body .code { margin-top: 24px; }


/* ----- legacy 18 · animation: only inside a stage step the script marks .run, and in looping tiles ----- */

@keyframes ov-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes blip { 0% { opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rip { 0% { opacity: .95; transform: scale(.25); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes ptr-move { 0% { left: var(--fx); top: var(--fy); opacity: 0; } 15% { left: var(--fx); top: var(--fy); opacity: 1; } 100% { left: var(--x); top: var(--y); opacity: 1; } }
@keyframes scan { 0% { top: 8%; opacity: 0; } 10% { opacity: 1; } 50% { top: 88%; } 90% { opacity: 1; } 100% { top: 8%; opacity: 0; } }
@keyframes prog { from { width: 0; } to { width: 100%; } }
@keyframes count { from { --n: 0; } to { --n: var(--to, 0); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: none; } }

.run [data-t] { animation: ov-in .45s cubic-bezier(.2, .8, .2, 1) var(--t, 0ms) both; }
.run .hl--temp { animation: blip 1.2s ease var(--t, 0ms) both; }
.run .ring, .run .mk[data-t] { animation: pop .45s cubic-bezier(.2, .9, .3, 1.25) var(--t, 0ms) both; }
.run .ptr { animation: ptr-move var(--d, 1100ms) cubic-bezier(.45, .05, .2, 1) var(--t, 0ms) both; }
.run .ptr--click::after { animation: rip .7s ease-out calc(var(--t, 0ms) + var(--d, 1100ms)) both; }
.run .swap .from { opacity: 1; animation: fade-out .5s ease var(--swap, 0ms) both; }
.run .swap .to { animation: fade .5s ease var(--swap, 0ms) both; }
.run .scan-line { animation: scan 1.6s ease-in-out var(--t, 0ms) 2 both; }
.run .leaders { animation: fade .5s ease var(--leaders, 3500ms) both; }
.run .tally-n { animation: count 1.6s linear calc(var(--t, 0ms) + 200ms) both; }
.run .stp-arrow, .run .call-line { animation: draw-x .45s ease-out var(--t, 0ms) both; }
.is-frozen .run *, .is-frozen .run *::after, .is-frozen .st-prog { animation-play-state: paused !important; }
.st.is-on.is-timed .st-prog { animation: prog var(--dwell, 7s) linear both; }

.scan-wrap { position: relative; display: block; }
.scan-line { position: absolute; left: 4%; width: 37%; height: 3px; top: 8%; background: var(--green); box-shadow: 0 0 0 1px var(--navy); opacity: 0; }

/* loops in the benefit tiles: nine seconds each, holding on the finished state, then easing back */
@keyframes l-chip-from { 0%, 30% { opacity: 1; } 37%, 90% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes l-chip-to { 0%, 30% { opacity: 0; } 37%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes l-show { 0%, 18% { opacity: 0; transform: translateX(-6px); } 26%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateX(-6px); } }
@keyframes l-paper { 0%, 10% { transform: none; opacity: 1; } 30%, 100% { transform: translate(-236px, 22px) scale(.3); opacity: 0; } }
@keyframes l-in { 0%, 28% { opacity: 0; } 36%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes l-out { 0%, 28% { opacity: 1; } 36%, 90% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes l-r1 { 0%, 5% { opacity: 0; transform: translateY(5px); } 12%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes l-r2 { 0%, 13% { opacity: 0; transform: translateY(5px); } 20%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes l-r3 { 0%, 21% { opacity: 0; transform: translateY(5px); } 28%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes l-r4 { 0%, 33% { opacity: 0; transform: scale(.5); } 40%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes l-beam { 0%, 4% { opacity: 0; transform: translateY(0); } 8% { opacity: 1; } 20% { transform: translateY(88px); } 32% { opacity: 1; transform: translateY(0); } 36%, 100% { opacity: 0; transform: translateY(0); } }
@keyframes l-pin { 0%, 6% { opacity: 0; transform: scale(.2); } 12%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes l-col { 0%, 5% { transform: scaleY(0); } 17%, 90% { transform: none; } 98%, 100% { transform: scaleY(0); } }

.js .loops .ia .swap .from { opacity: 1; animation: l-chip-from 9s infinite; }
.js .loops .ia .swap .to { animation: l-chip-to 9s infinite; }
.js .loops .ia .lg { animation: l-show 9s infinite; }
.js .loops .ib .paper--big { animation: l-paper 9s infinite cubic-bezier(.5, 0, .3, 1); }
.js .loops .ib .hold .paper--mini, .js .loops .ib .hold .ok { animation: l-in 9s infinite; }
.js .loops .ib .hold .need { animation: l-out 9s infinite; }
.js .loops .ic li:nth-of-type(1) { animation: l-r1 9s infinite; }
.js .loops .ic li:nth-of-type(2) { animation: l-r2 9s infinite; }
.js .loops .ic li:nth-of-type(3) { animation: l-r3 9s infinite; }
.js .loops .ic .lock { animation: l-r4 9s infinite; }
.js .loops .id .beam { animation: l-beam 9s infinite ease-in-out; }
.js .loops .id .res span:nth-child(1) { animation: l-in 9s infinite; }
.js .loops .id .res span:nth-child(2) { animation: l-r4 9s infinite; }
.js .loops .ie .pin { animation: l-pin 9s infinite; }
.js .loops .ie .pin:nth-of-type(2) { animation-delay: .6s; }
.js .loops .ie .pin:nth-of-type(3) { animation-delay: 1.2s; }
.js .loops .ie .pin:nth-of-type(4) { animation-delay: 1.8s; }
.js .loops .if .col { animation: l-col 9s infinite; }
.js .loops .if .g-2 .col { animation-delay: .45s; }
.js .loops .if .g-3 .col { animation-delay: .9s; }
.js .loops .if .g-4 .col { animation-delay: 1.35s; }
.js .loops .if .g-5 .col { animation-delay: 1.8s; }
.loops.is-held *, .loops.is-off * { animation-play-state: paused !important; }

/* ----- legacy 19 · reduced motion and no script ----- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-motion] { display: none !important; }
  .swap .from { opacity: 0 !important; }
  .swap .to { opacity: 1 !important; }
}
.no-js [data-js] { display: none !important; }
.no-js .st-link { pointer-events: none; }
.no-js .stage--tour .st-link { font-size: var(--t-xl); line-height: 28px; font-weight: 740; color: var(--navy); padding-block: var(--s2); }
.no-js .rs-row .rs-link { background: var(--paper); }
/* without the script, positions on a picture come only from CSS attr() where the browser has it. Elsewhere the markers
   and highlights stay out of the way and the numbered notes still read in order. */
.no-js .ov [data-x], .no-js .ov [data-y], .no-js .screen > [data-x] { visibility: hidden; }
@supports (left: attr(data-x type(<percentage>), 0%)) {
  .no-js .ov [data-x], .no-js .ov [data-y], .no-js .screen > [data-x] { visibility: visible; }
}


/* ----- legacy 20 · narrower screens ----- */

@media (max-width: 1279.98px) {
}

@media (max-width: 1099.98px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(-n + 3) { border-top: var(--hair); }
  .tile:nth-child(-n + 2) { border-top: 0; }
  .tile:nth-child(3n) { border-right: var(--hair); }
  .tile:nth-child(2n) { border-right: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts > .spec { border-right: 0; border-bottom: var(--ledge); }
  .key--4 { grid-template-columns: repeat(2, 1fr); }
  .key--4 > li:nth-child(3) { border-left: 0; }
  .key--4 > li:nth-child(n + 3) { border-top: var(--hair); }
  .js .stage--tour { display: grid; grid-template-columns: minmax(0, 1fr); }
  .js .stage--tour .steps, .js .stage--tour .st { display: contents; }
  .js .stage--tour > .stage-hero { grid-row: 1; }
  .js .stage--tour > .tour-head { grid-row: 2; }
  .js .stage--tour .st-body { grid-row: 3; grid-column: 1; }
  .js .stage--tour .st-head { grid-row: calc(var(--i) + 3); background: var(--paper); border-top: var(--hair); }
  .js .stage--tour .st.is-on .st-head { box-shadow: inset 5px 0 0 var(--green); background: var(--sheet); }
  .js .stage--tour .st.is-on .st-link { color: var(--navy); font-weight: 720; }
  .js .stage--tour > .stage-fill { display: none; }
  .js .stage--tour .st { border-top: 0; }
  .js .stage--tour .st:not(.is-on) .st-body { display: none; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 > .card { border-left: var(--hair); border-top: var(--hair); }
  .cards--3 > .card:nth-child(2n + 1) { border-left: 0; }
  .cards--3 > .card:nth-child(-n + 2) { border-top: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .contact-main { border-right: 0; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option:nth-child(odd) { border-left: 0; }
  .option { border-top: var(--hair); }
}

@media (max-width: 879.98px) {
  :root { --pad: var(--s2); }
  body { font-size: var(--t-body); }


  .bar { min-height: 52px; flex-wrap: wrap; gap: 6px 12px; padding-block: var(--s1); }
  .bar-say { display: none; }
  .bar-title { font-size: 18px; }
  .ctl { min-height: 44px; }
  .ctl--icon { width: 44px; }

  /* the tour */
  .stage-hero { padding: 20px var(--pad); }
  .stage-hero h1 { font-size: 34px; line-height: 36px; }
  .stage-hero .lead-line { font-size: 18px; line-height: 26px; margin-top: 12px; }
  .stage-hero .cta { flex-direction: column; align-items: stretch; }
  .stage-hero .cta .btn { min-height: 48px; padding-inline: var(--s1); }
  .stage-hero .cta-tel { flex-basis: 100%; }
  .tour-head { padding-inline: var(--pad) var(--s1); flex-wrap: nowrap; }
  .tour-head .bar-title { white-space: nowrap; }
  .js .tour-head [data-stage-prev], .js .tour-head [data-stage-next] { display: none; }
  .stage--tour .st-link { min-height: 48px; padding-inline: var(--pad); font-size: var(--t-body); }
  .st-copy { grid-template-columns: 1fr; }
  .st-say { padding: 12px var(--pad) 14px; }
  .st-h { font-size: 19px; line-height: 25px; }
  .st-say p:not(.st-n):not(.st-h) { font-size: var(--t-body); line-height: 24px; }
  .st-on { border-left: 0; border-top: var(--hair); padding: 12px var(--pad) 14px; }
  .fbar { --bar-h: 28px; height: 28px; }
  .fdots { display: none; }

  /* a full screen on a phone shows whole, scaled to the width, so every marker stays on the picture with its note */
  .screen > .strip { position: static; width: auto !important; }
  .strip { grid-auto-flow: row; }
  .strip-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--s1) 12px; border-left: 0; border-top: 1px solid var(--navy-3); }
  .strip-cell:first-child { border-top: 0; }
  .strip-lab { margin: 0; }
  .ptr { width: 18px; height: 18px; }
  .ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-width: 2px; }
  .hl { border-width: 2px; border-radius: 4px; }
  .mk { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11.5px; border-width: 1.5px; }
  /* a marker never sits half off the picture */
  .mk:not(.mk--flow) { left: clamp(12px, var(--x), calc(100% - 12px)) !important; top: clamp(12px, var(--y), calc(100% - 12px)) !important; }
  .tally { gap: 7px; padding: 4px 7px 5px; border-left-width: 3px; font-size: 8.5px; line-height: 11px; }
  .tally-n { font-size: 15px; line-height: 15px; }
  .call { padding: 5px 8px 6px; border-left-width: 3px; font-size: 10.5px; line-height: 14px; }
  .call-h { margin-bottom: 3px; font-size: 8.5px; line-height: 11px; }
  .call-row { gap: 5px; }
  .call-row + .call-row { margin-top: 4px; }
  .call-row--small { display: none; }
  .call code { font-size: 10px; }
  .call .chip, .call .tick { height: 16px; font-size: 9.5px; padding: 0 6px; }
  .call .tick { width: 14px; padding: 0; }
  .drawn-tag { font-size: 9px; line-height: 12px; padding: 1px 4px; }

  /* a free composition grows to its content. The label-to-phone figure keeps its 16:10 shape where markers point into
     it (How it works), and stacks where it carries its own numbered steps (the home tour): label and steps, then the phone */
  .crop--bench { aspect-ratio: auto; }
  .crop--bench > .canvas { position: relative; }
  .crop--bench:has(.stp) { aspect-ratio: 16 / 10; }
  .crop--bench:has(.stp) > .canvas { position: absolute; }
  .stp-label .drawn-tag { margin-top: 6px; }
  .crop--bench:has(.stp--steps) { aspect-ratio: auto; }
  .crop--bench:has(.stp--steps) > .canvas { position: relative; }
  .stp--steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2) 14px; padding: var(--s2) var(--s2) 0; }
  .stp--steps .stp-label { position: static; width: auto; }
  .stp--steps .stp-steps { position: static; align-self: center; gap: 12px; }
  .stp--steps .stp-steps li { font-size: 10.5px; line-height: 14px; gap: 8px; }
  .stp--steps .stp-arrow { display: none; }
  .stp--steps .stp-phone { position: static; grid-column: 1 / -1; justify-self: center; width: 80%; }
  /* a drawn screen keeps its shape on a phone, with smaller type */
  .crop--bench:has(.setup) { aspect-ratio: 16 / 10; }
  .crop--bench:has(.setup) > .canvas { position: absolute; }
  .setup { padding: var(--s1) 9px; border-radius: 7px; font-size: 9px; top: 6%; left: 3%; width: 94%; }
  .setup-h { font-size: 12px; line-height: 16px; gap: 6px; }
  .setup-h .of { font-size: 9.5px; line-height: 14px; }
  .setup-bar { height: 5px; margin: 6px 0 var(--s1); }
  .setup-steps { gap: 4px; }
  .setup-steps li { min-height: 0; padding: 4px 5px; gap: 4px; font-size: 8.5px; line-height: 11px; border-radius: 5px; }
  .setup-steps .dot { width: 9px; height: 9px; border-width: 1px; }
  .setup-steps .done .dot::before { width: 4px; height: 2px; border-width: 1.2px; margin-top: -1px; }
  .setup-next { margin-top: 6px; font-size: 9px; line-height: 12px; }
  .setup--card { top: 52%; width: 50%; }
  .setup-big { font-size: 9px; line-height: 12px; }
  .setup-big b { font-size: 20px; line-height: 22px; }
  .setup-list li { padding: 2px 0; font-size: 9px; }
  .setup .chip { height: 16px; font-size: 9px; padding: 0 6px; }
  /* a stage inside a section: the step buttons show their numbers, the open one its title too */
  .js .stage--inline .steps { grid-template-columns: repeat(var(--steps, 4), auto); }
  .js .stage--inline .st:not(.is-on) .st-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .js .stage--inline .st-link { justify-content: center; padding: 6px 10px; }
  .sti-say { padding: 10px var(--pad) 12px; font-size: 15px; line-height: 22px; }

  /* the walk-through and rails become accordions */
  .js .stage--walk .st-head { border-top: var(--hair); }
  .js .stage--walk .st.is-on .st-link { background: var(--sheet); box-shadow: inset 5px 0 0 var(--green); }
  .js .stage--walk .st.is-on .st-body { border-top: var(--hair); }
  .rs-row { border-top: var(--hair); }
  .rs-item:first-of-type .rs-row { border-top: 0; }
  .rs-link { min-height: 48px; padding: 6px 44px 6px var(--pad); background: var(--paper); }
  .js .rs-link::after {
    content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
    border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg);
  }
  .js .rs-item.is-open .rs-link, .js .st.is-on .rs-link { background: var(--sheet); box-shadow: inset 5px 0 0 var(--green); }
  .js .rs-item.is-open .rs-link::after, .js .st.is-on .rs-link::after { transform: rotate(-135deg); margin-top: -2px; }
  .js .rs-item.is-open .rs-panel { border-top: var(--hair); }
  .rs-top { padding: 20px var(--pad) var(--s2); }
  .rs-top h1 { font-size: var(--t-2xl); line-height: 34px; }
  .rs-top { container-type: normal; }
  .rs-fill { display: none; }
  .rs-end { display: block; padding: var(--s2) var(--pad) 20px; border-top: var(--hair); background: var(--paper); }
  .ph { flex-wrap: wrap; gap: 6px 12px; padding: 12px var(--pad); }
  .ph-t { flex-basis: 100%; order: 2; font-size: var(--t-xl); line-height: 28px; }
  .js .rs-panel .ph-t, .js .stage--walk .ph-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ph-side { display: flex; flex-basis: 100%; order: 3; gap: var(--s1); margin-left: 0; }
  .ph-side .btn { flex: 1; min-height: 44px; }
  .ph .stats { order: 1; }
  .lede, .how-two, .limits, .key--3 { grid-template-columns: 1fr; }
  .key--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key--4 > li:nth-child(2n) { border-left: var(--hair); }
  .key--4 > li:nth-child(2) { border-top: 0; }
  .lede { gap: 10px; padding: 14px var(--pad) var(--s2); }
  .lede p { font-size: var(--t-body); line-height: 24px; }
  .lede p.first { font-size: var(--t-md); line-height: 25px; }
  .how-two > div + div, .limits > section + section, .key > li { border-left: 0; }
  .how-two > div + div, .limits > section + section, .key > li + li { border-top: var(--hair); }
  .how-two > div, .limits > section { padding: 14px var(--pad); }
  .how-two p { font-size: var(--t-body); line-height: 24px; }
  .key > li { padding: var(--s1) var(--pad) 10px; font-size: 15px; line-height: 22px; }
  .key b { margin-bottom: 2px; font-size: var(--t-md); }
  .key b i { width: 22px; height: 22px; }
  .limits li { padding-block: var(--s1); font-size: 15px; line-height: 22px; }
  .table-row, .table-row:has(> .spec), .table-row:has(> .table), .table-row:has(> div > .table) { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* tables wrap their figures on a phone, and a table still too wide scrolls inside itself, never the page */
  .table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; line-height: 20px; }
  .table th, .table td { padding-right: 8px; }
  .table td.num { white-space: normal; font-size: 12.5px; line-height: 20px; }
  /* a long button label wraps rather than pushing the page sideways */
  .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; padding-block: 8px; }
  .table thead { display: none; }
  .table td.hide-narrow, .table th.hide-narrow { display: none; }
  /* with the script, each row is a small block: the first cell as its heading, the others under it, each labelled with
     its column's heading, so a three-column table is not squeezed into three narrow columns */
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack th { display: block; }
  .table--stack { overflow: visible; }
  .table--stack tr { padding: 10px 0; border-top: var(--hair); }
  .table--stack tbody tr:first-child { border-top: 0; }
  .table--stack td, .table--stack th { padding: 2px 0; border-top: 0; font-size: 15px; line-height: 22px; }
  .table--stack tr > :first-child { font-weight: 650; color: var(--navy); }
  .table--two tr > * { display: inline; }
  .table--two tr > :first-child { margin-right: 8px; }
  .table--stack [data-label]::before { content: attr(data-label); margin-right: 8px; font: 600 11px/20px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

  /* figures and their notes */
  .bench--pad { padding: 40px var(--pad) var(--s2); }
  .clip { flex: 0 0 auto; width: min(100%, 300px); }
  .afig-foot { flex-direction: column; gap: 10px; padding: 12px var(--pad) var(--s2); }
  .afig-foot:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .afig-foot .cap { font-size: 14px; line-height: 21px; }
  .notes > li { padding: 10px var(--pad) var(--s1) 52px; }
  .notes > li::before { left: var(--pad); top: 10px; }
  .afig--wide .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afig--wide .notes > li { padding: 10px 10px 10px 42px; font-size: 14px; line-height: 20px; border-top: var(--hair); }
  .afig--wide .notes > li:nth-child(2n) { border-left: var(--hair); }
  .afig--wide .notes > li:nth-child(-n + 2) { border-top: 0; }
  .afig--wide .notes > li::before { left: 10px; top: 10px; width: 24px; height: 24px; font-size: var(--t-xs); }
  .afig--wide .notes b { font-size: 15px; line-height: 20px; }
  /* an odd last note takes the whole row rather than sitting alone in half of it */
  .afig--wide .notes > li:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
  .afig--role .notes > li { font-size: 15px; line-height: 22px; border-top: var(--hair); }
  .afig--role .notes > li:first-child { border-top: 0; }
  .afig--role .bench { padding: 36px var(--pad) 12px; }
  .role-lead { padding: 14px var(--pad) 10px; font-size: var(--t-md); line-height: 25px; }
  .afig--role .afig-notes .note { margin: 10px var(--pad) var(--s2); }

  .cards, .cards--2, .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .cards > .card, .cards--3 > .card { border-left: 0; border-top: var(--hair); }
  .cards > .card:first-child { border-top: 0; }
  .card-pic { margin: 32px var(--pad) 0; }
  /* a card's picture is a glimpse of the screen on a phone, so it takes less height than on a wide screen */
  .card-pic img { aspect-ratio: 16 / 9; }
  .card-body { padding: 12px var(--pad) var(--s2); }
  .card-h { font-size: var(--t-lg); line-height: 25px; }

  .route-sum { grid-template-columns: 52px minmax(0, 1fr); padding-right: 44px; }
  .route-p { grid-column: 1 / -1; font-size: 14.5px; line-height: 21px; }
  .route-body { padding: 12px var(--pad) var(--s2); }
  /* a request or answer wraps its long lines on a phone instead of hiding them off to the side */
  .code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 19px; }

  /* benefit tiles: an accordion, every title showing */
  .tiles { grid-template-columns: 1fr; }
  .tile { border-right: 0 !important; border-top: var(--hair) !important; }
  .tile:first-child { border-top: 0 !important; }
  .ill { min-height: 150px; padding: 16px 8px; }
  .ill > * { transform: scale(.86); }
  .tile-body { padding: 0; }
  .tile h3 { font-size: 18px; line-height: 23px; background: var(--paper); }
  .tile-btn { position: relative; display: flex; align-items: center; min-height: 56px; padding: 10px 48px 10px var(--pad); }
  .tile p { font-size: 15.5px; line-height: 23px; margin: 6px var(--pad) 0; }
  .tile p.fine { margin: 10px var(--pad) 0; }
  .tile .stats { padding: 10px var(--pad) var(--s2); margin-top: 0; }
  .js .tile { display: grid; }
  .js .tile .ill { order: 2; border-top: var(--hair); }
  .js .tile .tile-body { display: contents; }
  .js .tile h3 { order: 1; }
  .js .tile .tile-more { order: 3; }
  .js .tile .stats { order: 4; }
  .js .tile-btn { cursor: pointer; }
  .js .tile-btn::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
  .js .tile.is-open h3 { background: var(--sheet); box-shadow: inset 5px 0 0 var(--green); }
  .js .tile.is-open .tile-btn::after { transform: rotate(-135deg); margin-top: -2px; }
  .js .tile:not(.is-open) .ill, .js .tile:not(.is-open) .tile-more, .js .tile:not(.is-open) .stats { display: none; }

  /* facts, price and footer */
  /* on a phone the term runs into its sentence, as a Note's label does, so a long table costs a line less per row */
  .spec-row { display: block; padding: 10px var(--pad); }
  .spec dt { display: inline; margin-right: 8px; color: var(--navy); }
  .spec dd { display: inline; font-size: var(--t-body); line-height: 24px; }
  .price-fig b { font-size: 56px; line-height: 56px; }
  .price--band { padding-block: 18px; }
  .price--band ul { margin-top: 12px; }
  .price-foot .btn { flex: 1 1 0; }

  /* tap targets of at least 44 px on a phone: the crumb, the footer's contact and notices, the phone line, card titles */
  .crumb a, .cta-tel a { display: inline-flex; align-items: center; min-height: 44px; }
  .card-h a { display: inline-flex; align-items: center; min-height: 44px; }
  .notice-toc a { display: flex; align-items: center; min-height: 44px; padding: 0; }

  /* plain pages */
  .page-top { padding: var(--s3) var(--pad); }
  .page-top h1, .simple h1 { font-size: var(--t-2xl); line-height: 34px; }
  .notice { grid-template-columns: 1fr; }
  .notice-toc { border-right: 0; border-bottom: var(--hair); padding: var(--s2) var(--pad); }
  .form-grid { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .option { border-left: 0; }
  .simple { padding: var(--s5) var(--pad); }
}

/* a narrow phone: a figure's notes in one column, a rule under each */
@media (max-width: 479.98px) {
  .afig--wide .notes { grid-template-columns: minmax(0, 1fr); }
  .afig--wide .notes > li,
  .afig--wide .notes > li:nth-child(2n),
  .afig--wide .notes > li:nth-child(-n + 2) { border-left: 0; border-top: 0; border-bottom: var(--hair); }
  .afig--wide .notes > li:last-child:nth-child(odd):not(:first-child) { grid-column: auto; }
}

/* The private preview's sign-in page (Components/Pages/PreviewSignIn.razor), on the holding page's card. */
.preview-form { display: grid; gap: var(--s2); max-width: 360px; margin: var(--s3) auto 0; text-align: left; }
.preview-form .btn { justify-self: start; }
.preview-error { margin: 0; color: var(--bad); font-weight: 650; font-size: 15px; }


/* The legacy pages sit on warm grey like the rest, and their top-level blocks become white cards. */
.wrap > .page-hero, .wrap > .section { margin-block: 22px; background: var(--card); border: 1px solid var(--edge); border-radius: 26px; box-shadow: var(--shadow); }
.wrap > .page-hero { padding-bottom: 0; }
.wrap > .afig, .wrap > .stage, .wrap > .rail, .wrap > .figure { margin-block: 22px; }
