/* Marian Node site. Tokens first. Signal Violet is the colour of action;
   Amber appears once, as the dot on the Fiscalised chip. */
/* Brand fonts, self-hosted (SIL OFL 1.1; licences in /assets/fonts/). Cut by make_fonts.py. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("/assets/fonts/ArchivoExpanded-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("/assets/fonts/ArchivoExpanded-650.woff2") format("woff2"); font-weight: 650; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F3EE;         /* main ground, about 60% */
  --sheet: #FFFFFF;         /* alternate sections, cards, sheets */
  --indigo: #1C1365;        /* text on light; closing section, footer, inverted cards (about 30%) */
  --indigo-2: rgba(246, 243, 238, .06);  /* raised surface on indigo: Paper at 6% */
  --violet: #5B2EE0;        /* action: buttons, links, highlights (about 8%) */
  --violet-deep: #4C29C1;   /* button hover */
  --lilac: #B9A8F5;         /* on indigo: secondary text, focus, selected indicators */
  --tint: #E7E0FB;          /* soft highlight fill */
  --tint-2: #F1EEF9;        /* softer fill */
  --tint-icon: #E9E3F8;     /* icon squares */
  --muted: #5F5A86;         /* secondary text on Paper and white, 5.76:1 */
  --rule: rgba(28, 19, 101, .12);
  --on-indigo: #F6F3EE;
  --on-indigo-muted: #B9A8F5;
  --rule-indigo: rgba(246, 243, 238, .14);
  --amber: #F7A347;         /* the dot on the Fiscalised chip, and nowhere else */
  --err: #FDA29B;           /* form errors only: functional, not a brand colour */
  --err-line: #F97066;

  --f-display: "Archivo Expanded", Verdana, sans-serif;
  --f-text: "Archivo", Arial, sans-serif;
  --f-mono: "Geist Mono", "Courier New", monospace;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --r: 6px;                 /* buttons, fields, small controls */
  --r-card: 10px;           /* cards, panels, sheets */
  --shadow-sheet: 0 1px 2px rgba(28, 19, 101, .10), 0 30px 60px -24px rgba(28, 19, 101, .45);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--indigo);
  font: 400 16px/1.5 var(--f-text); font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--tint); color: var(--indigo); }

.skip {
  position: absolute; left: var(--s3); top: -100px; z-index: 100;
  background: var(--violet); color: #FFFFFF; padding: var(--s2) var(--s3);
  border-radius: var(--r); text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--s3); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.on-indigo :focus-visible, .nav--dark :focus-visible, .menu :focus-visible, .foot :focus-visible, .product--now :focus-visible, .plan--pick :focus-visible, .est-out :focus-visible { outline-color: var(--lilac); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.d1, .d2, .d3 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
.h4 { font-family: var(--f-text); margin: 0; text-wrap: balance; }
.d1 { font-size: clamp(34px, calc(3.4vw + 16px), 64px); line-height: 1.0625; letter-spacing: -.01em; font-weight: 650; }
.d2 { font-size: clamp(28px, calc(1.6vw + 18px), 40px); line-height: 1.15; letter-spacing: -.01em; font-weight: 650; }
.d3 { font-size: 24px; line-height: 1.25; letter-spacing: -.005em; font-weight: 600; }
.h4 { font-size: 18px; line-height: 1.45; letter-spacing: 0; font-weight: 600; }
.lede { font-size: 20px; line-height: 1.5; max-width: 34em; margin: 0; text-wrap: pretty; }
.more { color: var(--muted); }
.on-indigo .more, .product--now .more, .way--ink .more, .plan--pick .more { color: var(--on-indigo-muted); }
.two { font-family: var(--f-text); font-size: 20px; line-height: 1.5; letter-spacing: 0; margin: 0; max-width: 34em; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
.src { font-size: 12px; line-height: 1.5; color: var(--muted); margin: var(--s4) 0 0; max-width: 60em; }
.on-indigo .src { color: var(--on-indigo-muted); }
p { margin: 0; }
.prose p + p { margin-top: var(--s3); }
.prose { max-width: 36em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 48px; padding: 0 20px; border-radius: var(--r);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--violet); color: #FFFFFF; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-line { border-color: var(--rule); color: var(--indigo); background: transparent; }
.btn-line:hover { border-color: var(--indigo); }
.on-indigo .btn-line { border-color: var(--rule-indigo); color: var(--on-indigo); }
.on-indigo .btn-line:hover { border-color: var(--on-indigo); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(91, 46, 224, .35); transition: text-decoration-color .15s; }
.on-indigo .link { color: var(--lilac); text-decoration-color: rgba(185, 168, 245, .4); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--dark { background: rgba(28, 19, 101, .9); color: var(--on-indigo); border-bottom-color: var(--rule-indigo); }
.nav--light { background: rgba(246, 243, 238, .92); color: var(--indigo); border-bottom-color: var(--rule); }
@supports (backdrop-filter: blur(1px)) {
  .nav--dark { background: rgba(28, 19, 101, .66); backdrop-filter: saturate(1.4) blur(14px); }
  .nav--light { background: rgba(246, 243, 238, .74); backdrop-filter: saturate(1.4) blur(14px); }
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; flex: none; padding: 10px 10px 10px 0; color: inherit; text-decoration: none; }
.brand img { display: block; width: 189px; height: 40px; }
.nav--light .brand-dark, .nav--dark .brand-light { display: none; }
.nav-links { display: flex; gap: var(--s1); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 10px; border-radius: var(--r); text-decoration: none; font-size: 14px; opacity: .78; transition: opacity .15s, background-color .15s; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav--dark .nav-links a:hover, .nav--dark .nav-links a[aria-current="page"] { background: rgba(246, 243, 238, .08); }
.nav--light .nav-links a:hover, .nav--light .nav-links a[aria-current="page"] { background: rgba(28, 19, 101, .06); }
.menu-open .nav { background: var(--indigo); backdrop-filter: none; }
.nav .btn { height: 40px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r); position: relative; color: inherit; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
  background: var(--indigo); color: var(--on-indigo); border-bottom: 1px solid var(--rule-indigo);
  padding: var(--s3) var(--gutter) var(--s5);
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: 14px 0; font-family: var(--f-display); text-decoration: none; border-bottom: 1px solid var(--rule-indigo); font-size: 24px; font-weight: 600; letter-spacing: -.005em; }
.menu .btn { margin-top: var(--s4); width: 100%; }
@media (max-width: 1080px) {
  .nav-links, .nav .nav-cta { display: none; }
  .menu-btn { display: block; }
}

/* ---------- sections ---------- */
.sec { padding: var(--s8) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec--white { background: var(--sheet); }
.sec--white + .sec, .sec + .sec--white, .on-indigo + .sec, .sec + .on-indigo { border-top: 0; }
.on-indigo { background: var(--indigo); color: var(--on-indigo); }
.sec-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 52em; }
.sec-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; align-items: end; gap: var(--s6); }
@media (max-width: 900px) { .sec-head--split { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 640px) { .sec { padding: var(--s7) 0; } .sec-head { margin-bottom: var(--s6); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; background: var(--paper); }
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center; gap: var(--s5);
  min-height: min(calc(100svh - var(--nav-h)), 880px);
  padding: var(--s7) 0 var(--s8);
}
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: var(--s5); align-content: center; position: relative; z-index: 2; }
.hero-copy .lede { color: var(--indigo); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(91, 46, 224, .14); flex: none; }
.hero-visual { position: relative; height: 640px; display: grid; place-items: center; }
.hero--short .hero-grid { min-height: 0; padding: var(--s8) 0; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero--short .hero-visual { height: 460px; }
.hero--text .hero-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 1000px) {
  .hero-grid, .hero--short .hero-grid, .hero--text .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: var(--s6) 0; gap: 0; }
  .hero-visual { height: 460px; margin-top: var(--s2); }
  .hero--short .hero-visual { height: 400px; }
}
@media (max-width: 520px) {
  .hero-visual, .hero--short .hero-visual { height: 360px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- the invoice (the signature object) ---------- */
.scene { perspective: 1600px; perspective-origin: 50% 20%; width: 100%; height: 100%; display: grid; place-items: center; }
/* Every size inside the invoice is a multiple of --u (1px at the base size), so
   one markup renders at hero, how-it-works and full size by changing --u. */
.inv {
  --u: 1px;
  --w: calc(var(--u) * 300);
  width: var(--w); background: var(--sheet); color: var(--indigo);
  border-radius: calc(var(--u) * 10); padding: calc(var(--u) * 18) calc(var(--u) * 18) calc(var(--u) * 16);
  font-family: var(--f-text); font-size: calc(var(--u) * 10); line-height: 1.45;
  box-shadow: var(--shadow-sheet);
  position: relative;
}
.inv dl, .inv dd { margin: 0; }
.inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: calc(var(--u) * 12); padding-bottom: calc(var(--u) * 10); border-bottom: 1px solid var(--rule); }
.inv-seller { font-family: var(--f-display); font-weight: 600; font-size: calc(var(--u) * 12); line-height: 1.2; letter-spacing: 0; }
.inv-seller small { display: block; font-family: var(--f-text); font-weight: 400; font-size: calc(var(--u) * 9); color: var(--muted); letter-spacing: 0; margin-top: calc(var(--u) * 2); }
.inv-kind { text-align: right; font-size: calc(var(--u) * 9); color: var(--muted); white-space: nowrap; }
.inv-kind b { display: block; font-family: var(--f-display); font-size: calc(var(--u) * 12); color: var(--indigo); font-weight: 600; letter-spacing: 0; }
.inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 6) calc(var(--u) * 12); padding: calc(var(--u) * 10) 0; border-bottom: 1px solid var(--rule); margin: 0; }
.inv-meta div { min-width: 0; }
.inv-meta dt { font-size: calc(var(--u) * 8.5); color: var(--muted); }
.inv-meta dd { margin: 0; font-family: var(--f-mono); font-size: calc(var(--u) * 8.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-lines { list-style: none; margin: 0; padding: calc(var(--u) * 8) 0; border-bottom: 1px solid var(--rule); }
.inv-lines li { display: flex; justify-content: space-between; gap: calc(var(--u) * 12); padding: calc(var(--u) * 2) 0; white-space: nowrap; }
.inv-lines li span:first-child { overflow: hidden; text-overflow: ellipsis; }
.inv-lines li span:last-child { font-family: var(--f-mono); font-size: calc(var(--u) * 8.5); white-space: nowrap; }
.inv-sum { display: grid; gap: calc(var(--u) * 2); padding: calc(var(--u) * 8) 0 calc(var(--u) * 10); }
.inv-sum div { display: flex; justify-content: space-between; }
.inv-sum div span:last-child { font-family: var(--f-mono); font-size: calc(var(--u) * 8.5); }
.inv-sum .tot { font-weight: 600; font-size: calc(var(--u) * 11); padding-top: calc(var(--u) * 4); }
.inv-sum .tot span:last-child { font-size: calc(var(--u) * 10); font-weight: 600; }
.inv-fiscal { display: grid; grid-template-columns: calc(var(--u) * 64) 1fr; gap: calc(var(--u) * 12); align-items: end; padding-top: calc(var(--u) * 10); border-top: 1px dashed rgba(28, 19, 101, .22); }
.qr { width: calc(var(--u) * 64); height: calc(var(--u) * 64); position: relative; }
.qr svg { width: 100%; height: 100%; clip-path: inset(0 0 100% 0); transition: clip-path .7s steps(14, end); }
.qr path { fill: var(--indigo); }
.qr::before { /* the empty slot before fiscalisation */
  content: ""; position: absolute; inset: 0; border: 1px dashed rgba(28, 19, 101, .25); border-radius: 1px;
  transition: opacity .3s;
}
.is-fiscal .qr svg, .is-done .qr svg { clip-path: inset(0 0 0 0); }
.is-fiscal .qr::before, .is-done .qr::before { opacity: 0; }
.is-done .qr svg { transition: none; }
.inv-ids { display: grid; gap: calc(var(--u) * 4); min-width: 0; margin: 0; }
.inv-ids div { display: flex; justify-content: space-between; gap: calc(var(--u) * 8); align-items: baseline; }
.inv-ids dt { font-size: calc(var(--u) * 8.5); color: var(--muted); flex: none; }
.inv-ids dd { margin: 0; min-width: 0; }
.inv-ids .v { display: block; font-family: var(--f-mono); font-size: calc(var(--u) * 8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; padding: 0 1px; }
.fiscal-chip {
  position: absolute; right: calc(var(--u) * 14); top: calc(var(--u) * -12);
  display: inline-flex; align-items: center; gap: calc(var(--u) * 6);
  background: var(--sheet); color: var(--indigo); border-radius: calc(var(--u) * 14);
  font-family: var(--f-text); font-weight: 600; font-size: calc(var(--u) * 9); line-height: 1;
  padding: calc(var(--u) * 5) calc(var(--u) * 10) calc(var(--u) * 5) calc(var(--u) * 8);
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease);
  box-shadow: 0 0 0 1px rgba(28, 19, 101, .16), 0 6px 14px -6px rgba(28, 19, 101, .3);
}
.fiscal-chip::before { content: ""; width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; background: var(--amber); flex: none; }
.is-fiscal .fiscal-chip { opacity: 1; transform: none; transition-delay: .7s; }
.irn-mark { background: linear-gradient(var(--tint), var(--tint)) no-repeat left / 0% 100%; transition: background-size .5s var(--ease) .55s; }
.is-fiscal .irn-mark { background-size: 100% 100%; }

/* sample data on every object is marked, as in the guidelines mockups (literal capitals, not text-transform) */
.sample { position: absolute; right: calc(var(--u, 1px) * 12); bottom: calc(var(--u, 1px) * 5); font-family: var(--f-mono); font-size: calc(var(--u, 1px) * 7); letter-spacing: .08em; color: var(--muted); line-height: 1; }

/* hero stack: a hash-chained pile of invoices */
.stack {
  --rx: 56deg; --rz: -38deg; --gap: 46px;
  position: relative; width: 300px; height: 404px;
  transform-style: preserve-3d;
  transform: translateY(40px) rotateX(var(--rx)) rotateZ(var(--rz));
}
.stack > .inv {
  position: absolute; left: 0; top: 0;
  transform: translateZ(calc(var(--i) * var(--gap) + var(--drop, 0px)));
  transition: transform .95s var(--ease), opacity .5s var(--ease);
  transition-delay: calc(var(--i) * 85ms);
}
.stack.is-settled > .inv { transition: none; }
.stack > .inv::after { /* depth: older invoices sit in shadow */
  content: ""; position: absolute; inset: 0; border-radius: calc(var(--u) * 10); pointer-events: none;
  background: var(--paper); opacity: var(--fog, 0);
}
.stack:not(.is-in) > .inv { --drop: 260px; opacity: 0; }
.thread {
  position: absolute; width: 1.5px; height: var(--gap); background: var(--violet);
  transform-origin: 50% 0;
  /* +90deg: the thread rises from this sheet's hash to the next sheet up (checked in a screenshot) */
  transform: translateZ(calc(var(--i) * var(--gap))) rotateX(90deg);
  opacity: 0; transition: opacity .4s var(--ease);
  transition-delay: calc(900ms + var(--i) * 70ms);
}
.stack.is-in .thread { opacity: .9; }
.stack-label {
  position: absolute; font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease) 1.6s;
}
.stack.is-in ~ .stack-label { opacity: 1; }
.stack-label::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 8px; opacity: .6; }
@media (max-width: 1000px) {
  .stack { transform: translateY(10px) scale(.86) rotateX(var(--rx)) rotateZ(var(--rz)); }
  .stack-label { display: none; }
}
@media (max-width: 520px) {
  .stack { transform: scale(.7) rotateX(var(--rx)) rotateZ(var(--rz)); }
}

/* single tilted object (other heroes) */
.tilt {
  --rx: 18deg; --ry: -24deg; --rz: 3deg; --px: 0deg; --py: 0deg;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) + var(--px))) rotateY(calc(var(--ry) + var(--py))) rotateZ(var(--rz));
  position: relative;
}
.tilt .layer { position: absolute; transform: translateZ(var(--z, 0px)); }
@media (max-width: 520px) { .tilt { scale: .82; } }

/* ---------- obligation checker ---------- */
.checker { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: stretch; }
@media (max-width: 900px) { .checker { grid-template-columns: 1fr; gap: var(--s4); } }
.bands { display: grid; gap: var(--s2); align-content: start; }
.band {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  width: 100%; text-align: left; padding: 16px 18px; border-radius: var(--r);
  background: var(--sheet); border: 1px solid var(--rule); cursor: pointer;
  line-height: 1.2;
  transition: border-color .15s, background-color .15s, color .15s;
  font-family: var(--f-text); font-size: 18px; font-weight: 600; letter-spacing: 0;
}
.band:hover { border-color: rgba(28, 19, 101, .35); }
.band small { display: block; font-family: var(--f-text); font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.band[aria-checked="true"] { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.band[aria-checked="true"] small { color: rgba(246, 243, 238, .7); }
.band .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(28, 19, 101, .3); flex: none; display: grid; place-items: center; }
.band[aria-checked="true"] .tick { background: var(--lilac); border-color: var(--lilac); }
.band[aria-checked="true"] .tick::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); }
.verdict { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.verdict-when { font-family: var(--f-display); font-size: clamp(28px, calc(1.6vw + 18px), 40px); line-height: 1.15; letter-spacing: -.01em; font-weight: 650; }
.verdict-text { font-size: 16px; max-width: 34em; }
.verdict .fine { border-top: 1px solid var(--rule); padding-top: var(--s4); display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; margin-top: auto; }
.verdict .fine b { font-family: var(--f-display); white-space: nowrap; font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.verdict .fine p { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .verdict { padding: var(--s4); } .verdict .fine { grid-template-columns: 1fr; gap: var(--s1); } }

.phases { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.phases li { padding: var(--s3) var(--s3) 0 0; position: relative; color: var(--muted); transition: color .25s; }
.phases li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid rgba(28, 19, 101, .3); transition: background-color .25s, border-color .25s; }
.phases li.lit { color: var(--indigo); }
.phases li.lit::before { background: var(--violet); border-color: var(--violet); }
.phases .when { font-family: var(--f-display); display: block; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.phases .who { font-size: 13px; display: block; margin-top: 2px; }
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--rule); margin-left: 4px; }
  .phases li { padding: 0 0 var(--s3) var(--s4); }
  .phases li::before { top: 7px; left: -4.5px; }
}

/* ---------- how it works: sticky sheet + lit steps ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); }
.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.how-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: var(--s5) 0; opacity: .28; transition: opacity .35s var(--ease); counter-increment: step; }
.how-step:first-child { min-height: 50vh; }
.how-step.lit { opacity: 1; }
.how-step .n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: var(--s3); display: flex; align-items: center; gap: 10px; }
.how-step .n::before { content: counter(step, decimal-leading-zero); color: var(--indigo); }
.how-step .n::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--rule); }
.how-step h3 { margin-bottom: var(--s3); }
.how-step p { max-width: 30em; color: var(--muted); }
.how-stage { position: sticky; top: calc(var(--nav-h) + 24px); height: calc(100vh - var(--nav-h) - 48px); max-height: 760px; display: grid; place-items: center; }
.how-stage .scene { perspective: 1400px; }
.how-sheet { --rx: 16deg; --ry: -22deg; --rz: 2deg; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); transition: transform .8s var(--ease); position: relative; }
.how-sheet .inv { --w: 340px; font-size: 11px; }
.how-sheet .ghost { position: absolute; inset: 0; transform: translate3d(-34px, -30px, -90px); opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.how-sheet .ghost::after { content: ""; position: absolute; inset: 0; background: var(--sheet); opacity: .5; }
.how-sheet[data-state="2"] .ghost, .how-sheet[data-state="3"] .ghost { opacity: 1; }
.how-sheet[data-state="4"] { --rx: 8deg; --ry: -10deg; --rz: -2deg; }
.how-sheet[data-state="4"] .ghost { opacity: 0; transform: translate3d(-34px, -30px, -160px); }
.badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; z-index: 2;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 8px 12px; font-size: 13px; white-space: nowrap; color: var(--indigo);
  box-shadow: 0 18px 40px -22px rgba(28, 19, 101, .35);
  opacity: 0; transform: translateZ(60px) translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.badge svg { width: 16px; height: 16px; flex: none; }
.badge.show { opacity: 1; transform: translateZ(60px); }
.badge--qb { left: -48px; top: 52px; }
.badge--chain { right: -64px; top: 40%; }
.badge--mra { left: -56px; bottom: 96px; }
.badge--sent { right: -40px; bottom: 36px; }
.hl { transition: background-color .4s var(--ease), box-shadow .4s var(--ease); border-radius: 1px; }
.how-sheet[data-state="2"] .hl-2 { background: var(--tint); box-shadow: 0 0 0 2px var(--tint); }
.fill { position: relative; transition: color .3s; }
.how-sheet[data-state="1"] .fill { color: transparent; }
.how-sheet[data-state="1"] .fill::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(28, 19, 101, .25); }
.pdf-tab { position: absolute; left: 0; top: -26px; height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--indigo); color: var(--paper); font-family: var(--f-mono); font-size: 10px; border-radius: 6px 6px 0 0; opacity: 0; transition: opacity .3s; }
.pdf-tab svg { width: 12px; height: 12px; }
.how-sheet[data-state="4"] .pdf-tab, .pdf-tab.on { opacity: 1; }
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; gap: 0; }
  .how-stage { top: var(--nav-h); height: 52vh; min-height: 340px; z-index: 1; background: linear-gradient(var(--sheet) 88%, rgba(255, 255, 255, 0)); order: -1; }
  .how-stage .scene { transform: scale(.7); }
  .how-step, .how-step:first-child { min-height: 46vh; }
  .badge--qb, .badge--mra { left: -16px; } .badge--chain, .badge--sent { right: -16px; }
}
@media (max-width: 520px) { .how-stage .scene { transform: scale(.6); } }

/* ---------- spec sheet table (law vs us) ---------- */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 20px 0; border-top: 1px solid var(--rule); }
.spec thead th { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 0 12px; border-top: 0; }
.spec td:first-child { width: 46%; padding-right: var(--s5); font-family: var(--f-text); font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.spec td:last-child span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.spec tr:last-child td { border-bottom: 1px solid var(--rule); }
@media (max-width: 700px) {
  .spec thead { display: none; }
  .spec tr { display: block; border-top: 1px solid var(--rule); padding: 16px 0; }
  .spec td { display: block; border: 0; padding: 0; width: auto; }
  .spec td:first-child { padding: 0 0 6px; font-size: 18px; width: auto; }
  .spec tr:last-child { border-bottom: 1px solid var(--rule); }
  .spec tr:last-child td { border-bottom: 0; }
}

/* ---------- software list ---------- */
.soft { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.soft li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--s4); padding: 18px 0; border-bottom: 1px solid var(--rule); }
.soft .name { font-family: var(--f-display); line-height: 1.15; font-size: clamp(20px, calc(1.2vw + 12px), 24px); font-weight: 600; letter-spacing: -.005em; }
.soft .name small { display: block; font-family: var(--f-text); font-size: 14px; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.soft .state { font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.soft .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.soft .first .state { color: var(--indigo); }
.soft .first .state::before { background: var(--violet); border-color: var(--violet); }
@media (max-width: 560px) { .soft li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- reasons (a quiet 4-up) ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: var(--s7); }
.reasons > div { padding: var(--s5) var(--s4) 0 0; }
.reasons > div + div { padding-left: var(--s4); border-left: 1px solid var(--rule); }
.reasons h3 { margin-bottom: var(--s2); }
.reasons p { color: var(--muted); font-size: 15px; }
.reasons .big { font-family: var(--f-display); line-height: 1; margin-bottom: var(--s4); font-size: 56px; letter-spacing: -.01em; font-weight: 650; }
.reasons .big small { display: block; font-size: 15px; letter-spacing: 0; margin-top: 6px; color: var(--muted); font-family: var(--f-text); font-weight: 400; }
@media (max-width: 960px) {
  .reasons { grid-template-columns: 1fr 1fr; }
  .reasons > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .reasons > div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: var(--s5); }
}
@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons > div, .reasons > div + div { border-left: 0; padding: var(--s4) 0; }
  .reasons > div + div { border-top: 1px solid var(--rule); }
  .reasons > div:nth-child(n+3) { margin-top: 0; }
}

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.product { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s4); padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--paper); text-decoration: none; transition: border-color .2s; min-height: 320px; }
a.product:hover { border-color: rgba(28, 19, 101, .4); }
.product .when { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.product .when::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.product p { color: var(--muted); }
.product--now { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.product--now .when, .product--now p { color: rgba(246, 243, 238, .74); }
.product--now .when::before { background: var(--lilac); border-color: var(--lilac); }
.product .go { color: var(--violet); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.product--now .go { color: var(--lilac); }
.product .go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.product:hover .go svg { transform: translateX(3px); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } .product { min-height: 0; } }

/* ---------- steps (setup sequences) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; border-top: 1px solid var(--indigo); }
.steps li { counter-increment: s; padding: var(--s4) var(--s4) 0 0; }
.steps li + li { padding-left: var(--s4); border-left: 1px solid var(--rule); }
.steps li::before { content: counter(s); display: block; font-family: var(--f-display); line-height: 1; margin-bottom: var(--s4); font-size: 40px; letter-spacing: -.01em; font-weight: 650; }
.steps h3 { line-height: 1.3; margin: 0 0 var(--s2); font-family: var(--f-text); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.steps p { font-size: 14px; color: var(--muted); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .steps, .steps--4 { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: var(--s4) 0; border-left: 0; display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s3); }
  .steps li + li { border-top: 1px solid var(--rule); }
  .steps li::before { grid-row: span 2; margin: 0; font-size: 32px; }
}

/* ---------- split blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.split--center { align-items: center; }
.split > div { display: grid; gap: var(--s4); align-content: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s5); } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 13px; height: 7px; margin-top: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.ticks b { font-weight: 600; }
.ticks .more { display: inline; }

/* two ways to work (accountants) */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.way { padding: var(--s5); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); display: grid; gap: var(--s4); align-content: start; }
.way .big { font-family: var(--f-display); line-height: .92; font-size: clamp(48px, 5vw, 72px); letter-spacing: -.01em; font-weight: 650; }
.way .big small { font-size: 18px; letter-spacing: -.005em; color: var(--muted); display: block; margin-top: var(--s3); line-height: 1.3; font-weight: 400; }
.way p { color: var(--muted); }
.way--ink { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.way--ink .big small, .way--ink p { color: rgba(246, 243, 238, .72); }
@media (max-width: 800px) { .ways { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); align-items: stretch; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s4); padding: var(--s5) var(--s4); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-card); position: relative; }
.plan .name { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.005em; }
.plan .for { font-size: 14px; color: var(--muted); margin-top: 4px; min-height: 3em; }
.plan .price { font-family: var(--f-display); line-height: 1; font-variant-numeric: tabular-nums; font-size: 36px; letter-spacing: -.01em; font-weight: 650; }
.plan .price small { font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 4px; }
.plan .price .from { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; font-weight: 400; }
.plan dl { margin: 0; display: grid; border-top: 1px solid var(--rule); align-self: start; }
.plan dl div { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; font-weight: 500; text-align: right; }
.plan--pick { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.plan--pick .for, .plan--pick .price small, .plan--pick dt, .plan--pick .price .from { color: rgba(246, 243, 238, .68); }
.plan--pick dl, .plan--pick dl div { border-color: rgba(246, 243, 238, .16); }
.plan .tag { position: absolute; top: -11px; left: var(--s4); background: var(--violet); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.plan .btn { width: 100%; }
.plan--pick :focus-visible { outline-color: var(--lilac); }
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; row-gap: var(--s5); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }
.price-note { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); font-size: 14px; color: var(--muted); }

.estimator { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s3); }
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }
.est-in { display: grid; gap: var(--s5); align-content: start; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s5); }
.field { display: grid; gap: var(--s2); }
.field .lbl { font-weight: 500; font-size: 15px; display: flex; justify-content: space-between; gap: var(--s3); }
.field output { font-family: var(--f-mono); font-size: 13px; }
input[type="range"] { width: 100%; accent-color: var(--violet); height: 28px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 40px; padding: 0 14px; border: 1px solid var(--rule); background: var(--sheet); border-radius: var(--r); cursor: pointer; font-size: 14px; transition: border-color .15s; }
.seg button:hover { border-color: rgba(28, 19, 101, .4); }
.seg button[aria-pressed="true"] { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }
.est-out { background: var(--indigo); color: var(--on-indigo); border-radius: var(--r-card); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.est-out .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-bottom: 12px; border-bottom: 1px solid var(--rule-indigo); font-size: 15px; }
.est-out .row span:first-child { color: var(--on-indigo-muted); }
.est-out .row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.est-out .headline { font-family: var(--f-display); line-height: 1; font-variant-numeric: tabular-nums; font-size: clamp(36px, 3.4vw, 48px); letter-spacing: -.01em; font-weight: 650; }
.est-out .headline small { font-size: 16px; letter-spacing: 0; color: var(--on-indigo-muted); font-weight: 400; margin-left: 6px; }
.est-out .plan-pill { display: inline-block; background: var(--violet); color: #FFFFFF; font-weight: 600; font-size: 13px; padding: 4px 9px; border-radius: 4px; justify-self: start; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 16px var(--s3) 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table thead th { font-weight: 500; color: var(--muted); font-size: 13px; padding-top: 0; }
.table td:last-child, .table th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.table td:first-child { font-weight: 500; }
.table td .sub { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
@media (max-width: 600px) { .table { font-size: 14px; } .table td .sub { font-size: 13px; } .table td:last-child { white-space: normal; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 22px 0; line-height: 1.3; font-family: var(--f-text); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { width: 14px; height: 14px; position: relative; flex: none; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .a { padding: 0 0 24px; max-width: 44em; color: var(--muted); }

/* ---------- closing section and form ---------- */
.close { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
@media (max-width: 900px) { .close { grid-template-columns: 1fr; gap: var(--s5); } }
.close-copy { display: flex; flex-direction: column; gap: var(--s4); align-self: stretch; }
.close-copy .lede { color: var(--on-indigo-muted); }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s3); background: var(--indigo-2); border: 1px solid var(--rule-indigo); border-radius: var(--r-card); padding: var(--s5); }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--on-indigo); }
.form label .opt { color: var(--on-indigo-muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r);
  background: var(--indigo); color: var(--on-indigo); border: 1px solid var(--rule-indigo);
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.form textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-indigo-muted) 50%), linear-gradient(135deg, var(--on-indigo-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form select option { background: var(--indigo); color: var(--on-indigo); }
.form input::placeholder, .form textarea::placeholder { color: rgba(185, 168, 245, .6); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(246, 243, 238, .3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(185, 168, 245, .28); }
.form [aria-invalid="true"] { border-color: var(--err-line); }
.form .err { color: var(--err); font-size: 13px; margin-top: 6px; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.form-foot p { font-size: 13px; color: var(--on-indigo-muted); flex: 1 1 220px; }
.form-status { grid-column: 1 / -1; border-radius: var(--r); padding: 14px 16px; font-size: 15px; }
.form-status.is-err { background: rgba(180, 35, 24, .16); border: 1px solid rgba(249, 112, 102, .4); color: #FECDCA; }
.form-done { background: var(--indigo-2); border: 1px solid var(--rule-indigo); border-radius: var(--r-card); padding: var(--s6) var(--s5); display: grid; gap: var(--s3); }
.form-done:focus { outline: none; }
.form-done .ok { width: 44px; height: 44px; border-radius: 50%; background: var(--violet); color: #FFFFFF; display: grid; place-items: center; }
.form-done .ok svg { width: 20px; height: 20px; }
.form-done p { color: var(--on-indigo-muted); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: var(--s4); } }

/* ---------- footer ---------- */
.foot { background: var(--indigo); color: var(--on-indigo-muted); border-top: 1px solid var(--rule-indigo); padding: var(--s7) 0 var(--s6); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.foot .brand { color: var(--on-indigo); }
.foot h2 { font-size: 14px; font-weight: 500; color: var(--on-indigo); margin: 0 0 var(--s3); font-family: var(--f-text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-indigo); }
.foot .legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule-indigo); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: 13px; }
.foot .about { margin-top: var(--s3); max-width: 28em; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- XBRL sheet ---------- */
.fs { --w: 330px; width: var(--w); background: var(--sheet); color: var(--indigo); border-radius: var(--r-card); padding: 20px; font-size: 10.5px; box-shadow: var(--shadow-sheet); position: relative; }
.fs .fs-title { font-family: var(--f-display); font-size: 13px; margin: 0 0 2px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.fs .sub { color: var(--muted); font-size: 9px; margin-bottom: 12px; display: block; }
.fs table { width: 100%; border-collapse: collapse; }
.fs td { padding: 6px 0; border-top: 1px solid var(--rule); position: relative; line-height: 1.4; }
.fs td:last-child { text-align: right; font-family: var(--f-mono); font-size: 9px; white-space: nowrap; }
.fs tr.hd td { border-top: 0; padding: 0 0 4px; color: var(--muted); }
.fs tr.tot td { font-weight: 600; border-top: 1px solid var(--indigo); }
/* XBRL tags hang off the sheet edge at their row, joined to it by a short line */
.xtag {
  --g: 16px;   /* gap between the tag and the sheet edge */
  --reach: calc(var(--g) + 14px); /* the line crosses the gap and the sheet margin */
  position: absolute; top: 50%; white-space: nowrap; font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  background: var(--violet); color: #FFFFFF; padding: 4px 7px; border-radius: 4px; line-height: 1.2; text-align: left;
  box-shadow: 0 14px 30px -14px rgba(28, 19, 101, .6);
  transform: translateY(-50%);
  opacity: 0; transition: opacity .4s var(--ease), translate .5s var(--ease);
  transition-delay: calc(500ms + var(--i, 0) * 220ms);
  translate: 0 8px;
}
.xtag::before { content: ""; position: absolute; top: 50%; width: var(--reach); height: 1px; background: var(--violet); }
.xtag::after { content: ""; position: absolute; top: calc(50% - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 1px var(--sheet); }
.xtag.l { right: calc(100% + 20px + var(--g)); }
.xtag.r { left: calc(100% + 20px + var(--g)); }
.xtag.l::before { left: 100%; }
.xtag.r::before { right: 100%; }
.xtag.l::after { left: calc(100% + var(--reach) - 2.5px); }
.xtag.r::after { right: calc(100% + var(--reach) - 2.5px); }
.is-in .xtag { opacity: 1; translate: 0 0; }

/* firms board (accountants hero) */
.board { width: 340px; display: grid; gap: 10px; transform-style: preserve-3d; }
.client { background: var(--sheet); color: var(--indigo); border-radius: var(--r-card); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; box-shadow: var(--shadow-sheet); font-size: 11px; }
.client b { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: 0; }
.client .st { font-size: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--rule); white-space: nowrap; }
.client .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.client .st.live { background: var(--violet); border-color: var(--violet); color: #FFFFFF; }
.client .st.live::before { background: #FFFFFF; border-color: #FFFFFF; }
.client small { color: var(--muted); grid-column: 1 / -1; font-family: var(--f-mono); font-size: 9px; }

/* =====================================================================
   Additions to the reference sheet (same tokens): page chrome, the 3D
   objects' sequences, form fields, small utilities.
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
@media (min-width: 701px) { .nowrap-wide { white-space: nowrap; } }
main:focus { outline: none; }

/* the sticky nav floats over the top of the first section: heroes pad down by the nav height */
.nav { margin-bottom: calc(-1 * var(--nav-h)); }
.hero { padding-top: var(--nav-h); }
.nav-main { margin-left: auto; }
.nav-main .nav-links { margin: 0; }
@media (min-width: 1081px) { .menu { display: none !important; } }
.menu { inset: var(--nav-h) 0 0 0; overflow-y: auto; overscroll-behavior: contain; }
.menu li a { color: var(--on-indigo-muted); }
.menu li a[aria-current="page"], .menu li a:hover { color: var(--on-indigo); }

/* ---------- e-invoicing hero: invoice stack height, thread, labels, depth ---------- */
.stack { height: 390px; }
.stack > .inv { box-shadow: var(--shadow-sheet); }
.thread { left: 262px; top: 372px; width: 2px; margin-left: -1px; }
/* labels sit around the pile, placed from the centre of the visual */
.stack-label {
  left: 50%; top: 50%; width: 176px; margin: 0;
  display: flex; gap: 10px; align-items: flex-start;
  white-space: normal; line-height: 1.55; z-index: 3;
}
.stack-label::before { flex: none; display: block; width: 24px; height: 1px; margin: .78em 0 0; }
/* The crop sits behind these, so each label is placed where it sits on one plane or on plain Paper
   (the test checks it at every width). IRN: above the pile, its leader dropping to the invoice's top edge; short enough that its top clears the 64 px nav on a 720 px tall screen. The crop scales with the viewport width, so the label's x follows it (22vw) to stay on the Paper above the notch between two planes */
.stack-label--irn { margin: -348px 0 0 calc(22vw - 366px); width: 160px; flex-direction: column; gap: 8px; }
.stack-label--irn::before { order: 2; width: 1px; height: 64px; margin: 0; }
/* chain: under the pile, its leader rising to the threads */
.stack-label--chain { margin: 224px 0 0 -46px; width: 140px; flex-direction: column; gap: 8px; }
.stack-label--chain::before { width: 1px; height: 30px; margin: 0; }
@media (min-width: 1001px) {
  .stack { transform: translate(-40px, 40px) rotateX(var(--rx)) rotateZ(var(--rz)); }
}
/* small desktops: the copy column is narrow, so the pile shrinks and centres */
@media (min-width: 1001px) and (max-width: 1279px) {
  .stack { transform: translate(-6px, 30px) scale(.8) rotateX(var(--rx)) rotateZ(var(--rz)); }
  .tilt--qb { scale: .86; }
}
@media (max-width: 520px) {
  .hero-visual--stack { height: 380px; margin-top: var(--s4); }
  .stack { transform: translate(-8px, 14px) scale(.64) rotateX(var(--rx)) rotateZ(var(--rz)); }
}
/* very wide screens: the crop keeps scaling up with the viewport, so both labels move again to stay off the plane edges */
@media (min-width: 2200px) {
  .stack-label--irn { margin-left: calc(28vw - 712px); }
  .stack-label--chain { margin-left: 20px; }
}
@media (max-width: 1279px) { .stack-label { display: none; } }
/* the chain reads in violet: each hash and prev-hash is underlined in the action colour */
.stack .inv [data-k="hash"], .stack .inv [data-k="prev"] { box-shadow: inset 0 -1.5px 0 var(--violet); }
.thread { box-shadow: 0 0 6px rgba(91, 46, 224, .45); }

/* ---------- how it works ---------- */
/* The stage sticks with its centre on the viewport centre; the first and last
   steps are as tall as the stage so step 1 and step 4 can sit centred too. */
.how { --stage-h: min(calc(100vh - var(--nav-h) - 48px), 760px); }
@media (min-width: 901px) {
  .how-stage { height: var(--stage-h); max-height: none; top: max(calc(var(--nav-h) + 8px), calc(50vh - var(--stage-h) / 2)); }
  .how-step:first-child, .how-step:last-child { min-height: var(--stage-h); }
}
.how-sheet .inv { --u: 1.2px; }
/* x offset is large because the sheet's rotateY pulls a far-back ghost to the right */
.how-sheet .ghost { transform: translate3d(-96px, -44px, -80px); }
.how-sheet .ghost::after { opacity: .36; }
.how-sheet[data-state="4"] .ghost { transform: translate3d(-96px, -44px, -200px); }
/* sheets that carry a PDF tab on the top edge wear the fiscal chip on the bottom edge,
   next to the IRN and QR it certifies, so tab and chip never meet */
.how-sheet .fiscal-chip, .tilt--qb .fiscal-chip { top: auto; bottom: calc(var(--u) * -11); transform: translateY(-4px); }
.how-sheet .is-fiscal .fiscal-chip, .tilt--qb .is-fiscal .fiscal-chip { transform: none; }
@media (max-width: 900px) {
  .how-stage { height: 56vh; }
  .how-stage .scene { transform: scale(.8); }
}
@media (max-width: 900px) and (max-height: 720px) { .how-stage .scene { transform: scale(.66); } }
.how-sheet .ghost .inv { box-shadow: var(--shadow-sheet); }
/* badges float just off the sheet so they never cover what the state is about */
.badge--qb { left: -36px; top: -26px; }
.badge--chain { right: -28px; top: auto; bottom: -56px; }
.badge--mra { left: -28px; bottom: -56px; }
.badge--sent { right: -28px; bottom: auto; top: -74px; }
/* phones: the sheet is pinned under the nav, so the last badge goes below it */
@media (max-width: 900px) { .badge--sent { top: auto; bottom: -56px; right: auto; left: -28px; } }
.badge svg { color: var(--indigo); }
.how-sheet[data-state="1"] .fill-3, .how-sheet[data-state="2"] .fill-3 { color: transparent; }
.how-sheet[data-state="1"] .fill-3::after, .how-sheet[data-state="2"] .fill-3::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(28, 19, 101, .25); }
.how-sheet[data-state="1"] .fiscal-chip, .how-sheet[data-state="2"] .fiscal-chip { opacity: 0; }
.how-sheet .pdf-tab { font-size: 9.5px; padding: 0 9px; }
/* big promise figures are labels in ink, not muted body copy */
.reasons .big, .way .big { color: var(--indigo); }
.way--ink .big { color: var(--paper); }

/* ---------- single tilted objects: load sequences ---------- */
.hero--short .hero-visual--qb { height: 540px; }
@media (max-width: 1000px) { .hero--short .hero-visual--qb { height: 500px; } }
@media (max-width: 520px) {
  .hero--short .hero-visual--qb { height: 430px; }
  .tilt--qb { scale: .74; }
  .tilt--qb .qb-card { left: -12px; }
}
.tilt--qb .inv { --u: 1.2px; transform: translateZ(0); transition: transform .9s var(--ease), opacity .6s var(--ease); }
.tilt--qb:not(.is-in) .inv { transform: translateZ(-80px) translateY(24px); opacity: 0; }
.tilt--qb .pdf-tab { left: 0; top: -26px; transition: opacity .4s var(--ease) 1.5s; }
.tilt--qb .pdf-tab { font-size: 9.5px; padding: 0 9px; }
.tilt--qb:not(.is-in) .pdf-tab { opacity: 0; }
.qb-card {
  left: -56px; bottom: -30px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--sheet); color: var(--indigo); border-radius: var(--r-card); padding: 10px 14px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  box-shadow: var(--shadow-sheet);
  opacity: 0; translate: 0 10px; transition: opacity .45s var(--ease) 1.7s, translate .55s var(--ease) 1.7s;
}
.qb-card svg { width: 15px; height: 15px; flex: none; }
.tilt--qb.is-in .qb-card { opacity: 1; translate: 0 0; }

.board .client { transform: translateZ(0); transition: transform .8s var(--ease), opacity .5s var(--ease); transition-delay: calc(200ms + var(--i, 0) * 70ms); }
.tilt--board:not(.is-in) .client { transform: translateZ(80px); opacity: 0; }
.client .st--off { color: var(--muted); }
.client:last-child { position: relative; padding-bottom: 22px; }
.client .sample { right: 12px; bottom: 7px; font-size: 10px; }

.flat-figure { display: grid; place-items: center; padding: var(--s5) 0; }
.flat-figure .inv { --u: min(1.3px, calc((100vw - 40px) / 300)); box-shadow: var(--shadow-sheet); }

/* ---------- XBRL hero gets a wider stage for its tags ---------- */
@media (min-width: 1001px) { .hero--fs .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.hero--fs .hero-copy .lede { max-width: 28em; }
.tilt--fs { scale: .94; }
@media (max-width: 1279px) { .tilt--fs { scale: .82; } }
@media (max-width: 1150px) { .tilt--fs { scale: .74; } }
@media (max-width: 1000px) { .tilt--fs { scale: 1; } }
/* phones: no room beside the sheet, so each tag sits under its row (still
   alternating: under the label or under the figure), ticked to the value */
@media (max-width: 600px) {
  .hero--short.hero--fs .hero-visual { height: 470px; }
  .tilt--fs .fs { --w: 312px; padding: 18px; }
  .fs tr.tagged td { padding-bottom: 30px; }
  .fs .xtag { top: auto; bottom: 7px; transform: none; font-size: 9px; padding: 3px 6px; }
  .fs .xtag.l { left: 0; right: auto; }
  .fs .xtag.r { right: 0; left: auto; }
  .fs .xtag::before { width: 1px; height: 6px; top: -7px; left: 9px; right: auto; }
  .fs td:last-child .xtag::before { left: auto; right: 9px; }
  .fs .xtag::after { display: none; }
}

/* ---------- 404: the Paper hero with its facet crop alone, tall enough to read as a page ---------- */
.hero--404 .hero-grid { min-height: min(calc(100svh - var(--nav-h) - 96px), 640px); align-content: center; }

/* ---------- form fields ---------- */
.form .f { min-width: 0; }
.form-wrap { min-width: 0; }
.form-status:not([hidden]) { display: block; }
.form-done h3 { color: var(--on-indigo); }
.form .btn .spin { margin-right: 2px; }

/* prices bottom-align so the four tables line up, "from" or not */
.plan .price { min-height: 70px; display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-end; column-gap: 4px; }
.plan .price .from { flex-basis: 100%; }
.plan .price small { margin-left: 0; }

/* prices never break across lines; the description column wraps instead */
@media (max-width: 600px) { .table td:last-child { white-space: nowrap; } }

/* ---------- estimator ---------- */
.range-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.est-out .rows { display: grid; gap: 12px; }
.est-out .row i { font-style: normal; font-family: var(--f-mono); font-size: 12px; margin-left: 6px; opacity: .8; }
.est-out .headline small:empty { display: none; }

/* ---------- payroll concept screen (guidelines 6.2 and 7.7): a picture, aria-hidden ---------- */
figure.hero-visual { margin: 0; }
@media (min-width: 1001px) { .hero--app .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.hero--short .hero-visual--app { height: 520px; }
.tilt--app { --rx: 10deg; --ry: -16deg; --rz: 1deg; }
.app { width: 600px; background: var(--sheet); color: var(--indigo); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sheet); font-size: 11px; line-height: 1.4; text-align: left; }
.app-bar { height: 30px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--tint-2); border-bottom: 1px solid var(--rule); }
.app-dots { display: flex; gap: 5px; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(28, 19, 101, .18); }
.app-url { flex: 1; max-width: 260px; height: 18px; display: flex; align-items: center; padding: 0 10px; border-radius: 9px; background: var(--sheet); border: 1px solid var(--rule); font-size: 9.5px; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.app-side { display: grid; gap: 2px; align-content: start; padding: 14px; background: var(--indigo); color: var(--lilac); }
.app-side img { width: 132px; height: 28px; margin-bottom: 12px; }
.app-ni { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 10.5px; }
.app-ni.on { background: rgba(246, 243, 238, .1); color: var(--paper); }
.app-main { display: grid; gap: 10px; padding: 14px 16px 12px; background: var(--paper); }
.app-h { display: flex; align-items: center; gap: 8px; }
.app-h .crumb { display: block; font-size: 9.5px; color: var(--muted); }
.app-h b { font-family: var(--f-display); font-weight: 650; font-size: 15px; }
.app-pill { padding: 3px 8px; border-radius: 10px; background: var(--tint); font-size: 9px; font-weight: 600; }
.app-btn { margin-left: auto; padding: 6px 10px; border-radius: 5px; background: var(--violet); color: #FFFFFF; font-size: 9.5px; font-weight: 600; }
.app-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-kpis div { padding: 8px 10px; border-radius: 8px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.app-kpis em { display: block; font-style: normal; font-size: 9px; color: var(--muted); }
.app-kpis b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-t { width: 100%; border-collapse: collapse; background: var(--sheet); border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); font-size: 9.5px; }
.app-t th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.app-t td { padding: 5px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.app-t .r { text-align: right; font-variant-numeric: tabular-nums; }
.app-t .b { font-weight: 700; }
.app-t .code { font-family: var(--f-mono); font-size: 9px; color: var(--muted); }
.app-av { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: var(--tint); font-size: 7px; font-weight: 700; vertical-align: middle; }
.app-foot { font-family: var(--f-mono); font-size: 8.5px; color: var(--muted); }
.vis-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.tilt--app .app { transition: transform .9s var(--ease), opacity .6s var(--ease); }
.tilt--app:not(.is-in) .app { transform: translateZ(-80px) translateY(24px); opacity: 0; }
@media (max-width: 1279px) { .tilt--app { scale: .8; } }
@media (max-width: 1000px) { .tilt--app { scale: 1; } .hero--short .hero-visual--app { height: 500px; } }
@media (max-width: 760px) { .tilt--app { scale: .85; } }
@media (max-width: 600px) {
  .tilt--app { scale: .72; }
  .app { width: 440px; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .app-t tbody tr:nth-child(n+4) { display: none; }
  .hero--short .hero-visual--app { height: 360px; }
}

/* ---------- home hero: the product family (XBRL sheet, payroll card, invoice) ---------- */
.tilt--family { --rx: 12deg; --ry: -18deg; --rz: 2deg; width: 560px; height: 560px; }
.fam { position: absolute; transition: transform .9s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--i) * 160ms); }
.tilt--family:not(.is-in) .fam { transform: translateZ(-80px) translateY(28px); opacity: 0; }
.fam--fs { left: -90px; top: 90px; transform: translateZ(-60px); }
.fam--fs .fs { --w: 280px; }
.fam--pay { right: -50px; top: -20px; transform: translateZ(-30px); }
.fam--inv { left: 215px; top: 250px; transform: translateZ(0); }
/* the sheet is small here, so its tags sit under their rows, inside the sheet */
.fam--fs .fs tr.tagged td { padding-bottom: 26px; }
.fam--fs .xtag { top: auto; bottom: 6px; transform: none; font-size: 8.5px; padding: 3px 6px; }
.fam--fs .xtag.l { left: 0; right: auto; }
.fam--fs .xtag.r { right: 0; left: auto; }
.fam--fs .xtag::before { width: 1px; height: 6px; top: -7px; left: 9px; right: auto; }
.fam--fs td:last-child .xtag::before { left: auto; right: 9px; }
.fam--fs .xtag::after { display: none; }
.pay { width: 280px; display: grid; gap: 10px; padding: 14px; background: var(--paper); color: var(--indigo); border-radius: var(--r-card); box-shadow: var(--shadow-sheet); font-size: 11px; line-height: 1.4; }
.pay .app-t td:nth-child(3), .pay .app-t td:nth-child(4) { display: none; }
.hero-visual--family { height: 640px; }
@media (min-width: 1001px) and (max-width: 1299px) { .tilt--family { scale: .82; } }
@media (max-width: 1000px) { .hero-visual--family { height: 570px; } .tilt--family { scale: .78; } }
@media (max-width: 600px) {
  .fam--fs { display: none; }
  .fam--pay { right: auto; left: 55px; top: 0; }
  .fam--inv { left: 205px; top: 110px; }
  /* centres the scaled family on the phone: its 560 px box starts at the 16 px gutter, so its middle is at about 296 px;
     the viewport's half minus 306 px lands it in the middle (the extra 10 px was tuned by eye) */
  .tilt--family { scale: .58; translate: calc(50vw - 306px) -14px; }
  .hero-visual--family { height: 380px; }
}

/* ---------- product cards with icons (home) ---------- */
.products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.products--4 .product { grid-template-rows: auto auto auto 1fr auto; min-height: 380px; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--tint-icon); color: var(--violet); }
.product--now .ico { background: rgba(246, 243, 238, .1); color: var(--lilac); }
@media (max-width: 1080px) { .products--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .products--4 { grid-template-columns: 1fr; } .products--4 .product { min-height: 0; } }

/* ---------- home: three-column rules table, audiences, three reasons ---------- */
.spec--3 td:nth-child(2) { color: var(--muted); font-size: 15px; }
@media (min-width: 701px) {
  .spec--3 td:first-child { width: 40%; }
  .spec--3 td:nth-child(2) { width: 22%; padding-right: var(--s5); }
}
.audiences { list-style: none; margin: var(--s6) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.audiences li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.audiences p { font-size: 18px; max-width: 40em; }
.audiences b { font-weight: 600; }
@media (max-width: 640px) {
  .audiences li { grid-template-columns: 44px minmax(0, 1fr); row-gap: var(--s2); }
  .audiences li .link { grid-column: 2; }
}
.reasons--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .reasons--3 { grid-template-columns: 1fr; }
  .reasons--3 > div, .reasons--3 > div + div { border-left: 0; padding: var(--s4) 0; margin-top: 0; }
  .reasons--3 > div + div { border-top: 1px solid var(--rule); }
}

/* ---------- facet device (guidelines 6.1): one crop per surface, never under text ---------- */
.facets { position: absolute; z-index: 0; pointer-events: none; }
.facets svg { display: block; width: 100%; height: 100%; }
.hero-visual > .scene { position: relative; z-index: 1; }
/* hero: behind the picture, bleeding off the right edge of the page */
.hero-visual > .facets--hero {
  top: -12%; bottom: -12%; left: 8%;
  right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--wrap) - 2 * var(--gutter)) / 2));
}
@media (max-width: 1000px) {
  /* stacked: the picture spans the page, so the crop runs from edge to edge under it */
  .hero-visual > .facets--hero { top: 0; bottom: calc(-1 * var(--s6)); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
}
/* payroll: the crop ends above the caption, so the caption sits on plain Paper */
.hero-visual--app > .facets--hero { bottom: 36px; }
/* closing section: bottom left, under the copy column's empty space */
.close-sec { position: relative; overflow: clip; }
.close-sec > .wrap { position: relative; z-index: 1; }
/* the crop is the last item of the copy column and fills the column's empty space under the ticks, so it
   can never reach the text; negative margins bleed it off the section's left and bottom edges */
.facets--close {
  position: relative; flex: 1 1 0; min-height: 120px;
  margin: 0 0 calc(-1 * var(--s8)) calc(-1 * var(--gutter) - max(0px, (100vw - var(--wrap) - 2 * var(--gutter)) / 2));
}
.facets--close svg { position: absolute; inset: 0; }  /* the crop's box comes from the column, not from the picture */
@media (max-width: 900px) { .facets--close { display: none; } }
@media (min-width: 1001px) { .hero--404 .hero-visual { height: 420px; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .stack:not(.is-in) > .inv { --drop: 0px; opacity: 1; }
  .stack .thread, .stack-label { opacity: .9; }
  .qr svg { clip-path: inset(0 0 0 0); }
  .tilt--qb:not(.is-in) .inv, .tilt--board:not(.is-in) .client { transform: none; opacity: 1; }
  .tilt--app:not(.is-in) .app { transform: none; opacity: 1; }
  .xtag, .qb-card, .tilt--qb .pdf-tab { opacity: 1; translate: none; }
  .tilt--family:not(.is-in) .fam { opacity: 1; }
}
