/* PrismaCount marketing page: reset, type, layout, bands and components.
   Owned by the page builder. Motion lives in motion.css; nothing here animates on its own
   except colour and press feedback that answers the visitor's action. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h-small) + 16px);
  scrollbar-color: var(--rule-strong) var(--paper);
  hanging-punctuation: first last;
}
@media (min-width: 960px) {
  html { font-size: 106.25%; scroll-padding-top: calc(var(--bar-h) + 16px); }
}
body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, canvas, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
ul[class], ol[class] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--champagne); color: var(--on-champagne); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 12px 16px;
  background: var(--champagne); color: var(--on-champagne);
  border-radius: var(--r-button);
  font-weight: 600; text-decoration: none;
  translate: 0 -200%;
}
.skip-link:focus-visible { translate: 0 0; outline-color: var(--night-focus); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--ink);
}
h1 {
  font-size: var(--fs-display);
  font-weight: 380;
  font-variation-settings: "opsz" 72;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  line-height: 1.06;
  letter-spacing: -0.016em;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  line-height: 1.2;
  letter-spacing: -0.006em;
}
p, li, dd, figcaption, summary { text-wrap: pretty; }
p, li { max-width: 66ch; }
.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  max-width: 56ch;
  color: var(--ink-2);
}
.small { font-size: var(--fs-small); line-height: 1.5; letter-spacing: .005em; }
b, strong { font-weight: 650; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.band-ledger, .band-night {
  position: relative;
  padding-block: var(--band-pad);
}
.band-ledger { background: var(--paper); color: var(--ink); }
.band-night {
  /* Night bands always use Midnight, whatever the visitor's preference. */
  --ink: var(--night-ink);
  --ink-2: var(--night-ink-2);
  --rule: var(--night-rule);
  --rule-strong: var(--night-rule-strong);
  --link: var(--champagne);
  --focus: var(--night-focus);
  --bronze: var(--champagne);
  --bronze-ink: var(--champagne);
  --warn: var(--night-warn);
  --btn-fill: var(--champagne);
  --btn-fill-hi: var(--champagne-hi);
  --btn-on-fill: var(--on-champagne);
  --btn-line: var(--champagne);
  --btn-line-ink: var(--champagne);
  --btn-line-hover: rgba(220, 194, 140, .12);
  --shadow-sheet: var(--shadow-sheet-night);
  background-color: var(--night);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  color: var(--ink);
  scrollbar-color: var(--night-rule-strong) var(--night);
}
:root, .band-ledger {
  --btn-fill: var(--primary);
  --btn-fill-hi: var(--primary-hi);
  --btn-on-fill: var(--on-primary);
  --btn-line: var(--primary);
  --btn-line-ink: var(--ink);
  --btn-line-hover: color-mix(in srgb, var(--primary) 8%, transparent);
}
.section-head { display: grid; gap: 20px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

/* Light paper sheets keep their light look in both modes. */
.sheet {
  --ink: var(--sheet-ink);
  --ink-2: var(--sheet-ink-2);
  --rule: var(--sheet-rule);
  --rule-strong: #8b8576;
  --bronze: var(--sheet-bronze);
  --bronze-ink: #6f5226;
  --link: var(--sheet-link);
  --focus: var(--sheet-focus);
  --warn: var(--sheet-warn);
  --warn-wash: var(--sheet-warn-wash);
  --btn-fill: #1d2942;
  --btn-fill-hi: #2a3a5c;
  --btn-on-fill: #fbf8f1;
  --btn-line: #1d2942;
  --btn-line-ink: #171e2c;
  --btn-line-hover: rgba(29, 41, 66, .08);
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-sheet);
  color-scheme: light;
}

/* ---------- Icons ---------- */
.icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-button);
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; line-height: 1; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease-std), border-color 160ms var(--ease-std), color 160ms var(--ease-std), box-shadow 160ms var(--ease-std);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--fill, .btn--sheet { background: var(--btn-fill); color: var(--btn-on-fill); }
.btn--fill:hover, .btn--sheet:hover { background: var(--btn-fill-hi); text-decoration: none; }
.band-night .btn--fill:hover, .site-bar[data-over="night"] .btn--fill:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--outline, .btn--sheet-outline { border-color: var(--btn-line); color: var(--btn-line-ink); background: transparent; }
.btn--outline:hover, .btn--sheet-outline:hover { background: var(--btn-line-hover); text-decoration: none; }
.btn--ghost { border-color: var(--rule-strong); color: inherit; background: transparent; padding: 0 14px; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active, .staff-card:active { scale: .98; transition: scale var(--dur-press) var(--ease-std); }
}

/* ---------- Double rule (bronze on ledger, champagne on night) ---------- */
[data-rule="double"] { position: relative; padding-bottom: 10px; }
[data-rule="double"]::before,
[data-rule="double"]::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: var(--bronze);
  transform-origin: left center;
}
[data-rule="double"]::before { bottom: 4px; }
[data-rule="double"]::after { bottom: 0; }

/* ---------- Top bar ---------- */
.site-bar {
  --bar-bg: var(--night);
  --bar-ink: var(--night-ink);
  position: sticky; top: 0; z-index: 40;
  background: var(--bar-bg);
  color: var(--bar-ink);
  transition: background-color 200ms var(--ease-std), color 200ms var(--ease-std), box-shadow 200ms var(--ease-std);
}
.site-bar[data-over="night"] {
  --ink: var(--night-ink); --ink-2: var(--night-ink-2);
  --rule-strong: var(--night-rule-strong);
  --focus: var(--night-focus);
  --bronze: var(--champagne);
  --btn-fill: var(--champagne); --btn-fill-hi: var(--champagne-hi); --btn-on-fill: var(--on-champagne);
}
.site-bar[data-over="ledger"] {
  --bar-bg: var(--paper);
  --bar-ink: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.site-bar__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--bar-h-small);
}
@media (min-width: 960px) { .site-bar__inner { height: var(--bar-h); } }

.wordmark {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 500;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.012em;
  line-height: 1;
  color: inherit; text-decoration: none;
  padding-block: 10px;
}
.wordmark__count[data-rule="double"] { padding-bottom: 6px; }
.wordmark__count[data-rule="double"]::before { bottom: 2px; height: 1px; }
.wordmark__count[data-rule="double"]::after { height: 1px; }
.wordmark--sheet .wordmark__count,
.wordmark--footer .wordmark__count { border-bottom: 3px double var(--bronze); padding-bottom: 3px; }

.site-nav { display: none; margin-inline-start: auto; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  color: inherit; text-decoration: none; font-weight: 500;
  border-radius: var(--r-button);
}
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 2px; text-underline-offset: .4em; }
.site-bar__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.btn--bar { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.menu-button { min-height: 44px; }
@media (min-width: 960px) {
  .site-nav { display: block; }
  .site-bar__actions { margin-inline-start: 8px; }
  .menu-button { display: none; }
  .btn--bar { min-height: 42px; }
}
@media (max-width: 420px) {
  .btn--bar { padding: 0 12px; font-size: .875rem; }
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-button { padding: 0 11px; min-width: 44px; }
  .wordmark { font-size: 1.3rem; }
}

.progress-rule {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--champagne);
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}
html:not([data-js]) .progress-rule { display: none; }

.site-menu {
  inset: auto;
  top: calc(var(--bar-h-small) + 8px);
  right: var(--gutter);
  min-width: 220px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-button);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sheet);
}
.site-menu a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  color: inherit; text-decoration: none; font-weight: 500; border-radius: 4px;
}
.site-menu a:hover { background: var(--leaf); }

/* ---------- Sound control (in the bar; wired by audio.js through main.js) ---------- */
.sound {
  position: relative;
  display: flex; align-items: stretch;
  color: inherit;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
}
html:not([data-js]) .sound { display: none; }
html[data-sound="on"] .sound { border-color: var(--bronze); box-shadow: 0 0 0 1px var(--bronze); }
.sound__toggle, .sound__settings {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; min-width: 42px; padding: 0 10px;
  background: none; border: 0; border-radius: var(--r-pill);
  color: inherit;
  font-size: .9375rem; font-weight: 600;
}
.sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sound__settings { padding: 0 8px; min-width: 36px; border-left: 1px solid var(--rule); border-radius: 0 var(--r-pill) var(--r-pill) 0; }
html:not([data-sound="on"]) .sound__settings { display: none; }
.sound__arc { display: none; }
html[data-sound="on"] .sound__arc { display: inline; }
html[data-sound="on"] .sound__slash { display: none; }
.sound__panel {
  inset: auto;
  top: calc(var(--bar-h-small) + 8px); right: var(--gutter);
  margin: 0;
  min-width: 200px;
  padding: 14px 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-dialog);
  box-shadow: var(--shadow-sheet);
}
.sound__panel p { font-weight: 600; margin-bottom: 6px; }
.sound__panel label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.sound__panel input { width: 20px; height: 20px; accent-color: var(--bronze); }
@media (min-width: 960px) {
  .sound__panel { top: calc(var(--bar-h) + 8px); }
}
@media (min-width: 1200px) {
  .sound__toggle { padding: 0 14px 0 12px; }
  .sound__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}
/* ---------- Language switcher (bar and footer; build.mjs writes the three links) ----------
   A pill like the sound control. The current language carries the ledger's double rule, the same mark
   the page uses for a figure that is final. */
.lang { position: relative; display: flex; }
.lang__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; min-width: 44px; padding: 0 12px 0 10px;
  background: none; color: inherit;
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
.lang__toggle:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.lang__toggle .icon { width: 18px; height: 18px; flex: none; }
.lang__short:lang(zh) { font-size: .9375rem; }
.lang__panel {
  inset: auto;
  top: calc(var(--bar-h-small) + 8px); right: var(--gutter);
  margin: 0;
  min-width: 220px;
  padding: 12px 8px 8px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-dialog);
  box-shadow: var(--shadow-sheet);
}
.lang__title { padding: 0 12px 4px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.lang__link {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: inherit; text-decoration: none; font-weight: 500; border-radius: 4px;
}
.lang__link:hover { background: var(--leaf); }
.lang__link[aria-current="page"], .site-footer .lang-footer__link[aria-current="page"] {
  font-weight: 650;
  text-decoration-line: underline; text-decoration-style: double;
  text-decoration-color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: .32em;
}
.lang-footer { margin-top: 20px; }
.lang-footer__list { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer .lang-footer__link { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration-color: var(--rule-strong); }
@media (min-width: 960px) {
  .lang__panel { top: calc(var(--bar-h) + 8px); }
}
/* The bar's popovers open over a night band, where the bar swaps --ink to the night ink. They are paper slips,
   so they take the sheet palette (the same in light and dark), or their text would vanish on the light paper. */
.site-menu, .sound__panel, .lang__panel {
  --ink: var(--sheet-ink); --ink-2: var(--sheet-ink-2); --rule: var(--sheet-rule);
  --bronze: var(--sheet-bronze); --focus: var(--sheet-focus);
  --leaf: color-mix(in srgb, var(--sheet-ink) 7%, var(--sheet));
  background: var(--sheet); color: var(--sheet-ink);
}
@media (max-width: 420px) {
  .site-bar__inner { gap: 12px; }
  .site-bar__actions { gap: 6px; }
  .lang__toggle { padding: 0 10px 0 8px; gap: 5px; }
}

/* Longer Malay words and Chinese lines: let a heading or a button wrap rather than push the page sideways. */
h1, h2, h3 { overflow-wrap: break-word; }
html:lang(ms) h1, html:lang(ms) h2 { hyphens: auto; }
@media (max-width: 599px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
}

@media (max-width: 959px) {
  .site-bar__actions .btn--bar { order: -1; }
}
@media (max-width: 599px) {
  .site-bar__actions .btn--bar { display: none; }
}
@media (min-width: 600px) and (max-width: 959px) {
  html[data-actionbar="on"] .site-bar__actions .btn--bar { visibility: hidden; }
}

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding-block: clamp(1.5rem, 1rem + 2.5vw, 4rem) clamp(4.5rem, 3rem + 5vw, 8rem); }
.hero__grid { display: grid; gap: 32px; }
.hero__copy { display: grid; gap: 22px; align-content: start; }
.hero__title { max-width: 15ch; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4rem); }
.hero__lede { color: var(--night-ink-2); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.test-signin {
  display: grid; gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  background: var(--night-2);
  border: 1px solid var(--champagne);
  border-radius: 10px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--champagne) 14%, transparent);
}
.test-signin__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); font-weight: 500;
  font-variation-settings: "opsz" 24;
  letter-spacing: 0; line-height: 1.2;
  color: var(--champagne);
}
.test-signin__text { color: var(--night-ink); max-width: 56ch; }
.test-signin__note { color: var(--night-ink-2); max-width: 60ch; }

.hero__figure { margin: 0; display: grid; gap: 12px; }
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 52vh;
  min-height: 240px;
}
.hero-still, .hero-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-still { object-fit: cover; object-position: 30% 50%; }
.hero-stage picture { display: contents; }
.hero-replay {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  background: rgba(11, 21, 23, .78);
  color: var(--night-ink);
  border: 1px solid var(--night-rule-strong);
  border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 600;
}
.hero-replay:hover { border-color: var(--champagne); }
html[data-motion="reduced"] .hero-replay { display: none !important; }
.hero__caption { color: var(--night-ink-2); }

@media (max-width: 959px) {
  .hero__grid { gap: 20px; }
  .hero__copy { display: contents; }
  .hero__title { order: 0; }
  .hero__figure { order: 1; }
  .hero__lede { order: 2; }
  .test-signin { order: 3; }
  .hero-stage { aspect-ratio: auto; height: clamp(176px, 22vh, 210px); min-height: 0; max-height: none; }
  .hero__lede { font-size: 1.0625rem; }
  .hero__caption { display: none; }
}
/* Phone: the two main actions come straight after the test sign-in heading, so they sit above the fold (390x844)
   in all three languages; the explanation and the note follow them. */
@media (max-width: 599px) {
  .hero__grid { gap: 16px; }
  .hero-stage { height: clamp(160px, 20vh, 200px); }
  .test-signin { gap: 12px; }
  .test-signin__text { order: 1; }
  .test-signin__note { order: 2; }
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: center;
  }
  .hero__copy { grid-column: 1 / 8; }
  .hero__figure {
    grid-column: 8 / -1;
    align-self: center;
    /* bleed to the viewport's right edge */
    margin-inline-end: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2));
  }
  .hero-stage { max-height: min(62vh, 560px); aspect-ratio: 4 / 3.4; }
  .hero__caption { padding-inline-end: var(--gutter); }
}

/* ---------- 5.2 The demo sheet ---------- */
.demo { padding-top: 0; }
.demo .container { position: relative; }
.demo-sheet {
  position: relative;
  padding: clamp(28px, 4vw, 64px) clamp(22px, 4vw, 64px);
  background-color: var(--sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(23, 30, 44, .06) 31px 32px);
  background-position: 0 18px;
  margin-top: 0;
}
.demo-sheet::before {
  content: "";
  position: absolute; inset: 10px;
  border: 2px solid var(--chop);
  border-radius: 2px;
  pointer-events: none;
}
.demo-seal {
  position: absolute;
  top: -22px; right: 18px;
  width: clamp(96px, 14vw, 150px); height: auto;
  rotate: -8deg;
  color: var(--chop);
  pointer-events: none;
}
.seal-line { fill: none; stroke: currentColor; stroke-width: 3.5; }
.seal-line--thin { stroke-width: 1.5; }
.seal-ring-text { fill: currentColor; font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.seal-centre { fill: currentColor; font-family: var(--font-serif); font-size: 27px; font-weight: 600; }
.seal-centre--big { font-size: 32px; }
.seal-centre--small { font-size: 22px; font-weight: 500; }
.seal-rule { fill: none; stroke: currentColor; stroke-width: 3; }
.demo-sheet__grid { position: relative; display: grid; gap: 32px; }
.demo-sheet__intro { display: grid; gap: 22px; align-content: start; }
.demo-sheet__intro h2 { max-width: 16ch; padding-right: 64px; }
.demo-sheet__details { display: grid; gap: 22px; align-content: start; }
.demo-sheet__lists { display: grid; gap: 28px; }
.demo-sheet__lists h3 { margin-bottom: 12px; }
.demo-sheet__prod { color: var(--ink-2); }
.demo-sheet__staff { display: grid; gap: 16px; align-content: start; }
.staff-cards { display: grid; gap: 10px; }
.staff-card {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px 18px;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sheet);
  color: var(--ink-2); text-decoration: none;
  line-height: 1.4;
  transition: border-color 160ms var(--ease-std), box-shadow 160ms var(--ease-std);
}
.staff-card b { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.staff-card__initial {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: 2px solid var(--chop);
  border-radius: 50%;
  color: var(--chop);
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600;
}
.staff-card:hover { border-color: var(--chop); box-shadow: 0 0 0 1px var(--chop); text-decoration: none; }
.staff-card:hover .staff-card__initial { background: var(--chop); color: #fff; }

@media (max-width: 479px) {
  .demo-seal { width: 76px; right: 10px; }
  .demo-sheet__intro h2 { padding-right: 56px; }
}
@media (min-width: 600px) {
  .demo-sheet__lists { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 960px) {
  .demo-sheet { margin-top: -48px; }
  .demo-sheet__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 28px; }
  .demo-sheet__intro { grid-column: 1 / 8; grid-row: 1; }
  .demo-sheet__details { grid-column: 1 / 8; grid-row: 2; }
  .demo-sheet__staff { grid-column: 8 / -1; grid-row: 1 / span 2; padding-top: 88px; }
}
@media (max-width: 959px) {
  .demo { padding-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
}

/* ---------- Lists ---------- */
.tick-list, .plain-list, .status-list { display: grid; gap: 10px; }
.tick-list li, .plain-list li { position: relative; padding-left: 28px; }
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: .32em;
  width: 16px; height: 16px;
  background: var(--bronze);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plain-list li::before {
  content: "";
  position: absolute; left: 4px; top: .78em;
  width: 12px; height: 1.5px;
  background: var(--rule-strong);
}
.status-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.status {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 650; line-height: 1.5;
  white-space: nowrap;
}
.status--coming { color: var(--warn); }

/* ---------- 5.3 Product ---------- */
.product-tabs { display: grid; gap: 20px; }
.product-tabs__rail {
  display: flex; gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 6px;
}
.product-tabs__rail::-webkit-scrollbar { display: none; }
[role="tab"] {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  min-height: 44px; padding: 0 18px;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 600; font-size: 1rem;
  transition: background-color 160ms var(--ease-std), color 160ms var(--ease-std), border-color 160ms var(--ease-std);
}
[role="tab"]:hover { color: var(--ink); border-color: var(--ink-2); }
[role="tab"][aria-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.product-tabs__panels { display: grid; }
.product-panel { grid-area: 1 / 1; display: grid; gap: 20px; align-content: start; }
.product-panel__caption { color: var(--ink-2); max-width: 60ch; }

.shot-stack { position: relative; margin: 0 12px 12px 0; }
.shot-stack::before, .shot-stack::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-sheet);
  box-shadow: 0 1px 2px rgba(23, 30, 44, .08);
}
.shot-stack::after { background: var(--carbon-yellow); translate: 12px 12px; z-index: 0; }
.shot-stack::before { background: var(--carbon-pink); translate: 6px 6px; z-index: 1; }
.shot {
  position: relative; z-index: 2;
  display: block; width: 100%;
  padding: 0; border: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sheet);
}
.shot img { width: 100%; height: auto; }
.shot:hover { box-shadow: 0 1px 2px rgba(23, 30, 44, .08), 0 24px 48px -18px rgba(23, 30, 44, .45); }
/* Cropped screenshot: show the useful region (--dx/--dy/--dw/--dh, in source pixels of a 1600-wide shot).
   The full screenshot still opens in the viewer. */
.shot.crop {
  --iw: 1600; --cx: var(--dx); --cy: var(--dy); --cw: var(--dw); --ch: var(--dh);
  aspect-ratio: var(--cw) / var(--ch);
}
.shot.crop img {
  max-width: none;
  width: calc(var(--iw) / var(--cw) * 100%);
  margin-left: calc(var(--cx) / var(--cw) * -100%);
  margin-top: calc(var(--cy) / var(--cw) * -100%);
}
.see-live {
  justify-self: start;
  display: inline-flex; align-items: center; min-height: 44px;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--bronze); text-decoration-thickness: 2px; text-underline-offset: .35em;
}
@media (max-width: 599px) {
  .product-panel .shot-stack, .assistant__shot--main .shot-stack { max-width: 340px; }
  /* phone shots are 390 wide; skip the 28px prototype banner */
  .shot.crop { --iw: 390; --cx: 0; --cy: 28; --cw: 390; --ch: 600; }
}

.also { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: 32px; border-top: 1px solid var(--rule); display: grid; gap: 20px; }
.tick-list--cols { column-gap: 40px; }
.also__einvoice { color: var(--ink-2); }
@media (min-width: 700px) {
  .tick-list--cols { grid-template-columns: 1fr 1fr; row-gap: 12px; }
}

@media (min-width: 960px) {
  .product-tabs { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
  .product-tabs__rail {
    grid-column: 1 / 4;
    flex-direction: column; gap: 0;
    overflow: visible;
    margin: 0; padding: 0;
    border-top: 1px solid var(--rule);
  }
  [role="tab"] {
    display: flex; align-items: center;
    width: 100%; min-height: 56px; padding: 0 0 0 30px;
    border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
    text-align: left;
    font-family: var(--font-serif); font-size: 1.375rem; font-weight: 450;
    font-variation-settings: "opsz" 24;
  }
  [role="tab"]::before {
    content: "";
    position: absolute; left: 2px; top: 50%;
    width: 16px; height: 16px; margin-top: -8px;
    background: var(--bronze);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0;
  }
  [role="tab"]:hover { background: transparent; color: var(--ink); }
  [role="tab"][aria-selected="true"] { background: transparent; color: var(--ink); }
  [role="tab"][aria-selected="true"]::before { opacity: 1; }
  [role="tab"][aria-selected="true"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    border-bottom: 3px double var(--bronze);
  }
  .product-tabs__stage { grid-column: 4 / -1; padding-left: clamp(0px, 2vw, 32px); }
}

/* ---------- 5.4 Assistant ---------- */
.assistant { padding-top: clamp(2rem, 1rem + 4vw, 5rem); }
.assistant__grid { display: grid; gap: 48px; }
.assistant__copy { display: grid; gap: 22px; align-content: start; }
.assistant__lists { display: grid; gap: 32px; margin-top: 6px; }
.assistant__lists h3 { margin-bottom: 12px; }
.assistant__note { color: var(--ink-2); }
.assistant__visual { position: relative; display: flex; flex-direction: column; gap: 28px; }
.proposal-slip {
  --ink: var(--sheet-ink); --ink-2: var(--sheet-ink-2); --bronze: var(--sheet-bronze);
  order: -1;
  position: relative;
  width: min(100%, 380px);
  padding: 22px 24px 26px;
  background: var(--carbon-yellow);
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(42, 53, 80, .09) 27px 28px);
  color: var(--ink);
  border-radius: var(--r-sheet);
  box-shadow: 0 1px 2px rgba(23, 30, 44, .1), 0 22px 40px -18px rgba(23, 30, 44, .45);
  rotate: -2deg;
  color-scheme: light;
}
.proposal-slip__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: .9375rem; }
.proposal-slip__sample { font-weight: 500; color: var(--ink-2); font-size: .8125rem; border: 1px solid var(--ink-2); padding: 0 8px; border-radius: var(--r-pill); }
.proposal-slip__table { width: 100%; border-collapse: collapse; margin: 16px 0 14px; font-size: .9375rem; }
.proposal-slip__table th, .proposal-slip__table td { padding: 6px 0; text-align: left; border-bottom: 1px solid rgba(42, 53, 80, .22); }
.proposal-slip__table thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.proposal-slip__table tbody th { font-weight: 500; }
.proposal-slip__table td, .proposal-slip__table thead th:not(:first-child) {
  text-align: right; width: 5.5em;
  font-family: var(--font-serif); font-size: var(--fs-figure); font-weight: 450;
  font-variant-numeric: lining-nums tabular-nums;
}
.proposal-slip__table thead th:not(:first-child) { font-family: var(--font-sans); font-size: .8125rem; }
.proposal-slip__table tbody tr:nth-child(2) th { padding-left: 1.5em; }
.proposal-slip__state { display: grid; padding-right: 96px; }
.proposal-slip__state p { grid-area: 1 / 1; font-weight: 600; }
.proposal-slip [data-slip-state="approved"] { color: var(--chop); }
.proposal-slip[data-state="approved"] [data-slip-state="waiting"],
.proposal-slip[data-state="waiting"] [data-slip-state="approved"] { visibility: hidden; }
.slip-chop {
  position: absolute; right: 10px; bottom: 6px;
  width: 104px; height: 104px;
  color: var(--chop);
  rotate: -9deg;
  mix-blend-mode: multiply;
  opacity: .9;
  pointer-events: none;
}
.proposal-slip[data-state="waiting"] .slip-chop { opacity: 0; }

@media (min-width: 600px) {
  .assistant__lists { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .assistant__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); align-items: start; }
  .assistant__copy { grid-column: 1 / 7; }
  .assistant__lists { grid-template-columns: 1fr; }
  .assistant__visual {
    grid-column: 7 / -1;
    display: block;
    padding-left: 16px;
    padding-bottom: 180px;
  }
  .assistant__shot--main { width: 100%; }
  .proposal-slip {
    position: absolute; z-index: 3;
    right: 4%; bottom: 0;
    width: min(380px, 70%);
  }
}

/* ---------- 5.5 Security ---------- */
.security .section-head h2 { max-width: 18ch; }
.security-drawing {
  margin: 0;
  display: grid; gap: 40px;
}
.security-half { display: grid; gap: 14px; align-content: start; }
.security-svg { width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.security-caption { color: var(--night-ink-2); max-width: 44ch; }
@media (min-width: 960px) {
  .security-drawing { grid-template-columns: 1fr 1fr; gap: 0; }
  .security-half { padding: 8px 48px 0; }
  .security-half + .security-half { border-left: 1px solid var(--night-rule); }
}
/* The end state is the default picture (no JavaScript, reduced motion, or no scroll timelines);
   motion.css animates towards it. */
.s-server { fill: var(--night-2); stroke: var(--night-rule-strong); stroke-width: 1.5; }
.s-wires-base path { fill: none; stroke: var(--night-rule-strong); stroke-width: 1; opacity: .7; }
.s-shared-wire { fill: none; stroke: var(--night-warn); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 0; }
.s-shared-tile { stroke: var(--night-warn); }
.s-shared-tile rect { fill: var(--night-3); stroke: inherit; stroke-width: 1.5; }
.s-shared-tile path, .s-unit path:not(.s-unit-db) { fill: none; stroke: var(--night-rule-strong); stroke-width: 2; stroke-linecap: round; }
.s-db path, .s-db ellipse { fill: var(--night-3); stroke: var(--night-ink-2); stroke-width: 1.5; }
.s-db .s-db-band { fill: none; }
.s-unit { stroke: var(--night-rule-strong); }
.s-unit rect { fill: var(--night-3); stroke: inherit; stroke-width: 1.5; }
.s-unit .s-unit-db { fill: var(--night-2); stroke: inherit; stroke-width: 1.25; }
.s-unit.is-hit { stroke: var(--night-warn); }
.s-spark { fill: var(--night-warn); transform-box: fill-box; transform-origin: center; }
.s-spark-halo { fill: var(--night-warn); opacity: .22; }
.security-label {
  font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600;
  font-variation-settings: normal; letter-spacing: 0; line-height: 1.4;
  color: var(--night-ink);
  text-align: center;
}
.fold-toggle {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 0 16px;
  background: none; color: var(--night-ink);
  border: 1px solid var(--night-rule-strong); border-radius: var(--r-pill);
  font-weight: 600;
}
.fold-toggle:hover { border-color: var(--champagne); }
@media (max-width: 599px) {
  [data-fold][data-folded] > li:nth-child(n+4) { display: none; }
}
@media (min-width: 600px) {
  .fold-toggle { display: none; }
}

.security__body { display: grid; gap: 48px; margin-top: clamp(3rem, 2rem + 4vw, 6rem); padding-top: 40px; border-top: 1px solid var(--night-rule); }
.security__list h3, .security__steps h3 { margin-bottom: 18px; }
.tick-list--night li { color: var(--night-ink-2); }
.tick-list--night li::before { background: var(--champagne); }
.steps { display: grid; gap: 18px; margin-bottom: 32px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; align-items: baseline;
  color: var(--night-ink-2);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-serif); font-size: 2rem; font-weight: 400; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--champagne);
}
@media (min-width: 960px) {
  .security__body { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .security__list { grid-column: 1 / 7; }
  .security__steps { grid-column: 8 / -1; }
}

/* ---------- 5.6 Video ---------- */
.video h2 { margin-bottom: 32px; }
.video-box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; max-width: 64rem; }
.video-facade {
  position: absolute; inset: 0;
  display: grid; place-items: center; align-content: center; gap: 14px;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: var(--night);
  color: var(--night-ink);
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade__play {
  position: relative;
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--on-champagne);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: background-color 160ms var(--ease-std);
}
.video-facade__play svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-facade__label { position: relative; font-weight: 600; font-size: 1.0625rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.video-facade:hover .video-facade__play { background: var(--champagne-hi); }
.video-facade:focus-visible { outline-offset: -6px; outline-color: var(--night-focus); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__note { margin-top: 14px; color: var(--ink-2); }

/* ---------- 5.7 Prices ---------- */
.price-slips { display: grid; gap: 32px; align-items: start; }
.price-slip { filter: drop-shadow(0 1px 1px rgba(23, 30, 44, .1)) drop-shadow(0 16px 22px rgba(23, 30, 44, .2)); }
.price-slip__paper {
  --ink: var(--sheet-ink); --ink-2: var(--sheet-ink-2); --bronze: var(--sheet-bronze); --warn: var(--sheet-warn);
  --warn-wash: var(--sheet-warn-wash); --focus: var(--sheet-focus); --link: var(--sheet-link);
  --btn-fill: #1d2942; --btn-fill-hi: #2a3a5c; --btn-on-fill: #fbf8f1;
  position: relative;
  display: grid; gap: 16px; align-content: start;
  padding: 40px clamp(22px, 3vw, 40px) 36px;
  color: var(--ink);
  border-radius: 0 0 var(--r-sheet) var(--r-sheet);
  color-scheme: light;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 6L6 0L12 6Z'/%3E%3C/svg%3E") 0 0 / 12px 6px repeat-x,
    linear-gradient(#000, #000) 0 6px / 100% calc(100% - 6px) no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 6L6 0L12 6Z'/%3E%3C/svg%3E") 0 0 / 12px 6px repeat-x,
    linear-gradient(#000, #000) 0 6px / 100% calc(100% - 6px) no-repeat;
}
.is-standard .price-slip__paper { background: var(--sheet); }
.is-ai .price-slip__paper { background: color-mix(in srgb, var(--champagne) 38%, var(--sheet)); }
.price-slip h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.badge {
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--warn-wash);
  color: var(--warn);
  font-size: .8125rem; font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(133, 87, 17, .35);
}
.price-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; justify-self: start; padding-right: 8px; }
.price-figure__amount {
  font-family: var(--font-serif);
  font-size: var(--fs-price); font-weight: 400;
  font-variation-settings: "opsz" 72;
  line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.price-figure__per { color: var(--ink-2); font-weight: 500; }
.price-slip__sub { color: var(--ink-2); }
.price-slip__anchor { font-weight: 600; }
.tick-list--sheet { margin-top: 4px; }
.price-slip__quote { color: var(--ink-2); }
.price-slip__status { display: flex; gap: 10px; align-items: baseline; }
.price-slip .btn { justify-self: start; margin-top: 6px; }
@media (min-width: 860px) {
  .price-slips { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.price-compare-wrap { display: grid; gap: 32px; margin-top: clamp(3rem, 2rem + 3vw, 5rem); align-items: start; }
.price-how { display: grid; gap: 14px; }
.price-how h3 { font-size: var(--fs-h3); }
.price-how p { color: var(--ink-2); max-width: 46ch; }
.price-how .price-notes { margin-top: 4px; }
@media (min-width: 960px) {
  .price-compare-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 64px); }
}
.price-compare { margin: 0; max-width: 48rem; }
.price-compare tr.is-ours th, .price-compare tr.is-ours td { background: color-mix(in srgb, var(--champagne) 26%, transparent); }
.price-compare tr.is-ours th { padding-left: 12px; }
.price-compare tr.is-ours td { padding-right: 12px; }
.price-compare .row-mark {
  display: inline-block; margin-left: 6px; padding: 0 8px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 500; color: var(--ink-2); vertical-align: 2px;
}
.price-compare .saving { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); white-space: normal; }
@media (max-width: 599px) {
  .price-compare th, .price-compare td { padding-block: 10px; }
  .price-compare tbody th { padding-right: 12px; font-size: .9375rem; }
}
.price-compare__scroll { overflow-x: auto; }
.price-compare table { width: 100%; border-collapse: collapse; }
.price-compare th, .price-compare td { padding: 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.price-compare thead th { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); padding-top: 0; }
.price-compare tbody th { font-weight: 500; padding-right: 20px; }
.price-compare .num { text-align: right; white-space: nowrap; }
.price-compare tbody td {
  font-family: var(--font-serif); font-size: var(--fs-figure); font-weight: 450;
  font-variant-numeric: lining-nums tabular-nums;
}
.price-compare .source { display: block; margin-top: 2px; font-size: var(--fs-small); font-weight: 400; color: var(--ink-2); width: fit-content; }
.price-compare .source:hover { color: var(--link); }
.price-compare tr.is-ours th, .price-compare tr.is-ours td { border-bottom: 4px double var(--bronze); font-weight: 650; }
.price-compare tr.is-ours td { font-weight: 550; }
.price-compare figcaption { margin-top: 14px; color: var(--ink-2); }
.price-notes { display: grid; gap: 6px; margin-top: 20px; color: var(--ink-2); max-width: 48rem; padding-left: 1.1em; list-style: disc; }
.price-compare .source, .company-facts dd a, .site-footer a { display: inline-block; min-block-size: 24px; }
.price-compare .source { display: block; width: fit-content; }
.price-notes li::marker { color: var(--bronze); }

/* ---------- 5.8 Company ---------- */
.company__grid { display: grid; gap: 48px; }
.letterhead { padding: 32px clamp(22px, 3vw, 40px) 28px; align-self: start; }
.letterhead__mark { padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.company-facts { display: grid; }
.company-facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.company-facts > div:last-child { border-bottom: 0; }
.company-facts dt { font-size: var(--fs-small); color: var(--ink-2); padding-top: .15em; }
.company-facts dd { margin: 0; overflow-wrap: anywhere; }
.company__copy { display: grid; gap: 20px; align-content: start; }
.company__copy h3 { margin-top: 12px; }
.product-list { display: grid; gap: 0 32px; }
.product-list li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 420px) {
  .company-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (min-width: 600px) { .product-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .company__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .letterhead { grid-column: 1 / 6; }
  .company__copy { grid-column: 7 / -1; }
}

/* ---------- 5.9 FAQ ---------- */
.faq { padding-top: clamp(2rem, 1rem + 4vw, 5rem); }
.faq__grid { display: grid; gap: 32px; }
.faq__list { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 500;
  font-variation-settings: "opsz" 24;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 16px; height: 2px; margin-top: -1px;
  background: var(--bronze);
  transition: rotate 220ms var(--ease-std);
}
.faq summary::after { rotate: 90deg; }
.faq details[open] > summary::after { rotate: 0deg; }
.faq summary:hover { color: var(--bronze-ink); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); }
  .faq__grid h2 { grid-column: 1 / 5; }
  .faq__list { grid-column: 5 / -1; }
}

/* ---------- 5.10 Final ---------- */
.final__inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.final-chop { width: 96px; height: 96px; color: var(--chop-night); rotate: -6deg; }
.final h2 { max-width: 18ch; }
.final .lede { margin-inline: auto; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--leaf); color: var(--ink); padding-block: 56px 40px; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__grid p + p { margin-top: 6px; }
.wordmark--footer { padding: 0; margin-bottom: 12px; display: inline-flex; }
.site-footer__links { display: grid; gap: 2px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); }
.site-footer__fine { color: var(--ink-2); grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--rule); }
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Phone action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 42;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--night);
  border-top: 1px solid var(--night-rule);
  --focus: var(--night-focus);
  --btn-fill: var(--champagne); --btn-fill-hi: var(--champagne-hi); --btn-on-fill: var(--on-champagne);
  --btn-line: var(--champagne); --btn-line-ink: var(--champagne); --btn-line-hover: rgba(220, 194, 140, .12);
}
.action-bar .btn { min-height: 48px; padding: 0 10px; font-size: .9375rem; }
.action-bar[data-hidden="true"] { translate: 0 110%; visibility: hidden; }
html:not([data-js]) .action-bar { display: none; }
@media (max-width: 959px) {
  .site-footer { padding-bottom: calc(40px + var(--action-bar-h) + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) {
  .action-bar { display: none; }
}

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: inherit; }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: rgba(11, 21, 23, .55); overflow: hidden; overscroll-behavior: contain; }
.talk {
  width: min(100% - 2 * var(--gutter), 36rem);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
  border-radius: 0 0 var(--r-dialog) var(--r-dialog);
  box-shadow: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 6L6 0L12 6Z'/%3E%3C/svg%3E") 0 0 / 12px 6px repeat-x,
    linear-gradient(#000, #000) 0 6px / 100% calc(100% - 6px) no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 6L6 0L12 6Z'/%3E%3C/svg%3E") 0 0 / 12px 6px repeat-x,
    linear-gradient(#000, #000) 0 6px / 100% calc(100% - 6px) no-repeat;
}
.talk__form { position: relative; display: grid; gap: 16px; padding: 40px clamp(20px, 4vw, 36px) 28px; }
.talk h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); padding-right: 48px; }
.talk h2:focus { outline: none; }
.talk h2:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.talk p { color: var(--ink-2); }
.field { display: grid; gap: 6px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 6px; }
.field input[type="text"], .field select {
  min-height: 48px; padding: 0 14px;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-button);
  color: var(--ink);
  width: 100%;
}
.field input[type="text"]:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 500 !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: #1d2942; }
.talk__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dialog-close {
  position: absolute; top: 18px; right: 14px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--rule); border-radius: 50%;
  color: var(--ink);
}
.dialog-close:hover { background: var(--leaf); }
.sheet .dialog-close:hover { background: #efece5; }

.shot-viewer {
  width: min(96vw, 1600px);
  margin: auto;
  background: var(--night);
  color: var(--night-ink);
  border-radius: var(--r-dialog);
  box-shadow: var(--shadow-sheet-night);
  --focus: var(--night-focus);
}
.shot-viewer__inner { position: relative; display: grid; gap: 0; }
.shot-viewer__img { width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; background: #fffefb; border-radius: var(--r-dialog) var(--r-dialog) 0 0; }
.shot-viewer__caption { padding: 14px 72px 16px 20px; color: var(--night-ink-2); font-size: var(--fs-small); max-width: none; }
.dialog-close--night { top: auto; bottom: 6px; right: 10px; border-color: var(--night-rule-strong); color: var(--night-ink); background: var(--night-2); }
.dialog-close--night:hover { background: var(--night-3); }

/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .btn, [role="tab"], .staff-card, .sound, .test-signin { border: 1px solid ButtonText; }
  [role="tab"][aria-selected="true"] { outline: 2px solid Highlight; }
  [data-rule="double"]::before, [data-rule="double"]::after { background: CanvasText; }
}

/* ---------- Print ---------- */
@media print {
  .site-bar, .sound, .action-bar, .hero__figure, dialog { display: none !important; }
  .band-night { background: #fff; --ink: #000; --ink-2: #333; color: #000; }
}

/* ---------- Rendering and no-script fallbacks ---------- */
main > section:not(#top):not(#demo), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
html:not([data-js]) [role="tabpanel"][hidden] { display: grid !important; }
html:not([data-js]) .product-tabs__rail { display: none; }
html:not([data-js]) .product-tabs__panels { gap: 48px; }
html:not([data-js]) .product-panel { grid-area: auto; }

/* Rival rows in the price comparison: a coloured initial tile and a thin row edge.
   Brand colours are read from each company's own logo (see docs/site/pricing-research.md).
   Light: logo colour as is (tile text 4.8:1 or better, edge 4.4:1 on paper). Dark: a lighter edge so it keeps 3:1 on the dark paper. */
:root {
  --brand-s: #651eff; --brand-s-edge: #651eff;
  --brand-a: #e50019; --brand-a-edge: #e50019;
  --brand-plain: var(--ink-2); --brand-plain-edge: var(--rule-strong);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --brand-s-edge: #8b63ff; --brand-a-edge: #ff4a5d; }
}
:root[data-theme="dark"] { --brand-s-edge: #8b63ff; --brand-a-edge: #ff4a5d; }
.price-compare tr.is-rival th { border-left: 3px solid var(--rule-strong); padding-left: 12px; }
.price-compare tr[data-brand="s"] th { border-left-color: var(--brand-s-edge); }
.price-compare tr[data-brand="a"] th { border-left-color: var(--brand-a-edge); }
.price-compare tr[data-brand="plain"] th { border-left-color: var(--brand-plain-edge); }
.brand-tile {
  display: inline-grid; flex: none; place-items: center; inline-size: 1.5rem; block-size: 1.5rem;
  border-radius: 4px; background: var(--brand-plain); color: #fff;
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 700; line-height: 1;
}
.price-compare .rival { display: flex; gap: 10px; align-items: flex-start; }
.price-compare .rival > span:last-child { min-width: 0; padding-top: 1px; }
.price-compare tr[data-brand="s"] .brand-tile { background: var(--brand-s); }
.price-compare tr[data-brand="a"] .brand-tile { background: var(--brand-a); }
.price-compare tr[data-brand="plain"] .brand-tile { background: #4a5161; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-tile { box-shadow: 0 0 0 1px rgba(255,255,255,.28); }
}
:root[data-theme="dark"] .brand-tile { box-shadow: 0 0 0 1px rgba(255,255,255,.28); }

/* ---------- SEO stage (2026-11-22) ---------- */
/* In short: the answer-first summary under the demo. One reading column, no decoration. */
.overview { padding-top: clamp(2rem, 1rem + 4vw, 5rem); }
.overview__inner { display: grid; gap: 18px; max-width: 46rem; }
.overview__inner p { color: var(--ink-2); max-width: 68ch; }
.overview__inner .lede { color: var(--ink); }
/* staff-card initials come from CSS, so the link text reads "Jay. Administrator…" and not "JJay" */
.staff-card__initial::before { content: attr(data-initial); }
/* tap targets of at least 44 px */
.sound__toggle, .sound__settings, .lang__toggle { min-height: 44px; min-width: 44px; }
.btn--bar { min-height: 44px; }
.site-footer .lang-footer__link, .site-footer__links a { min-height: 44px; }
.site-nav__list a { min-height: 44px; }
