/* Margent · trymargent.com · tokens and rules in DESIGN.md */
:root {
  --primary: #3449c6; --primary-pressed: #2a3ca8; --on-primary: #fff;
  --canvas: #fafbfd; --surface: #fff; --surface-tint: #f3f4fa; --lavender: #eaecf8;
  --night: #15161f;
  --ink: #1f1d33; --ink-2: #5a5876; --on-dark: #ececf2; --fog: #b7b7c4;
  --hairline: #e3e4ee; --hairline-dark: #2b2c3a; --error: #b3261e;
  --ok: #1f7a4d; --ok-tint: #e2f3ea; --ecart: #b4541a; --ecart-tint: #fbeadb; --nv: #5f627a; --nv-tint: #ebecf3;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(31,29,51,.04), 0 12px 32px rgba(31,29,51,.06);
  --container: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; overflow-x: clip; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-feature-settings: "kern"; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: 14px; }
.measure { max-width: 62ch; }
.lead { font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.5; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eyebrow { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.hero-grid > *, .example-grid > *, .example-stack > *, .work-grid > *, .start-grid > *, .steps > *, .form-grid > * { min-width: 0; }
.section { padding: 104px 0 0; }
main > .section:last-of-type { padding-bottom: 104px; }
.section-head { margin-bottom: 40px; }
.section-head p { margin-top: 14px; }
@media (max-width: 640px) { .section { padding: 64px 0 0; } main > .section:last-of-type { padding-bottom: 64px; } .section-head { margin-bottom: 28px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 6px; border: 0; font: 500 15px/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, transform .15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-pressed); }
.btn-tint { background: rgba(52,73,198,.10); color: var(--ink); }
.btn-tint:hover { background: rgba(52,73,198,.16); }
.btn-glass { background: rgba(183,183,196,.16); color: var(--on-dark); height: 40px; padding: 0 18px; }
.btn-glass:hover { background: rgba(183,183,196,.26); }
.nav .btn-glass { background: #fff; color: var(--ink); }
.nav .btn-glass:hover { background: var(--lavender); }
.btn:active { transform: translateY(1px); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--night); color: var(--on-dark); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { color: var(--on-dark); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 24px; height: 24px; flex: none; fill: currentColor; }
.footer .brand-mark { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--on-dark); font-size: 15px; font-weight: 500; }
.nav-links a:hover { background: rgba(183,183,196,.14); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { color: var(--fog); font-size: 14px; font-weight: 500; padding: 0 10px; height: 40px; display: inline-flex; align-items: center; border-radius: 999px; }
.lang:hover { color: var(--on-dark); text-decoration: none; background: rgba(183,183,196,.14); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav .btn { padding: 0 14px; font-size: 14px; } .nav .btn .long { display: none; } }
@media (min-width: 521px) { .nav .btn .short { display: none; } }

/* Hero: centred copy, the week's packages panel under it, three commitment pills */
.hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; padding: 36px 0 44px; }
.hero > .container { width: 100%; }
[id] { scroll-margin-top: 88px; }
.hero-copy { text-align: center; margin: 0 auto; max-width: 760px; }
.hero .lead { margin: 16px auto 0; max-width: 66ch; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.tlink { font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; height: 44px; padding: 0 6px; }
.hero-panel { margin: 30px auto 0; }
.pills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tp { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.tp svg { width: 15px; height: 15px; stroke: var(--ink-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* short laptops: tighten so the whole hero still fits above the fold */
@media (min-width: 641px) and (max-height: 820px) {
  .hero { padding: 26px 0 34px; }
  .hero h1 { font-size: clamp(36px, 4.4vw, 52px); }
  .hero .lead { margin-top: 12px; font-size: 18px; }
  .hero-actions { margin-top: 18px; }
  .hero-panel { margin-top: 24px; }
  .tbl td { height: 40px; }
}
@media (max-width: 640px) { .hero { min-height: 0; padding: 56px 0 48px; } .hero-panel { margin-top: 32px; } }

/* Table panel (hero « Dossiers de la semaine »). Generated by tools/render-panels.js; final state is in the HTML, site.js only animates. */
.panel { margin: 0; background: var(--surface); border: 1px solid #d9dae6; border-radius: 10px; overflow: hidden; text-align: left; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-tint); border-bottom: 1px solid var(--hairline); }
.panel-title { font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.panel-title .sub { color: var(--ink-2); font-weight: 400; font-size: 13.5px; }
.panel-meta { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 640px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; padding: 8px 12px; border-bottom: 1px solid #d9dae6; white-space: nowrap; background: var(--surface); }
.tbl td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--hairline); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td + td, .tbl th + th { border-left: 1px solid var(--hairline); }
.tbl td.idx, .tbl th.idx { width: 36px; color: var(--fog); font-family: var(--mono); font-size: 12px; text-align: center; padding: 0 8px; }
.tbl td.idx + td, .tbl th.idx + th { border-left: 0; }
.tbl .mono { font-family: var(--mono); font-size: 13px; }
.tbl .amt { text-align: right; font-family: var(--mono); font-size: 13px; }
.tbl th.amt { text-align: right; }
.tbl .muted { color: var(--ink-2); }
.tbl .c-type { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.tbl .res { width: 1%; }
.tbl td.c-note { display: none; }
.sender { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); padding: 2px 7px; border-radius: 5px; background: var(--surface-tint); border: 1px solid var(--hairline); margin-right: 8px; vertical-align: 1px; }
.panel .chip { border-radius: 5px; padding: 2px 8px; font-size: 12.5px; }
.panel .chip::before { display: none; }
.chip-reading { background: rgba(52,73,198,.09); color: var(--primary); }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--hairline); background: var(--surface-tint); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; margin: 0; }
.panel-foot .sum { display: flex; gap: 14px; flex-wrap: wrap; }
.panel-foot .sum b { font-weight: 500; color: var(--ink); }
.tbl .c-res { position: relative; }
.tbl .c-res::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--primary), rgba(52,73,198,0)); transform-origin: left; transform: scaleX(0); }
.js-motion tr.is-reading .c-res::after { animation: readbar 2.2s linear infinite; }
@keyframes readbar { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.js-motion tr.is-done .chip { animation: chippop .35s ease; }
@keyframes chippop { 0% { transform: scale(.9); opacity: .4; } 100% { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .panel-head { flex-wrap: wrap; align-items: flex-start; }
  .panel-title { flex-wrap: wrap; gap: 2px 10px; }
  .panel-meta { font-size: 11px; width: 100%; }
  .tbl-wrap { overflow: visible; }
  table.tbl, .tbl tbody { display: block; min-width: 0; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no res" "type amt" "dossier received" "note note"; gap: 5px 12px; padding: 11px 14px; border-bottom: 1px solid var(--hairline); align-items: center; }
  .tbl tr:last-child { border-bottom: 0; }
  .panel .tbl tr td { display: block; height: auto; min-height: 0; padding: 0; border: 0; white-space: normal; width: auto; }
  .panel .tbl td.idx, .panel .tbl td.c-note:empty { display: none; }
  .panel .tbl td.c-dossier { white-space: nowrap; }
  .tbl td.c-no { grid-area: no; font-size: 14.5px; color: var(--ink); }
  .tbl td.c-res { grid-area: res; justify-self: end; }
  .tbl td.c-res .cell { display: inline-flex; }
  .tbl .c-res::after { left: 0; right: 0; bottom: -11px; }
  .tbl td.c-type { grid-area: type; max-width: none; color: var(--ink-2); font-size: 14px; }
  .tbl td.c-amt { grid-area: amt; justify-self: end; }
  .tbl td.c-dossier { grid-area: dossier; font-size: 12.5px; }
  .tbl td.c-dossier .mono { font-size: 12.5px; }
  .tbl td.c-received { grid-area: received; justify-self: end; font-size: 12.5px; }
  .tbl td.c-note { display: block; grid-area: note; font-size: 12.5px; color: var(--ink-2); }
  .panel-foot { padding: 10px 14px; }
}

/* Specimen email */
.specimen { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.specimen-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; background: var(--surface-tint); border-bottom: 1px solid var(--hairline); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.specimen-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--hairline); display: grid; gap: 6px; font-size: 14px; }
.specimen-head .k { color: var(--ink-2); display: inline-block; min-width: 46px; }
.specimen-head .v { font-family: var(--mono); font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.specimen-body { padding: 18px 20px; display: grid; gap: 10px; font-size: 15px; }
.inv { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--canvas); }
.inv .inv-no { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.inv .inv-desc { color: var(--ink-2); font-size: 14px; }
.inv .inv-amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; text-align: right; }
.inv .chip { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 440px) { .inv { grid-template-columns: auto 1fr auto auto; } .inv .chip { grid-column: auto; } }
.specimen-sign { padding: 0 20px 18px; font-size: 14px; color: var(--ink-2); }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 20px; border-top: 1px solid var(--hairline); }
.att { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface-tint); border: 1px solid var(--hairline); font-family: var(--mono); font-size: 12.5px; color: var(--ink); max-width: 100%; }
.att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att .ft { flex: none; font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 1px 5px; border-radius: 3px; background: var(--surface); border: 1px solid var(--hairline); }

/* Status chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; line-height: 1.3; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { background: var(--ok-tint); color: var(--ok); }
.chip-ecart { background: var(--ecart-tint); color: var(--ecart); }
.chip-nv { background: var(--nv-tint); color: var(--nv); }

/* State block */
.state { background: var(--lavender); border-radius: var(--r-md); padding: 28px 32px; }
.state-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.state-top h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.state-date { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.state-row { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.6fr); gap: 8px 24px; padding: 16px 0; border-top: 1px solid rgba(31,29,51,.10); align-items: baseline; }
.state-top + .state-row { border-top: 0; }
.state-row .w { font-weight: 500; }
.state-row .s { font-size: 15px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--surface); color: var(--ink); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fog); }
.pill-prod::before { background: var(--ok); }
.pill-demand::before { background: var(--primary); }
@media (max-width: 760px) { .state { padding: 22px 20px; } .state-row { grid-template-columns: 1fr; gap: 8px; } }

/* Work section */
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.work-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 28px 30px; }
.work-card.after { background: var(--lavender); border-color: transparent; }
.work-card h3 { margin-bottom: 18px; }
.work-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.work-list li { position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.work-list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.work-card .foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14.5px; color: var(--ink-2); }
.work-card.after .foot { border-top-color: rgba(31,29,51,.10); }
.after-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.after-list li { padding-left: 28px; position: relative; font-size: 16px; }
.after-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--primary); border-radius: 1px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }


/* Example */
.example-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.example-side { position: sticky; top: 92px; }
.example-side .glossary { margin-top: 28px; display: grid; gap: 16px; }
.gloss { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--ink-2); }
.gloss .chip { margin-top: 1px; }
.gloss b { color: var(--ink); font-weight: 500; }
.callout { margin-top: 28px; padding: 18px 20px; border-left: 2px solid var(--primary); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; }
.example-stack { display: grid; gap: 28px; }
.sheet-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.sheet-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sheet { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.sheet th { background: var(--surface-tint); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.sheet td.num, .sheet th.num { text-align: right; font-family: var(--mono); }
.sheet td.mono { font-family: var(--mono); }
.sheet tr.sec td { background: var(--canvas); font-weight: 500; color: var(--ink); }
.sheet tr.sub td { color: var(--ink-2); font-style: normal; }
.sheet tr.sub td.num { color: var(--ink); }
.sheet tr.total td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink); }
.sheet-foot { padding: 12px 18px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--hairline); display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.pdf-order { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px rgba(31,29,51,.04); }
.page .pn { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.page .pt { font-weight: 500; font-size: 15px; }
.page .ps { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 960px) { .example-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .example-side { position: static; } }
@media (max-width: 560px) { .pdf-order { grid-template-columns: minmax(0, 1fr); } .page { min-height: 0; } }

/* Start / form */
.start-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.start-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.start-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 16px; }
.start-list .n { font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding-top: 4px; }
.start-list b { font-weight: 500; display: block; }
.start-list span.d { color: var(--ink-2); font-size: 15px; display: block; margin-top: 2px; }
.form { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .opt { color: var(--ink-2); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: 400 15px/1.4 var(--sans); }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field .err { display: none; font-size: 13.5px; color: var(--error); }
.field.invalid .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); font-size: 14px; font-weight: 400; cursor: pointer; }
.chips input { margin: 0; accent-color: var(--primary); width: 16px; height: 16px; }
.chips label:has(input:checked) { background: rgba(52,73,198,.08); border-color: rgba(52,73,198,.35); }
.radios { display: flex; flex-wrap: wrap; gap: 16px 20px; padding-top: 6px; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 400; cursor: pointer; }
.radios input { margin: 0; accent-color: var(--primary); width: 16px; height: 16px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 6px; }
.form-note { font-size: 13.5px; color: var(--ink-2); max-width: 46ch; }
.form-status { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: var(--r-md); font-size: 15px; }
.form-status.ok { display: block; background: var(--ok-tint); color: #14532d; }
.form-status.ko { display: block; background: #fdeceb; color: #7f1d1d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 960px) { .start-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 600px) { .form { padding: 22px 18px; } .form-grid { grid-template-columns: minmax(0, 1fr); } .field.half { grid-column: auto; } }

/* FAQ */
.faq { border-top: 1px solid var(--hairline); }
.qa { border-bottom: 1px solid var(--hairline); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--ink-2); flex: none; width: 28px; text-align: center; transition: transform .2s ease; }
.qa[open] summary::after { content: "−"; }
.qa .a { padding: 0 48px 26px 0; color: var(--ink); font-size: 16px; max-width: 72ch; }
.qa .a ul { margin: 12px 0 0; padding-left: 20px; }
.qa .a li + li { margin-top: 8px; }
@media (max-width: 600px) { .qa summary { font-size: 17px; padding: 18px 0; } .qa .a { padding-right: 0; } }


/* Night band */
.band { background: var(--night); color: var(--on-dark); padding: 88px 0; }
.band h2 { color: var(--on-dark); max-width: 22ch; }
.band p { color: var(--fog); margin-top: 18px; max-width: 56ch; font-size: 18px; }
.band .btn-primary { margin-top: 32px; }

/* Footer */
.footer { background: var(--night); color: var(--fog); border-top: 1px solid var(--hairline-dark); padding: 36px 0 44px; font-size: 13.5px; line-height: 1.6; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: flex-start; }
.footer a { color: var(--on-dark); }
.footer .brand { font-size: 17px; margin-bottom: 6px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Inner pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { margin-top: 12px; font-size: 16.5px; }
.prose ul { padding-left: 20px; }

.specimen-label > span:first-child { white-space: nowrap; }
.specimen-label > span:last-child { text-align: right; }

/* Founder note */
.founder { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--hairline); max-width: 48ch; }
.founder p { font-size: 16px; }
.founder .sig { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.form h3 { margin-bottom: 0; }

/* Display serif (Fraunces), headlines only; body, UI and figures stay Plex */
h1, h2 { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; font-variation-settings: "opsz" 72; letter-spacing: -0.012em; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.08; }
.hero h1 { max-width: 16ch; margin: 0 auto; font-size: clamp(40px, 5.4vw, 68px); }
.state-top h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.015em; }
.band h2 { font-size: clamp(34px, 4.6vw, 58px); max-width: 20ch; }
.prose h2 { font-size: 30px; }
.prose h1 { font-family: var(--serif); }

/* Motion: content is visible without JS; .js-motion is set by site.js only when motion is allowed */
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js-motion .reveal.in { opacity: 1; transform: none; }
.js-motion .hero-copy > .reveal:nth-child(2) { transition-delay: .08s; }
.js-motion .hero-copy > .reveal:nth-child(3) { transition-delay: .16s; }
.js-motion .specimen.reveal { transition-delay: .2s; }
.js-motion .hero-panel.reveal { transition-delay: .2s; }
.js-motion .pills.reveal { transition-delay: .3s; }
.js-motion .specimen .chip { opacity: 0; transform: scale(.92); transition: opacity .4s ease, transform .4s ease; }
.js-motion .specimen.in .chip { opacity: 1; transform: none; }
.js-motion .specimen.in .inv:nth-of-type(1) .chip { transition-delay: .7s; }
.js-motion .specimen.in .inv:nth-of-type(2) .chip { transition-delay: 1.0s; }
.js-motion .specimen.in .inv:nth-of-type(3) .chip { transition-delay: 1.3s; }
.js-motion .specimen .att { opacity: 0; transition: opacity .4s ease; }
.js-motion .specimen.in .att { opacity: 1; transition-delay: 1.6s; }

/* Proof strip */
.proof { padding: 64px 0 0; text-align: center; }
.proof-label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-track { display: flex; width: max-content; }
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex: none; }
.proof-list li { padding: 0 40px; display: flex; align-items: center; }
.proof-list img { display: block; height: 26px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .25s ease, opacity .25s ease; }
.proof-list img[alt="UNFI"], .proof-list img[alt="Loblaw"] { height: 36px; }
.proof-list li:hover img { filter: none; opacity: 1; }
.js-motion .marquee-track { animation: marquee 26s linear infinite; }
.js-motion .marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% / 3)); } }
/* no motion (reduced motion or no JS): one centred row, no fade */
html:not(.js-motion) .marquee { -webkit-mask-image: none; mask-image: none; }
html:not(.js-motion) .marquee-track { width: auto; justify-content: center; }
html:not(.js-motion) .proof-list[aria-hidden] { display: none; }
html:not(.js-motion) .proof-list { flex-wrap: wrap; justify-content: center; row-gap: 12px; }

/* Cards (scale, security) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 28px 30px; }
.card h3 { margin-bottom: 10px; }
.card-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--lavender); display: grid; place-items: center; margin-bottom: 16px; }
.card-ico svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Step graphics (generated by tools/render-panels.js). Dense B style, same anatomy as the hero panel. */
.viz { margin: 0; background: var(--surface); border: 1px solid #d9dae6; border-radius: 10px; overflow: hidden; }
.viz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; background: var(--surface-tint); border-bottom: 1px solid var(--hairline); font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.viz-head .r { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }
.viz-body { padding: 14px; container-type: inline-size; container-name: viz; }

/* connect */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px auto; align-items: center; }
.src { display: grid; gap: 8px; }
.src-row { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); }
.tile { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font: 600 12px/1 var(--sans); color: #fff; flex: none; }
.tile-outlook { background: #1769cf; } .tile-gmail { background: #d93025; } .tile-portal { background: var(--nv); }
.src-row b { font-weight: 500; font-size: 13px; display: block; line-height: 1.2; }
.src-row small { font-size: 11.5px; color: var(--ink-2); display: block; line-height: 1.2; margin-top: 2px; }
.flow svg { width: 56px; height: 166px; display: block; overflow: visible; }
.flow path { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .75; }
.js-motion .flow path { animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.dst { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--night); color: var(--on-dark); }
.dst svg { width: 30px; height: 30px; flex: none; }
.dst b { font-weight: 500; font-size: 13.5px; display: block; line-height: 1.2; }
.dst small { font-size: 11px; color: var(--fog); font-family: var(--mono); display: block; margin-top: 2px; }
.docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 12px; color: var(--ink-2); }
.doc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 5px; background: var(--ok-tint); color: var(--ok); font-weight: 500; }
.doc::before { content: "✓"; font-size: 11px; }

/* validate */
.zoom table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.zoom th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; text-align: left; padding: 6px 10px; border-bottom: 1px solid #d9dae6; white-space: nowrap; }
.zoom td { padding: 0 10px; height: 42px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.zoom th.num, .zoom td.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.zoom td.mono { font-family: var(--mono); font-size: 12.5px; }
.zoom tr.dim td { color: var(--fog); }
.zoom tr.dim .badge { opacity: .55; }
.zoom tr.hot td { background: rgba(52,73,198,.05); }
.zoom tr.hot td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.zoom tr.hot td.num.bad { color: var(--error); font-weight: 500; }
.badge { display: inline-block; border-radius: 5px; padding: 2px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-bad { background: #fdeceb; color: var(--error); }
.zoom-note { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* output */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.half { border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; container-type: inline-size; container-name: half; }
.half-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface-tint); border-bottom: 1px solid var(--hairline); font-family: var(--mono); font-size: 11px; color: var(--ink); min-width: 0; }
.half-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.half-head .ft { flex: none; font-style: normal; font-size: 9.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 1px 5px; border-radius: 3px; background: var(--surface); border: 1px solid var(--hairline); }
.half-body { flex: 1; }
.mini { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mini .clip { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini th, .mini td { padding: 5px 8px; border-bottom: 1px solid var(--hairline); white-space: nowrap; text-align: left; }
.mini th { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 500; }
.mini .num { text-align: right; font-family: var(--mono); }
.mini .mono { font-family: var(--mono); }
.mini tr.more td { color: var(--fog); font-style: italic; }
.mini tr.total td { font-weight: 600; border-top: 2px solid var(--ink); border-bottom: 0; }
.pages { display: grid; gap: 7px; padding: 10px; }
.pg { border: 1px solid var(--hairline); border-radius: 6px; padding: 7px 10px; font-size: 12px; display: flex; gap: 8px; align-items: center; background: var(--surface); }
.pg .pn { font-family: var(--mono); color: var(--ink-2); font-size: 11px; flex: none; }
.half-foot { padding: 7px 10px; border-top: 1px solid var(--hairline); font-size: 11.5px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.act { display: inline-block; border-radius: 5px; padding: 2px 8px; font-size: 11.5px; font-weight: 500; }
.act-post { background: rgba(52,73,198,.10); color: var(--primary); }
.act-dispute { background: var(--ecart-tint); color: var(--ecart); }


/* visuals adapt to the width of their own panel (container queries): compact under 440px, no Article column under 600px */
@container viz (max-width: 600px) {
  .zoom td.c-item, .zoom th.c-item { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@container viz (max-width: 440px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow svg { display: none; }
  .mini .c-ref { display: none; }
  .zoom table, .zoom tbody, .zoom tr, .zoom td { display: block; }
  .zoom thead { display: none; }
  .zoom tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "no st" "cl cl" "ca ca"; gap: 4px 12px; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--hairline); align-items: center; }
  .zoom tr.hot { box-shadow: inset 3px 0 0 var(--primary); background: rgba(52,73,198,.05); }
  .zoom tr.hot td { background: transparent; }
  .zoom tr.hot td:first-child { box-shadow: none; }
  .zoom td { height: auto; padding: 0; border: 0; white-space: normal; }
  .zoom td.c-no { grid-area: no; font-size: 14px; }
  .zoom td.c-status { grid-area: st; justify-self: end; }
  .zoom td.c-claimed { grid-area: cl; text-align: left; white-space: nowrap; }
  .zoom td.c-calc { grid-area: ca; text-align: left; white-space: nowrap; }
  .zoom td.c-claimed::before, .zoom td.c-calc::before { content: attr(data-label) " "; font-family: var(--sans); color: var(--ink-2); font-size: 11.5px; }
}

/* narrow half: the billing-number column goes, Article · Qté · Montant stay */
@container half (max-width: 300px) {
  .mini .c-ref { display: none; }
}

/* Problem: text left, scattered tags right (generated panel problem-scatter) */
.problem-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.problem-grid .lead { margin-top: 18px; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.scatter { margin: 0; position: relative; min-height: 340px; border: 1px solid #d9dae6; border-radius: 10px; overflow: hidden; background:
  radial-gradient(ellipse 80% 70% at 50% 50%, rgba(250,251,253,0) 0%, var(--surface) 100%),
  radial-gradient(circle, rgba(31,29,51,.12) 1px, transparent 1.4px) 0 0 / 20px 20px var(--surface); }
.sc { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 9px; border-radius: 9px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 1px 2px rgba(31,29,51,.05), 0 8px 20px -10px rgba(31,29,51,.25); font-size: 13.5px; font-weight: 500; white-space: nowrap; transform: rotate(var(--r, 0deg)); }
.sc .tile { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font: 600 11px/1 var(--sans); color: #fff; flex: none; }
.sc .t-clock { border-radius: 50%; }
.sc .t-clock svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }
.t-portal { background: var(--nv); } .t-mail { background: #1769cf; } .t-xls { background: #1f7a4d; } .t-erp { background: #5a5876; } .t-pdf { background: #b3261e; } .t-doc { background: var(--ecart); } .t-note { background: #7c5cbf; } .t-clock { background: var(--ink); }
.js-motion .sc { animation: drift 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes drift { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(var(--r, 0deg)) translateY(-4px); } }
@media (max-width: 640px) {
  .scatter { min-height: 0; padding: 18px 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .sc { position: static !important; transform: rotate(var(--r, 0deg)); }
}

/* Backgrounds (variant A « ruban »): full-bleed layers behind the sections, content stays above */
main > section { position: relative; }
main > section > * { position: relative; z-index: 1; }
[data-bg] { isolation: isolate; }
.bg-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* hero: a soft indigo ribbon crossing diagonally, with a fine hatch on it */
[data-bg="ribbon"] .bg-layer::before { content: ""; position: absolute; inset: -30% -20%;
  background: radial-gradient(55% 40% at 18% 28%, rgba(52,73,198,.16), transparent 62%), radial-gradient(45% 35% at 85% 72%, rgba(124,92,191,.14), transparent 62%); filter: blur(48px); }
[data-bg="ribbon"] .bg-layer::after { content: ""; position: absolute; left: -25%; right: -25%; top: 30%; height: 36%; transform: rotate(-9deg);
  background: linear-gradient(90deg, transparent 0%, rgba(52,73,198,.14) 18%, rgba(255,255,255,.95) 50%, rgba(52,73,198,.14) 82%, transparent 100%); filter: blur(28px); }
[data-bg="ribbon"] .bg-hatch { position: absolute; left: -25%; right: -25%; top: 30%; height: 34%; transform: rotate(-9deg); opacity: .5;
  background: repeating-linear-gradient(135deg, rgba(31,29,51,.035) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
/* lavender bands with soft edges */
[data-bg="tint"] { padding-bottom: 104px; background: linear-gradient(180deg, var(--canvas) 0%, var(--lavender) 14%, var(--lavender) 86%, var(--canvas) 100%); }
[data-bg="tint"] + .section { padding-top: 80px; }
[data-bg="tint"] .card, [data-bg="tint"] .scatter { border-color: rgba(31,29,51,.10); }
main > [data-bg="tint"]:last-of-type { padding-bottom: 104px; }
/* night block (security) */
[data-bg="night"] { background: var(--night); color: var(--on-dark); padding-bottom: 104px; }
[data-bg="night"] .bg-layer::before { content: ""; position: absolute; left: -20%; right: -20%; top: 20%; height: 50%; transform: rotate(-8deg); background: linear-gradient(90deg, transparent, rgba(52,73,198,.35) 50%, transparent); filter: blur(60px); }
[data-bg="night"] h2 { color: #fff; }
[data-bg="night"] .lead, [data-bg="night"] .eyebrow { color: var(--fog); }
[data-bg="night"] .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); backdrop-filter: blur(6px); }
[data-bg="night"] .card h3 { color: #fff; }
[data-bg="night"] .card p { color: #b9bacb; }
[data-bg="night"] .card-ico { background: rgba(52,73,198,.35); }
[data-bg="night"] .card-ico svg { stroke: #c7cdff; }
@media (max-width: 640px) { [data-bg="tint"], [data-bg="night"], main > [data-bg="tint"]:last-of-type { padding-bottom: 64px; } [data-bg="tint"] + .section { padding-top: 52px; } }

/* How it works: Z pattern on a central spine (reference covera-agents.com). Text one side, floating graphic the other, alternating. */
.section-head.center { text-align: center; }
.section-head.center .measure { margin-left: auto; margin-right: auto; }
.zsteps { position: relative; display: grid; gap: 64px; padding: 16px 0 8px; }
.zsteps::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--fog); opacity: .6;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(180deg, transparent, #000 6%, #000 94%, transparent); }
.zrow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.zrow > * { grid-row: 1; }
.zrow .ztext { grid-column: 1; padding-right: 32px; }
.zrow .zviz { grid-column: 3; padding-left: 8px; }
.zrow:nth-child(even) .ztext { grid-column: 3; padding: 0 0 0 32px; }
.zrow:nth-child(even) .zviz { grid-column: 1; padding: 0 8px 0 0; }
.znode { grid-column: 2; justify-self: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid #d9dae6; display: grid; place-items: center; font: 500 12.5px/1 var(--mono); color: var(--ink-2); box-shadow: 0 0 0 8px var(--canvas); }
.ztext .eyebrow { margin-bottom: 12px; }
.ztext h3 { margin-bottom: 10px; font-size: 24px; }
.ztext p { font-size: 16px; color: var(--ink-2); max-width: 44ch; }
.zviz .viz { box-shadow: 0 1px 2px rgba(31,29,51,.04), 0 28px 56px -28px rgba(31,29,51,.28); }
@media (max-width: 860px) {
  .zsteps { gap: 56px; padding: 0; }
  .zsteps::before, .znode { display: none; }
  .zrow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .zrow .ztext, .zrow:nth-child(even) .ztext { grid-column: 1; grid-row: 1; padding: 0; }
  .zrow .zviz, .zrow:nth-child(even) .zviz { grid-column: 1; grid-row: 2; padding: 0; }
  .ztext p { max-width: none; }
}

/* Scale: its own band, text left, the two cards stacked right, so the block fits one screen */
.scale-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.scale-grid .lead { margin-top: 18px; }
.cards-stack { grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .scale-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Booking card: a static calendar preview (generated panel cal-mock) until data-cal-link is set, then the Cal.com inline embed */
.cal-card { background: var(--surface); border: 1px solid #d9dae6; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.cal-card.cal-live { min-height: 560px; }
.cal-mock { pointer-events: none; user-select: none; }
.cal-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.cal-avatar { width: 40px; height: 40px; flex: none; }
.cal-avatar svg { width: 40px; height: 40px; }
.cal-host { display: block; font-size: 13px; color: var(--ink-2); }
.cal-title { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.cal-meta { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.cal-meta li { display: inline-flex; align-items: center; gap: 6px; }
.cal-meta svg { width: 14px; height: 14px; stroke: var(--ink-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-body { display: grid; grid-template-columns: minmax(0, 1fr) 128px; }
.cal-month { padding: 16px 18px 18px; }
.cal-month-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 12px; }
.cal-month-row b { font-weight: 500; }
.cal-nav i { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--ink-2); font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .dow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-align: center; padding: 4px 0 6px; }
.cal-grid .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--fog); }
.cal-grid .d.av { background: var(--surface-tint); color: var(--ink); font-weight: 500; }
.cal-grid .d.sel { background: var(--ink); color: #fff; }
.cal-grid .d.prev { color: var(--hairline); }
.cal-times { border-left: 1px solid var(--hairline); padding: 16px 12px; display: grid; gap: 8px; align-content: start; }
.cal-day { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.slot { display: block; text-align: center; padding: 8px 6px; border-radius: 8px; border: 1px solid rgba(52,73,198,.35); color: var(--primary); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-note { padding: 14px 20px; border-top: 1px solid var(--hairline); background: var(--surface-tint); font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 520px) { .cal-body { grid-template-columns: minmax(0, 1fr); } .cal-times { border-left: 0; border-top: 1px solid var(--hairline); grid-template-columns: repeat(3, minmax(0, 1fr)); } .cal-day { grid-column: 1 / -1; } .cal-meta { margin-left: 0; } }

/* Integrations (generated panel): the available row first on a tinted panel, the coming-soon groups condensed in one bordered block */
.integ-head { max-width: 720px; margin-left: auto; margin-right: auto; }
.integ-head .lead { margin-top: 16px; }
.integ { display: grid; gap: 14px; }
.integ-live { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px 32px; align-items: center; padding: 22px 26px; background: var(--lavender); border-radius: var(--r-md); }
.integ-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.integ-label i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.integ-label.is-soon { color: var(--ink-2); }
.integ-label.is-soon i { background: var(--fog); }
.integ-caption { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-width: 30ch; }
.integ-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.integ-tile { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px 0 7px; border-radius: 8px; background: var(--surface); border: 1px solid #d9dae6; font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; text-decoration: none; }
.integ-lg { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.integ-lg img { display: block; width: 20px; height: 20px; object-fit: contain; }
.integ-tile.k-mark .integ-lg { width: auto; }
.integ-tile.k-mark .integ-lg img { height: 15px; width: auto; max-width: 92px; }
.integ-tile.k-mark.w-tall .integ-lg img { height: 22px; }
.integ-tile.k-mark .integ-nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.integ-tile.k-text { padding-left: 12px; }
.integ-tile.is-soon { color: var(--ink-2); }
.integ-tile.is-soon .integ-lg img { filter: grayscale(1); opacity: .75; }
.integ-tiles-live .integ-tile { height: 52px; padding: 0 16px 0 12px; gap: 12px; font-size: 15px; border-radius: 12px; box-shadow: 0 1px 2px rgba(31,29,51,.05); }
.integ-tiles-live .integ-lg { width: 30px; height: 30px; }
.integ-tiles-live .integ-lg img { width: 28px; height: 28px; }
.integ-soon { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 24px 2px; }
.integ-row { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 8px 24px; padding: 8px 0; border-top: 1px solid var(--hairline); align-items: center; }
.integ-soon > .integ-label + .integ-row { border-top: 0; margin-top: 6px; }
.integ-cat { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.integ-tile.more { border-style: dashed; color: var(--primary); }
.integ-tile.more b { font-weight: 500; margin-left: 2px; }
.integ-tile.more:hover { text-decoration: none; background: rgba(52,73,198,.06); }
@media (max-width: 760px) { .integ-live, .integ-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } .integ-live { padding: 18px; } .integ-soon { padding: 12px 16px 2px; } }

/* Hero (Rillet layout): eyebrow + headline left, pitch + CTA right, one wide scene box with the deductions summary window inside */
.hero3 { position: relative; display: block; min-height: 0; padding: 84px 0 48px;
  background: linear-gradient(rgba(31,29,51,.035) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, rgba(31,29,51,.035) 1px, transparent 1px) 0 0 / 36px 36px, var(--canvas); }
.hero3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, transparent, var(--canvas)); pointer-events: none; }
.hero3 > .container { position: relative; z-index: 1; }
.wide { max-width: 1280px; }
.h3-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 80px; align-items: start; margin-bottom: 44px; }
.h3-top .eyebrow { grid-column: 1 / -1; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 9px; }
.h3-top .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero3 h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.04; max-width: 16ch; margin: 0; }
.h3-pitch { max-width: 440px; justify-self: end; padding-top: 10px; }
.h3-pitch p { font-size: 17.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; }
.scene { position: relative; border-radius: 16px; overflow: hidden; padding: 52px 56px 0; min-height: 640px; isolation: isolate; background: var(--lavender); }
.scene-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 85% 0%, rgba(251,234,219,.9), transparent 60%), radial-gradient(55% 60% at 10% 100%, rgba(52,73,198,.22), transparent 60%), radial-gradient(50% 50% at 70% 90%, rgba(124,92,191,.16), transparent 60%), linear-gradient(160deg, #dfe3f6 0%, #e9ebf7 45%, #f1ecf4 100%); }
.scene-bg::before { content: ""; position: absolute; left: -20%; right: -20%; top: 38%; height: 46%; transform: rotate(-9deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55) 50%, transparent); filter: blur(30px); }
/* the window (generated panel hero-dash) */
.dash { position: relative; z-index: 1; background: var(--surface); border: 1px solid #c9cbdc; border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 1px 2px rgba(31,29,51,.06), 0 40px 80px -40px rgba(31,29,51,.5); display: grid; grid-template-columns: 52px minmax(0, 1fr); overflow: hidden; text-align: left; }
.rail { border-right: 1px solid var(--hairline); background: var(--surface-tint); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rail .mk { width: 26px; height: 26px; margin-bottom: 8px; } .rail .mk svg { width: 26px; height: 26px; display: block; }
.rail i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.rail i svg { width: 16px; height: 16px; stroke: var(--ink-2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail i.on { background: var(--lavender); } .rail i.on svg { stroke: var(--primary); }
.rail .sp { flex: 1; }
.rail .av { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 10px/1 var(--sans); display: grid; place-items: center; }
.dash .main { min-width: 0; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--hairline); }
.d-top .ttl { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.d-top .ttl small { font: 400 12.5px/1 var(--sans); color: var(--ink-2); }
.snap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
.kpi { padding: 14px 20px; border-right: 1px solid var(--hairline); }
.kpi:last-child { border-right: 0; }
.kpi .l { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.kpi .n { display: block; margin-top: 6px; font: 500 24px/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi .n.ec { color: var(--ecart); }
.kpi .s { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-2); }
.d-tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--hairline); }
.d-tab { border: 0; background: transparent; font: 500 13px/1 var(--sans); color: var(--ink-2); padding: 9px 12px 11px; cursor: pointer; border-radius: 7px 7px 0 0; position: relative; display: inline-flex; align-items: center; gap: 7px; }
.d-tab .ct { font: 500 11px/1 var(--mono); color: var(--ink-2); background: var(--surface-tint); border: 1px solid var(--hairline); border-radius: 4px; padding: 2px 5px; }
.d-tab.on { color: var(--ink); }
.d-tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--primary); }
.d-pane { display: none; } .d-pane.on { display: block; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 860px; }
.pt th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid #d9dae6; white-space: nowrap; }
.pt td { padding: 0 12px; height: 42px; border-bottom: 1px solid var(--hairline); white-space: nowrap; vertical-align: middle; }
.pt tr:last-child td { border-bottom: 0; }
.pt td + td, .pt th + th { border-left: 1px solid var(--hairline); }
.pt .idx { width: 36px; color: var(--ink-2); opacity: .6; font-family: var(--mono); font-size: 11.5px; text-align: center; padding: 0 6px; }
.pt .idx + td, .pt .idx + th { border-left: 0; }
.pt .mono { font-family: var(--mono); font-size: 12.5px; }
.pt .num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.pt th.num { text-align: right; }
.pt .ban { font-weight: 400; }
.pt .ban .bl { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface); vertical-align: middle; position: relative; top: -1px; margin-right: 9px; box-sizing: border-box; }
.pt .ban .bl img { display: block; max-width: 18px; max-height: 16px; width: auto; height: auto; }
.pt .gap { color: var(--ecart); font-weight: 500; }
.pt .dash-cell { color: var(--fog); text-align: right; }
.pt .fin { color: var(--ink-2); max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.pt .chip { border-radius: 5px; padding: 2px 8px; font-size: 12px; }
.pt .chip::before { display: none; }
.chip-doc { background: rgba(52,73,198,.09); color: var(--primary); }
.chip-chk { background: var(--ecart-tint); color: var(--ecart); opacity: .85; }
.pt .chip-reading::before { display: inline-block; content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.js-motion .pt .chip-reading::before { animation: dashpulse 1s ease-in-out infinite; }
@keyframes dashpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.pt tr.hot td { background: rgba(52,73,198,.035); }
.d-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--hairline); background: var(--surface-tint); font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
@media (max-width: 960px) {
  .h3-top { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 24px; }
  .h3-pitch { padding-top: 18px; }
  .h3-pitch { justify-self: start; }
  .scene { padding: 20px 12px 0; min-height: 0; border-radius: 12px; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .snap { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: 0; } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 640px) {
  .hero3 { padding: 32px 0 40px; } .hero3 h1 { font-size: 38px; } .h3-pitch p { font-size: 16px; }
  .pt { min-width: 0; }
  .pt .c-ref, .pt .c-prog, .pt .c-gap, .pt .c-fin { display: none; }
  .pt td, .pt th { padding: 0 10px; } .pt th { padding: 8px 10px; }
  .d-top .ttl small { display: none; }
  .d-tabs { overflow-x: auto; } .d-tab { flex: none; }
}
@media (min-width: 641px) and (max-height: 820px) { .hero3 { padding: 56px 0 48px; } .h3-top { margin-bottom: 32px; } .hero3 h1 { font-size: clamp(38px, 4vw, 54px); } .h3-pitch p { font-size: 16.5px; margin-bottom: 16px; } .scene { padding-top: 40px; min-height: 560px; } .kpi { padding: 11px 18px; } .kpi .n { font-size: 21px; } }

/* CTA: heading centred on top, booking calendar full width below */
.start-stack { display: flex; flex-direction: column; gap: 40px; }
.start-head { text-align: center; max-width: 760px; margin: 0 auto; }
.start-head .lead { margin-left: auto; margin-right: auto; max-width: 60ch; }
.start-stack .cal-card { width: 100%; }
.start-stack .cal-card.cal-live { min-height: 680px; }
@media (max-width: 640px) { .start-stack { gap: 28px; } .start-head { text-align: left; } }
/* Once Cal.com is live it draws its own bordered card: drop ours to avoid a double frame */
.start-stack .cal-card.cal-live { background: transparent; border: 0; box-shadow: none; border-radius: 0; overflow: visible; min-height: 640px; }

/* Home footer: restrained dark finish, aligned navigation and compact legal row. */
.footer.site-footer { background: var(--night); color: var(--fog); border-top: 1px solid var(--hairline-dark); padding: 56px 0 24px; font-size: 14px; }
.site-footer a { color: var(--on-dark); text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: #aeb8ff; }
.site-footer .footer-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px 230px; gap: 40px 64px; }
.site-footer .brand { font-size: 25px; line-height: 1.2; letter-spacing: -.035em; margin: 0; color: var(--on-dark); }
.site-footer .footer-brand p { margin: 12px 0 0; max-width: 29ch; color: var(--fog); line-height: 1.65; }
.site-footer .footer-brand .btn { margin-top: 22px; height: 40px; padding: 0 18px; font-size: 13px; background: var(--on-dark); color: var(--night); }
.site-footer .footer-brand .btn::after { content: "↗"; margin-left: 8px; font-size: 16px; }
.site-footer .footer-brand .btn:hover { background: #fff; color: var(--night); }
.site-footer .footer-h { font-family: var(--sans); font-size: 11px; line-height: 1.4; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--fog); margin: 3px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.site-footer li a { display: inline-block; padding: 5px 0; line-height: 1.5; text-underline-offset: 5px; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hairline-dark); font-size: 12px; line-height: 1.6; }
.site-footer .footer-bottom p { margin: 0; }
.site-footer .footer-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #3c3d4c; border-radius: 7px; flex-shrink: 0; }
.site-footer .footer-lang a, .site-footer .footer-lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 32px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.site-footer .footer-lang a { color: var(--fog); }
.site-footer .footer-lang a:hover { background: var(--night-raised); color: #fff; }
.site-footer .footer-lang span { background: #30313e; color: #fff; }
@media (max-width: 900px) {
  .site-footer .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) minmax(0, .85fr); gap: 32px; }
}
@media (max-width: 640px) {
  .footer.site-footer { padding: 40px 0 20px; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-brand p { max-width: none; }
  .site-footer .footer-h { margin-bottom: 12px; }
  .site-footer .footer-bottom { margin-top: 32px; align-items: flex-start; flex-direction: column-reverse; gap: 16px; }
  .site-footer li a { padding: 8px 0; }
}

/* review pass (Oct 17): softer secondary columns in the hero window, labelled groups in the available integrations row */
.pt .c-ref, .pt .c-prog { color: var(--ink-2); }
.integ-groups { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.integ-gl { display: block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.integ-soon { padding: 10px 20px 0; }

/* ===== Motion (Oct 17). Everything here lives under .js-motion, which site.js sets only when motion is allowed. ===== */
/* directions and stagger */
.js-motion .reveal-l { transform: translateX(-28px); }
.js-motion .reveal-r { transform: translateX(28px); }
.js-motion .reveal-l.in, .js-motion .reveal-r.in { transform: none; }
.js-motion .stg > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * var(--stg, 70ms) + var(--stg0, 0ms)); }
.js-motion .stg.in > *, .js-motion .reveal.in .stg > *, .js-motion .in .stg > * { opacity: 1; transform: none; }
.js-motion tbody.stg > tr { transform: none; }
/* hero: words rise through a line mask, then the pitch, then the window slides up into the scene */
.js-motion .hero3 h1.reveal { opacity: 1; transform: none; }
.hero3 h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero3 h1 .w > span { display: inline-block; }
.js-motion .hero3 h1 .w > span { transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.7,.1,1); transition-delay: calc(.1s + var(--i, 0) * .07s); }
.js-motion .hero3 h1.in .w > span { transform: none; }
.js-motion .h3-pitch.reveal { transition-delay: .4s; }
.js-motion .scene.reveal { transition-delay: .5s; transition-duration: .9s; }
.js-motion .scene .dash { opacity: 0; transform: translateY(56px); transition: opacity .8s ease .7s, transform 1.1s cubic-bezier(.2,.7,.1,1) .7s; }
.js-motion .scene.in .dash { opacity: 1; transform: none; }
.js-motion .scene-bg { animation: scenedrift 18s ease-in-out infinite alternate; }
@keyframes scenedrift { from { transform: translate(0, 0) scale(1.04); } to { transform: translate(-1.5%, 1.2%) scale(1.07); } }
/* nav gains a shadow once the page has scrolled */
.nav { transition: box-shadow .3s ease; }
.nav.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 12px 28px -18px rgba(0,0,0,.6); }
/* problem tags pop in one by one, then drift */
.js-motion .scatter .sc { opacity: 0; animation: none; }
.js-motion .in .scatter .sc { animation: scpop .55s cubic-bezier(.2,.8,.2,1.25) calc(var(--i, 0) * 80ms) both, drift 6s ease-in-out calc(var(--i, 0) * 80ms + .55s + var(--d, 0s)) infinite; }
@keyframes scpop { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(.5) translateY(10px); } to { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1) translateY(0); } }
@media (max-width: 640px) { @keyframes scpop { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(.5); } to { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); } } }
/* how it works: each row enters from its side, the node pops, the spine draws down with the scroll */
.js-motion .zrow.reveal { transform: none; }
.js-motion .zrow .ztext, .js-motion .zrow .zviz { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js-motion .zrow .ztext { transform: translateX(-28px); }
.js-motion .zrow .zviz { transform: translateX(28px) translateY(8px); }
.js-motion .zrow:nth-child(even) .ztext { transform: translateX(28px); }
.js-motion .zrow:nth-child(even) .zviz { transform: translateX(-28px) translateY(8px); }
.js-motion .zrow.in .ztext, .js-motion .zrow.in .zviz { opacity: 1; transform: none; }
.js-motion .zrow .zviz { transition-delay: .12s; }
.js-motion .znode { transform: scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1.3) .25s, opacity .3s ease .25s; }
.js-motion .zrow.in .znode { transform: none; opacity: 1; }
.js-motion .zsteps::before { transform-origin: top; transform: scaleY(var(--spine, 0)); transition: transform .25s linear; }
/* cards, tiles, FAQ: stagger (set by site.js through --i) */
.js-motion .cards.stg { --stg: 110ms; }
.js-motion .integ-tiles.stg { --stg: 45ms; }
.js-motion .integ-live.reveal + .integ-soon { --stg0: 200ms; }
.js-motion .faq.stg { --stg: 60ms; }
/* security glow breathes */
.js-motion [data-bg="night"] .bg-layer::before { animation: glowdrift 14s ease-in-out infinite alternate; }
@keyframes glowdrift { from { transform: rotate(-8deg) translateX(-3%); opacity: .9; } to { transform: rotate(-8deg) translateX(3%); opacity: 1; } }
/* FAQ answers ease open */
.js-motion .qa[open] .a { animation: faqin .35s cubic-bezier(.2,.7,.2,1); }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== Hero window, living (Oct 17): rows are grid boxes so they unfold and fold smoothly; notices arrive over time (site.js), tiles tween ===== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.4, 0, .7, .2); }
.dash .pt { display: block; --cols: 36px minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, 1.25fr) minmax(0, 1.05fr) minmax(0, .8fr) minmax(0, 1.05fr) minmax(0, 1.7fr); }
.dash .d-pane[data-pane="1"] .pt { --cols: 36px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); }
.dash .d-pane[data-pane="2"] .pt { --cols: 36px minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
.dash .pt thead, .dash .pt tbody { display: block; }
.dash .pt tr { display: grid; grid-template-columns: var(--cols); align-items: stretch; height: 42px; border-bottom: 1px solid var(--hairline); overflow: hidden; }
.dash .pt thead tr { height: 34px; border-bottom: 1px solid #d9dae6; }
.dash .pt tbody tr:last-child { border-bottom: 0; }
.dash .pt th, .dash .pt td { display: flex; align-items: center; height: auto; min-width: 0; border-bottom: 0; white-space: nowrap; }
.dash .pt th > *, .dash .pt td > * { min-width: 0; }
.dash .pt td.fin, .dash .pt td.c-prog { overflow: hidden; }
.dash .pt td.fin > span, .dash .pt td.c-prog > span { overflow: hidden; text-overflow: ellipsis; }
.dash .pt .num, .dash .pt th.num { justify-content: flex-end; }
.dash .pt .idx { justify-content: center; }
.dash .pt .fin { max-width: none; }
.dash script { display: none; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-left: 10px; vertical-align: 1px; position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ok); opacity: 0; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .6; } 70% { transform: scale(1.4); opacity: 0; } 100% { opacity: 0; } }
.rail i { transition: background .35s ease; }
.rail i svg { transition: stroke .35s ease; }
.d-tab::after { transition: left .3s var(--ease-out), right .3s var(--ease-out); }
.js-motion .d-pane { animation: panein .35s var(--ease-out); }
@keyframes panein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* arriving: the row unfolds, its cells drift down into place, a soft glow settles; leaving: folds up a touch faster */
.js-motion .dash .pt tbody tr { transition: height .6s var(--ease-out), opacity .45s ease, border-bottom-width .6s var(--ease-out); }
.js-motion .dash .pt tbody tr > td { transition: transform .6s var(--ease-out), opacity .4s ease; }
.js-motion .dash .pt tbody tr.is-new { height: 0; opacity: 0; border-bottom-width: 0; }
.js-motion .dash .pt tbody tr.is-new > td { transform: translateY(-10px); }
.js-motion .dash .pt tbody tr.just-in > td { animation: rowglow 1.8s ease-out both; }
@keyframes rowglow { 0% { background-color: rgba(52,73,198,.11); } 100% { background-color: rgba(52,73,198,0); } }
.js-motion .dash .pt tbody tr.just-in.hot > td { animation: rowglow-ec 1.8s ease-out both; }
@keyframes rowglow-ec { 0% { background-color: rgba(180,84,26,.16); } 60% { background-color: rgba(180,84,26,.07); } 100% { background-color: rgba(52,73,198,.035); } }
.js-motion .dash .pt tbody tr.is-old { height: 0; opacity: 0; border-bottom-width: 0; transition: height .5s var(--ease-in), opacity .3s ease, border-bottom-width .5s var(--ease-in); }
.js-motion .dash .pt tbody tr.is-old > td { transform: translateY(8px); transition-timing-function: var(--ease-in); }
/* resolving: the reading chip fades, then the three result cells cross-fade in, staggered */
.js-motion .dash .pt tr.resolving .c-st .chip, .js-motion .dash .pt tr.resolving .c-gap > span, .js-motion .dash .pt tr.resolving .c-fin > span { opacity: 0; transform: scale(.94); transition: opacity .18s ease, transform .18s ease; }
.js-motion .dash .pt tr.is-done .c-gap > span, .js-motion .dash .pt tr.is-done .c-st > .chip, .js-motion .dash .pt tr.is-done .c-fin > span { animation: cellin .5s var(--ease-out) both; }
.js-motion .dash .pt tr.is-done .c-st > .chip { animation-delay: .07s; }
.js-motion .dash .pt tr.is-done .c-fin > span { animation-delay: .14s; }
@keyframes cellin { from { opacity: 0; transform: translateY(5px) scale(.97); } to { opacity: 1; transform: none; } }
/* tiles: numbers tween (site.js), a soft pulse on the value */
.kpi .n { display: inline-block; transform-origin: left center; }
.js-motion .kpi .n.tick { animation: tilepulse .7s var(--ease-out); }
@keyframes tilepulse { 0% { transform: scale(1); } 30% { transform: scale(1.035); } 100% { transform: scale(1); } }
.js-motion .kpi .n.tick.ec { animation: tilepulse .7s var(--ease-out), ecglow 1.4s ease-out; }
@keyframes ecglow { 0% { text-shadow: 0 0 0 rgba(180,84,26,0); } 25% { text-shadow: 0 0 16px rgba(180,84,26,.4); } 100% { text-shadow: 0 0 0 rgba(180,84,26,0); } }
/* parallax: once the entrance is over, the window lags the scene by a few pixels */
.js-motion .scene.in .dash.par { transform: translateY(var(--par, 0px)); transition: transform .12s linear; }
@media (max-width: 640px) {
  .dash .pt { --cols: 32px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
  .dash .d-pane[data-pane="1"] .pt { --cols: 32px minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, .9fr); }
  .dash .d-pane[data-pane="2"] .pt { --cols: 32px minmax(0, .9fr) minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .dash .pt .c-ref, .dash .pt .c-prog, .dash .pt .c-gap, .dash .pt .c-fin { display: none; }
  .dash .pt tr { height: 44px; }
}

/* note under the hero button */
.cta-note { display: block; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
