/* Stockwright site. No external requests. One stylesheet for all pages.
   Palette: ivory #F8F5EE / #EFEBDF, borders #E2DDCF; graphite scale #11151C (text only), #2B3340, #3A4454,
   #4A566B, #D9DEE3, #9AA3B2; lime #C8F23A only as a button fill with graphite text (and inside the logo mark). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff") format("woff");
  font-weight: 400 720;
  font-style: normal;
  font-display: swap;
}
/* metric-matched fallback so text does not jump when the font arrives */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  /* ivory page scale */
  --bg: #f8f5ee;
  --bg-2: #efebdf;
  --surface: #ffffff;
  --surface-2: #efebdf;
  --line: #e2ddcf;
  --line-soft: #efebdf;
  /* graphite scale: --ink is for TEXT only; fills and strokes use --stroke and the steps below */
  --ink: #11151c;
  --ink-2: #2b3340;
  --stroke: #2b3340;
  --g3: #3a4454;
  --g4: #4a566b;
  --g5: #d9dee3;
  --g6: #9aa3b2;
  --muted: #4a566b;
  /* accent: a button fill with graphite text, nothing else */
  --lime: #c8f23a;
  --lime-press: #b6e01f;
  /* meaning only, never decoration */
  --ok: #0c6b42;
  --risk: #a62f1b;
  --ok-on-dark: #7fdcaa;
  /* dark blocks (at most two on the page) */
  --dark: #2b3340;
  --dark-2: #3a4454;
  --dark-3: #4a566b;
  --on-dark: #f8f5ee;
  --on-dark-muted: #d9dee3;
  --on-dark-faint: #9aa3b2;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-card: 0 1px 2px rgba(17, 21, 28, 0.06), 0 12px 28px -10px rgba(17, 21, 28, 0.22);
  --shadow-win: 0 2px 4px rgba(17, 21, 28, 0.05), 0 24px 60px -18px rgba(17, 21, 28, 0.3), 0 60px 100px -50px rgba(17, 21, 28, 0.25);

  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.num, [data-count] { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--stroke);
  color: var(--on-dark);
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus-visible { top: 12px; }

:focus-visible {
  outline: 3px solid var(--stroke);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.click :focus-visible,
.final :focus-visible { outline-color: var(--on-dark); }

.wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-out), background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--stroke);
  box-shadow: 0 2px 0 var(--stroke);
}
.btn-lime:active { box-shadow: 0 0 0 var(--stroke); transform: translateY(2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--stroke);
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn[disabled] { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .btn-lime:hover { background: var(--lime-press); }
  .btn-ghost:hover { background: var(--stroke); color: var(--on-dark); }
  .click .btn-ghost:hover,
  .final .btn-ghost:hover { background: var(--on-dark); color: var(--ink); }
}
.btn-ghost.on-dark { color: var(--on-dark); border-color: var(--on-dark-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 540;
  padding: 8px 2px;
  border-radius: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
}
@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 30px; }
}

/* ---------- Typography ---------- */
.h1 {
  font-size: clamp(2.5rem, 1.35rem + 4.3vw, 4.25rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.1rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.034em;
}
.h3 {
  font-size: 1.25rem;
  font-weight: 640;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36em;
}
.small { font-size: 0.875rem; line-height: 1.5; }
.muted { color: var(--muted); }

section { position: relative; }
.section { padding-block: clamp(64px, 7.5vw, 108px); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 4.5vw, 64px); padding-bottom: clamp(72px, 8vw, 120px); overflow-x: clip; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  background: url("/assets/iso-grid.svg") center top / 720px auto repeat-x;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--ink-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}
.hero-copy { max-width: 62rem; }
.hero .h1 { margin: 20px 0 20px; max-width: 16em; }
.hero .lead { margin-bottom: 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 520px) {
  .actions .btn { width: 100%; }
  .hero-note { margin: 4px 0 0; max-width: none; }
}
.hero-note { margin: 0 0 0 4px; align-self: center; font-size: 0.9375rem; color: var(--muted); max-width: 17em; line-height: 1.4; }
.hero-note strong { color: var(--ink); font-weight: 620; }

.stage { position: relative; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Product window (static mock) ---------- */
.win {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-win);
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-2);
  transform-origin: 50% 0;
}
.win-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.win-title { display: flex; align-items: center; gap: 10px; font-weight: 640; color: var(--ink); font-size: 0.875rem; }
.win-title img { width: 22px; height: 22px; }
.win-org { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 0.875rem; white-space: nowrap; }
.win-tag {
  padding: 3px 9px;
  border: 1px dashed var(--muted);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.win-body { display: grid; grid-template-columns: 188px 1fr; min-height: 0; }
.win-side { padding: 14px 10px; border-right: 1px solid var(--line-soft); background: var(--bg); }
.win-side li {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-weight: 540;
  color: var(--ink-2);
}
.win-side li + li { margin-top: 2px; }
.win-side li.is-on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; }
.win-side .side-foot { margin-top: 18px; padding: 8px 12px; color: var(--muted); font-size: 0.75rem; }
.win-main { padding: 18px 20px 20px; min-width: 0; }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.win-head b { font-size: 1.0625rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 540;
  color: var(--ink-2);
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); }
.kpi small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 540; }
.kpi b { display: block; margin: 2px 0; font-size: 1.5rem; line-height: 1.15; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 0.75rem; }
.kpi.is-frozen { border-color: var(--ink-2); }
.panels { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.4fr); gap: 10px; }
.panel { padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--surface); min-width: 0; }
.panel > b { display: block; margin-bottom: 10px; font-weight: 650; color: var(--ink); font-size: 0.8125rem; }

/* ABC/XYZ matrix */
.matrix { display: grid; grid-template-columns: 22px repeat(3, 1fr); grid-auto-rows: 38px; gap: 4px; align-items: stretch; }
.matrix i {
  font-style: normal; font-weight: 650; font-size: 0.75rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.matrix .m {
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-weight: 650;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.m-1 { background: #2b3340; color: #fff; }
.m-2 { background: #3a4454; color: #fff; }
.m-3 { background: #4a566b; color: #fff; }
.m-4 { background: #d9dee3; color: var(--ink); }
.m-5 { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.matrix-note { margin: 10px 0 0; font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* tables in mock */
.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th {
  padding: 0 8px 7px 0; text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.t td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--ink-2); }
.t tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.t .r { text-align: right; padding-right: 0; }
.t .item { color: var(--ink); font-weight: 600; }
.risk-tag {
  display: inline-block; margin-top: 2px;
  padding: 0 6px;
  border: 1px solid var(--risk); border-radius: 4px;
  color: var(--risk); font-size: 0.6875rem; font-weight: 650; line-height: 1.5;
}
.today { color: var(--ink); font-weight: 650; }

/* ---------- Floating cards ---------- */
.fcards { margin-top: 20px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .fcards { grid-template-columns: 1fr; } }
.fcard {
  position: relative;
  padding: 14px 16px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
}
.fcard .k { display: block; margin-bottom: 4px; font-size: 0.8125rem; font-weight: 650; color: var(--muted); }
.fcard .v { display: block; font-size: 1.75rem; line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fcard .t1 { display: block; font-size: 1rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.fcard p { margin: 4px 0 0; }
.fcard strong { color: var(--ink); font-weight: 650; }
.dbars { margin-top: 10px; display: grid; gap: 5px; }
.dbar { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.dbar span:last-child { display: block; height: 8px; border-radius: 4px; background: var(--ink-2); }
.dbar.is-short span:last-child { width: 37%; }
.dbar.is-long span:last-child { width: 70%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--stroke); }

/* status sequence card */
.seq .a { display: none; align-items: center; gap: 8px; margin-top: 8px; font-weight: 650; color: var(--ink); }
.seq .b { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-weight: 650; color: var(--ok); }
.seq.is-running .a { display: flex; }
.seq.is-running .b { display: none; }
.seq .b svg, .seq .a svg { flex: none; margin-top: 2px; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--stroke); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .spin { animation: spin 0.8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* .slot positions a card (and carries the scroll parallax); .fcard inside carries the idle float */
@media (min-width: 1100px) {
  .fcards { display: block; margin: 0; }
  .slot { position: absolute; z-index: 2; }
  .slot .fcard { width: 100%; }
  .fc-a { top: -112px; right: -26px; width: 252px; }
  .fc-d { top: 46%; left: -44px; width: 236px; }
  .fc-b { bottom: -84px; left: 214px; width: 278px; }
  .fc-c { bottom: -88px; right: 40px; width: 286px; }
  .win-main { padding-bottom: 56px; }
}
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .fcard {
    animation: card-in 0.9s var(--ease-out) both, bob 8s ease-in-out infinite;
  }
  html:not([data-motion="off"]) .fc-a .fcard { animation-delay: 0.55s, -1.2s; animation-duration: 0.9s, 7.6s; }
  html:not([data-motion="off"]) .fc-d .fcard { animation-delay: 0.7s, -6s; animation-duration: 0.9s, 10s; }
  html:not([data-motion="off"]) .fc-b .fcard { animation-delay: 0.85s, -4s; animation-duration: 0.9s, 9.2s; }
  html:not([data-motion="off"]) .fc-c .fcard { animation-delay: 1s, -2.6s; animation-duration: 0.9s, 8.4s; }
  html:not([data-motion="off"]) .stage.is-off .fcard { animation-play-state: running, paused; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
}

@media (max-width: 1099px) {
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
}
@media (max-width: 899px) {
  .panels { grid-template-columns: 1fr; }
  .panel-matrix { display: none; }
}
@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .win-main { padding: 14px; }
  .win-bar { padding: 10px 12px; }
  .win-org { display: none; }
  .t .col-lead, .t .col-cover { display: none; }
  .chips .chip:nth-child(2) { display: none; }
}

/* ---------- Hero entrance (one orchestrated moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .rise { animation: rise 0.9s var(--ease-out) both; }
  html:not([data-motion="off"]) .rise.d1 { animation-delay: 0.05s; }
  html:not([data-motion="off"]) .rise.d2 { animation-delay: 0.14s; }
  html:not([data-motion="off"]) .rise.d3 { animation-delay: 0.23s; }
  html:not([data-motion="off"]) .rise.d4 { animation-delay: 0.32s; }
  html:not([data-motion="off"]) .rise.d5 { animation-delay: 0.45s; }
  html:not([data-motion="off"]) .rise.d6 { animation-delay: 0.6s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
}

/* Scroll-driven tilt and parallax: decorative, progressive enhancement, no fallback needed */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    html:not([data-motion="off"]) .win {
      animation: win-flat linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 520px;
    }
    @keyframes win-flat {
      from { transform: perspective(1500px) rotateX(5deg) scale(0.965); }
      to { transform: perspective(1500px) rotateX(0deg) scale(1); }
    }
    @media (min-width: 1100px) {
      html:not([data-motion="off"]) .slot {
        animation: par linear both;
        animation-timeline: scroll(root block);
        animation-range: 0px 900px;
      }
      html:not([data-motion="off"]) .fc-a { --par: -38px; }
      html:not([data-motion="off"]) .fc-b { --par: -64px; }
      html:not([data-motion="off"]) .fc-c { --par: -28px; }
      html:not([data-motion="off"]) .fc-d { --par: 34px; }
      @keyframes par { to { transform: translateY(var(--par, 0px)); } }
    }
  }
}

/* ---------- Reveal on scroll (one-time) ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  html:not([data-motion="off"]) [data-reveal].in { opacity: 1; transform: none; }
  html:not([data-motion="off"]) [data-reveal][data-d="1"] { transition-delay: 0.08s; }
  html:not([data-motion="off"]) [data-reveal][data-d="2"] { transition-delay: 0.16s; }
  html:not([data-motion="off"]) [data-reveal][data-d="3"] { transition-delay: 0.24s; }
  html:not([data-motion="off"]) [data-reveal][data-d="4"] { transition-delay: 0.32s; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; }
.step-n {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.step-n b {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--stroke); border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700; font-size: 1rem;
}
.step-n::after {
  content: ""; flex: 1; height: 0;
  border-top: 1.5px dashed var(--muted);
  transform-origin: 0 50%;
}
.step:last-child .step-n::after { display: none; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .step-n::after { transform: scaleX(0); transition: transform 0.9s var(--ease-out) 0.25s; }
  html:not([data-motion="off"]) .step.in .step-n::after { transform: scaleX(1); }
}
.step .h3 { margin-bottom: 10px; }
.step > p { color: var(--ink-2); max-width: 24em; }
.mini {
  margin-top: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.step > .mini-wrap { margin-top: 12px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.mini b { color: var(--ink); font-weight: 650; }
.mini-title { display: block; margin-bottom: 10px; font-size: 0.875rem; font-weight: 650; color: var(--ink); }
.perm { display: grid; gap: 8px; margin: 0 0 12px; }
.perm li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.perm svg { margin-top: 2px; }
.perm em { font-style: normal; color: var(--muted); }
.mini-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.75rem; }
.mini .fake-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 38px; border-radius: var(--r-sm);
  background: var(--lime); color: var(--ink); font-weight: 650;
  border: 1px solid var(--stroke);
}
.calc { display: grid; gap: 9px; }
.calc li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; }
.calc li > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.pick { display: grid; gap: 8px; margin-bottom: 12px; }
.pick li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
.pick li.is-on { border-color: var(--stroke); background: var(--bg); }
.box { width: 16px; height: 16px; border: 1.5px solid var(--stroke); border-radius: 4px; background: var(--surface); display: grid; place-items: center; }
.box.is-on { background: var(--stroke); }
.pick .q { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 650; }

@media (min-width: 961px) {
  .steps { grid-template-rows: auto auto auto auto; row-gap: 0; }
  .step { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .step > .mini-wrap { margin-top: 16px; justify-content: flex-start; }
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step-n::after { display: none; }
  .step > p { max-width: 34em; }
  .step > .mini-wrap { max-width: 480px; }
}

/* ---------- Features (bento) ---------- */
.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  grid-column: span 4;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.tile.w7 { grid-column: span 7; }
.tile.w5 { grid-column: span 5; }
.tile.w12 { grid-column: span 12; }
.tile p { margin: 0; max-width: 32em; }
.tile .viz { margin-top: auto; padding-top: 18px; }
.tile.w7 .viz, .tile.w5 .viz { padding-top: 22px; }

.vmatrix { display: grid; grid-template-columns: 26px repeat(3, minmax(0, 92px)); gap: 6px; grid-auto-rows: 44px; align-items: stretch; width: max-content; max-width: 100%; }
.vmatrix i { font-style: normal; font-weight: 650; font-size: 0.8125rem; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.vmatrix .m { display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 650; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.tile-matrix { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
.tile-matrix .viz { margin-top: 0; padding-top: 0; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.legend { display: grid; gap: 6px; margin-top: 14px; font-size: 0.9375rem; }
.legend b { color: var(--ink); font-weight: 650; }

.bar { display: flex; height: 40px; gap: 3px; margin-top: 16px; }
.bar > span { display: flex; align-items: center; padding: 0 10px; font-size: 0.8125rem; font-weight: 650; white-space: nowrap; min-width: 0; overflow: hidden; border-radius: 4px; }
.bar > span:first-child { border-radius: 10px 4px 4px 10px; }
.bar > span:last-child { border-radius: 4px 10px 10px 4px; }
.bar .s1 { flex: 61 1 0; background: var(--stroke); color: #fff; }
.bar .s2 { flex: 18.6 1 0; background: var(--g4); color: #fff; }
.bar .s3 { flex: 20.4 1 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--stroke); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .bar > span { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out); }
  html:not([data-motion="off"]) .in .bar > span { transform: scaleX(1); }
  html:not([data-motion="off"]) .in .bar .s2 { transition-delay: 0.12s; }
  html:not([data-motion="off"]) .in .bar .s3 { transition-delay: 0.24s; }
}
.bar-key { margin: 10px 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--muted); }
.tile p.bar-total { margin: 0; font-size: 2rem; line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.bar-total small { font-size: 0.9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }

.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fig b { display: block; font-size: 2.25rem; line-height: 1.05; font-weight: 650; letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fig span { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }

.gap { display: grid; gap: 8px; }
.gap-row { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 0.8125rem; color: var(--ink-2); }
.gap-row > span:first-child { display: flex; justify-content: space-between; gap: 8px; }
.gap-row .trk { display: block; height: 9px; border-radius: 5px; background: var(--ink-2); transform-origin: 0 50%; }
.gap-row.is-cover .trk { width: 36.7%; }
.gap-row.is-lead .trk { width: 70%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.gap-note { margin: 6px 0 0; font-size: 0.8125rem; color: var(--risk); font-weight: 650; }

.settings { display: grid; gap: 6px; font-size: 0.875rem; }
.settings li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--bg); }
.settings b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.settings .res { border-color: var(--stroke); background: var(--surface); }

.flow { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: stretch; gap: 0; }
.flow > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-size: 0.875rem; line-height: 1.4; }
.flow > div b { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }
.flow > div.is-end { border-color: var(--stroke); background: var(--surface); }
.flow > span { align-self: center; height: 0; border-top: 1.5px dashed var(--muted); position: relative; }
.flow > span::after { content: ""; position: absolute; right: -1px; top: -5px; width: 8px; height: 8px; border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg); }
.draft-chip { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid var(--ok); border-radius: 4px; color: var(--ok); font-size: 0.75rem; font-weight: 650; }

.planned { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.planned > div { padding: 20px 24px; border: 1.5px dashed var(--muted); border-radius: var(--r-lg); background: transparent; }
.planned b { display: block; color: var(--ink); font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; }
.planned span { display: inline-block; margin-bottom: 6px; padding: 0 8px; border: 1px solid var(--ink-2); border-radius: 4px; color: var(--ink); font-size: 0.8125rem; font-weight: 650; }
.planned p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.note-sample { margin: 18px 0 0; font-size: 0.875rem; color: var(--muted); }

@media (max-width: 1000px) {
  .tile, .tile.w7, .tile.w5 { grid-column: span 6; }
  .tile.w12 { grid-column: span 12; }
  .tile-matrix { grid-template-columns: 1fr; }
  .tile-matrix .viz { grid-column: 1; grid-row: auto; padding-top: 18px; }
}
@media (max-width: 700px) {
  .tile, .tile.w7, .tile.w5, .tile.w12 { grid-column: span 12; }
  .tile { padding: 22px 20px 20px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow > span { display: none; }
  .flow > div + div { margin-top: 8px; }
  .planned { grid-template-columns: 1fr; }
}

/* ---------- Dark "click" section ---------- */
.click { background: var(--dark); color: var(--on-dark-muted); }
.click .h2, .click h3 { color: var(--on-dark); }
.click .lead { color: var(--on-dark-muted); margin-top: 20px; }
.click-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.never { margin-top: 32px; border-top: 1px solid var(--dark-3); }
.never li { padding: 14px 0; border-bottom: 1px solid var(--dark-3); color: var(--on-dark); font-weight: 540; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.never svg { margin-top: 4px; }
.never-title { margin: 28px 0 0; font-size: 0.9375rem; font-weight: 650; color: var(--on-dark); }
.demo {
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.demo-head b { display: block; color: var(--on-dark); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }
.demo-head small { display: block; margin-top: 2px; color: var(--on-dark-muted); font-size: 0.8125rem; }
.demo-tag { padding: 3px 9px; border: 1px dashed var(--on-dark-muted); border-radius: var(--r-sm); color: var(--on-dark); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.demo .t th { color: var(--on-dark-muted); border-bottom-color: var(--dark-3); }
.demo .t td { color: var(--on-dark-muted); border-bottom-color: var(--dark-3); padding-block: 11px; }
.demo .t .item { color: var(--on-dark); }
.demo .t tfoot td { border-bottom: 0; padding-bottom: 0; color: var(--on-dark); font-weight: 650; }
.demo-act { margin-top: 18px; }
.demo-act .btn { width: 100%; }
.demo-status { margin-top: 14px; min-height: 52px; }
.demo-status > div { display: none; gap: 10px; align-items: flex-start; }
.demo[data-state="idle"] .st-idle,
.demo[data-state="busy"] .st-busy,
.demo[data-state="done"] .st-done { display: flex; }
.st-idle { color: var(--on-dark-muted); font-size: 0.875rem; }
.st-busy { color: var(--on-dark); font-weight: 600; }
.st-done { color: var(--on-dark); }
.st-done b { color: var(--ok-on-dark); font-weight: 650; display: block; }
.st-done span { display: block; color: var(--on-dark-muted); font-size: 0.875rem; margin-top: 2px; }
.demo .spin { border-color: var(--dark-3); border-top-color: var(--on-dark); margin-top: 3px; }
.demo-reset { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; font-size: 0.875rem; cursor: pointer; border-radius: 4px; }
.demo[data-state="idle"] .demo-reset, .demo[data-state="busy"] .demo-reset { display: none; }
.demo[data-state="done"] .btn-lime { background: var(--dark-3); color: var(--on-dark-muted); border-color: var(--dark-3); box-shadow: none; }
.demo[data-state="busy"] .btn-lime { background: var(--dark-3); color: var(--on-dark); border-color: var(--dark-3); box-shadow: none; }
@media (max-width: 960px) {
  .click-grid { grid-template-columns: 1fr; }
}

/* ---------- Trust ---------- */
#data { padding-bottom: clamp(24px, 3vw, 40px); }
.faq-section { padding-top: clamp(48px, 5vw, 72px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--stroke); }
.fact { padding: 28px 32px 8px 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--line); }
.fact .h3 { margin-bottom: 10px; }
.fact p { color: var(--ink-2); max-width: 24em; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.doc-links a { font-weight: 620; color: var(--ink); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 24px 0 8px; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-grid .section-head .lead { font-size: 1rem; }
.faq-grid .section-head .lead a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.faq { border-top: 1.5px solid var(--stroke); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; margin-bottom: 28px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.015em; color: var(--ink);
  border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--stroke), var(--stroke)) center / 14px 2px no-repeat,
    linear-gradient(var(--stroke), var(--stroke)) center / 2px 14px no-repeat;
  transition: transform 0.2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; max-width: 40em; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }
.faq a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .faq details[open] .ans { animation: ans-in 0.3s var(--ease-out); }
}
@keyframes ans-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Final call ---------- */
.final-wrap { padding-bottom: clamp(72px, 9vw, 120px); }
.final {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: clamp(36px, 6vw, 72px);
  background: var(--dark);
  border-radius: var(--r-xl);
  color: var(--on-dark-muted);
}
.final .h2 { color: var(--on-dark); max-width: 14em; margin-bottom: 18px; }
.final p { max-width: 32em; font-size: 1.125rem; }
.final .actions { margin-top: 28px; }
.final a.mail { color: var(--on-dark); font-weight: 600; text-underline-offset: 4px; }
.final-tile { width: clamp(150px, 19vw, 236px); aspect-ratio: 1; padding: 11%; background: var(--bg); border-radius: 22%; margin-right: clamp(0px, 3vw, 40px); box-shadow: 0 24px 60px -24px rgba(17, 21, 28, 0.55); }
.final-tile img { width: 100%; height: 100%; }
@media (max-width: 800px) {
  .final { grid-template-columns: 1fr; }
  .final-tile { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.9375rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot img { height: 32px; width: auto; margin-bottom: 16px; }
.foot h2 { font-size: 0.875rem; font-weight: 650; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.foot li + li { margin-top: 8px; }
.foot a { color: var(--ink-2); text-underline-offset: 4px; }
.foot address { font-style: normal; color: var(--ink-2); }
.legal-line { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 0.8125rem; }
.legal-line p { margin: 0; max-width: 46em; }
.motion-toggle {
  padding: 8px 14px; border: 1px solid var(--muted); border-radius: var(--r-sm);
  background: transparent; color: var(--ink); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { background: var(--surface); } }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* icon colours */
.perm svg, .calc svg { color: var(--ok); }
.box .tick { color: #fff; }
.never svg { color: var(--on-dark-muted); }
.st-done .ok-ic { color: var(--ok-on-dark); margin-top: 3px; flex: none; }
.demo[data-state="busy"] .btn-lime, .demo[data-state="done"] .btn-lime { pointer-events: none; }

/* ---------- Document pages (privacy, terms, support, dpa) ---------- */
.draft-bar {
  background: #ffe8a3; color: var(--ink);
  border-bottom: 1px solid #c9a227;
  text-align: center; padding: 10px 16px; font-size: 0.9375rem; font-weight: 650; line-height: 1.4;
}
.doc-hero { padding: 40px 0 8px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-nav a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 560;
}
.doc-nav a[aria-current="page"] { background: var(--stroke); border-color: var(--stroke); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .doc-nav a:not([aria-current]):hover { border-color: var(--stroke); } }
.doc { max-width: 52rem; padding: 24px 0 96px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 650; line-height: 1.08; letter-spacing: -0.035em; margin: 8px 0 20px; }
.doc h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin: 2.2em 0 0.6em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.125rem; font-weight: 650; margin: 1.6em 0 0.4em; }
.doc p, .doc li { max-width: 46em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; list-style: revert; }
.doc li { margin: 0.3em 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; font-weight: 520; }
.doc blockquote { margin: 18px 0; padding: 14px 18px; background: #fff8dc; border-left: 4px solid #c9a227; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); }
.doc blockquote p { margin: 0.4em 0; max-width: none; }
.doc nav.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 22px 16px; margin: 22px 0; }
.doc nav.toc h2 { border: 0; margin: 0.8em 0 0.4em; padding: 0; font-size: 1.0625rem; }
.doc nav.toc ul { margin: 0; padding-left: 1.1em; }
.doc nav.toc li { margin: 2px 0; }
.doc .tbl { max-width: 100%; overflow-x: auto; margin: 16px 0; border-radius: 4px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
@media (max-width: 640px) { .doc table { min-width: 560px; } }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); color: var(--ink); }
.doc code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; overflow-wrap: anywhere; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.doc mark { color: inherit; padding: 0 3px; border-radius: 3px; }
.doc mark.ph { background: #ffeeb0; border-bottom: 2px solid #a37a00; }
.doc mark.note { background: #fbd9d4; border-bottom: 2px solid #a62f1b; }
.doc :target { scroll-margin-top: calc(var(--header-h) + 16px); }
@media print { .site-header, .site-footer, .doc-hero, .draft-bar { display: none; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(72px, 12vw, 160px) 0; }
.notfound .h1 { max-width: 12em; margin-bottom: 20px; }
.notfound .lead { margin-bottom: 32px; }

/* ---------- Final motion kill-switch (user toggle) ---------- */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] .spin { border-top-color: var(--stroke); }
@media (prefers-reduced-motion: reduce) {
  .spin { border-top-color: var(--stroke); }
  .btn { transition-duration: 0.01ms; }
}
