/* MARTENSIA · site.css
 * The shared chrome for every page: the site's names for the apps' tokens, reset, nav, buttons, section
 * primitives, footer, reveal. Page-specific styles live in home.css, recon.css and legal.css.
 * Colours come from tokens.css (generated from the apps; load it first). The only literal colours on the site
 * are in the two blocks right below: the product identities and the raised muted text.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* the site's short names, mapped onto the apps' tokens */
  --bg: var(--bg-0);
  --bg2: var(--bg-1);
  --bg3: var(--bg-2);
  --fg: var(--fg-0);
  --fg2: var(--fg-1);
  --fg3: oklch(50% 0.015 262);      /* the apps' --fg-2 (56 %) is 4.2:1 on the ground; raised to the value the apps move to */
  --border: var(--line);
  --border-med: var(--line-strong);
  --control-line: oklch(from var(--fg-0) l c h / 0.5);   /* the edge of a control that has no fill of its own: 3:1 or better */
  --hover-strong: oklch(from var(--fg-0) l c h / 0.09);
  --accent-dim: var(--accent-soft);
  --accent-line: oklch(from var(--accent) l c h / 0.35);
  --ok-dim: var(--ok-soft);
  --warn-dim: var(--warn-soft);
  --bad-dim: var(--bad-soft);
  /* text in a state colour: the state tones are tuned for marks, these for words */
  --ok-text: oklch(from var(--ok) calc(l - 0.09) c h);
  --warn-text: oklch(from var(--warn) calc(l - 0.18) c h);

  /* the interaction accent where it carries white text or is text itself (white on light cornflower is retired) */
  --accent-deep: oklch(50% 0.16 262);
  --on-deep: var(--accent-ink);

  /* product identities: Recon is cornflower, Datum the logo's azure (marks and fills); "-deep" is text-safe */
  --recon: #6495ED;
  --recon-deep: var(--accent-deep);
  --datum: #0A9AF7;
  --datum-deep: oklch(50% 0.15 245);
  --mertensia: var(--recon);

  --font-display: var(--font);
  --font-body: var(--font);
  --font-mono: var(--mono);
  --frame-shadow: 0 32px 60px -18px oklch(0% 0 0 / 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="dark"] {
  --fg3: oklch(68% 0.008 250);
  --accent-deep: var(--accent);
  --datum: #01C4FE;
  --datum-deep: #01C4FE;
  --frame-shadow: 0 32px 60px -18px oklch(0% 0 0 / 0.6);
  --ok-text: var(--ok);
  --warn-text: var(--warn);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
::selection { background: color-mix(in oklch, var(--recon) 28%, transparent); color: var(--fg); }
img, svg, video { max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 600; }
.mono { font-family: var(--mono); }
.ink { color: var(--accent); }
body.datum .ink { color: var(--datum-deep); }

/* ── Nav ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 44px;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
nav.site-nav.scrolled, nav.site-nav.solid {
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); min-width: 0; min-height: 44px; }
.nav-brand .mark { height: 17px; width: auto; display: block; }
.nav-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; display: inline-flex; align-items: flex-start; white-space: nowrap; }
.brand-seal { width: 5px; height: 5px; border-radius: 50%; background: var(--recon); margin-left: 3px; margin-top: 2px; flex-shrink: 0; }
.nav-product { display: inline-flex; align-items: center; gap: 10px; }
.nav-product .slash { width: 1px; height: 16px; background: var(--border-med); transform: skewX(-14deg); }
.nav-product b { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; display: inline-flex; align-items: flex-start; }
.nav-center {
  display: flex; gap: 32px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center a { color: var(--fg2); text-decoration: none; font-size: 14px; transition: color 0.12s; white-space: nowrap; }
.nav-center a:hover, .nav-center a[aria-current="page"] { color: var(--fg); }
.nav-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-text {
  background: none; border: none;
  color: var(--fg2); font-family: var(--font-body); font-size: 14px;
  cursor: pointer; padding: 7px 12px; border-radius: 10px;
  text-decoration: none; display: inline-block; transition: color 0.12s, background 0.12s;
}
.btn-text:hover { color: var(--fg); }
.btn-text.lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; padding: 6px 8px; border: 1px solid var(--control-line); border-radius: 6px; color: var(--fg); min-height: 32px; display: inline-flex; align-items: center; }
.btn-solid {
  background: var(--fg); color: var(--bg);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: none; padding: 8px 16px; border-radius: 10px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: opacity 0.12s;
}
.btn-solid:hover { opacity: 0.82; }

/* ── The nav's Download ▾: a disclosure with one row per app, the same on every page ── */
.dl-menu { position: relative; }
.dl-menu > summary { list-style: none; }
.dl-menu > summary::-webkit-details-marker { display: none; }
.dl-menu .caret { font-size: 11px; transition: transform 0.12s; }
.dl-menu[open] .caret { transform: rotate(180deg); }
.dl-menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 280px;
  background: var(--bg-1); border: 1px solid var(--border-med); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px; z-index: 120;
}
.dl-menu__item { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--fg); min-height: 44px; }
.dl-menu__item:hover, .dl-menu__item:focus-visible { background: var(--hover); }
.dl-menu__item i { width: 8px; height: 8px; border-radius: 50%; background: var(--prod, var(--recon)); grid-row: 1 / span 2; }
.dl-menu__item b { font-size: 14px; font-weight: 600; }
.dl-menu__item span { grid-column: 2; font-size: 12.5px; color: var(--fg2); line-height: 1.35; }
.dl-menu__item--datum { --prod: var(--datum); }
.dl-menu__item--recon { --prod: var(--recon); }

/* ── Buttons (10 px, as in the apps) ── */
.btn-hero {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 24px; border-radius: 10px; min-height: 44px;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: opacity 0.12s, background 0.12s; border: none;
}
.btn-hero .arrow { transition: transform 0.12s; display: inline-block; }
.btn-hero:hover .arrow { transform: translateX(3px); }
.btn-hero-primary { background: var(--fg); color: var(--bg); }
.btn-hero-primary:hover { opacity: 0.86; }
.btn-hero-secondary { background: var(--hover); color: var(--fg); box-shadow: inset 0 0 0 1px var(--control-line); }
.btn-hero-secondary:hover { background: var(--hover-strong); }
.btn-hero-accent { background: var(--accent-deep); color: var(--on-deep); }
.btn-hero-accent:hover { opacity: 0.9; }
.btn-hero.btn-datum { background: var(--datum-deep); color: var(--on-deep); }
.btn-hero.btn-recon { background: var(--recon-deep); color: var(--on-deep); }
.btn-hero.btn-datum:hover, .btn-hero.btn-recon:hover { opacity: 0.9; }
.btn-hero.sm { font-size: 14px; padding: 10px 18px; }

/* the version card beside a product's button */
.ver-card { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg2); text-decoration: none; padding: 6px 12px; border: 1px solid var(--control-line); border-radius: 999px; min-height: 32px; }
.ver-card b { color: var(--fg); font-weight: 500; }
.ver-card:hover { color: var(--fg); border-color: var(--fg3); }

/* ── Hero (home and products) ── */
.hero { padding: 180px 44px 60px; max-width: 1280px; margin: 0 auto; position: relative; }
.hero-inner { max-width: 920px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg3); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .eyebrow-line { width: 18px; height: 1px; background: var(--recon); }
body.datum .hero-eyebrow .eyebrow-line { background: var(--datum); }
.hero-h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px);
  letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: 40px; color: var(--fg); text-wrap: balance;
}
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Stage hero: words, then the object ── */
.hero--stage { max-width: 1280px; margin: 0 auto; padding: 150px 44px 24px; display: grid; gap: 40px; }
.hero-copy { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .hero-eyebrow { margin-bottom: 26px; }
.hero--stage .hero-h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -0.04em; margin-bottom: 20px; }
.hero-lede { font-size: 19px; line-height: 1.5; color: var(--fg2); max-width: 620px; margin-bottom: 32px; text-wrap: pretty; }
.hero-copy .hero-actions { justify-content: center; gap: 14px 22px; }
.hero-link { font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.hero-link .arrow { transition: transform .12s; } .hero-link:hover .arrow { transform: translateX(3px); }

/* the stage: one object on the page itself, no frame */
.stage { max-width: 1280px; margin: 0 auto; width: 100%; }
.split3d { position: relative; width: 100%; aspect-ratio: 16 / 8.6; overflow: hidden; background: var(--bg); isolation: isolate; cursor: grab; }
.split3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity .4s; z-index: 1; pointer-events: none; }
.split3d.is-ready .split3d__poster { opacity: 0; }
.split3d__poster--dark { display: none; }
:root[data-theme="dark"] .split3d__poster--dark { display: block; }
:root[data-theme="dark"] .split3d__poster--light { display: none; }
.split3d__canvas { position: absolute; inset: 0; }
.split3d__hair { position: absolute; top: 6%; bottom: 6%; left: 50%; width: 1px; margin-left: -0.5px; background: oklch(from var(--fg) l c h / 0.5); z-index: 2; pointer-events: none; }
.split3d__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--bg-1); color: var(--fg); display: grid; place-items: center; box-shadow: 0 2px 12px oklch(0% 0 0 / 0.16), 0 0 0 1px var(--control-line); cursor: ew-resize; pointer-events: auto; transition: box-shadow .12s; }
.split3d.is-dragging .split3d__grip, .split3d__grip:hover { box-shadow: 0 4px 18px oklch(0% 0 0 / 0.2), 0 0 0 1px var(--fg3); }
.split3d__grip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.split3d__label { position: absolute; bottom: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); transition: opacity .3s; pointer-events: none; z-index: 2; }
.split3d__label--a { left: 22px; } .split3d__label--b { right: 22px; }
.split3d.no-webgl { cursor: default; }
.split3d__pin { --lead: 22px; position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; padding: 4px 8px; border-radius: 999px; background: var(--bg-1); color: var(--fg); border: 1px solid oklch(from var(--accent) l c h / 0.55); box-shadow: 0 1px 6px oklch(0% 0 0 / 0.08); white-space: nowrap; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .25s; }
.split3d__pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: calc(var(--lead) - 3px); background: oklch(from var(--accent) l c h / 0.55); }
.split3d__pin::before { content: ""; position: absolute; left: 50%; top: calc(100% + var(--lead) - 3px); width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .split3d { aspect-ratio: 4 / 3; } }

/* Datum's page: one accent, the product's own */
body.datum { --accent: var(--datum); --accent-deep: var(--datum-deep); --accent-soft: oklch(from var(--datum) l c h / 0.12); --accent-dim: var(--accent-soft); --accent-line: oklch(from var(--datum) l c h / 0.35); }
body.datum .nav-product b { color: var(--fg); }
body.datum .brand-seal { background: var(--datum); }
.product-mark { width: 20px; height: 20px; flex-shrink: 0; display: block; border-radius: 5px; }

.usp { max-width: 1100px; margin: 0 auto; padding: 80px 44px; }
.usp-table { margin-top: 36px; width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.usp-table th, .usp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.usp-table th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); font-weight: 500; }
.usp-table td:first-child { color: var(--fg2); width: 22%; }
.usp-table td:nth-child(2) { color: var(--fg2); width: 36%; }
.usp-table td:nth-child(3) { color: var(--fg); font-weight: 500; }
.usp-table tr:last-child td { border-bottom: 0; }
.usp-foot { margin-top: 18px; font-size: 13px; color: var(--fg3); line-height: 1.6; }
/* on a phone each row becomes a small card that carries its own column names */
@media (max-width: 720px) {
  .usp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .usp-table, .usp-table tbody, .usp-table tr, .usp-table td { display: block; width: auto !important; }
  .usp-table tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .usp-table tr:last-child { border-bottom: 0; }
  .usp-table td { border: 0; padding: 4px 0; }
  .usp-table td:first-child { font-weight: 600; color: var(--fg); padding-bottom: 6px; }
  .usp-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); font-weight: 500; margin-bottom: 2px; }
}
.datum-ops { max-width: 1100px; margin: 0 auto; padding: 80px 44px; }
.ops-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.op { background: var(--bg); padding: 20px 20px 18px; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
a.op:hover { background: var(--bg-1); }
.op-icon { width: 28px; height: 28px; color: var(--fg); margin-bottom: 2px; }
.op-icon svg { display: block; width: 100%; height: 100%; }
.op-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.op-name kbd { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--fg2); border: 1px solid var(--border-med); border-radius: 5px; padding: 0 6px; min-width: 22px; text-align: center; }
.op-line { font-size: 13.5px; color: var(--fg2); line-height: 1.55; }
.op-std { margin-top: auto; padding-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg3); }
.shots { max-width: 1280px; margin: 0 auto; padding: 40px 44px 80px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg2); min-width: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px 14px; font-size: 13.5px; color: var(--fg2); line-height: 1.55; }
.shot figcaption b { color: var(--fg); font-weight: 600; }
.plan-price.is-once small { display: block; }
@media (max-width: 960px) { .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shots { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ops-grid { grid-template-columns: 1fr; } }
.stage-caption { margin: 10px 22px 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg3); line-height: 1.7; }
.stage-caption b { color: var(--fg2); font-weight: 500; }

/* the sheet with its balloons, and the list ticking beside it */
.sheetcheck { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.sheetcheck__sheet { position: relative; background: #fff; box-shadow: 0 1px 2px oklch(0% 0 0 / 0.06), 0 24px 48px -24px oklch(0% 0 0 / 0.25); }
.sheetcheck__sheet img { display: block; width: 100%; height: auto; }
.sheetcheck__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheetcheck__balloon { opacity: 0; transform-box: fill-box; transition: opacity .35s; }
.sheetcheck__balloon circle { fill: #fff; stroke: var(--ok); stroke-width: 1.6; }
.sheetcheck__balloon.is-open circle { stroke: var(--warn); }
.sheetcheck__balloon text { font: 600 10px var(--font); fill: #1d2129; }
.sheetcheck.is-on .sheetcheck__balloon { opacity: 1; }
.sheetcheck__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--fg); font-size: 14px; }
.sheetcheck__head b { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.sheetcheck__head span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg3); }
.sheetcheck__list { list-style: none; }
.sheetcheck__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 18px; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; transition: opacity .35s; }
.sheetcheck.is-js .sheetcheck__row { opacity: 0.25; }
.sheetcheck.is-on .sheetcheck__row { opacity: 1; }
.sheetcheck__n { font-family: var(--mono); font-size: 12px; color: var(--fg3); }
.sheetcheck__text { font-family: var(--mono); font-size: 12.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheetcheck__verdict { font-weight: 700; color: var(--ok-text); text-align: right; }
.sheetcheck__row.is-open .sheetcheck__verdict { color: var(--warn-text); }
.sheetcheck__foot { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--fg3); }
@media (max-width: 900px) { .sheetcheck { grid-template-columns: minmax(0, 1fr); gap: 24px; } }   /* the sheet over its list: side by side, a phone cuts every value short */

/* what changes: three lines, no boxes */
.replaycard { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: center; }
.replaycard__video { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--border); background: var(--bg2); }
.replaycard__text { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg2); line-height: 1.55; min-width: 0; }
.replaycard__text b { color: var(--fg); font-size: 16px; font-family: var(--font-display); letter-spacing: -0.01em; }
@media (max-width: 900px) { .replaycard { grid-template-columns: 1fr; } }
.pains { max-width: 1100px; margin: 0 auto; padding: 56px 44px 24px; }
.pains--inline { padding: 48px 0 0; max-width: none; }
.pains-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--fg); }
.pain { padding: 22px 0 8px; display: grid; gap: 8px; }
.pain-before { font-size: 14px; color: var(--fg2); text-decoration: line-through; text-decoration-color: oklch(from var(--bad) l c h / 0.7); text-decoration-thickness: 1.2px; line-height: 1.45; }
.pain-after { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; line-height: 1.3; color: var(--fg); text-wrap: balance; }

/* ── Before / after ── */
.cmp-stage { max-width: 1100px; margin: 0 auto; }
.cmp { --cmp: 50%; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-med); background: var(--viewport); box-shadow: var(--frame-shadow); user-select: none; touch-action: pan-y; cursor: ew-resize; aspect-ratio: 1200 / 760; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cmp__b { clip-path: inset(0 0 0 var(--cmp)); }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--cmp); width: 2px; margin-left: -1px; background: var(--recon); }
.cmp__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 10px; background: var(--accent-deep); color: var(--on-deep); display: grid; place-items: center; box-shadow: 0 8px 24px -8px oklch(0% 0 0 / 0.5); }
.cmp__handle:focus-visible { outline: none; }
.cmp__handle:focus-visible .cmp__grip { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.cmp__label { position: absolute; top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: var(--fg-0); color: var(--bg-0); pointer-events: none; }
.cmp__label--a { left: 14px; }
.cmp__label--b { right: 14px; }
.cmp-stage .frame-caption { margin-top: 12px; }

/* ── Section primitives ── */
.section { max-width: 1100px; margin: 0 auto; padding: 100px 44px; }
.section.tight { padding-top: 60px; padding-bottom: 60px; }
.section-mono {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-mono::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.section-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance;
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.section-desc { color: var(--fg2); font-size: 15px; line-height: 1.7; max-width: 400px; }
.section-desc a, .prose a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.section-desc a:hover, .prose a:hover { border-bottom-color: var(--accent); }
.ws-num { font-family: var(--font-mono); font-size: 12px; color: var(--fg3); letter-spacing: 0.08em; margin-bottom: 20px; }
.sf-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); font-size: 14px; font-weight: 500; text-decoration: none; }
.sf-link .arrow { transition: transform 0.12s; display: inline-block; }
.sf-link:hover .arrow { transform: translateX(3px); }

/* Secondary-page hero (about, contact, legal, download, help) */
.k-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg3);
  display: inline-flex; align-items: center; gap: 10px;
}
.k-eyebrow .line { width: 18px; height: 1px; background: var(--accent); }
.k-hero { padding: 170px 44px 56px; max-width: 1100px; margin: 0 auto; }
.k-hero.narrow { max-width: 720px; }
.k-hero h1 {
  font-size: clamp(36px, 4.6vw, 56px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.05;
  margin-top: 22px; margin-bottom: 22px; text-wrap: balance;
}
.k-hero h1 em { font-style: italic; font-weight: 600; color: var(--fg2); }
.k-hero .lede { font-size: 19px; color: var(--fg); line-height: 1.55; max-width: 620px; }
.k-hero .meta { margin-top: 28px; font-family: var(--mono); font-size: 12px; color: var(--fg3); letter-spacing: 0.02em; display: flex; gap: 24px; flex-wrap: wrap; }
.k-hero .meta b { color: var(--fg2); font-weight: 500; }
.k-section { padding: 64px 44px; max-width: 1100px; margin: 0 auto; }
.k-section.narrow { max-width: 720px; }
.k-section h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 18px; }
.k-section h2 .anchor { color: var(--fg3); margin-right: 12px; font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0.02em; }
.k-section p { font-size: 17px; line-height: 1.65; color: var(--fg); margin-bottom: 22px; max-width: 640px; }
.k-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg); color: var(--bg);
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 10px; min-height: 44px;
  cursor: pointer; text-decoration: none; border: none;
  transition: opacity 0.12s;
}
.k-cta:hover { opacity: 0.86; }
.k-cta.ghost { background: var(--hover); color: var(--fg); box-shadow: inset 0 0 0 1px var(--control-line); }
.k-cta.ghost:hover { background: var(--hover-strong); opacity: 1; }
.k-tag {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-dim);
  padding: 4px 10px; border-radius: 999px;
}
.k-tag.ok { color: var(--ok-text); background: var(--ok-dim); }
.k-tag.warn { color: var(--warn-text); background: var(--warn-dim); }

/* ── Product frame (a screenshot in a window) ── */
.frame {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-med);
  background: var(--bg2);
  box-shadow: var(--frame-shadow);
}
.frame img { display: block; width: 100%; height: auto; }
.frame-stage {
  border-radius: 20px;
  padding: clamp(16px, 4vw, 56px);
  background: linear-gradient(165deg, var(--bg-2) 0%, var(--bg-3) 100%);
}
.frame-caption { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--fg3); letter-spacing: 0.02em; display: flex; gap: 18px; flex-wrap: wrap; }
.frame-caption b { color: var(--fg2); font-weight: 500; }

/* ── Workflow (how we work) ── */
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 2px solid var(--fg); }
.workflow-step { padding: 32px 36px 0 0; position: relative; }
.workflow-step:not(:first-child) { padding-left: 36px; }
.workflow-step:last-child { padding-right: 0; }
.ws-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.ws-desc { color: var(--fg2); font-size: 14.5px; line-height: 1.7; }

/* ── CTA band ── */
.cta-section { padding: 140px 44px; text-align: center; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.04em; line-height: 1.0; margin-bottom: 22px; text-wrap: balance; }
.cta-sub { color: var(--fg2); font-size: 17px; line-height: 1.65; margin: 0 auto 44px; max-width: 480px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer.site-footer { border-top: 1px solid var(--border); padding: 56px 44px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand-row { display: flex; align-items: center; gap: 9px; }
.footer-brand-row .mark { height: 15px; width: auto; opacity: 0.6; }
.footer-wordmark { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--fg2); letter-spacing: -0.01em; display: inline-flex; align-items: flex-start; }
.footer-tagline { font-size: 14px; color: var(--fg3); max-width: 240px; line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 10px; letter-spacing: 0.02em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.footer-links a { color: var(--fg2); text-decoration: none; font-size: 14px; transition: color 0.12s; display: inline-flex; align-items: center; min-height: 32px; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1100px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--fg3); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--fg3); text-decoration: none; transition: color 0.12s; display: inline-flex; align-items: center; min-height: 32px; }
.footer-bottom-links a:hover { color: var(--fg2); }

/* ── Reveal on scroll ──
 * Content is visible by default. site.js adds .is-pre (hidden) only to what is still below the fold, then
 * removes it as each block comes into view: 400 ms, a 12 px rise. Without the script nothing is ever hidden. */
.reveal { transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.reveal.is-pre { opacity: 0; transform: translateY(12px); }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.is-pre { opacity: 1; transform: none; transition: none; } }

/* ── FAQ (native details) ── */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 16px; font-weight: 500; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--fg2); font-size: 18px; transition: transform 0.12s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 22px; color: var(--fg2); font-size: 15px; line-height: 1.7; max-width: 680px; }
.faq .faq-a p + p { margin-top: 10px; }
.faq .faq-a a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--accent-line); }

/* ── Small helpers ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg2); background: var(--bg2); border: 1px solid var(--border-med); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.kbd, kbd.k { font-family: var(--mono); font-size: 12px; background: var(--bg-1); border: 1px solid var(--border-med); border-bottom-width: 2px; padding: 1px 7px; border-radius: 6px; letter-spacing: 0.02em; color: var(--fg); white-space: nowrap; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--hover); padding: 1px 6px; border-radius: 4px; }
pre { font-family: var(--mono); font-size: 13px; line-height: 1.6; background: var(--hover); padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.placeholder { background: var(--warn-dim); color: var(--warn-text); padding: 0 4px; border-radius: 3px; font-family: var(--mono); font-size: 0.85em; }

@media (max-width: 600px) {
  nav.site-nav .btn-text:not(.lang) { display: none; }
  nav.site-nav .btn-text.lang { display: none; }
  nav.site-nav .btn-solid { padding: 8px 12px; min-height: 40px; }
  nav.site-nav .nav-product { gap: 6px; }
  nav.site-nav .nav-product .slash { display: none; }
  nav.site-nav .nav-brand:has(.nav-product) .nav-wordmark { display: none; }
  .dl-menu__list { position: fixed; left: 12px; right: 12px; top: 62px; min-width: 0; }
}
/* a nav with eight links (the Datum page, longer still in Spanish) tightens before it folds; the least-asked links go first */
@media (max-width: 1400px) { .nav-center { position: static; transform: none; flex: 1; min-width: 0; justify-content: center; padding: 0 20px; gap: 22px; } .nav-center a { font-size: 13.5px; } }
@media (max-width: 1200px) { .nav-center { gap: 18px; } .nav-center li.nav-opt { display: none; } }
@media (max-width: 900px) {
  nav.site-nav { padding: 0 16px; }
  .cmp__grip { width: 44px; height: 44px; }
  .cmp__label { font-size: 12px; padding: 5px 7px; top: 10px; }
  .cmp__label--a { left: 10px; } .cmp__label--b { right: 10px; }
  .nav-center { display: none; }
  .hero { padding: 130px 16px 40px; }
  .hero--stage { padding: 110px 16px 16px; gap: 28px; }
  .section, .k-section { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .pains:not(.pains--inline) { padding-left: 16px; padding-right: 16px; }
  .usp, .datum-ops { padding: 64px 16px; }   /* Datum's own sections kept their 44 px desktop gutter on a phone */
  .k-hero { padding: 120px 16px 40px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step:not(:first-child), .workflow-step:last-child { padding: 24px 0 0; }
  .cta-section { padding: 90px 16px; }
  footer.site-footer { padding: 48px 16px 32px; }
  .footer-cols { gap: 28px 40px; }
  .frame-stage { border-radius: 14px; }
  .stage-caption { margin: 10px 4px 0; }
  .pains-inner { grid-template-columns: 1fr; }
}
/* touch: every link and control is at least 44 px tall */
@media (max-width: 720px), (pointer: coarse) {
  .footer-links a, .footer-bottom-links a { min-height: 44px; }
  .hero-samples a, .inline-links a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* the terms and the samples under a product hero */
.hero-terms { margin-top: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; color: var(--fg2); line-height: 1.6; }
.hero-terms + .hero-terms { margin-top: 4px; }
.hero-samples { margin-top: 10px; font-size: 14px; color: var(--fg2); line-height: 1.6; }
.hero-samples a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-med); }
.hero-samples a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
.hero-meta-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* ── Help pages: spec cards, key tables, limit lists ── */
.spec { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--border-med); border-radius: 10px; background: var(--bg-1); font-family: var(--mono); font-size: 13px; color: var(--fg); }
.spec b { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.spec span { color: var(--fg); }
.spec span i { font-style: normal; color: var(--fg3); letter-spacing: 0.08em; margin-right: 8px; font-size: 12px; }
.help-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.help-table th, .help-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.help-table th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); font-weight: 500; }
.help-table td:first-child { white-space: nowrap; width: 1%; }
.help-table caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; padding: 0 0 10px; }
.limit-list { list-style: none; border-top: 1px solid var(--border); }
.limit-list li { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; line-height: 1.6; color: var(--fg); }
.limit-list li small { display: block; font-size: 14px; color: var(--fg2); margin-top: 2px; }
.say-ex { font-family: var(--mono); font-size: 14px; background: var(--bg-1); border: 1px solid var(--border-med); border-radius: 8px; padding: 4px 10px; display: inline-block; color: var(--fg); }

/* Datum's "Say it like the drawing" */
.say-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.say-table th, .say-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.say-table th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); font-weight: 500; }
.say-table td:first-child { color: var(--fg); width: 45%; }
.say-table td:last-child { white-space: nowrap; text-align: right; }
.say-table .sf-link { min-height: 44px; }
.plan-honest { color: var(--fg) !important; font-weight: 500; }
@media (max-width: 720px) {
  .say-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .say-table, .say-table tbody, .say-table tr, .say-table td { display: block; width: auto !important; }
  .say-table tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .say-table td { border: 0; padding: 4px 0; text-align: left !important; }
  .say-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; }
}

/* the stock tile in Datum's operations grid: the five stocks side by side */
.op-stocks { display: flex; gap: 4px; margin: -4px 0 2px -4px; }
.op-stocks img { display: block; width: 32px; height: 32px; }
