/* ============================================================================
 * Hallmark · macrostructure: Hero → Product Grid → Flagship → Statement → CTA
 * theme: studied-DNA (source: DeepVertex Health Dashboard globals.css)
 * paper #f6f3ed · ink #0b0d10 · accent #0a63e6 (light) / #3ddcff (dark band)
 * display: DeepVertex Sans 700 · body: DeepVertex Sans 400
 * nav: N5 floating glass pill · footer: Ft2 quiet link matrix
 * tone: calm, precise, technical · accent use: < 5 % of surface
 * ========================================================================== */

@import url("tokens.css?v=118");

/* ================= Fonts — DeepVertex Sans (400–800) ================= */
@font-face {
  font-family: "DeepVertex Sans";
  src: url("fonts/DeepVertexSans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DeepVertex Sans";
  src: url("fonts/DeepVertexSans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DeepVertex Sans";
  src: url("fonts/DeepVertexSans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DeepVertex Sans";
  src: url("fonts/DeepVertexSans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DeepVertex Sans";
  src: url("fonts/DeepVertexSans-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ================= Base ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-gap) + var(--header-h) + 24px);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  /* Load-bearing: DeepVertex Sans ships a 3 px space at 16 px where Arial
     ships 4.45 px. Without this, labels read "Reasonforvisit". Measured and
     documented in the Health Dashboard review. */
  word-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main {
  display: block;
  flex: 1 0 auto;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

:where(input, select, textarea, button, a):focus-visible {
  scroll-margin-top: calc(var(--header-gap) + var(--header-h) + 24px);
}

[hidden] {
  display: none !important;
}

/* ================= Layout primitives ================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-wide {
  max-width: var(--shell-wide);
}

.shell-narrow {
  max-width: 900px;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-tight {
  padding-block: var(--section-y-tight);
}

.band {
  background: var(--bg);
  color: var(--ink);
}

.band-tint {
  background: var(--bg-deep);
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ================= Type ================= */
.display-brand {
  color: var(--muted);
}

.display {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
}

.display-s {
  font-size: var(--text-display-s);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
}

.h2 {
  font-size: var(--text-h2);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  font-weight: 700;
  overflow-wrap: anywhere;
  min-width: 0;
}

.h3 {
  font-size: var(--text-h3);
  line-height: 1.14;
  letter-spacing: var(--tracking-heading);
  font-weight: 600;
}

.h4 {
  font-size: var(--text-h4);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 600;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--muted);
  max-width: 58ch;
}

.body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--muted);
  max-width: 66ch;
}

.fine {
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--muted);
}

.micro {
  font-size: var(--text-micro);
  line-height: 1.5;
  color: var(--muted-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1.4;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.caps {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted-2);
}

.measure {
  max-width: 62ch;
}

.center {
  text-align: center;
}

.br-d {
  display: inline;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 2.6vw, 32px);
}

.stack-sm > * + * {
  margin-top: var(--space-4);
}

.stack-md > * + * {
  margin-top: var(--space-6);
}

.stack-lg > * + * {
  margin-top: var(--space-8);
}

/* ================= Status ================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
  flex: none;
}

.status--active {
  color: var(--accent-text);
}

.status--soon {
  color: var(--muted-2);
}

.status--open {
  color: var(--ok);
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-chip);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.002em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) ease,
    filter var(--dur-fast) ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 14px 30px -20px var(--accent);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--glass);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--muted-2);
}

.btn-quiet {
  min-height: 40px;
  padding: 0 2px;
  background: transparent;
  color: var(--accent-text);
  border-radius: 0;
}

.btn-quiet:hover svg {
  transform: translateX(3px);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: var(--text-fine);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  white-space: nowrap;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur-base) var(--ease-out);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ================= Icons ================= */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent-text);
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

.icon-inline {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ================= Header / nav ================= */
.site-header {
  position: fixed;
  inset: var(--header-gap) 0 auto;
  z-index: 80;
  pointer-events: none;
}

.nav-wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
  padding: 0 8px 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 21px;
  background: var(--glass);
  box-shadow: var(--shadow-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition:
    background-color var(--dur-base) ease,
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) ease;
}

.site-header.is-scrolled .nav-shell {
  background: var(--glass-strong);
  border-color: var(--line);
  box-shadow: var(--shadow-float);
}

.nav-lockup {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: var(--r-inner);
}

.nav-lockup img {
  height: 24px;
  width: auto;
}

.lockup-bone {
  display: none;
}

html.dark .lockup-ink {
  display: none;
}

html.dark .lockup-bone {
  display: block;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border-radius: var(--r-chip);
  font-size: var(--text-fine);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur-fast) ease,
    background-color var(--dur-fast) ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.lang-wrap {
  position: relative;
  display: inline-flex;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 24px 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.lang-select:hover {
  border-color: var(--line-strong);
}

.lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Native dropdown list: without an explicit option colour the dark theme
   renders white text on the OS-white popup. */
.lang-select option,
.select option {
  background-color: var(--surface-solid);
  color: var(--ink);
}

html.dark .lang-select,
html.dark .select,
html.dark select {
  color-scheme: dark;
}

.lang-wrap::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.4px solid var(--muted);
  border-bottom: 1.4px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: block;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.nav-toggle:hover {
  background: var(--surface-2);
}

.nav-toggle:active {
  transform: scale(0.94);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-panel {
  pointer-events: auto;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--header-h) + 8px);
  z-index: 79;
  padding: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-float);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility var(--dur-base);
}

.nav-panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-panel a.nav-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-panel li:last-child a.nav-panel-link {
  border-bottom: 0;
}

.nav-panel a.nav-panel-link:hover {
  color: var(--accent-text);
}

.nav-panel .nav-panel-cta {
  margin-top: 8px;
  padding: 4px 2px 2px;
}

.nav-panel .nav-panel-meta {
  padding: 12px 12px 6px;
  font-size: var(--text-micro);
  color: var(--muted-2);
}

/* ================= Hero ================= */
.hero {
  position: relative;
  padding-top: calc(var(--header-gap) + var(--header-h) + clamp(40px, 6vw, 84px));
  padding-bottom: var(--section-y-tight);
  text-align: center;
  overflow: clip;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-chip);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: var(--text-fine);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  margin-top: clamp(24px, 3vw, 34px);
  max-width: 21ch;
}

.hero .lead {
  margin-top: clamp(20px, 2.4vw, 26px);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(28px, 3.4vw, 36px);
}

.hero-note {
  margin-top: 18px;
  font-size: var(--text-fine);
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.hero-media {
  position: relative;
  margin-top: clamp(44px, 5.4vw, 68px);
  border-radius: var(--r-marketing);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--media-bg);
  box-shadow: var(--shadow-float);
}

.hero-media img {
  width: 100%;
  height: auto;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  font-size: var(--text-fine);
  color: var(--muted);
}

.hero-caption span:last-child {
  color: var(--muted-2);
  text-align: right;
}

/* ================= Page hero (division pages) ================= */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-gap) + var(--header-h) + clamp(40px, 5vw, 64px));
  padding-bottom: clamp(28px, 3.5vw, 40px);
  overflow: clip;
}

.page-hero .display-s {
  max-width: 24ch;
  margin-top: 22px;
}

.page-hero .lead {
  margin-top: 22px;
  max-width: 58ch;
}

.page-hero .hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .display-s,
.page-hero--center .lead {
  margin-inline: auto;
}

.page-hero--center .spec-row {
  text-align: center;
}

.page-hero--center .spec-label {
  margin-inline: auto;
}

.page-hero--center .hero-actions {
  justify-content: center;
}

.page-hero--split .page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}

.page-hero--split .display-s {
  max-width: 20ch;
}

/* ================= Section head ================= */
.section-head {
  max-width: 820px;
}

.section-head .h2 {
  margin-top: 14px;
}

.section-head .lead {
  margin-top: 16px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.section-head--wide {
  max-width: none;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ================= Split ================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.split--wide-right {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split .h2 {
  max-width: 16ch;
}

/* ================= Tiles ================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-marketing);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) ease;
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tile h3 {
  margin-top: 24px;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.tile p {
  margin-top: 12px;
  max-width: 34ch;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
  font-size: var(--text-fine);
  font-weight: 500;
  color: var(--accent-text);
  white-space: nowrap;
}

.tile-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}

.tile--feature {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-solid));
  border-color: var(--accent-line);
  box-shadow: var(--shadow-soft);
}

.tile--feature .icon-chip {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
    border-color: var(--line-strong);
  }
  .tile:hover .tile-link svg {
    transform: translateX(3px);
  }
}

/* ================= Specs ================= */
.spec-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.spec-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec {
  padding: 24px 24px 0 0;
  min-width: 0;
}

.spec + .spec {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.spec-num {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.spec-label {
  margin-top: 10px;
  max-width: 24ch;
  font-size: var(--text-fine);
  line-height: 1.45;
  color: var(--muted);
}

.spec-note {
  margin-top: 18px;
  font-size: var(--text-micro);
  color: var(--muted-2);
  line-height: 1.5;
}

/* ================= Figures / media ================= */
.figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}

.figure img {
  width: 100%;
  height: auto;
}

.figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: var(--text-fine);
  color: var(--muted);
  line-height: 1.45;
}

.figure figcaption span:last-child {
  color: var(--muted-2);
  text-align: right;
  white-space: nowrap;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
}

.media-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid--stack {
  grid-template-columns: 1fr;
}

.figure--dark {
  background: var(--media-bg);
  border-color: rgba(255, 255, 255, 0.12);
}

.figure--dark figcaption {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 245, 247, 0.62);
}

.figure--dark figcaption span:last-child {
  color: rgba(245, 245, 247, 0.42);
}

/* ================= Statement ================= */
.statement {
  text-align: center;
}

.statement .h2 {
  margin: 18px auto 0;
  max-width: none;
}

.statement .lead {
  margin: 24px auto 0;
  max-width: 52ch;
}

/* ================= Feature (healthcare) ================= */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-marketing);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.feature .h2 {
  margin-top: 18px;
  font-size: var(--text-h2);
}

.feature .lead {
  margin-top: 18px;
  font-size: var(--text-body);
  max-width: 46ch;
}

.feature-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.feature-shot {
  border-radius: var(--r-panel);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.feature-shot img {
  width: 100%;
  height: auto;
}

.feature-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--text-micro);
  color: var(--muted-2);
}


/* ================= Product shelf ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
}

.product-grid--hardware {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid--hardware .product-media {
  aspect-ratio: 1 / 1;
  padding: clamp(24px, 2.8vw, 40px);
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface-solid);
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) ease,
    box-shadow var(--dur-base) var(--ease-out);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 0;
  padding: clamp(22px, 3.4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--shelf-line);
  border-radius: calc(var(--r-surface) - 6px);
  background: var(--shelf);
}

.product-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.product-media--dark {
  aspect-ratio: 4 / 3;
  padding: clamp(22px, 3.4vw, 42px);
}

.product-media--cut img {
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.16));
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 24px);
}

.product-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.product-mark {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-body h3 {
  margin-top: 6px;
  font-size: var(--text-h4);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.product-head h3 {
  margin-top: 2px;
}

.product-sub {
  margin-top: 2px;
  font-size: var(--text-fine);
  color: var(--muted);
}

.product-copy {
  margin-top: 10px;
  max-width: 44ch;
  font-size: var(--text-fine);
  line-height: 1.55;
  color: var(--muted);
}

.shelf-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  white-space: nowrap;
}

.shelf-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur-base) var(--ease-out);
}

.shelf-cta:hover svg {
  transform: translateX(3px);
}

.shelf-downloads {
  margin-top: 8px;
  font-size: var(--text-micro);
  line-height: 1.5;
  color: var(--muted-2);
}

.shelf-downloads a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.shelf-downloads a:hover {
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .product:hover {
    transform: translateY(-2px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-soft);
  }

  .product:hover .shelf-cta svg {
    transform: translateX(3px);
  }
}

/* ================= Spec table (DVX) ================= */
.spec-panel {
  margin-top: 16px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-marketing);
  background: var(--surface);
}

.spec-panel-head {
  max-width: 620px;
}

.spec-panel-head .h3 {
  margin-top: 14px;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.14;
}

.spec-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
}

.spec-table thead th {
  padding: 0 24px 10px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted-2);
}

.spec-table tbody th,
.spec-table tbody td {
  padding: 14px 24px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.spec-table tbody th {
  width: 28%;
  font-size: var(--text-fine);
  font-weight: 500;
  color: var(--muted);
}

.spec-table tbody td {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink);
}

.spec-table thead th:last-child,
.spec-table tbody th:last-child,
.spec-table tbody td:last-child {
  padding-right: 0;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .spec-table tbody th {
    width: 40%;
    padding-right: 14px;
  }

  .spec-table tbody td {
    padding-right: 0;
  }
}


/* ================= Software & service stories ================= */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(26px, 3vw, 36px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.story--stacked {
  display: block;
}

.story-copy {
  max-width: 560px;
}

.story--stacked .story-copy {
  max-width: 640px;
}

.story-mark--icon {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-text);
}

.story-mark--icon svg {
  width: 26px;
  height: 26px;
}

.story-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.story-mark {
  display: block;
  width: 56px;
  height: 56px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.story-mark--orvie {
  width: 80px;
  height: 80px;
  border-radius: 20px;
}

.story-title .h3 {
  margin-top: 0;
}

.story-title .product-sub {
  margin-top: 2px;
}

.story-copy .h3 {
  margin-top: 8px;
  font-size: var(--text-h2);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.032em;
}

.story-copy .lead {
  margin-top: 16px;
  max-width: 52ch;
  font-size: var(--text-body);
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: var(--text-fine);
  color: var(--muted-2);
}

.story-links .link-arrow {
  font-size: var(--text-fine);
}

.story-media {
  width: 100%;
  margin: 0;
}

.story-media-grid {
  margin-top: clamp(22px, 2.8vw, 36px);
}

.story-media-grid .figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 960px) {
  .story {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .story-copy {
    max-width: 66ch;
  }

  .story-copy .h3 {
    font-size: var(--text-h2);
  }
}


/* Three automation tiles, four service steps, three trust cards */
.tiles--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps.steps--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
}

.trust-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface);
}

.trust-card p:last-child {
  margin-top: 10px;
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--muted);
}

.card .icon-chip {
  margin-bottom: 16px;
}

.cards--tighter {
  margin-top: clamp(18px, 2.4vw, 28px);
}

@media (max-width: 1100px) {
  .steps.steps--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .steps.steps--four {
    grid-template-columns: 1fr;
  }
}


/* ================= Three-point product intro ================= */
.kit-note {
  max-width: 84ch;
  margin-top: 24px;
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--muted);
}

.kit-note .link-arrow {
  font-size: var(--text-fine);
}


/* ================= Compact device kit ================= */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(24px, 3vw, 40px);
}

.device-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface-solid);
}

.device-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--logo-plate);
}

.device-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.device-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-body {
  padding: 14px;
}

.device-body .caps {
  font-size: 10px;
}

.device-body h3 {
  margin-top: 8px;
  font-size: var(--text-fine);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.device-body p {
  margin-top: 6px;
  font-size: var(--text-micro);
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .device-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ================= Product rail, physical exam, dashboard ================= */
.orvie-logo-plate {
  display: inline-grid;
  place-items: center;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--logo-plate);
}

.orvie-logo-plate img {
  display: block;
  width: min(320px, 72vw);
  height: auto;
}

.orvie-mascot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.orvie-mascot img {
  display: block;
  width: clamp(120px, 12vw, 160px);
  height: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--logo-plate);
}

.orvie-mascot figcaption {
  max-width: none;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.product-rail {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 36px);
}

.product-rail-brand {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.product-rail-brand .orvie-logo-plate {
  padding: 12px 14px;
}

.product-rail-brand .orvie-logo-plate img {
  width: min(260px, 70vw);
}

.product-rail-brand .orvie-mascot img {
  width: clamp(120px, 11vw, 150px);
}

.product-stories {
  display: grid;
}

.product-story {
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
}

.product-story:first-child {
  padding-top: 0;
  border-top: 0;
}

.product-story .icon-chip {
  margin-bottom: 14px;
}

.product-story h3 {
  margin-top: 10px;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.14;
}

.product-story p {
  max-width: 62ch;
  margin-top: 12px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}

.story-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: var(--text-fine);
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-text);
}

.product-story .link-arrow {
  display: inline-flex;
  margin-top: 18px;
}

.exam-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.exam-copy .eyebrow {
  margin-bottom: 10px;
}

.exam-copy .h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

.exam-copy .lead {
  margin-top: 12px;
}

.exam-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.exam-list li {
  position: relative;
  padding-left: 15px;
  font-size: var(--text-fine);
  line-height: 1.45;
  color: var(--muted);
}

.exam-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.exam-figure {
  margin: 0;
}

.dashboard-figure {
  position: relative;
  max-width: 1080px;
  margin: clamp(36px, 5vw, 60px) auto 0;
  scroll-margin-top: 96px;
}

@media (max-width: 960px) {
  .product-rail {
    grid-template-columns: 1fr;
  }

  .product-rail-brand {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .exam-block {
    grid-template-columns: 1fr;
  }

  .exam-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Device category filter */
.device-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-micro);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.filter-chip span {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: var(--accent-line);
}

.filter-chip.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.filter-chip.is-active span {
  color: var(--accent-text);
}

.device-filter + .device-grid {
  margin-top: 14px;
}

.device-card[hidden] {
  display: none;
}

.figure-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 76%, transparent);
  color: var(--accent-ink);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.figure-expand svg {
  width: 18px;
  height: 18px;
}

.figure-expand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.figure-expand:hover {
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  transform: translateY(-1px);
}

/* Dashboard lightbox */
.lightbox {
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-surface);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--surface);
}


/* ================= ORVIE software + hospital without walls ================= */
.story-media {
  position: relative;
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.services-head .section-head {
  margin-bottom: 0;
}

.orvie-meet {
  position: relative;
  width: clamp(240px, 21vw, 300px);
  aspect-ratio: 10 / 11;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  border-radius: clamp(1.75rem, 2.6vw, 2.25rem);
  background: transparent;
}

.orvie-meet::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86%;
  height: 96%;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.orvie-meet img {
  position: relative;
  z-index: 1;
  width: 76%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px var(--orvie-shadow));
}

.orvie-meet figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  backdrop-filter: blur(8px);
  font-size: var(--text-micro);
  font-weight: 600;
  color: var(--ink);
}

.service-list {
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}

.service-row .icon-chip {
  margin-top: 0;
}

.service-row h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.14;
}

.service-row p {
  max-width: 70ch;
  margin-top: 10px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}

.service-row .link-arrow {
  display: inline-flex;
  margin-top: 14px;
}

.service-row--accent {
  margin: 12px -16px 0;
  padding: clamp(24px, 3vw, 32px) 16px;
  border: 0;
  border-radius: var(--r-surface);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.service-row--accent h3 {
  color: var(--accent-text);
}

#services,
#kit {
  scroll-margin-top: 96px;
}

@media (max-width: 960px) {
  .services-head {
    grid-template-columns: 1fr;
  }

  .orvie-meet {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .service-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .service-row--accent {
    margin: 12px -12px 0;
    padding: clamp(24px, 3vw, 32px) 12px;
  }
}

.pathways-note {
  max-width: 74ch;
  margin-top: 22px;
  margin-bottom: clamp(36px, 5vw, 56px);
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--muted-2);
}

/* ================= Logo row ================= */
.logo-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(22px, 2.8vw, 36px);
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 300px;
  padding: 38px 48px;
  border: 1px solid var(--plate-line);
  border-radius: var(--r-surface);
  background: var(--logo-plate);
  text-align: center;
}

.logo-card img {
  height: auto;
  max-height: 82px;
  width: auto;
  max-width: 280px;
  opacity: 1;
}

.logo-card .status {
  color: var(--plate-ink);
}

.logo-card .status::before {
  background: var(--accent);
}

/* ================= CTA band ================= */
.cta-band {
  position: relative;
  overflow: clip;
  text-align: center;
  padding-block: clamp(44px, 5.5vw, 72px);
}

.cta-band .h2 {
  margin-inline: auto;
  max-width: 18ch;
}

.cta-band .lead {
  margin: 22px auto 0;
  max-width: 48ch;
}

.cta-band .hero-actions {
  margin-top: 30px;
}

.cta-band .fine {
  margin-top: 16px;
}

/* ================= Rows (roadmap) ================= */
.rows {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.row-num {
  padding-top: 3px;
  font-size: var(--text-fine);
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.row h3 {
  font-size: var(--text-h4);
  line-height: 1.3;
  font-weight: 600;
}

.row p {
  margin-top: 6px;
  max-width: 58ch;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

.row .status {
  margin-top: 10px;
}

/* ================= Steps / cards ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(22px, 2.8vw, 36px);
}

.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface);
  min-width: 0;
}

.step-num {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.step h3 {
  margin-top: 16px;
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
}

.step p {
  margin-top: 10px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(22px, 2.8vw, 36px);
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface);
  min-width: 0;
}

.card h3 {
  margin-top: 20px;
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  margin-top: 10px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

.card .status {
  margin-top: 18px;
}

/* ================= Sticky split ================= */
.sticky-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.sticky-head {
  position: sticky;
  top: calc(var(--header-gap) + var(--header-h) + 32px);
}

.sticky-head .h2 {
  max-width: 14ch;
}

.sticky-head .lead {
  margin-top: 18px;
}

/* ================= Table ================= */
.cmp {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  font-size: var(--text-sm);
}

.cmp caption {
  caption-side: bottom;
  padding-top: 16px;
  text-align: left;
  font-size: var(--text-micro);
  color: var(--muted-2);
}

.cmp th {
  padding: 0 24px 12px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted-2);
}

.cmp td {
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--muted);
}

.cmp td:first-child {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.cmp td:nth-child(2) {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cmp tr.best td,
.cmp tr.best td:first-child,
.cmp tr.best td:nth-child(2) {
  color: var(--accent-text);
}

.cmp tr.best td {
  border-bottom-color: var(--accent-line);
}

.cmp-note {
  margin-top: 18px;
  font-size: var(--text-fine);
  color: var(--muted-2);
  line-height: 1.55;
}

/* ================= Chart ================= */
.plot {
  margin-top: clamp(22px, 2.8vw, 36px);
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface);
}

.plot-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.plot-svg text {
  font-family: var(--font-sans);
  font-size: 12px;
  fill: var(--muted);
}

.plot-svg .grid line {
  stroke: var(--line);
  stroke-dasharray: 3 6;
}

.plot-svg .area {
  fill: var(--accent);
  opacity: 0.14;
}

.plot-svg .line {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  transition: stroke-dashoffset 1.4s var(--ease-in-out) 0.12s;
}

.plot-svg .dot {
  fill: var(--accent-text);
}

.plot-svg .ptxt {
  fill: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.plot-svg .callout {
  fill: var(--accent-text);
  font-weight: 600;
  font-size: 12px;
}

.plot-svg .axis {
  fill: var(--muted-2);
}

.plot-svg .area,
.plot-svg .dot,
.plot-svg .ptxt,
.plot-svg .callout {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.plot-svg .dot,
.plot-svg .ptxt {
  transition-delay: 0.55s;
}

.plot-svg .callout {
  transition-delay: 1.1s;
}

.plot.is-play .line {
  stroke-dashoffset: 0;
}

.plot.is-play .area {
  opacity: 0.16;
}

.plot.is-play .dot,
.plot.is-play .ptxt,
.plot.is-play .callout {
  opacity: 1;
}

.plot:not(.is-armed) .line {
  stroke-dashoffset: 0;
}

.plot:not(.is-armed) .area {
  opacity: 0.16;
}

.plot:not(.is-armed) .dot,
.plot:not(.is-armed) .ptxt,
.plot:not(.is-armed) .callout {
  opacity: 1;
}

.mt-media {
  margin-top: clamp(22px, 2.8vw, 36px);
}

.section--flush-top {
  padding-top: 0;
}

.figure.diagram {
  background: var(--surface-solid);
}

.diagram-svg {
  width: 100%;
  height: auto;
  display: block;
  padding: clamp(18px, 4vw, 40px);
}

.notfound {
  text-align: center;
}

.notfound .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.cta-band .eyebrow + .h2 {
  margin-top: 16px;
}

.plot figcaption {
  margin-top: 14px;
  font-size: var(--text-fine);
  line-height: 1.55;
  color: var(--muted);
}

/* ================= Forms ================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.form-panel {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-marketing);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.form-grid {
  display: grid;
  gap: 18px;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-label {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
  word-spacing: 0.1em;
  padding: 12px 14px;
  transition:
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}

.input,
.select {
  height: 48px;
}

.textarea {
  min-height: 164px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--muted-2);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-solid);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.select-wrap {
  position: relative;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-status {
  min-height: 22px;
  font-size: var(--text-fine);
  line-height: 1.5;
  color: var(--accent-text);
}

.form-note {
  font-size: var(--text-fine);
  line-height: 1.55;
  color: var(--muted-2);
}

.contact-aside {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--surface);
}

.contact-mail {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-mail a {
  color: var(--accent-text);
  text-decoration: none;
}

.contact-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
}

.contact-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
}

.contact-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

.contact-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--muted-2);
}

/* ================= Footer ================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(48px, 6vw, 76px) 30px;
  font-size: var(--text-fine);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(28px, 4vw, 56px);
}

.foot-brand img {
  height: 30px;
  width: auto;
}

.foot-brand p {
  margin-top: 16px;
  max-width: 26ch;
  font-size: var(--text-fine);
  line-height: 1.6;
  color: var(--muted);
}

.foot-title {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.foot-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.foot-list a {
  display: inline-block;
  padding-block: 3px;
}

.foot-list a,
.foot-list span {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-fine);
  line-height: 1.5;
  white-space: nowrap;
}

.foot-list a:hover {
  color: var(--ink);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--text-micro);
  color: var(--muted-2);
}

.foot-bottom a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 3px;
}

.foot-bottom a:hover {
  color: var(--ink);
}

/* ================= 404 ================= */
.notfound {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-gap) + var(--header-h) + clamp(48px, 6vw, 80px));
  padding-bottom: var(--section-y);
}

.notfound .display {
  margin-top: 22px;
}

.notfound .lead {
  margin: 22px auto 0;
  max-width: 46ch;
}

/* ================= Aura ================= */
.aura {
  position: relative;
  isolation: isolate;
}

.aura::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%),
    radial-gradient(80% 70% at 100% 112%, color-mix(in srgb, var(--ink) 4%, transparent), transparent 62%);
}

.aura-left::before {
  background:
    radial-gradient(80% 90% at 0% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(70% 80% at 100% 100%, color-mix(in srgb, var(--ink) 4%, transparent), transparent 60%);
}

/* ================= Reveal ================= */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: calc(var(--rvd, 0) * 1ms);
}

.rv.in {
  opacity: 1;
  transform: none;
}

.rv-media img {
  clip-path: inset(0 0 8% 0);
  transform: scale(1.015);
  transition:
    clip-path 900ms var(--ease-in-out),
    transform 1000ms var(--ease-in-out);
}

.rv-media.in img {
  clip-path: inset(0 0 0 0);
  transform: none;
}

/* ================= Responsive ================= */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .page-hero--split .page-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 960px) {
  .tiles,
  .media-grid,
  .media-grid--three,
  .steps,
  .cards,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .split--wide-right,
  .feature,
  .contact-grid,
  .sticky-split {
    grid-template-columns: 1fr;
  }

  .sticky-head {
    position: static;
  }

  .feature .lead {
    max-width: 60ch;
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-trusted {
    display: none;
  }

  :root {
    --gutter: 20px;
    --section-y: clamp(56px, 9vw, 80px);
    --section-y-tight: clamp(40px, 7vw, 56px);
    --text-display: clamp(2.5rem, 11vw, 3.5rem);
    --text-display-s: clamp(2.125rem, 9vw, 2.75rem);
    --text-h2: clamp(1.9rem, 8vw, 2.5rem);
  }

  .hero {
    padding-top: calc(var(--header-gap) + var(--header-h) + 44px);
  }

  .br-d {
    display: none;
  }

  .hero-badge {
    font-size: var(--text-micro);
    min-height: 32px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .split .h2 {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .page-hero .hero-actions {
    justify-content: center;
  }

  .hero-caption {
    flex-direction: column;
    gap: 4px;
  }

  .hero-caption span:last-child {
    text-align: left;
  }

  .spec-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec {
    padding: 20px 16px 0 0;
  }

  .spec + .spec {
    border-left: 0;
    padding-left: 0;
  }

  .spec:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .spec:nth-child(n + 3) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }

  .row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .figure figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .figure figcaption span:last-child {
    text-align: left;
    white-space: normal;
  }

  .cmp thead {
    display: none;
  }

  .cmp,
  .cmp tbody {
    display: block;
  }

  .cmp tr {
    display: block;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .cmp td {
    display: block;
    padding: 2px 0;
    border: 0;
    white-space: normal;
  }

  .cmp td:first-child {
    font-size: var(--text-body);
    margin-bottom: 4px;
  }

  .cmp td:nth-child(2) {
    white-space: normal;
  }

  .cmp tr.best td {
    border-bottom: 0;
  }

  .cmp-note {
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    padding-left: 14px;
  }

  .lang-select {
    height: 40px;
    padding: 0 20px 0 9px;
    font-size: 11px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-lockup img {
    height: 19px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn-quiet {
    justify-content: flex-start;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .logo-card {
    min-width: 0;
    width: 100%;
    padding: 28px;
  }

  .logo-card img {
    height: auto;
    max-height: 72px;
    max-width: 100%;
  }

  .contact-mail {
    font-size: 1.15rem;
  }

  .form-actions .btn {
    width: 100%;
  }

  .foot-list a,
  .foot-list span {
    white-space: normal;
  }
}

/* ================= Language typography ================= */
html[lang="zh-Hans"] body {
  word-spacing: 0;
  line-height: 1.72;
}

html[lang="zh-Hans"] :is(.display, .display-s, .h2, .h3, .tile h3, .feature .h2, .cta-band .h2) {
  letter-spacing: -0.018em;
  line-height: 1.24;
}

html[lang="zh-Hans"] :is(.btn, .nav-link, .nav-panel-link, .lang-select) {
  word-spacing: 0;
}

/* ================= Motion / preference guards ================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }

  .rv-media img {
    clip-path: none;
    transform: none;
  }

  .btn:active,
  .nav-toggle:active {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-shell,
  .nav-panel,
  .tile,
  .feature,
  .form-panel,
  .btn-secondary {
    background: var(--surface-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .nav-shell,
  .nav-panel,
  .tile,
  .feature,
  .form-panel,
  .figure,
  .card,
  .step {
    border: 1px solid CanvasText;
    background: Canvas;
    backdrop-filter: none;
  }

  .btn-primary {
    border: 1px solid ButtonText;
  }
}
