/* The public website, datapurix.com (roadmap W1). The template
   (docs/design/ui-template) sets every style inline; the CSP forbids that,
   so each inline style became a class here with the same values. Layout:
   design doc §3. Motion (§4) runs only for visitors who have not asked for
   reduced motion. */
/* ---- page ---- */

body.site { background: var(--surface); font-size: 16px; line-height: normal; }
:where(.site a) { color: var(--ink); text-decoration: none; }
:where(.site a:hover) { color: var(--text-2); }
.site .eyebrow { letter-spacing: .16em; }
.site code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--ink);
}
.lead a, .prose a, .faq a, .demo-mail a { text-decoration: underline; text-underline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; }
.skip:focus { left: 16px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-xs); }

.wrap { max-width: var(--max-w); margin: 0 auto; }

/* ---- buttons (links styled as the template's buttons) ---- */

.btn-site {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  white-space: nowrap;
}
.btn-ink { color: #fff; background: var(--ink); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-outline { color: var(--ink); background: var(--surface); }
.btn-outline:hover { background: var(--surface-2); }
.btn-lg { font-size: 15px; padding: 14px 24px; border-radius: var(--r-lg); }
.btn-wide { padding: 14px 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---- header: sticky, translucent; a rule and shadow once scrolled ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-header); }
.header-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-logo { display: flex; align-items: center; flex: 0 0 auto; }
.header-logo img { display: block; height: 32px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.header-nav a { font-size: 14px; font-weight: 450; color: var(--text-2); letter-spacing: -.01em; white-space: nowrap; }
.header-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-signin { font-size: 14px; font-weight: 450; color: var(--text-2); padding: 9px 12px; }

.menu-button {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.menu-button span { display: block; width: 16px; height: 1.5px; background: var(--ink); }
.site-menu {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-menu[hidden] { display: none; }
.site-menu nav { display: flex; flex-direction: column; gap: 2px; }
.site-menu nav a { font-size: 17px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.menu-actions .btn-site { text-align: center; font-size: 15px; padding: 13px 18px; }

@media (max-width: 1039px) {
  .header-nav, .header-actions { display: none; }
  .menu-button { display: flex; }
  .header-logo img { height: 26px; }
}
@media (min-width: 1040px) {
  .site-menu { display: none; }
}

/* ---- sections ---- */

.section { padding: 112px var(--gutter); border-bottom: 1px solid var(--line); }
.section.alt { background: var(--surface-2); }
.hero, .values, .section, .demo { scroll-margin-top: var(--header-h); }
.page-top { padding-top: 104px; }
.section-head { max-width: 720px; }
.head-760 { max-width: 760px; }
.eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.planned {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  white-space: nowrap;
}
.h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.h1-page { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.lead { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.lead-18 { font-size: 18px; max-width: 660px; }
.lead-460 { max-width: 460px; }
.lead-480 { max-width: 480px; }
.lead-520 { max-width: 520px; }
.lead-600 { max-width: 600px; }
.lead-620 { max-width: 620px; }
.lead-680 { max-width: 680px; }
.lead-16top { margin-top: 16px; }
.lead-strong { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink); font-weight: 450; }
.footnote { margin: 20px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--text-3); max-width: 720px; }
.mono-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-3); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 480px; }

/* Block layout with the tick positioned, so inline <strong> and <code> flow with the text. */
.checks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.checks li strong { color: var(--ink); font-weight: 600; }
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 10px;
  color: var(--ink);
}

/* ---- footer ---- */

.site-footer { background: var(--ink); color: #fff; padding: 72px var(--gutter) 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 48px; }
.footer-logo { display: block; height: 40px; width: auto; }
.pixels { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.pixels span { width: 5px; height: 5px; background: #fff; opacity: .6; }
.footer-title { margin: 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #8A9099; }
.footer-links { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site .footer-links a { font-size: 14px; color: var(--text-inverse-2); }
.site .footer-links a:hover { color: #fff; }
.footer-disclaimer { margin: 56px 0 0; max-width: 760px; font-size: 12.5px; line-height: 1.55; color: #8A9099; }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-hover);
  font-size: 13px;
  color: #8A9099;
}
.footer-bar-links { display: flex; flex-wrap: wrap; gap: 22px; }
.site .footer-bar-links a { font-size: 13px; color: #8A9099; }
.site .footer-bar-links a:hover { color: #fff; }

/* The template's #525866 reaches only 2.7:1 on ink; #8A9099 is its own
   muted value on ink (6:1). */
.footer-domain { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: #8A9099; }

/* ---- privacy ---- */

.prose { max-width: 760px; }
.prose-meta { margin: 20px 0 0; font-size: 13px; color: var(--text-3); }
.prose-h { margin: 40px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.prose p:not(.prose-meta) { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.prose .checks { margin-top: 14px; max-width: none; }

/* ---- motion (design doc §4), only without a reduced-motion preference ---- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rail span { animation: dpx-flow 5.5s linear infinite; }
  .pixels span { animation: dpx-pixel 3s ease-in-out infinite; }
  .pixels span:nth-child(2) { animation-delay: .2s; }
  .pixels span:nth-child(3) { animation-delay: .4s; }
  .pixels span:nth-child(4) { animation-delay: .6s; }
  .pixels span:nth-child(5) { animation-delay: .8s; }
  .pixels span:nth-child(6) { animation-delay: 1s; }
  /* site.js adds .reveal to [data-reveal] blocks, then .revealed as they scroll into view. */
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
  .reveal.revealed { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: .06s; }
  .reveal-d2 { transition-delay: .12s; }
}
@keyframes dpx-flow { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
@keyframes dpx-pixel { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
/* Two-column blocks: auto-fit columns never narrower than their minimum,
   except on a screen narrower than that (min() keeps them on the page). */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--split-min, 360px), 100%), 1fr));
  gap: var(--split-gap, 56px);
  align-items: start;
}
.split-320 { --split-min: 320px; }
.split-340 { --split-min: 340px; }
.split-360 { --split-min: 360px; }
.split-380 { --split-min: 380px; }
.gap-24 { --split-gap: 24px; }
.gap-40 { --split-gap: 40px; }
.gap-64 { --split-gap: 64px; }
.split-center { align-items: center; }
.split-56top { margin-top: 56px; }

/* Hairline grids: cells outline themselves into the 1px gaps, so a last row
   that is not full shows blank space, never grey filler cells. */
.grid-lines {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.grid-lines > * { background: var(--surface); outline: 1px solid var(--line); }

/* Illustrative previews (design doc §8). */
.mock { margin: 0; }
.mock-note { margin: 12px 0 0; font-size: 12px; color: var(--text-3); }
.card { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface); overflow: hidden; }

/* ---- hero ---- */

.hero { padding: 104px var(--gutter) 0; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 820px; }
.hero-copy > .eyebrow { margin-bottom: 28px; }
.display {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-lead { margin: 26px 0 0; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 660px; text-wrap: pretty; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); letter-spacing: -.005em; }
.trust li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); flex: 0 0 auto; }
.dev-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.dev-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }

.window {
  margin-top: 72px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r-3xl) var(--r-3xl) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.window-dots { display: flex; gap: 8px; }
.window-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.window-url { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.window-note { justify-self: end; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.window-scroll { overflow-x: auto; }

/* A phone has room for the address and a short label only. */
@media (max-width: 639px) {
  .window-bar { grid-template-columns: 1fr auto; }
  .window-dots, .window-note-more { display: none; }
}
.app-shell { min-width: 940px; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.app-side { border-right: 1px solid var(--line); background: var(--surface-3); padding: 18px 12px; min-height: 560px; }
.app-main { padding: 26px 28px 34px; background: var(--surface); }
.app-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.app-greeting { font-size: 13px; color: var(--text-3); }
.app-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.app-filters { display: flex; gap: 8px; }
.app-filter { font-size: 12px; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 7px 12px; }
.app-filter-ink { color: #fff; background: var(--ink); border: 0; }
.app-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.app-table-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.app-table-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.app-table-meta { font-size: 12px; color: var(--text-3); }
.runs-table { --dt-cols: 1.1fr 1.5fr 1.6fr .9fr .9fr 1.1fr; }
.cell-id { font-family: var(--font-mono); color: var(--ink); }
.cell-ink { color: var(--ink); }
.cell-policy { font-family: var(--font-mono); font-size: 11px; }
.cell-cert { font-size: 12px; color: var(--text-3); }
.cell-cert.cert-available { color: var(--ink); }

/* ---- value bar ---- */

.values { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.values-grid {
  padding: 44px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 32px;
}
.value { display: flex; align-items: center; gap: 14px; }
.value-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
}
.value-title { font-size: 14.5px; font-weight: 550; letter-spacing: -.012em; }
.value-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ---- platform ---- */

#platform .h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -.032em; }
.lifecycle-panel { margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 32px; background: var(--surface); }
.lifecycle { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0; padding: 0; list-style: none; }
.life { flex: 1 1 150px; min-width: 140px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px; background: var(--surface-3); }
.life:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.life-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--text-3); }
.life-title { font-size: 15px; font-weight: 550; letter-spacing: -.015em; margin-top: 10px; }
.life-sub { font-size: 12.5px; line-height: 1.45; color: var(--text-3); margin-top: 5px; }
.rail { position: relative; margin-top: 14px; height: 1px; background: var(--line); overflow: hidden; }
.rail span {
  position: absolute;
  top: 0;
  left: 0;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  transform: translateX(-100%);
}
.exception { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.exception-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding-right: 6px; }
.exception .chip { font-weight: 500; color: var(--text-2); padding: 7px 14px; }
.exception .chip.tone-bad { color: var(--bad); }
.arrow { font-size: 13px; color: var(--text-3); }

/* ---- data sanitization ---- */

#sanitization .h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.device-card { box-shadow: var(--shadow-panel); }
.card-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.device-body { padding: 24px 22px; }
.device-name { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.device-id { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.tile { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.tile-value { font-size: 14px; font-weight: 500; margin-top: 7px; }
.tile-sub { font-size: 13px; color: var(--text-2); }
.caps-block { margin-top: 20px; }
.caps-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.caps-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.cap-ok { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ok); }
.device-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.device-result { display: flex; align-items: center; gap: 10px; }
.mock-button { font-size: 14px; font-weight: 500; color: #fff; background: var(--ink); border-radius: var(--r-md); padding: 12px 20px; }

/* ---- DataPurixOS (and the architecture stack on /how-it-works/) ---- */

#datapurixos .h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.032em; }
.os-split { margin-top: 56px; }
.os-panel { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface-2); padding: 32px 28px; }
.os-stack { display: flex; flex-direction: column; align-items: center; }
.os-node { width: 100%; max-width: 340px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 16px 18px; text-align: center; }
.os-node.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.os-node.outline { border-color: var(--ink); }
.os-title { font-size: 14.5px; font-weight: 550; letter-spacing: -.01em; }
.os-sub { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 3px; }
.os-node.ink .os-sub { color: #8A9099; } /* the template's muted value: 6:1 on ink */
.os-link { width: 1px; height: 22px; background: var(--line-strong); }
.os-features { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.os-feature { padding: 22px 20px; }
.os-feature:hover { background: var(--surface-3); }
.os-n { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-3); }
.os-label { font-size: 14.5px; font-weight: 500; letter-spacing: -.012em; margin-top: 10px; }

/* ---- certificates ---- */

#certificates .h2 { max-width: 460px; }
.cert-card { box-shadow: 0 24px 56px -36px rgba(10, 10, 10, .32); }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.cert-kind { letter-spacing: .14em; }
.cert-id { font-family: var(--font-mono); font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-top: 8px; }
.qr {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(13, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
}
.qr .on { background: var(--ink); }
.cert-card .field-grid { border: 0; border-radius: 0; }
.cert-card .field { padding: 14px 18px; }
.cert-card .field dd { letter-spacing: -.01em; }
.cert-note { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--text-3); }
.cert-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); }
.cert-foot .mono-label { font-size: 12px; letter-spacing: 0; }
.signature { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ok); }
.signature::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---- ITAD board ---- */

.board-figure { margin-top: 44px; }
.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-3);
}
.board-customer { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.board-job { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.board-stats { display: flex; flex-wrap: wrap; gap: 22px; }
.board-stat { font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.board-stat-label { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.board-scroll { overflow-x: auto; }
.board-columns { display: flex; gap: 1px; background: var(--line); min-width: 900px; }
.board-columns .kanban-col { flex: 1 1 0; }

/* ---- quarantine ---- */

#quarantine .h2 { max-width: 480px; }
.flow { display: flex; flex-direction: column; align-items: stretch; }
.flow-link { width: 1px; height: 18px; margin: 0 auto; background: var(--line-strong); }
.flow-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.outcome { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px 20px; }
.outcome-title { font-size: 15px; font-weight: 550; }
.outcome-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }

/* ---- cloud ---- */

.cloud-figure { margin-top: 48px; }
.cloud-panel { border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--surface-2); padding: 32px; }
.cloud-box { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); padding: 24px; }
.cloud-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cloud-name { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.modules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.module { font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 8px 12px; background: var(--surface-3); }
.cloud-sync { display: block; text-align: center; padding: 14px 0; font-size: 10.5px; letter-spacing: .12em; }
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.site-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.site-card:hover { box-shadow: 0 10px 26px -18px rgba(10, 10, 10, .26); }
.site-row { display: flex; align-items: center; justify-content: space-between; }
.site-city { font-size: 15px; font-weight: 550; letter-spacing: -.012em; }
.site-online { font-family: var(--font-mono); font-size: 10.5px; color: var(--ok); }
.site-stations { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.site-mode { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); margin-top: 12px; }

/* ---- customer portal ---- */

#portal .h2 { max-width: 440px; }
.portal-card { box-shadow: 0 20px 50px -34px rgba(10, 10, 10, .28); }
.portal-head { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.portal-kind { letter-spacing: .14em; }
.portal-customer { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-top: 8px; }
.portal-meta { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.portal-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--surface); }
.portal-result { background: var(--surface); padding: 18px; outline: 1px solid var(--line-soft); }
.portal-value { font-size: 22px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.portal-label { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 20px 24px; border-top: 1px solid var(--line); }
.download { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; background: var(--surface); font-size: 13.5px; font-weight: 500; }
.download-arrow { font-size: 13px; color: var(--text-3); }

/* ---- compliance and security ---- */

/* The template balances every section title except these three. */
#security .h2, #integrations .h2, #licensing .h2 { text-wrap: wrap; }
.compliance-grid { margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.compliance-item { padding: 28px 24px; }
.compliance-item:hover { background: var(--surface-3); }
.compliance-title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.compliance-sub { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin-top: 8px; }
.security-grid { margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.security-item { display: flex; align-items: center; gap: 12px; padding: 22px 20px; font-size: 14px; font-weight: 450; letter-spacing: -.012em; }
.security-item:hover { background: var(--surface-3); }
.security-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); flex: 0 0 auto; }
.security-item .planned { margin-left: auto; }

/* Full rows at desktop width: 6 compliance items in 3 columns, 12 security
   items (some with a Planned tag) in 4. */
@media (min-width: 1040px) {
  .compliance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- integrations and licensing ---- */

.integrations, .licensing { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.integrations { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.integration { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 20px; }
.integration:hover { box-shadow: 0 10px 24px -18px rgba(10, 10, 10, .26); }
.integration-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
}
.integration-name { font-size: 14px; font-weight: 500; letter-spacing: -.012em; }
.integration-kind { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.licensing { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.licence { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); padding: 26px 22px; }
.licence-title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.licence-sub { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin-top: 8px; }

/* ---- why and the closing call to action ---- */

.why { padding: 128px var(--gutter); background: var(--surface-2); }
.why-title { margin: 0; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; max-width: 900px; text-wrap: balance; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 48px; margin-top: 64px; }
.why-col { border-top: 1px solid var(--ink); padding-top: 22px; }
.why-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-3); }
.why-head { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.025em; margin-top: 16px; }
.why-sub { font-size: 15px; line-height: 1.6; color: var(--text-2); margin-top: 10px; text-wrap: pretty; }
.demo { padding: 140px var(--gutter); background: var(--surface); }
.demo-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.demo-title { margin: 0; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -.035em; font-weight: 600; }
.demo-lead { margin: 22px auto 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 560px; text-wrap: pretty; }
.demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.demo-mail { margin: 18px 0 0; font-size: 13px; color: var(--text-3); }

/* ---- how it works ---- */

.steps { margin-top: 56px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li, .rules li { padding: 26px 24px; }
.step-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--text-3); }
.step-title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin-top: 10px; }
.steps p, .rules p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.rules { margin-top: 44px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rules li:hover { background: var(--surface-3); }
.rule-title { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.code-card { box-shadow: var(--shadow-panel); }
.code-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-3); }
.code-card pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink); }
.code-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
.table-wrap { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r-2xl); overflow-x: auto; background: var(--surface); }
.tech-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.tech-table thead th {
  padding: 12px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.tech-table tbody th, .tech-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
}
.tech-table tbody th { color: var(--ink); font-weight: 550; }
.tech-table tr:last-child > * { border-bottom: none; }
.outcomes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.outcomes .pill { white-space: nowrap; }
.timeline { margin: 44px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; background: var(--surface); }
.timeline li { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: none; }
.timeline-area { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-3); }
.timeline-title { font-size: 14.5px; font-weight: 550; letter-spacing: -.012em; }
.timeline-detail { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.faq { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--text-3); }
.faq details[open] summary::after { content: '−'; }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.faq details p { margin: 0; padding: 0 24px 22px; max-width: 860px; font-size: 14px; line-height: 1.6; color: var(--text-2); }

@media (max-width: 1039px) {
  .steps, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 1fr; justify-items: start; gap: 6px; }
}
@media (max-width: 639px) {
  .steps, .rules { grid-template-columns: 1fr; }
}
