:root {
  --header-height: 96px;
  --docaid-red: #d84b4b;
  --ui-font: "Segoe UI", "SegoeUI", "Helvetica Neue", Arial, sans-serif;
  --medical-font: "Segoe UI", "SegoeUI", "Helvetica Neue", Arial, sans-serif;
  --bg-0: #ffffff;
  --bg-1: #ffffff;
  --panel: #080808;
  --panel-border: var(--docaid-red);
  --text: #080808;
  --muted: #b64545;
  --accent: var(--docaid-red);
  --line-left: #747b84;
  --line-right: #f5f5f5;
  --page-bg: #ffffff;
  --header-shadow: none;
  --header-top-bg: var(--docaid-red);
  --header-top-border: var(--docaid-red);
  --header-main-bg: #ffffff;
  --header-main-border: #e7e7e7;
  --header-chrome-top-bg: #b2d5d9;
  --header-chrome-top-border: #99bcc1;
  --header-chrome-main-bg: var(--header-main-bg);
  --header-chrome-main-border: var(--header-main-border);
  --header-chrome-ink: #153541;
  --brand-logo-width: 148px;
  --top-link-color: #1d4652;
  --top-link-hover: #0f2e39;
  --top-nav-color: #080808;
  --top-nav-hover: #080808;
  --top-nav-underline: #080808;
  --header-link-color: #1d4652;
  --header-link-hover: #0f2e39;
  --footer-chrome-bg: #f5f7fa;
  --footer-chrome-border: #dde5ee;
  --footer-text-strong: #162333;
  --footer-text: rgba(22, 35, 51, 0.82);
  --footer-text-soft: rgba(22, 35, 51, 0.62);
  --footer-divider: rgba(22, 35, 51, 0.12);
  --toggle-fg: #f3f4f6;
  --toggle-bg: #080808;
  --toggle-border: #2a2a2a;
  --anim-path-text: #6d798a;
  --anim-right-stream-text: #f8fafc;
  --anim-right-stream-bg: #334155;
  --anim-box-bg: #ffffff;
  --anim-output-bg: #334155;
  --anim-box-border: #000000;
  --anim-formatted-text: #080808;
  --anim-formatted-title: #080808;
  --anim-formatted-hit-underline: var(--docaid-red);
  --anim-detect-label: #7b8798;
  --anim-core-pill-bg: #334155;
  --anim-core-pill-border: #cbd5e1;
  --anim-wave-bar: #7e8ea5;
  --card-surface-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 250, 255, 0.9) 100%);
  --card-surface-border: rgba(255, 255, 255, 0.72);
  --card-surface-radius: 14px;
  --card-surface-shadow:
    0 14px 30px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.78) inset;
  --card-surface-shadow-hover:
    0 18px 36px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

html[data-theme="dark"] {
  --page-bg: #080808;
  --docaid-red: #ef4444;
  --header-shadow: none;
  --header-top-bg: #c83434;
  --header-top-border: #a62828;
  --header-main-bg: #080808;
  --header-main-border: #080808;
  --header-chrome-top-bg: var(--header-top-bg);
  --header-chrome-top-border: var(--header-top-border);
  --header-chrome-main-bg: var(--header-main-bg);
  --header-chrome-main-border: var(--header-main-border);
  --header-chrome-ink: #ffe7e9;
  --top-link-color: #ffe7e9;
  --top-link-hover: #ffffff;
  --top-nav-color: #d7dbe1;
  --top-nav-hover: #ffffff;
  --top-nav-underline: #ffffff;
  --header-link-color: #ffe7e9;
  --header-link-hover: #ffffff;
  --footer-chrome-bg: #0d1013;
  --footer-chrome-border: #1d2329;
  --footer-text-strong: #eef2f6;
  --footer-text: rgba(238, 242, 246, 0.82);
  --footer-text-soft: rgba(238, 242, 246, 0.72);
  --footer-divider: rgba(238, 242, 246, 0.14);
  --toggle-fg: #c9ced6;
  --toggle-bg: #161a22;
  --toggle-border: #2a3040;
  --anim-path-text: #bfc3c8;
  --anim-right-stream-text: #1f2937;
  --anim-right-stream-bg: #e2e8f0;
  --anim-box-bg: #080808;
  --anim-output-bg: linear-gradient(180deg, #101113 0%, #0b0c0e 100%);
  --anim-box-border: #4a4a4a;
  --anim-formatted-text: #d8dde4;
  --anim-formatted-title: #b8c0cb;
  --anim-formatted-hit-underline: #ff6b6b;
  --muted: #b91c1c;
  --anim-detect-label: #b8bcc1;
  --anim-core-pill-bg: linear-gradient(180deg, #101113 0%, #0b0c0e 100%);
  --anim-core-pill-border: transparent;
  --anim-wave-bar: #b7c1cd;
  --card-surface-bg: linear-gradient(180deg, rgba(18, 22, 29, 0.9) 0%, rgba(13, 18, 26, 0.9) 100%);
  --card-surface-border: rgba(148, 163, 184, 0.18);
  --card-surface-radius: 14px;
  --card-surface-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  --card-surface-shadow-hover:
    0 18px 36px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ui-font);
  color: var(--text);
  background: var(--page-bg);
  padding-top: var(--header-height);
  overflow-x: hidden;
}

#overview,
#features,
#team,
#contact {
  scroll-margin-top: calc(var(--header-height) + 2px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  box-shadow: var(--header-shadow);
  background: transparent;
  border-bottom: 0;
}

.header-top {
  background: var(--header-chrome-top-bg);
  border-bottom: 0;
}

.header-top-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 30px;
  padding: 0 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.header-announcement {
  margin: 0;
  color: var(--header-chrome-ink);
  font-size: 0.56rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

.header-announcement span {
  display: inline-block;
  margin-left: 0.25em;
  font-weight: 700;
  vertical-align: baseline;
  transform: translateY(-1px);
}

.header-download-cta {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--header-chrome-ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-download-cta-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  display: block;
}

.header-download-cta-label {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.header-download-cta-kicker {
  display: block;
  font-size: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.header-download-cta-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.header-download-cta::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}

.header-download-cta:hover {
  color: color-mix(in srgb, var(--header-chrome-ink) 80%, #000000 20%);
}

.header-top-close {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--header-chrome-ink);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.9;
  padding: 0;
}

.made-eu-badge {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 2px 6px 2px 4px;
  border: 1px solid color-mix(in srgb, var(--header-chrome-ink) 28%, transparent);
  border-radius: 4px;
  color: #080808;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eu-flag {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
}

.made-eu-label {
  display: inline-block;
  padding-left: 6px;
  border-left: 1px solid rgba(8, 8, 8, 0.28);
  transform: translateY(0.5px);
}

.made-eu-badge-hero {
  display: none;
  position: static;
  transform: none;
  align-self: start;
}

.header-top-close:hover {
  opacity: 0.82;
}

html.banner-hidden {
  --header-height: 66px;
}

html.banner-hidden .header-top {
  display: none;
}

.header-main {
  background: transparent;
  border-bottom: 0;
  padding: 0 10px;
  transition: padding-top 180ms ease;
}

.header-main-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 66px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--header-main-bg);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 var(--header-main-border);
  transition:
    height 180ms ease,
    padding 180ms ease,
    border-radius 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    max-width 180ms ease;
}

html.header-scrolled .header-main {
  padding-top: 10px;
}

html.header-scrolled .header-main-inner {
  max-width: 1180px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(231, 231, 231, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(16px);
}

html[data-theme="dark"].header-scrolled .header-main-inner {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 8, 8, 0.9);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 136px;
  max-width: 100%;
  height: auto;
  display: block;
}

.top-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.top-links a {
  color: var(--top-link-color);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: color 160ms ease;
}

.top-links a:hover {
  color: var(--top-link-hover);
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--top-nav-color);
  text-decoration: none;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 20px 12px 19px;
  font-weight: 600;
  opacity: 1;
  border-bottom: 2px solid transparent;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.top-nav-signin {
  font-weight: 700;
}

.top-nav-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--docaid-red) 24%, transparent);
  color: var(--docaid-red);
  fill: currentColor;
  stroke: currentColor;
  font-size: 15px;
  line-height: 1;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

.top-nav a:hover {
  color: var(--top-nav-hover);
  opacity: 1;
  border-bottom-color: var(--top-nav-underline);
}

.top-nav-divider {
  color: var(--top-nav-color);
  opacity: 0.45;
  font-size: 0.82rem;
  padding: 0 2px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-main-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-app-download {
  display: none;
}

.header-main-actions .header-cta {
  min-width: 0;
  padding: 9px 14px 8px;
  font-size: 0.8rem;
}

.header-main-actions .header-cta-demo {
  background: var(--header-top-bg);
  color: #ffffff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
}

.app-menu-demo.header-cta-demo {
  background: var(--header-top-bg);
  color: #ffffff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
}

html:not([data-theme="dark"]) .app-menu-demo.header-cta-demo {
  background: var(--header-top-bg);
  color: #ffffff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
}

.header-main-actions .header-cta-demo:hover {
  box-shadow:
    0 1px 3px rgba(8, 8, 8, 0.16),
    0 0 0 1px color-mix(in srgb, #000000 18%, var(--header-top-bg) 82%) inset;
}

.app-menu-demo.header-cta-demo:hover {
  box-shadow:
    0 1px 3px rgba(8, 8, 8, 0.16),
    0 0 0 1px color-mix(in srgb, #000000 18%, var(--header-top-bg) 82%) inset;
}

html:not([data-theme="dark"]) .app-menu-demo.header-cta-demo:hover {
  box-shadow:
    0 1px 3px rgba(8, 8, 8, 0.16),
    0 0 0 1px color-mix(in srgb, #000000 18%, var(--header-top-bg) 82%) inset;
}

.header-main-actions .header-cta-signin {
  background: #ffffff;
  color: #080808;
}

.app-menu {
  position: relative;
  display: none;
  align-items: center;
}

.app-menu-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 30px;
  min-width: 104px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  color: var(--top-nav-color);
  font-family: var(--ui-font);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: color 140ms ease;
}

.app-menu-toggle-lines {
  display: inline-grid;
  gap: 3px;
}

.app-menu-toggle-lines span {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.app-menu-toggle:hover {
  background: transparent;
  box-shadow: none;
  color: var(--top-nav-hover);
}

.app-menu-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 170ms ease;
}

.app-menu.is-open .app-menu-toggle::after {
  transform: translateY(1px) rotate(-135deg);
}

.app-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-menu.is-open .app-menu-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.app-menu-card {
  min-width: 184px;
  padding: 10px 12px 12px;
  border-radius: 16px 0 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
  display: grid;
  gap: 10px;
}

.app-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--header-link-color);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
}

.app-menu-link:hover {
  color: var(--header-link-hover);
}

.app-menu-link-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--docaid-red) 24%, transparent);
  color: var(--docaid-red);
  fill: currentColor;
  stroke: currentColor;
  font-size: 17px;
  line-height: 1;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
  margin: 2px 0 0;
}

.app-menu-demo {
  justify-content: center;
  margin-top: 4px;
}

html[data-theme="dark"] .app-menu {
  background: transparent;
}

html[data-theme="dark"] .app-menu-toggle {
  background: transparent;
  color: var(--top-nav-color);
  filter: none;
  box-shadow: none;
}

html[data-theme="dark"] .app-menu-toggle:hover {
  background: transparent;
  filter: none;
  box-shadow: none;
  color: var(--top-nav-hover);
}

html[data-theme="dark"] .app-menu-card {
  background: #111417;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

html[data-theme="dark"] .app-menu-link {
  background: transparent;
  border-color: transparent;
}

html[data-theme="dark"] .app-menu-divider {
  background: rgba(148, 163, 184, 0.18);
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 1px solid #0f1720;
  background: #080808;
  color: #ffffff;
  overflow: hidden;
}

.mobile-header-demo {
  display: none;
}

.mobile-floating-demo {
  display: none;
}

  .language-switcher::after {
  content: none;
}

.language-switcher-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.85;
}

.language-flag {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.language-select {
  appearance: none;
  border: 0;
  background: transparent;
  color: currentColor;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0;
  line-height: 1.15;
  cursor: pointer;
}

.language-select:focus {
  outline: none;
}

.language-select option {
  color: #080808;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--docaid-red);
  outline-offset: 2px;
}

.header-link {
  color: var(--header-link-color);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.header-link:hover {
  color: var(--header-link-hover);
}

.theme-toggle {
  appearance: none;
  border: 1px solid #0f1720;
  background: #080808;
  border-radius: 999px;
  width: 48px;
  height: 28px;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 6px;
  color: #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.theme-toggle:hover {
  border-color: #1a2430;
  background: #111111;
}

.theme-toggle:active {
  transform: none;
}

.theme-toggle-icon {
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 700;
  opacity: 0.72;
  transition: opacity 140ms ease, transform 140ms ease;
}

.theme-toggle-icon-sun {
  color: currentColor;
  font-size: 0;
  text-shadow: none;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.theme-toggle-icon-sun::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 -5px 0 -3.2px currentColor,
    0 5px 0 -3.2px currentColor,
    5px 0 0 -3.2px currentColor,
    -5px 0 0 -3.2px currentColor,
    3.5px 3.5px 0 -3.2px currentColor,
    -3.5px 3.5px 0 -3.2px currentColor,
    3.5px -3.5px 0 -3.2px currentColor,
    -3.5px -3.5px 0 -3.2px currentColor;
}

.theme-toggle-icon-moon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  text-shadow: none;
}

.theme-toggle-icon-moon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--toggle-bg);
  top: 0;
  left: 3px;
}

.theme-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition: transform 160ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-icon-moon,
.theme-toggle[aria-pressed="false"] .theme-toggle-icon-sun {
  opacity: 1;
  transform: scale(1.08);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(22px);
}

html[data-theme="dark"] .theme-toggle {
  background: linear-gradient(180deg, #1d2126 0%, #15191d 100%);
  color: #d5dce6;
  border-color: transparent;
  box-shadow:
    2.2px 4.2px 1.2px rgba(0, 0, 0, 0.34),
    0 9px 20px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

html[data-theme="dark"] .language-switcher {
  background: linear-gradient(180deg, #1d2126 0%, #15191d 100%);
  color: #ffffff;
  border-color: transparent;
  filter: none;
  box-shadow:
    2.2px 4.2px 1.2px rgba(0, 0, 0, 0.34),
    0 9px 20px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

html[data-theme="dark"] .language-select option {
  color: #080808;
}

html[data-theme="dark"] .theme-toggle-icon-sun {
  color: currentColor;
  opacity: 0.95;
  text-shadow: none;
}

html[data-theme="dark"] .theme-toggle-icon-moon {
  background: currentColor;
}

html[data-theme="dark"] .theme-toggle-icon-moon::after {
  background: var(--header-main-bg);
}

html[data-theme="dark"] .theme-toggle[aria-pressed="true"] .theme-toggle-icon-moon,
html[data-theme="dark"] .theme-toggle[aria-pressed="false"] .theme-toggle-icon-sun {
  transform: none;
}

html[data-theme="dark"] .theme-toggle-thumb {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: rgba(248, 250, 252, 0.35);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.38) inset;
}

html[data-theme="dark"] .theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-color: rgba(248, 250, 252, 0.35);
}

.header-cta {
  color: #080808;
  background: #f3f4f6;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--ui-font);
  font-size: 0.86rem;
  padding: 10px 19px 9px;
  letter-spacing: 0.005em;
  text-transform: none;
  font-weight: 600;
  line-height: 1;
  min-width: 104px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(8, 8, 8, 0.06);
  transition: box-shadow 140ms ease;
}

html:not([data-theme="dark"]) .header-cta {
  color: #080808;
}

.header-cta:hover {
  box-shadow: 0 1px 3px rgba(8, 8, 8, 0.14);
}

.header-cta:active {
  box-shadow: inset 0 1px 0 rgba(8, 8, 8, 0.12), 0 1px 2px rgba(8, 8, 8, 0.1);
}

html[data-theme="dark"] .header-cta {
  background: #ffffff;
  color: #080808;
  box-shadow: 0 0 0 1px rgba(8, 8, 8, 0.12);
}

html[data-theme="dark"] .header-main-actions .header-cta-demo {
  background: var(--header-top-bg);
  color: #ffffff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
}

html[data-theme="dark"] .app-menu-demo.header-cta-demo {
  background: var(--header-top-bg);
  color: #ffffff;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
}

html[data-theme="dark"] .header-cta:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(8, 8, 8, 0.16);
}

html[data-theme="dark"] .header-cta:active {
  box-shadow: inset 0 1px 0 rgba(8, 8, 8, 0.2), 0 1px 2px rgba(0, 0, 0, 0.22);
}

.scene {
  min-height: 0;
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: max(10px, calc(23vh - var(--header-height))) 16px 0;
  margin-top: 0;
}

.first-view {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.first-view::before,
.first-view::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.first-view::before {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 82% 16%, rgba(178, 213, 217, 0.18) 0, rgba(178, 213, 217, 0) 26%),
    radial-gradient(circle at 74% 72%, rgba(148, 163, 184, 0.1) 0, rgba(148, 163, 184, 0) 24%);
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto;
  background-position:
    center,
    center,
    0 0,
    0 0,
    0 0;
  opacity: 0.72;
}

.first-view::after {
  inset: 8% 5% 14%;
  background:
    linear-gradient(90deg, rgba(95, 107, 122, 0.12) 0 100%, transparent 100%),
    linear-gradient(90deg, rgba(95, 107, 122, 0.1) 0 100%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(95, 107, 122, 0.12) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(90deg, rgba(95, 107, 122, 0.09) 0 8px, transparent 8px 40px);
  background-size:
    180px 1px,
    132px 1px,
    240px 1px,
    320px 1px;
  background-repeat: no-repeat;
  background-position:
    left 14% top 34%,
    left 58% top 24%,
    left 12% top 60%,
    left 48% top 76%;
  opacity: 0.24;
}

.scene {
  position: relative;
  z-index: 1;
}

.hero-heading {
  display: grid;
  justify-items: center;
  gap: 0;
}

.hero-title {
  margin: 0 0 8px;
  color: #101010;
  font-family: "Segoe UI", "SegoeUI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.004em;
  text-align: center;
  font-weight: 500;
  max-width: none;
  white-space: nowrap;
}

.hero-title-dot {
  color: var(--docaid-red);
}

html[data-theme="dark"] .hero-title {
  color: #f4f4f4;
}

html[data-theme="dark"] .first-view::before {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 82% 16%, rgba(178, 213, 217, 0.08) 0, rgba(178, 213, 217, 0) 26%),
    radial-gradient(circle at 74% 72%, rgba(148, 163, 184, 0.08) 0, rgba(148, 163, 184, 0) 24%);
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto;
  opacity: 0.42;
}

html[data-theme="dark"] .first-view::after {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0 100%, transparent 100%),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0 100%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0 8px, transparent 8px 40px);
  background-size:
    180px 1px,
    132px 1px,
    240px 1px,
    320px 1px;
  background-repeat: no-repeat;
  background-position:
    left 14% top 34%,
    left 58% top 24%,
    left 12% top 60%,
    left 48% top 76%;
  opacity: 0.14;
}

.hero-subtitle {
  margin: 0;
  color: #5f6b7a;
  font-family: var(--ui-font);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  letter-spacing: 0.075em;
  text-transform: uppercase;
  font-weight: 600;
}

html[data-theme="dark"] .hero-subtitle {
  color: #b0b4b9;
}

.store-badges {
  --store-badge-art-h: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.store-badges-header {
  --store-badge-art-h: 27px;
  margin-top: 0;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.store-badges-center {
  margin-top: 10px;
  gap: 8px;
}

.hero-rotator {
  margin-top: 8px;
  display: grid;
  place-items: center;
  min-height: 44px;
}

.hero-rotator-panel {
  grid-area: 1 / 1;
  z-index: 1;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.hero-rotator-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-rotator-panel.is-entering {
  z-index: 2;
  animation: hero-rotator-drop-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-rotator-panel.is-exiting {
  z-index: 1;
  animation: hero-rotator-drop-out 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-rotator .store-badges-center {
  margin-top: 0;
}

@keyframes hero-rotator-drop-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rotator-drop-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(16px);
  }
}

.store-badges-header .store-badge {
  min-width: 120px;
  padding: 5px 8px;
  border-radius: 10px;
}

.store-badges-header .store-badge-kicker {
  font-size: 0.46rem;
}

.store-badges-header .store-badge-name {
  font-size: 0.74rem;
}

.store-badges-header .store-badge-art {
  height: var(--store-badge-art-h);
}

.app-menu-panel .store-badges-header {
  display: grid;
  gap: 6px;
}

.app-menu-panel .store-badges-header .store-badge {
  width: 100%;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 144px;
  padding: 8px 11px;
  border-radius: 11px;
  border: 1px solid #2f2f2f;
  background: #080808;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.22);
}

.store-badge:active {
  transform: translateY(0);
}

html[data-theme="dark"] .store-badge {
  background: #000000;
  color: #f5f7fa;
  border-color: rgba(248, 250, 252, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .store-badge:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.store-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.store-badge-text {
  display: grid;
  line-height: 1.1;
}

.store-badge-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.86;
}

.store-badge-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-cta {
  margin-top: 0;
  min-width: 182px;
  padding: 13px 28px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--header-top-bg);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--header-top-bg) 42%, transparent),
    0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.hero-cta-row {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta-secondary {
  min-width: 112px;
  padding: 13px 20px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #080808;
  border: 1px solid rgba(8, 8, 8, 0.12);
  box-shadow: none;
}

.hero-cta-secondary:hover {
  background: #ffffff;
  color: #080808;
  box-shadow: 0 1px 3px rgba(8, 8, 8, 0.14);
}

.hero-cta-secondary:active {
  background: #ffffff;
  color: #080808;
  box-shadow: inset 0 1px 0 rgba(8, 8, 8, 0.12), 0 1px 2px rgba(8, 8, 8, 0.1);
}

html[data-theme="dark"] .hero-cta-secondary {
  background: #ffffff;
  color: #080808;
  border-color: rgba(8, 8, 8, 0.18);
}

.header-cta.hero-cta,
html:not([data-theme="dark"]) .header-cta.hero-cta {
  color: #f8fafc;
}

.hero-cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.04) brightness(1.02);
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--header-top-bg) 52%, transparent),
    0 0 0 1px color-mix(in srgb, #000000 18%, var(--header-top-bg) 82%) inset;
}

.hero-cta:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow:
    0 6px 14px color-mix(in srgb, var(--header-top-bg) 34%, transparent),
    0 0 0 1px color-mix(in srgb, #000000 15%, var(--header-top-bg) 85%) inset;
}

html:not([data-theme="dark"]) .hero-cta,
html:not([data-theme="dark"]) .hero-cta:hover,
html:not([data-theme="dark"]) .hero-cta:active {
  box-shadow:
    0 9px 18px rgba(15, 23, 42, 0.16),
    0 2px 0 rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .hero-cta {
  background: var(--header-top-bg);
  border: 1px solid #080808;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
}

html[data-theme="dark"] .header-cta.hero-cta {
  color: #f8fafc;
}

html[data-theme="dark"] .hero-cta:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 18%, var(--header-top-bg) 82%) inset;
}

html[data-theme="dark"] .hero-cta:active {
  box-shadow:
    0 0 0 1px color-mix(in srgb, #000000 15%, var(--header-top-bg) 85%) inset;
}

.proof-kicker {
  margin: 12px 0 0;
  color: #5f6b7a;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.proof-strip {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  position: relative;
  animation: section-reveal 560ms ease-out both;
  animation-delay: 60ms;
}

.proof-item {
  margin: 0;
  position: relative;
  --proof-accent: #ef4444;
  border: 1px solid var(--card-surface-border);
  border-radius: var(--card-surface-radius);
  background: var(--card-surface-bg);
  min-height: 72px;
  padding: 16px 10px 6px;
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  box-shadow: var(--card-surface-shadow);
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.proof-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: #9bb1c8;
  border: 0;
  box-shadow: 1.2px 1.6px 0 rgba(15, 23, 42, 0.18);
  opacity: 1;
  border-radius: 999px;
  pointer-events: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.proof-item.is-active {
  border-color: var(--card-surface-border);
  transform: translateY(-1px);
  box-shadow: var(--card-surface-shadow-hover);
}

.proof-item.is-active::before {
  background: #9bb1c8;
  border-color: transparent;
  box-shadow: 1.4px 1.8px 0 rgba(15, 23, 42, 0.14);
}

.proof-item:nth-child(2) {
  --proof-accent: #ef4444;
}

.proof-item:nth-child(3) {
  --proof-accent: #ef4444;
}

.proof-value {
  margin: 0;
  color: #2f3f53;
  font-family: var(--ui-font);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.proof-label {
  margin: 0;
  color: #5a6a7d;
  font-size: 0.82rem;
  line-height: 1.3;
}

.store-badge-play,
.store-badge-apple {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 0;
  outline: none;
  transform: none;
}

.store-badge-play:hover,
.store-badge-apple:hover {
  box-shadow: none;
  transform: none;
}

.store-badge-play:active,
.store-badge-apple:active {
  transform: none;
}

.store-badge-art {
  display: block;
  width: auto;
  height: var(--store-badge-art-h, 40px);
  object-fit: contain;
}

.store-badge-apple .store-badge-art,
.store-badge-play .store-badge-art {
  height: var(--store-badge-art-h, 40px);
}

.store-icon-play {
  width: 19px;
  height: 19px;
}

html[data-theme="dark"] .store-badge-play,
html[data-theme="dark"] .store-badge-apple {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .store-badge-play:hover,
html[data-theme="dark"] .store-badge-apple:hover {
  box-shadow: none;
}

.clients-strip {
  margin-top: auto;
  position: relative;
  z-index: 1;
  border-top: 0;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 42%, #ffffff 72%, #ffffff 100%);
  padding: 16px;
  animation: section-reveal 620ms ease-out both;
  animation-delay: 120ms;
  overflow: visible;
}

.clients-strip-inner {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.clients-strip-title {
  margin: 0 0 10px;
  color: #5f6b7a;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.clients-strip-callout {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: span 2;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--card-surface-border);
  border-radius: var(--card-surface-radius);
  background: var(--card-surface-bg);
  color: #0f172a;
  box-shadow: var(--card-surface-shadow);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
}

.clients-strip-callout-link {
  color: var(--header-chrome-ink);
  font-weight: 700;
  text-decoration: none;
}

.clients-strip-callout-link:hover {
  text-decoration: underline;
}

html[data-theme="dark"] .clients-strip-callout-link {
  color: #b0b4b9;
}

.clients-strip-pattern {
  position: absolute;
  right: 0;
  bottom: 100%;
  width: clamp(148px, 15vw, 228px);
  height: auto;
  opacity: 0.92;
  z-index: 0;
  filter: none;
  mix-blend-mode: normal;
  pointer-events: none;
  user-select: none;
  transform: none;
  transform-origin: center;
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--card-surface-border);
  border-radius: var(--card-surface-radius);
  background: var(--card-surface-bg);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  box-shadow: var(--card-surface-shadow);
}

html:not([data-theme="dark"]) .client-logo {
  border-color: var(--card-surface-border);
  background: var(--card-surface-bg);
  box-shadow: var(--card-surface-shadow);
}

.client-logo-image {
  padding: 8px 12px;
}

.client-logo-image img {
  display: block;
  width: auto;
  max-width: min(100%, 132px);
  height: 28px;
}

.client-logo-devtailor {
  max-width: min(100%, 112px);
  height: 22px;
}

html:not([data-theme="dark"]) .client-logo-image img {
  filter: grayscale(1) brightness(0);
  opacity: 0.58;
}

.client-logo-taltech {
  max-width: min(100%, 196px);
  height: 52px;
  transform: scale(1.9);
  transform-origin: center;
}

.client-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: color-mix(in srgb, var(--docaid-red) 88%, white);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
}

html[data-theme="dark"] .clients-strip {
  background: linear-gradient(180deg, #101113 0%, #0b0c0e 100%);
}

html[data-theme="dark"] .clients-strip-title {
  color: #b0b4b9;
}

html[data-theme="dark"] .clients-strip-callout {
  border-color: transparent;
  background: #121416;
  color: #eceef2;
  box-shadow:
    1.6px 3.2px 1px rgba(0, 0, 0, 0.28),
    0 5px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .clients-strip-pattern {
  display: block;
  opacity: 0.3;
  filter: saturate(1.02) brightness(0.18) contrast(1.38);
  mix-blend-mode: multiply;
}

html:not([data-theme="dark"]) .clients-strip-pattern {
  display: none;
}

html[data-theme="dark"] .client-logo {
  border-color: transparent;
  background: #121416;
  color: #eceef2;
  box-shadow:
    1.6px 3.2px 1px rgba(0, 0, 0, 0.28),
    0 5px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .proof-item {
  border-color: transparent;
  background: linear-gradient(180deg, #101113 0%, #0b0c0e 100%);
  box-shadow:
    1.2px 2.2px 0.8px rgba(0, 0, 0, 0.2),
    0 3px 8px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .proof-item.is-active {
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow:
    1.6px 3.2px 1px rgba(0, 0, 0, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .proof-item:nth-child(2) {
  --proof-accent: #ef4444;
}

html[data-theme="dark"] .proof-item:nth-child(3) {
  --proof-accent: #ef4444;
}

html[data-theme="dark"] .proof-item::before {
  content: "";
  background: color-mix(in srgb, var(--docaid-red) 38%, #0f1114);
  border-color: transparent;
  box-shadow: 1.2px 1.6px 0 rgba(0, 0, 0, 0.38);
  opacity: 1;
}

html[data-theme="dark"] .proof-item.is-active::before {
  background: var(--header-top-bg);
  border-color: transparent;
  box-shadow:
    1.3px 1.8px 0 rgba(0, 0, 0, 0.34),
    0 0 6px rgba(14, 15, 17, 0.55);
}

html[data-theme="dark"] .proof-value {
  color: #7e858f;
}

html[data-theme="dark"] .proof-label {
  color: #6f7781;
}

.proof-item.is-active .proof-value {
  color: #f3f7fd;
}

html:not([data-theme="dark"]) .proof-item .proof-value {
  color: #d6deea;
}

html:not([data-theme="dark"]) .proof-item .proof-label {
  color: #afbccf;
}

html:not([data-theme="dark"]) .proof-item.is-active .proof-value {
  color: #f3f7fd;
}

html[data-theme="dark"] .proof-item.is-active .proof-value {
  color: #c8ced7;
}

html[data-theme="dark"] .proof-kicker {
  color: #b0b4b9;
}

html[data-theme="dark"] .top-nav-icon,
html[data-theme="dark"] .app-menu-link-icon {
  background: color-mix(in srgb, var(--header-top-bg) 14%, transparent);
  color: var(--header-top-bg);
  stroke: var(--header-top-bg);
}

html:not([data-theme="dark"]) .proof-item {
  background: var(--card-surface-bg);
  border: 1px solid var(--card-surface-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--card-surface-shadow);
}

html:not([data-theme="dark"]) .proof-item.is-active {
  transform: translateY(-1px);
  box-shadow: var(--card-surface-shadow-hover);
}

html:not([data-theme="dark"]) .proof-item::before,
html:not([data-theme="dark"]) .proof-item.is-active::before {
  background: #9bb1c8;
  box-shadow: 1.1px 1.4px 0 rgba(15, 23, 42, 0.14);
}

html:not([data-theme="dark"]) .proof-item.is-active::before {
  background: var(--header-top-bg);
  box-shadow:
    1.3px 1.8px 0 rgba(15, 23, 42, 0.12),
    0 0 6px rgba(239, 68, 68, 0.16);
}

html:not([data-theme="dark"]) .proof-item .proof-value {
  color: #2f3f53;
}

html:not([data-theme="dark"]) .proof-item .proof-label {
  color: #5a6a7d;
}

html:not([data-theme="dark"]) .proof-item.is-active .proof-value {
  color: #1f2b3b;
}

html:not([data-theme="dark"]) .stream-left-path .left-path-text-base {
  fill: #5f6f84;
  opacity: 0.48;
}

html:not([data-theme="dark"]) .stream-left-path .left-path-text-accent {
  fill: #2f3f53;
}

html:not([data-theme="dark"]) .stream-left-path.is-stage-active .left-path-text-accent {
  fill: #b2d5d9;
  opacity: 0.92;
  text-shadow: 0 0 4px rgba(178, 213, 217, 0.36);
}

html:not([data-theme="dark"]) .waveform span {
  background: #516377;
  opacity: 0.5;
}

html:not([data-theme="dark"]) .right-entry-box {
  background: linear-gradient(
    154deg,
    rgba(249, 251, 254, 0.9) 0%,
    rgba(240, 244, 249, 0.84) 54%,
    rgba(229, 235, 243, 0.78) 100%
  );
  border: 1px solid rgba(120, 132, 148, 0.28);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

html:not([data-theme="dark"]) .right-entry-box.is-stage-active {
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.64) inset;
}

html:not([data-theme="dark"]) .formatted-title {
  color: #2b3b4f;
}

html:not([data-theme="dark"]) .formatted-subtitle {
  color: #516377;
}

html:not([data-theme="dark"]) .formatted-subtitle.is-detect-hot {
  color: #d45757;
  text-shadow: 0 0 3px rgba(212, 87, 87, 0.12);
}

html:not([data-theme="dark"]) .formatted-text {
  color: #233245;
}

html:not([data-theme="dark"]) .output-wait-hint {
  color: #5f7288;
}

html:not([data-theme="dark"]) .core-pill {
  background: linear-gradient(
    150deg,
    rgba(248, 251, 255, 0.9) 0%,
    rgba(238, 243, 249, 0.84) 56%,
    rgba(226, 233, 242, 0.8) 100%
  );
  border: 1px solid rgba(118, 130, 146, 0.28);
  backdrop-filter: blur(10px) saturate(118%);
  -webkit-backdrop-filter: blur(10px) saturate(118%);
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

html:not([data-theme="dark"]) .core-pill.is-stage-active {
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

html[data-theme="dark"] .right-entry-box {
  border-color: transparent;
  background: var(--anim-output-bg);
  box-shadow:
    2.2px 4.4px 1.2px rgba(0, 0, 0, 0.34),
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.scroll-demo {
  padding: 64px 16px 64px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 32%, #f7f8fb 100%);
}

.scroll-demo-inner {
  max-width: 1220px;
  margin: 0 auto 22px;
  text-align: left;
}

.scroll-kicker,
.team-kicker,
.final-cta-kicker {
  margin: 0 0 6px;
  color: #5d6a7a;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-title,
.team-title,
.final-cta-title {
  margin: 0;
  color: #172334;
  font-size: clamp(1.12rem, 2.15vw, 1.56rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 600;
}

html[data-theme="dark"] .scroll-kicker,
html[data-theme="dark"] .team-kicker,
html[data-theme="dark"] .final-cta-kicker {
  color: #aeb8c4;
}

html[data-theme="dark"] .scroll-title,
html[data-theme="dark"] .team-title,
html[data-theme="dark"] .final-cta-title {
  color: #ecf1f8;
}

html[data-theme="dark"] .scroll-demo {
  background: #0b0c0e;
}

.scroll-demo-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.demo-box {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 18px 20px;
  border: 1px solid var(--card-surface-border);
  background: var(--card-surface-bg);
  color: #080808;
  border-radius: var(--card-surface-radius);
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  column-gap: 28px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  box-shadow: var(--card-surface-shadow);
}

html:not([data-theme="dark"]) .demo-box {
  border: 0;
  box-shadow: var(--card-surface-shadow);
}

.demo-box-visual {
  min-height: 184px;
}

.demo-box-flip {
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
}

.demo-box-flip .demo-box-copy {
  grid-column: 1;
  justify-content: flex-start;
  text-align: left;
}

.demo-box-flip .demo-box-media {
  grid-column: 2;
  grid-row: auto;
}

.demo-box-copy {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.demo-box-copy-block {
  display: grid;
  gap: 8px;
}

.demo-box-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  width: 100%;
  min-height: 184px;
}

.demo-box-media::after {
  content: none;
}

html[data-theme="dark"] .demo-box-media::after {
}

.demo-box-art {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  max-height: none;
  height: 108px;
  opacity: 1;
  pointer-events: none;
  flex-shrink: 0;
  margin: 0;
}

.demo-box-visual-diagnosis .demo-box-art {
  height: 86px;
}

.input-modes-panel,
.rollout-flags,
.translation-snippets {
  width: min(100%, 328px);
  display: grid;
  align-content: center;
  gap: 0;
  padding: 0;
  border-radius: 20px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.translation-snippets {
  width: min(100%, 388px);
}

.demo-box-visual-translation .translation-snippets {
  width: 100%;
}

.input-modes-panel {
  min-height: 112px;
  align-content: stretch;
}

html[data-theme="dark"] .input-modes-panel,
html[data-theme="dark"] .rollout-flags {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.demo-box-visual-input .demo-box-media {
  align-self: stretch;
  min-height: 112px;
  padding: 0;
}

.input-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  min-height: 112px;
}

.input-mode-card,
.rollout-flag-card {
  min-width: 0;
  min-height: 100%;
  border-radius: 0;
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(246, 249, 252, 0.82), rgba(252, 253, 254, 0.7));
  border: 0.5px solid rgba(187, 197, 208, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 10px 14px rgba(255, 255, 255, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -14px 16px rgba(186, 197, 209, 0.16),
    inset 0 -1px 0 rgba(171, 184, 199, 0.16),
    inset 8px 0 14px rgba(255, 255, 255, 0.06),
    inset 14px 0 16px rgba(255, 255, 255, 0.035),
    inset -8px 0 14px rgba(173, 186, 201, 0.08);
}

.input-mode-card {
  padding: 8px 10px;
  grid-template-columns: auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 0;
}

.input-mode-card:first-child,
.rollout-flag-card:first-child {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.input-mode-card:last-child,
.rollout-flag-card:last-child {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

html[data-theme="dark"] .input-mode-card,
html[data-theme="dark"] .rollout-flag-card {
  background: rgba(245, 245, 245, 0.22);
  border-color: rgba(9, 11, 13, 0.24);
  box-shadow: none;
}

.input-mode-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  opacity: 0.96;
  filter: brightness(0) saturate(100%) invert(16%) sepia(14%) saturate(1142%) hue-rotate(173deg) brightness(82%) contrast(96%) drop-shadow(0 3px 6px rgba(32, 44, 58, 0.16));
}

html[data-theme="dark"] .input-mode-icon {
  filter: brightness(0) saturate(100%) invert(98%) sepia(2%) saturate(210%) hue-rotate(185deg) brightness(108%) contrast(98%) drop-shadow(0 3px 7px rgba(0, 0, 0, 0.22));
  opacity: 0.96;
}

.input-mode-icon-mic {
  width: 54px;
  height: 54px;
}

.input-mode-icon-smartphone {
  width: 50px;
  height: 50px;
}

.input-mode-icon-phone {
  width: 49px;
  height: 49px;
}

.input-mode-name {
  display: none;
  color: #223244;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-align: left;
  text-wrap: balance;
  max-width: 4.8rem;
}

html[data-theme="dark"] .input-mode-name {
  color: #e8edf3;
}

.demo-box-visual-map .demo-box-media {
  align-self: stretch;
  min-height: 112px;
  padding: 0;
}

.rollout-flags {
  min-height: 112px;
}

.placeholder-panel {
  min-height: 146px;
}

.placeholder-panel-inner {
  width: 100%;
  min-height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(188, 198, 210, 0.48);
  background:
    linear-gradient(180deg, rgba(249, 251, 253, 0.92), rgba(241, 245, 249, 0.98)),
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 38%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -10px 18px rgba(195, 206, 220, 0.1);
}

html[data-theme="dark"] .placeholder-panel-inner {
  border-color: rgba(9, 11, 13, 0.28);
  background: rgba(245, 245, 245, 0.22);
  box-shadow: none;
}

.medication-preview {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 14px 12px;
  overflow: hidden;
}

.medication-preview-label {
  color: #41556a;
}

.medication-preview-text {
  margin: 0;
  color: #162636;
  font-size: 0.84rem;
  line-height: 1.46;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, 0.24) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, 0.24) 92%, transparent 100%);
}

html[data-theme="dark"] .medication-preview-label,
html[data-theme="dark"] .medication-preview-text {
  color: #eceff4;
}

.medication-chip {
  display: inline;
  padding: 0.06em 0.24em;
  border-radius: 0.36em;
  background: color-mix(in srgb, var(--docaid-red) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--docaid-red) 22%, transparent) inset;
  color: color-mix(in srgb, var(--docaid-red) 72%, #3a1114);
  font-weight: 700;
}

html[data-theme="dark"] .medication-chip {
  background: color-mix(in srgb, var(--docaid-red) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--docaid-red) 22%, transparent) inset;
  color: var(--header-top-bg);
}

.rollout-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-height: 112px;
  height: 100%;
}

.rollout-flag-card {
  padding: 11px 10px 9px;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.rollout-flag {
  width: 48px;
  height: 34px;
  border-radius: 10px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(17, 24, 39, 0.12) inset;
}

.rollout-flag-name {
  color: #223244;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
}

html[data-theme="dark"] .rollout-flag-name {
  color: #e8edf3;
}

.translation-snippets {
  min-height: 146px;
  position: relative;
}

.translation-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  min-height: 146px;
  height: 100%;
  position: relative;
}

.translation-preview-sheet {
  min-height: 132px;
  padding: 14px 14px 12px;
  border-radius: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(249, 251, 252, 0.995) 42%, rgba(244, 247, 250, 0.995)),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 42%);
  border: 1px solid rgba(203, 213, 224, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -8px 16px rgba(191, 204, 220, 0.12),
    0 10px 20px rgba(15, 23, 42, 0.05);
}

html[data-theme="dark"] .translation-preview-sheet {
  background: rgba(245, 245, 245, 0.22);
  border-color: rgba(9, 11, 13, 0.24);
  box-shadow: none;
}

.translation-preview-sheet:first-child {
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
}

.translation-preview-sheet:last-child {
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
}

.translation-preview-sheet-source {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 252, 0.92)),
    linear-gradient(90deg, rgba(46, 91, 136, 0.07), rgba(255, 255, 255, 0));
}

.translation-preview-sheet-target {
  background:
    linear-gradient(180deg, rgba(244, 250, 251, 0.995), rgba(233, 243, 245, 0.985)),
    linear-gradient(90deg, rgba(178, 213, 217, 0.34), rgba(255, 255, 255, 0));
  border-left-color: rgba(203, 213, 224, 0.56);
}

html[data-theme="dark"] .translation-preview-sheet-target {
  background: rgba(245, 245, 245, 0.28);
  border-left-color: rgba(9, 11, 13, 0.24);
  border-top-color: rgba(9, 11, 13, 0.24);
  border-bottom-color: rgba(9, 11, 13, 0.24);
  box-shadow: none;
}

.translation-snippet-card {
  justify-items: start;
  text-align: left;
  gap: 4px;
}

.translation-preview-language {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #41556a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
  width: 100%;
  text-align: left;
}

.translation-preview-sheet-target .translation-preview-language {
  color: #41556a;
}

html[data-theme="dark"] .translation-preview-language {
  color: #eceff4;
}

html[data-theme="dark"] .translation-preview-sheet-target .translation-preview-language {
  color: #eceff4;
}

.translation-preview-text {
  margin: 0;
  color: #162636;
  font-size: 0.8rem;
  line-height: 1.42;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, 0.24) 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, 0.24) 92%, transparent 100%);
}

html[data-theme="dark"] .translation-preview-text {
  color: #eceff4;
}

html[data-theme="dark"] .translation-preview-sheet-target .translation-preview-text {
  color: #eceff4;
}

.demo-box-label {
  display: inline-block;
  max-width: 12rem;
  position: relative;
  z-index: 1;
  padding: 0;
  line-height: 1.12;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.demo-box-subtext {
  max-width: 18rem;
  margin: 0;
  color: #5f6b7a;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
}

html[data-theme="dark"] .demo-box {
  border-color: transparent;
  background: rgba(18, 20, 22, 0.72);
  color: #eceef2;
  box-shadow:
    1.6px 3.2px 1px rgba(0, 0, 0, 0.28),
    0 5px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .demo-box-subtext {
  color: #a7b0ba;
}

.team-showcase {
  padding: 56px 16px 72px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(148, 163, 184, 0.14) 0%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(120% 120% at 0% 100%, rgba(71, 85, 105, 0.08) 0%, rgba(255, 255, 255, 0) 58%),
    #f3f5f8;
}

.team-showcase-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.team-title {
  margin: 0 0 22px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  border-radius: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.team-card::before {
  content: none;
}

.team-card:hover {
  box-shadow: none;
}

.team-photo-shell {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: var(--header-chrome-top-bg);
}

.team-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  filter: none;
  transform: none;
}

.team-name {
  margin: 0;
  color: #1f2937;
  font-size: 0.78rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.team-role {
  margin: 0;
  color: #5f6b7a;
  font-size: 0.58rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.team-role-long {
  font-size: 0.52rem;
  letter-spacing: 0.045em;
}

html[data-theme="dark"] .team-showcase {
  background:
    radial-gradient(110% 120% at 50% 0%, rgba(148, 163, 184, 0.08) 0%, rgba(148, 163, 184, 0) 44%),
    linear-gradient(180deg, #111417 0%, #090c0f 100%);
}

html[data-theme="dark"] .team-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .team-card::before {
  content: none;
}

html[data-theme="dark"] .team-card:hover {
  box-shadow: none;
}

html[data-theme="dark"] .team-photo-shell {
  background:
    radial-gradient(120% 120% at 50% 18%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #ef4444 0%, #6b2329 100%);
}

html[data-theme="dark"] .team-photo {
  filter: brightness(0.82) saturate(0.9) contrast(1.04);
}

html[data-theme="dark"] .team-name {
  color: #e8edf5;
}

html[data-theme="dark"] .team-role {
  color: #a3afbf;
}

.final-cta {
  padding: 44px 16px 52px;
  background:
    linear-gradient(180deg, #f5f7fa 0%, #eef2f7 100%);
}

.final-cta-inner {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 168px;
  border-radius: var(--card-surface-radius);
  padding: 18px 20px;
  background: var(--card-surface-bg);
  border: 1px solid var(--card-surface-border);
  box-shadow: var(--card-surface-shadow);
  display: grid;
  gap: 10px;
}

html:not([data-theme="dark"]) .final-cta-inner {
  border: 0;
  box-shadow: var(--card-surface-shadow);
}

.final-cta-copy {
  margin: 2px 0 0;
  color: #4f5f73;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 66ch;
}

.final-cta-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.final-cta-actions .header-cta {
  border-radius: 999px;
}

.final-cta-primary,
.final-cta-primary:hover,
.final-cta-primary:active {
  box-shadow: none;
}

.final-cta-primary,
html:not([data-theme="dark"]) .final-cta-primary {
  background: var(--docaid-red);
  color: #ffffff;
  border: 1px solid #d93838;
}

.final-cta-primary:hover,
html:not([data-theme="dark"]) .final-cta-primary:hover,
html:not([data-theme="dark"]) .final-cta-primary:active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: none;
}

.final-cta-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: #162333;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.final-cta-secondary:hover {
  color: #0f1726;
}

.final-cta-meta {
  margin: 4px 0 0;
  color: #66778c;
  font-size: 0.72rem;
  letter-spacing: 0.015em;
}

html[data-theme="dark"] .final-cta {
  background:
    linear-gradient(180deg, #111417 0%, #090c0f 100%);
}

html[data-theme="dark"] .final-cta-inner {
  border-color: transparent;
  background: rgba(18, 20, 22, 0.72);
  box-shadow:
    1.6px 3.2px 1px rgba(0, 0, 0, 0.28),
    0 5px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .final-cta-copy {
  color: #b3c0d0;
}

html[data-theme="dark"] .final-cta-primary {
  background: var(--docaid-red);
  color: #ffffff;
  border: 1px solid #d93838;
  box-shadow: none;
}

html[data-theme="dark"] .final-cta-primary:hover,
html[data-theme="dark"] .final-cta-primary:active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="dark"] .final-cta-secondary {
  background: #e7edf6;
  color: #111827;
  box-shadow: 0 0 0 1px rgba(11, 15, 21, 0.28);
}

html[data-theme="dark"] .final-cta-secondary:hover {
  color: #0b1220;
}

html[data-theme="dark"] .final-cta-meta {
  color: #8fa0b5;
}

html[data-theme="dark"] .final-cta-embed {
  background: #080808;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.site-footer {
  margin-top: 0;
  background: var(--footer-chrome-bg);
  border-top: 1px solid var(--footer-chrome-border);
  color: var(--footer-text-strong);
}

.site-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 16px 18px;
  display: grid;
  gap: 16px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
  align-items: start;
}

.footer-brand-block {
  margin: 0;
}

.footer-brand-name {
  margin: 0 0 8px;
  color: var(--footer-text-strong);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.footer-note {
  margin: 0;
  color: var(--footer-text);
  font-size: 0.78rem;
  line-height: 1.48;
  max-width: 34ch;
}

.footer-links-group {
  display: grid;
  gap: 6px;
}

.footer-heading {
  margin: 0 0 2px;
  color: var(--footer-text);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links-group a {
  color: var(--footer-text);
  font-size: 0.76rem;
  line-height: 1.36;
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-links-group a:hover {
  color: var(--footer-text-strong);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--footer-divider);
  padding-top: 10px;
}

.footer-bottom p {
  margin: 0;
  color: var(--footer-text-soft);
  font-size: 0.66rem;
  line-height: 1.35;
}

@media (max-width: 1260px) {
  .team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1041px) {
  .scroll-demo-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .scroll-demo-grid > .demo-box {
    grid-column: span 5;
  }

  .scroll-demo-grid > .demo-box:nth-child(1),
  .scroll-demo-grid > .demo-box:nth-child(4) {
    grid-column: span 6;
  }

  .scroll-demo-grid > .demo-box:nth-child(2),
  .scroll-demo-grid > .demo-box:nth-child(3) {
    grid-column: span 4;
  }

  .scroll-demo-grid > .demo-box:nth-child(5) {
    grid-column: span 6;
  }

  .scroll-demo-grid > .demo-box:nth-child(6) {
    grid-column: span 4;
  }
}

@media (max-width: 1040px) {
  .scroll-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .demo-box-visual-diagnosis,
  .demo-box-visual-auth {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 30%) minmax(0, 70%);
    column-gap: 12px;
  }

  .demo-box,
  .demo-box-flip {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 44%);
    column-gap: 18px;
  }

  .demo-box-visual-diagnosis .demo-box-media,
  .demo-box-visual-auth .demo-box-media {
    justify-content: flex-start;
    padding: 0;
    margin-left: 28px;
    width: calc(100% - 28px);
  }

  .demo-box-visual-diagnosis .demo-box-art,
  .demo-box-visual-auth .demo-box-art {
    height: 112px;
    margin-left: 0;
  }

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

@media (min-width: 861px) and (max-width: 1040px) {
  .scroll-demo-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .scroll-demo-grid > .demo-box {
    grid-column: span 5;
  }

  .scroll-demo-grid > .demo-box:nth-child(1),
  .scroll-demo-grid > .demo-box:nth-child(4) {
    grid-column: 1 / -1;
  }

  .scroll-demo-grid > .demo-box:nth-child(5) {
    grid-column: span 6;
  }

  .scroll-demo-grid > .demo-box:nth-child(6) {
    grid-column: span 4;
  }

  .demo-box-visual-diagnosis,
  .demo-box-visual-auth {
    grid-template-columns: minmax(0, 36%) minmax(0, 64%);
    column-gap: 10px;
  }

  .demo-box-visual-diagnosis .demo-box-media,
  .demo-box-visual-auth .demo-box-media {
    margin-left: 44px;
    width: calc(100% - 44px);
  }

  .demo-box-visual-diagnosis .demo-box-art,
  .demo-box-visual-auth .demo-box-art {
    height: 100px;
  }

  .demo-box-visual-translation.demo-box-flip {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .demo-box-visual-translation.demo-box-flip .demo-box-copy,
  .demo-box-visual-translation.demo-box-flip .demo-box-media {
    grid-column: auto;
    justify-content: flex-start;
  }

  .demo-box-visual-translation.demo-box-flip .demo-box-media {
    width: 100%;
    padding: 0;
  }

  .demo-box-visual-placeholder.demo-box-flip {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .demo-box-visual-placeholder.demo-box-flip .demo-box-copy,
  .demo-box-visual-placeholder.demo-box-flip .demo-box-media {
    grid-column: auto;
    justify-content: flex-start;
  }

  .demo-box-visual-placeholder.demo-box-flip .demo-box-media {
    width: 100%;
    padding: 0;
  }
}

.flow-stage {
  --pill-x: 35%;
  --pill-left: calc(var(--pill-x) - 56px);
  --box-x: 68%;
  --box-w: clamp(320px, 44vw, 560px);
  --box-left: calc(var(--box-x) - (var(--box-w) * 0.5));
  --box-right: calc(var(--box-x) + (var(--box-w) * 0.5));
  position: relative;
  width: 100vw;
  max-width: none;
  height: 344px;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  margin-top: 0;
  animation: section-reveal 520ms ease-out both;
}

.flow-line {
  display: none;
}

.sentence-track {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.right-entry-box {
  position: absolute;
  top: 51%;
  left: var(--box-left);
  width: var(--box-w);
  height: auto;
  min-height: 230px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: var(--anim-output-bg);
  z-index: 3;
  pointer-events: none;
  padding: 10px 11px;
  box-shadow:
    2.4px 4.4px 1px rgba(15, 23, 42, 0.14),
    0 11px 22px rgba(15, 23, 42, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.46) inset;
  overflow: visible;
  --output-text-opacity: 0.36;
  transition:
    border-color 200ms ease,
    box-shadow 240ms ease;
  isolation: isolate;
}

.right-entry-box > * {
  position: relative;
  z-index: 1;
}

.right-entry-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.32) 0 20%, transparent 56%),
    radial-gradient(circle at 84% 76%, rgba(162, 174, 188, 0.2) 0 22%, transparent 56%),
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.14) 0 0.75px, transparent 0.75px 2px),
    repeating-radial-gradient(circle at 1px 1px, rgba(33, 39, 48, 0.15) 0 0.7px, transparent 0.7px 1.8px);
  background-size:
    auto,
    auto,
    2.35px 2.35px,
    1.95px 1.95px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0;
  mix-blend-mode: soft-light;
  opacity: 0.78;
}

.right-entry-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(242, 246, 252, 0.18) 28%,
    rgba(232, 239, 248, 0.08) 52%,
    rgba(255, 255, 255, 0) 76%
  );
  opacity: 0.34;
  transition: opacity 240ms ease;
}

.stream-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.stream-right {
  left: var(--pill-x);
  right: calc(100% - var(--box-left));
  clip-path: none;
}

.stream-left-path {
  left: 0;
  right: calc(100% - var(--pill-left));
  clip-path: none;
  z-index: 2;
  display: flex;
}

.stream-left-path .left-path-text {
  transition:
    fill 820ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 820ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 760ms steps(18, end);
}

.stream-left-path .left-path-text-base {
  fill: color-mix(in srgb, var(--anim-wave-bar) 22%, #98a2b3);
  opacity: 0.32;
  text-shadow: none;
}

.stream-left-path .left-path-text-accent {
  fill: #f8fafc;
  opacity: 0;
  text-shadow: 0 0 0 color-mix(in srgb, #ffffff 0%, transparent);
  clip-path: inset(0 0 0 0);
}

.stream-left-path.is-stage-active .left-path-text-accent {
  fill: #f8fafc;
  opacity: 0.82;
  text-shadow: 0 0 5px color-mix(in srgb, #ffffff 30%, transparent);
}

html:not([data-theme="dark"]) .stream-left-path.is-stage-active .left-path-text-accent {
  fill: #99bcc1;
  opacity: 0.92;
  text-shadow: 0 0 5px rgba(153, 188, 193, 0.34);
}

.stream-left-path.is-stage-releasing .left-path-text-accent {
  opacity: 0.82;
  animation: left-path-red-wipe 760ms steps(18, end) forwards;
}

.left-flow-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.left-path-text {
  font-family: "Alegreya Sans", var(--medical-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.014em;
  dominant-baseline: middle;
}

html[data-theme="dark"] .left-path-text {
  fill: #667180;
}

html[data-theme="dark"] .stream-left-path .left-path-text-base {
  fill: #667180;
  opacity: 0.3;
}

@keyframes left-path-red-wipe {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 0.82;
  }
  100% {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
  }
}

.stream {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: ticker var(--duration, 24s) linear infinite;
  padding-left: 0;
}

.stream span {
  display: inline-block;
  padding-right: 52px;
  font-family: var(--medical-font);
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.stream-gray {
  color: var(--anim-path-text);
  left: 0;
  right: calc(100% - var(--pill-left));
  clip-path: none;
  display: grid;
  opacity: 0.34;
  transition: opacity 280ms ease;
}

.stream-gray.is-listening {
  opacity: 1;
}

.stream-gray .stream {
  will-change: transform;
}

.stream-gray .stream span {
  padding-right: 0;
}

.stream-right .stream {
  color: var(--anim-right-stream-text);
  text-shadow: none;
  background: var(--anim-right-stream-bg);
  border-radius: 4px;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 8px;
}

.stream-right .stream.line-flow {
  position: relative;
  width: 100%;
  height: 56px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  animation: none;
  overflow: visible;
}

.stream-right .stream.branch-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  animation: none;
  overflow: visible;
}

.branch-flow-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.branch-path-track {
  fill: none;
  stroke: rgba(116, 132, 154, 0.16);
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.42;
  filter: none;
}

.branch-path {
  fill: none;
  stroke: rgba(107, 123, 145, 0.42);
  stroke-width: 0.95;
  stroke-linecap: round;
  opacity: 0.44;
  filter: none;
}

.stream-right.is-stage-active .branch-path {
  stroke: rgba(95, 111, 132, 0.56);
  opacity: 0.58;
}

.branch-path-fill {
  fill: none;
  stroke: url(#branchFillGradient);
  stroke-width: 1.05;
  stroke-linecap: round;
  opacity: 0;
  pointer-events: none;
  filter: none;
}

.branch-source-glow {
  fill: rgba(144, 167, 195, 0.12);
  opacity: 0.12;
  transition: opacity 220ms ease;
  filter: none;
  pointer-events: none;
}

.stream-right.is-structuring .branch-source-glow {
  opacity: 0.16;
}

.stream-right.is-structuring .branch-path {
  stroke: rgba(95, 111, 132, 0.56);
  opacity: 0.58;
  filter: none;
}

.stream-right.is-structuring .branch-path-track {
  stroke: rgba(116, 132, 154, 0.14);
  opacity: 0.38;
}


.branch-energy {
  display: none;
  fill: none;
  stroke: url(#branchEnergyGradient);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: 18 210;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: branch-energy-flow 1.45s linear infinite;
  pointer-events: none;
}

html:not([data-theme="dark"]) .branch-energy {
  display: block;
  opacity: 0;
  stroke-width: 1.15;
  filter: saturate(1.35) brightness(1.22);
}

html:not([data-theme="dark"]) .stream-right.is-stage-active .branch-energy {
  opacity: 0.9;
}

html:not([data-theme="dark"]) .stream-right.is-stage-active .branch-source-glow {
  opacity: 0.22;
}

html:not([data-theme="dark"]) .branch-energy-1 {
  animation-delay: 160ms;
}

html:not([data-theme="dark"]) .branch-energy-2 {
  animation-delay: 320ms;
}

html[data-theme="dark"] .branch-path-track {
  stroke: rgba(92, 104, 120, 0.14);
  opacity: 0.32;
}

html[data-theme="dark"] .branch-path {
  stroke: rgba(126, 140, 156, 0.34);
  opacity: 0.34;
  filter: none;
}

html[data-theme="dark"] .branch-source-glow {
  fill: rgba(221, 236, 251, 0.14);
  filter: none;
}

html[data-theme="dark"] .stream-right.is-structuring .branch-path {
  stroke: rgba(126, 140, 156, 0.42);
  opacity: 0.4;
  filter: none;
}

html[data-theme="dark"] .stream-right.is-structuring .branch-path-track {
  stroke: rgba(92, 104, 120, 0.14);
  opacity: 0.32;
}


html[data-theme="dark"] .stream-right.is-stage-active .branch-path {
  stroke: rgba(126, 140, 156, 0.42);
  opacity: 0.4;
}

html[data-theme="dark"] .branch-energy {
  display: block;
  opacity: 0;
  filter: saturate(1.28) brightness(1.14);
}

html[data-theme="dark"] .stream-right.is-stage-active .branch-energy {
  opacity: 1;
  filter: none;
}

html[data-theme="dark"] .branch-path-fill {
  stroke-width: 1.1;
}

html[data-theme="dark"] .branch-energy-1 {
  animation-delay: 180ms;
}

html[data-theme="dark"] .branch-energy-2 {
  animation-delay: 360ms;
}

.branch-node {
  display: none;
}

html[data-theme="dark"] .branch-node {
  display: none;
}

.branch-end-connector {
  fill: #a9b7c8;
  stroke: rgba(245, 248, 252, 0.52);
  stroke-width: 0.75;
  opacity: 0.98;
}

html[data-theme="dark"] .branch-end-connector {
  fill: #5e6875;
  stroke: rgba(174, 186, 201, 0.26);
  opacity: 0.9;
}

.stream-right .stream.line-flow .line-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--anim-right-stream-text) 96%, transparent) 0px,
    color-mix(in srgb, var(--anim-right-stream-text) 96%, transparent) 11px,
    transparent 10px,
    transparent 16px
  );
  box-shadow:
    0 0 10px color-mix(in srgb, var(--anim-right-stream-text) 36%, transparent),
    0 0 2px color-mix(in srgb, var(--anim-right-stream-text) 62%, transparent);
  animation: line-dash-move 1.5s linear infinite;
}

html:not([data-theme="dark"]) .stream-right .stream.line-flow .line-track {
  background: repeating-linear-gradient(
    90deg,
    rgba(51, 65, 85, 0.9) 0px,
    rgba(51, 65, 85, 0.9) 11px,
    transparent 10px,
    transparent 16px
  );
  box-shadow:
    0 0 8px rgba(51, 65, 85, 0.12),
    0 0 2px rgba(51, 65, 85, 0.28);
}

.stream-right .stream.line-flow .line-node {
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--anim-right-stream-text) 90%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--anim-right-stream-bg) 40%, transparent),
    0 0 7px color-mix(in srgb, var(--anim-right-stream-text) 30%, transparent);
  transform: translateY(-50%) scale(0.8);
  opacity: 0.2;
  animation: line-node-move 3.8s linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: left, transform, opacity;
}

html:not([data-theme="dark"]) .stream-right .stream.line-flow .line-node {
  background: #334155;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.36),
    0 0 7px rgba(51, 65, 85, 0.16);
}

.stream-right .stream span {
  background: transparent;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  clip-path: none;
}

.formatted-text {
  width: 100%;
  height: auto;
  color: #f1f5f9;
  font-family: var(--ui-font);
  font-size: 0.82rem;
  line-height: 1.34;
  letter-spacing: 0.005em;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: var(--output-text-opacity);
  transition: opacity 120ms linear;
}

@keyframes line-dash-move {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: 14px;
  }
}

@keyframes line-node-move {
  0% {
    left: 0;
    transform: translateY(-50%) scale(0.72);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  78% {
    opacity: 0.9;
  }
  100% {
    left: calc(100% - 10px);
    transform: translateY(-50%) scale(1);
    opacity: 0;
  }
}

.formatted-sections {
  height: auto;
  display: grid;
  grid-auto-rows: min-content;
  gap: 5px;
  padding-bottom: 18px;
}

.output-wait-hint {
  position: absolute;
  left: 11px;
  bottom: 9px;
  margin: 0;
  color: #a7b1be;
  font-size: 0.68rem;
  font-family: var(--ui-font);
  letter-spacing: 0.04em;
  text-align: left;
  opacity: calc(var(--output-text-opacity) * 0.96);
  pointer-events: none;
  transition: opacity 120ms linear;
}

.output-wait-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  display: none;
}

.formatted-section {
  min-height: 0;
  padding: 0;
}

html[data-theme="dark"] .formatted-text {
  color: #e5e7eb;
}

html[data-theme="dark"] .formatted-title {
  color: #c4c8cd;
}

.formatted-subtitle {
  margin: 0 0 7px;
  color: #b5c0cf;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: var(--output-text-opacity);
  transition: opacity 120ms linear;
}

.formatted-subtitle::before {
  content: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.formatted-subtitle.is-hit {
  color: #e3ebf6;
  opacity: 1;
  font-weight: 600;
}

.formatted-subtitle.is-detect-hot {
  color: #ff7d7d;
  opacity: calc(0.34 + (var(--detect-hot-alpha, 1) * 0.66));
  font-weight: 600;
}

.formatted-transcript {
  white-space: pre-line;
}

html[data-theme="dark"] .formatted-subtitle {
  color: #b2b7bd;
}

html[data-theme="dark"] .formatted-subtitle.is-hit {
  color: #d5dce6;
  opacity: 1;
  font-weight: 600;
}

html[data-theme="dark"] .formatted-subtitle.is-detect-hot {
  color: #ff7a7a;
  opacity: calc(0.34 + (var(--detect-hot-alpha, 1) * 0.66));
  font-weight: 600;
}

html[data-theme="dark"] .output-wait-hint {
  color: #9aa3ad;
}

.formatted-hit {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--anim-formatted-hit-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

.diagnosis-code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--docaid-red) 78%, #2f3642);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, #000000 22%, var(--docaid-red) 78%);
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.key-finding-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px 7px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--docaid-red) 64%, #3c4656);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, #000000 26%, var(--docaid-red) 74%);
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

html:not([data-theme="dark"]) .diagnosis-code-badge {
  background: var(--header-top-bg);
  border-color: color-mix(in srgb, #000000 18%, var(--header-top-bg));
  color: #ffffff;
}

html:not([data-theme="dark"]) .key-finding-badge {
  background: var(--header-top-bg);
  border-color: color-mix(in srgb, #000000 18%, var(--header-top-bg));
  color: #ffffff;
}

html[data-theme="dark"] .diagnosis-code-badge {
  background: color-mix(in srgb, var(--docaid-red) 58%, #222831);
  border-color: color-mix(in srgb, #000000 28%, var(--docaid-red) 62%);
  color: #ffffff;
}

html[data-theme="dark"] .key-finding-badge {
  background: color-mix(in srgb, var(--docaid-red) 52%, #2a313d);
  border-color: color-mix(in srgb, #000000 30%, var(--docaid-red) 58%);
  color: #ffffff;
}

.diagnosis-code-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 7px;
  margin: 0 0 7px;
}

.diagnosis-code-row:first-child {
  margin-top: 0;
}

.diagnosis-code-meaning {
  color: #d7dfeb;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.008em;
}

html:not([data-theme="dark"]) .diagnosis-code-meaning {
  color: #405264;
}

html[data-theme="dark"] .diagnosis-code-meaning {
  color: #cfd7e3;
}

.formatted-title {
  margin: 0 0 4px;
  color: #d6deea;
  font-family: var(--ui-font);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: static;
  transform: none;
  opacity: var(--output-text-opacity);
  transition: opacity 120ms linear;
}

.formatted-title::before {
  content: none;
}

.core {
  position: absolute;
  left: var(--pill-x);
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 0;
}

.core-status,
.core-meta {
  color: var(--anim-detect-label);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.core-status {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-grid;
  justify-items: center;
  gap: 3px;
  white-space: nowrap;
}

.core-stage-label {
  display: none;
}

.core-stage-title,
.core-stage-copy {
  display: block;
}

.core-stage-copy {
  font-family: "Alegreya Sans", var(--medical-font);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.detect-list {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  min-width: 112px;
  opacity: 0.34;
  transform: scale(0.92);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.detect-mic {
  width: 21px;
  height: 21px;
  display: block;
  fill: #697789;
  filter: none;
}

.right-entry-box.is-clearing .formatted-title,
.right-entry-box.is-clearing .formatted-subtitle,
.right-entry-box.is-clearing .formatted-text {
  opacity: 0.14 !important;
}

.detect-list.is-listening {
  opacity: 1;
  transform: scale(1.08);
  filter: saturate(1.08);
}

.detect-list.is-listening .detect-mic {
  fill: #1f2b3b;
  filter: drop-shadow(0 0 8px rgba(31, 43, 59, 0.12));
}

html[data-theme="dark"] .detect-mic {
  fill: #6f7b89;
}

html[data-theme="dark"] .detect-list.is-listening .detect-mic {
  fill: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
}

.core-pill {
  width: clamp(88px, 8vw, 112px);
  height: 50px;
  border-radius: 999px;
  border: 0;
  background: var(--anim-core-pill-bg);
  box-shadow:
    2.3px 4.4px 1px rgba(15, 23, 42, 0.16),
    0 9px 18px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.22) inset;
  display: grid;
  place-items: center;
  position: relative;
  filter: saturate(0.92) brightness(0.96);
  transition:
    border-color 200ms ease,
    box-shadow 240ms ease,
    transform 220ms ease,
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  isolation: isolate;
}

.core-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.32) 0 20%, transparent 56%),
    radial-gradient(circle at 80% 70%, rgba(158, 172, 188, 0.18) 0 22%, transparent 56%),
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.14) 0 0.72px, transparent 0.72px 1.95px),
    repeating-radial-gradient(circle at 1px 1px, rgba(33, 39, 48, 0.14) 0 0.68px, transparent 0.68px 1.85px);
  background-size:
    auto,
    auto,
    2.2px 2.2px,
    1.85px 1.85px;
  mix-blend-mode: soft-light;
  opacity: 0.74;
}

.core-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(240, 246, 252, 0.16) 28%,
    rgba(230, 238, 247, 0.07) 52%,
    rgba(255, 255, 255, 0) 78%
  );
  opacity: 0.44;
  transition: opacity 240ms ease;
}

html[data-theme="dark"] .core-pill {
  filter: saturate(0.9) brightness(0.92);
  box-shadow:
    2.2px 4.4px 1.2px rgba(0, 0, 0, 0.34),
    0 10px 22px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.core-pill.is-stage-active {
  border-color: transparent;
  transform: none;
  filter: saturate(1.02) brightness(1.05);
  box-shadow:
    2.8px 5.2px 1.1px rgba(15, 23, 42, 0.2),
    0 16px 28px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.core-pill.is-stage-active::after {
  opacity: 0.68;
}

.core-pill.is-wave-active {
  background: var(--anim-core-pill-bg);
}

html[data-theme="dark"] .core-pill.is-stage-active {
  border-color: transparent;
  filter: saturate(1.02) brightness(1.02);
  box-shadow:
    2.5px 4.8px 1.3px rgba(0, 0, 0, 0.36),
    0 14px 28px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.right-entry-box.is-stage-active {
  border-color: transparent;
  box-shadow:
    2.8px 5.2px 1.1px rgba(15, 23, 42, 0.18),
    0 16px 30px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.48) inset;
}

.right-entry-box.is-stage-active::after {
  opacity: 0.36;
}

html[data-theme="dark"] .right-entry-box.is-stage-active {
  border-color: transparent;
  box-shadow:
    2.5px 4.8px 1.3px rgba(0, 0, 0, 0.36),
    0 14px 28px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

html[data-theme="dark"] .core-pill::after,
html[data-theme="dark"] .right-entry-box::after {
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 26%,
    rgba(255, 255, 255, 0.03) 52%,
    rgba(255, 255, 255, 0) 82%
  );
}

html[data-theme="dark"] .right-entry-box::after {
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.015) 26%,
    rgba(255, 255, 255, 0.005) 52%,
    rgba(255, 255, 255, 0) 82%
  );
}

html[data-theme="dark"] .core-pill::before,
html[data-theme="dark"] .right-entry-box::before {
  opacity: 0.34;
}

.waveform {
  position: relative;
  z-index: 1;
  height: 32px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
}

.waveform span {
  display: block;
  width: 2px;
  height: 30px;
  border-radius: 1px;
  background: var(--anim-wave-bar);
  transform-origin: center;
  transform: scaleY(0.15);
  opacity: 0.3;
  transition:
    transform 220ms linear,
    background-color 760ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.core-pill.is-wave-active .waveform span {
  background: #ffffff;
  opacity: 1;
}

html:not([data-theme="dark"]) .core-pill.is-wave-active .waveform span {
  background: #334155;
  opacity: 1;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
}

@keyframes ticker {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes branch-energy-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes detect-fade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  65% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes detect-preview {
  0%,
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}

@keyframes proof-mobile-card-cycle {
  0% {
    opacity: 0;
    transform: none;
  }
  12.5%,
  87.5% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes proof-mobile-card-exit {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: none;
  }
}

@keyframes proof-mobile-stripe-cycle {
  0%,
  12.5% {
    opacity: 1;
    filter: saturate(0.92) brightness(0.92);
  }
  25%,
  75% {
    opacity: 1;
    filter: saturate(1.08) brightness(1.06);
  }
  87.5%,
  100% {
    opacity: 1;
    filter: saturate(0.92) brightness(0.92);
  }
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 108px;
    --mobile-shell-pad: clamp(12px, 4vw, 18px);
    --mobile-shell-max: 460px;
  }

  .header-top-inner {
    height: 48px;
    padding: 0 28px 0 var(--mobile-shell-pad);
    justify-content: flex-start;
  }

  .header-announcement {
    font-size: 0.48rem;
    letter-spacing: 0.03em;
  }

  .header-download-cta {
    display: inline-flex;
    max-width: calc(100% - 28px);
    gap: 10px;
  }

  .header-download-cta-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 8px;
  }

  .header-download-cta-kicker {
    font-size: 0.62rem;
  }

  .header-download-cta-name {
    font-size: 0.96rem;
    line-height: 1;
  }

  .header-announcement {
    display: none;
  }

  .header-top-close {
    right: 0;
    width: 24px;
    height: 24px;
    font-size: 17px;
  }

  .header-top .made-eu-badge {
    display: none;
  }

  .made-eu-badge-hero {
    display: none;
    margin: 0 0 2px;
    width: auto;
    justify-self: start;
    justify-content: flex-start;
    font-size: 0.58rem;
    padding: 4px 8px 4px 5px;
    gap: 7px;
  }

  .made-eu-badge-hero .eu-flag {
    width: 22px;
    height: 15px;
  }

  .made-eu-badge-hero .made-eu-label {
    padding-left: 7px;
  }

  .header-main-inner {
    height: 60px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .header-main {
    padding: 0;
  }

  .made-eu-badge {
    right: 22px;
    font-size: 0.45rem;
    padding: 2px 5px 2px 3px;
    gap: 4px;
  }

  .eu-flag {
    width: 16px;
    height: 11px;
  }

  .made-eu-label {
    padding-left: 4px;
  }

  html.banner-hidden {
    --header-height: 60px;
  }

  .top-links,
  .top-nav {
    display: none;
  }

  .desktop-control {
    display: none;
  }

  .header-main-actions {
    gap: 6px;
  }

  html.header-scrolled .header-main {
    padding-top: 0;
  }

  html.header-scrolled .header-main-inner {
    max-width: 1220px;
    height: 60px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--header-main-bg);
    box-shadow: none;
    backdrop-filter: none;
  }

  .mobile-app-download-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-app-download-icon svg {
    display: none;
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  .mobile-app-download[data-platform="ios"] .mobile-app-download-icon-apple,
  .mobile-app-download[data-platform="android"] .mobile-app-download-icon-play {
    display: block;
  }

  .mobile-app-download-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
  }

  .app-menu {
    display: inline-flex;
    position: static;
  }

  .app-menu-toggle {
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html[data-theme="dark"] .app-menu-toggle {
    background: #111417;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18);
  }

  html[data-theme="dark"] .mobile-app-download {
    background: #ffffff;
    color: #080808;
    box-shadow: 0 0 0 1px rgba(8, 8, 8, 0.12);
  }

  .app-menu-panel {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-8px);
    z-index: 24;
  }

  .app-menu-card {
    min-width: 0;
    width: 100%;
    padding: 6px var(--mobile-shell-pad) 18px;
    border-radius: 0 0 18px 18px;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--header-main-bg);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
    gap: 0;
  }

  .app-menu-link {
    min-height: 54px;
    padding: 14px 0;
    border-bottom: 0;
  }

  .app-menu-link-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .app-menu-divider {
    margin: 8px 0 10px;
  }

  .app-menu-settings-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding-right: 60px;
  }

  .app-menu-language {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-menu-language[open] {
    z-index: 2;
  }

  .app-menu-language-toggle {
    list-style: none;
    width: 100%;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .app-menu-language-toggle::-webkit-details-marker {
    display: none;
  }

  .app-menu-language-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .app-menu-language .language-flag {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  .app-menu-language-current {
    font-size: 1rem;
    font-weight: 600;
    color: currentColor;
  }

  .app-menu-language-toggle::after {
    content: "";
    margin-left: 6px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.72;
  }

  .app-menu-language[open] .app-menu-language-toggle::after {
    transform: rotate(-135deg) translateY(-1px);
  }

  .app-menu-language-list {
    display: grid;
    gap: 2px;
    padding: 6px 0 0 24px;
  }

  .app-menu-language-option {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--header-link-color);
    text-align: left;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    padding: 7px 0;
    cursor: pointer;
  }

  .app-menu-language-option.is-active {
    color: var(--docaid-red);
    font-weight: 700;
  }

  .language-switcher-mobile {
    display: none;
  }

  .theme-toggle-mobile {
    width: 48px;
    height: 28px;
    margin-top: 0;
    margin-left: 0;
    justify-content: space-between;
    flex: 0 0 auto;
    position: absolute;
    top: 9px;
    right: 0;
  }

  .app-menu-demo {
    margin-top: 14px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 11px 14px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1;
    background: var(--header-top-bg);
    color: #ffffff;
    box-shadow:
      0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
  }

  .app-menu-demo:hover {
    box-shadow:
      0 1px 3px rgba(8, 8, 8, 0.16),
      0 0 0 1px color-mix(in srgb, #000000 18%, var(--header-top-bg) 82%) inset;
  }

  html[data-theme="dark"] .app-menu-card {
    border-top-color: rgba(148, 163, 184, 0.18);
    background: var(--header-main-bg);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  }

  html[data-theme="dark"] .app-menu-link {
    border-bottom-color: transparent;
  }

  html[data-theme="dark"] .language-switcher-mobile {
    background: transparent;
    box-shadow: none;
  }

  html[data-theme="dark"] .app-menu-language-option {
    color: var(--top-nav-color);
  }

  html[data-theme="dark"] .app-menu-language-option.is-active {
    color: #ffffff;
  }

  html[data-theme="dark"] .app-menu-language-current,
  html[data-theme="dark"] .app-menu-language-toggle {
    color: #d7dbe1;
  }


  html[data-theme="dark"] .app-menu-demo {
    background: var(--header-top-bg);
    color: #ffffff;
    box-shadow:
      0 0 0 1px color-mix(in srgb, #000000 16%, var(--header-top-bg) 84%) inset;
  }

  html[data-theme="dark"] .app-menu-demo:hover {
    box-shadow:
      0 1px 3px rgba(8, 8, 8, 0.16),
      0 0 0 1px color-mix(in srgb, #000000 18%, var(--header-top-bg) 82%) inset;
  }


  .mobile-app-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #0f1720;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(8, 8, 8, 0.16) inset;
  }

  .app-menu-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
  }

  .mobile-app-download,
  .app-menu-demo {
    margin-top: 0;
    width: 100%;
    min-width: 0;
  }

  .mobile-floating-demo {
    display: none;
  }

  .scene {
    min-height: 0;
    align-content: start;
    gap: 0;
    padding: clamp(24px, calc(14vh - var(--header-height) + 54px), 56px) var(--mobile-shell-pad) 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .hero-title {
    font-size: clamp(1.58rem, 6.7vw, 2.16rem);
    max-width: min(20ch, 100%);
    margin: 0;
    width: auto;
    text-align: left;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  .hero-heading,
  .proof-kicker,
  .hero-rotator {
    width: min(var(--mobile-shell-max), 100%);
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-heading {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero-subtitle {
    width: auto;
    max-width: 70%;
    flex: 0 1 auto;
    color: color-mix(in srgb, var(--header-chrome-ink) 52%, white);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
  }

  html[data-theme="dark"] .hero-subtitle {
    color: color-mix(in srgb, var(--header-chrome-ink) 72%, white);
  }

  .hero-subtitle,
  .proof-kicker {
    text-align: left;
  }

  .proof-kicker {
    display: none;
  }

  .hero-rotator {
    display: none;
  }

  .hero-rotator-panel {
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    animation: none;
  }

  .hero-rotator-panel.is-active {
    display: block;
  }

  .store-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(132px, 156px));
    justify-content: flex-start;
    gap: 10px;
    margin-top: 8px;
  }

  .store-badges-center {
    justify-content: flex-start;
  }

  .store-badge {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .store-badge:hover,
  html[data-theme="dark"] .store-badge:hover {
    box-shadow: none;
    transform: none;
  }

  .store-badges-header .store-badge {
    min-width: 104px;
    padding: 5px 7px;
  }

  .store-badges-header .store-badge-kicker {
    display: none;
  }

  .store-badges-header .store-badge-name {
    font-size: 0.68rem;
  }

  .store-badges-header .store-badge-art {
    --store-badge-art-h: 24px;
    height: var(--store-badge-art-h);
  }

  .store-badge-name {
    font-size: 0.84rem;
  }

  .store-badge-art {
    display: block;
    width: 100%;
    height: auto;
  }

  .proof-strip {
    display: none;
  }

  .proof-item {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    min-height: 30px;
    padding: 0;
    transform: rotate(0deg);
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    width: 100%;
    max-width: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .proof-item::before {
    display: none;
  }

  .proof-item.is-mobile-active,
  .proof-item.is-mobile-exit {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .proof-item.is-active,
  .proof-item.is-mobile-active,
  .proof-item.is-mobile-exit {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  html[data-theme="dark"] .proof-item,
  html[data-theme="dark"] .proof-item.is-active,
  html[data-theme="dark"] .proof-item.is-mobile-active,
  html[data-theme="dark"] .proof-item.is-mobile-exit,
  html:not([data-theme="dark"]) .proof-item,
  html:not([data-theme="dark"]) .proof-item.is-active,
  html:not([data-theme="dark"]) .proof-item.is-mobile-active,
  html:not([data-theme="dark"]) .proof-item.is-mobile-exit {
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  html[data-theme="dark"] .proof-item::before,
  html[data-theme="dark"] .proof-item.is-active::before,
  html:not([data-theme="dark"]) .proof-item::before,
  html:not([data-theme="dark"]) .proof-item.is-active::before {
    display: none;
    background: transparent;
    box-shadow: none;
    opacity: 0;
  }

  .proof-item.is-mobile-active {
    animation: proof-mobile-card-cycle 4s linear both;
  }

  .proof-value {
    font-size: 1.04rem;
  }

  .proof-label {
    display: block;
  }

  .proof-item.is-mobile-exit {
    animation: proof-mobile-card-exit 0.5s ease-in both;
  }

  .proof-value {
    font-size: 1rem;
  }

  .proof-label {
    font-family: "IBM Plex Sans", var(--ui-font);
    font-size: 0.9rem;
    line-height: 1.18;
    letter-spacing: 0.01em;
  }

  .clients-strip {
    padding: 14px 12px;
  }

  .clients-strip-pattern {
    width: clamp(86px, 22vw, 136px);
    right: 0;
    bottom: 100%;
    opacity: 0.3;
  }

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

  .clients-strip-callout {
    grid-column: 1 / -1;
  }

  .client-logo {
    min-height: 42px;
    font-size: 0.78rem;
  }

  .header-link {
    display: none;
  }

  .brand-logo {
    width: 116px;
  }

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

  .demo-box-visual-diagnosis,
  .demo-box-visual-auth {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 34%) minmax(0, 66%);
    column-gap: 12px;
  }

  .team-showcase {
    padding: 44px 12px 56px;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .team-card {
    padding: 0;
  }

  .team-photo-shell {
    width: 100%;
  }

  .team-name {
    font-size: clamp(0.58rem, 1.65vw, 0.74rem);
    line-height: 1.08;
  }

  .team-role {
    font-size: clamp(0.42rem, 1.15vw, 0.54rem);
    line-height: 1.08;
    white-space: normal;
  }

  .final-cta {
    padding: 34px 12px 42px;
  }

  .final-cta-inner {
    padding: 18px 16px 16px;
    gap: 8px;
  }

  .final-cta-title {
    font-size: clamp(1.08rem, 5.8vw, 1.42rem);
  }

  .final-cta-copy {
    font-size: 0.82rem;
    line-height: 1.48;
  }

  .final-cta-actions {
    gap: 8px;
  }

  .final-cta-primary,
  .final-cta-secondary {
    width: 100%;
    text-align: center;
  }

  .final-cta-meta {
    font-size: 0.66rem;
  }

  .site-footer-inner {
    padding: 22px 12px 16px;
    gap: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .demo-box,
  .demo-box-flip {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
    column-gap: 12px;
    row-gap: 0;
    text-align: left;
    min-height: 0;
    padding: 14px 16px;
  }

  .demo-box-copy {
    grid-column: 1;
    justify-content: flex-start;
  }

  .demo-box-flip .demo-box-copy,
  .demo-box-flip .demo-box-media {
    grid-row: auto;
    text-align: left;
    justify-content: flex-start;
  }

  .demo-box-media,
  .demo-box-flip .demo-box-media {
    grid-column: 2;
  }

  .demo-box-visual-input.demo-box-flip,
  .demo-box-visual-map.demo-box-flip,
  .demo-box-visual-translation.demo-box-flip {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .demo-box-visual-input.demo-box-flip .demo-box-copy,
  .demo-box-visual-input.demo-box-flip .demo-box-media,
  .demo-box-visual-map.demo-box-flip .demo-box-copy,
  .demo-box-visual-map.demo-box-flip .demo-box-media,
  .demo-box-visual-translation.demo-box-flip .demo-box-copy,
  .demo-box-visual-translation.demo-box-flip .demo-box-media {
    grid-column: auto;
    justify-content: flex-start;
  }

  .demo-box-visual-input.demo-box-flip .demo-box-media,
  .demo-box-visual-map.demo-box-flip .demo-box-media,
  .demo-box-visual-translation.demo-box-flip .demo-box-media {
    width: 100%;
    padding: 0;
  }

  .demo-box-label {
    max-width: 16rem;
  }

  .demo-box-copy-block {
    gap: 6px;
  }

  .demo-box-subtext {
    max-width: 24rem;
    line-height: 1.42;
  }

  .demo-box-media {
    min-height: 96px;
    align-self: center;
    padding: 4px 6px 6px 0;
  }

  .demo-box-art {
    height: 96px;
  }

  .demo-box-visual-diagnosis,
  .demo-box-visual-auth {
    grid-template-columns: minmax(0, 38%) minmax(0, 62%);
    column-gap: 18px;
  }

  .demo-box-visual-diagnosis .demo-box-media,
  .demo-box-visual-auth .demo-box-media {
    width: auto;
    margin-left: 0;
    min-height: 72px;
    padding: 0 4px 0 0;
  }

  .demo-box-visual-diagnosis .demo-box-art,
  .demo-box-visual-auth .demo-box-art {
    height: 96px;
  }

  .demo-box-visual-diagnosis .demo-box-art {
    height: 60px;
    transform: scale(0.82);
    transform-origin: left center;
  }

  .demo-box-visual-input .demo-box-media {
    min-height: 74px;
    padding: 0;
  }

  .input-modes-panel,
  .rollout-flags,
  .translation-snippets {
    width: 100%;
  }

  .input-modes-panel {
    min-height: 74px;
    padding: 0;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  .input-modes-grid {
    min-height: 74px;
  }

  .input-mode-card {
    min-height: 0;
    border-radius: 0;
    padding: 2px 6px;
    gap: 6px;
    grid-template-columns: max-content max-content;
    justify-items: start;
  }

  .input-mode-card:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
  }

  .input-mode-card:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .input-mode-icon {
    width: 42px;
    height: 42px;
  }

  .input-mode-icon-mic {
    width: 39px;
    height: 39px;
  }

  .input-mode-icon-smartphone {
    width: 36px;
    height: 36px;
  }

  .input-mode-icon-phone {
    width: 35px;
    height: 35px;
  }

  .input-mode-name {
    display: block;
    font-size: 0.68rem;
    line-height: 1.08;
    max-width: 4.8rem;
  }

  .demo-box-visual-map .demo-box-media {
    min-height: 74px;
  }

  .demo-box-visual-translation .demo-box-media {
    min-height: 112px;
  }

  .demo-box-visual-placeholder .demo-box-media {
    min-height: 112px;
  }

  .rollout-flags {
    min-height: 74px;
    padding: 0;
  }

  .rollout-language-grid {
    min-height: 74px;
  }

  .rollout-flag-card {
    padding: 4px 6px;
    gap: 4px;
  }

  .rollout-flag {
    width: 40px;
    height: 28px;
  }

  .translation-flow-card {
    min-height: 112px;
    padding: 0;
  }

  .placeholder-panel {
    min-height: 112px;
  }

  .placeholder-panel-inner {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  .medication-preview {
    padding: 10px 11px;
    justify-items: start;
    text-align: left;
  }

  .medication-preview-text {
    font-size: 0.79rem;
    line-height: 1.52;
    -webkit-line-clamp: 3;
    width: 100%;
    text-align: left;
  }

  .translation-preview-grid {
    min-height: 108px;
  }

  .translation-preview-sheet {
    min-height: 104px;
    padding: 11px 11px 10px;
  }

  .translation-preview-text {
    font-size: 0.72rem;
    -webkit-line-clamp: 5;
  }

  .flow-stage {
    width: min(460px, 100%);
    max-width: 100%;
    height: 374px;
    margin-top: 26px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    --box-w: min(var(--mobile-shell-max), 100%);
    --box-left: 0px;
    --pill-x: calc(var(--box-left) + (var(--box-w) * 0.5));
    --pill-left: var(--box-left);
  }

  .core-meta {
    display: none;
  }

  .core-status {
    position: static;
    display: block;
    white-space: normal;
    width: 100%;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .core-stage-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-transform: none;
    text-align: left;
    padding: 0;
    width: auto;
    opacity: 1;
    visibility: visible;
  }

  .core-stage-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5a6b80;
  }

  .core-stage-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
  }

  .core-stage-title {
    display: block;
    color: #2f3f53;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
    opacity: 1;
    visibility: visible;
  }

  .core-stage-copy {
    display: none;
  }

  html[data-theme="dark"] .core-stage-title {
    color: #eef2f6;
  }

  html[data-theme="dark"] .core-stage-icon {
    color: #aeb9c7;
  }

  html[data-theme="dark"] .core-stage-copy {
    color: #aeb9c7;
  }

  .branch-end-connector {
    display: none;
  }

  .stream-right {
    display: none;
  }

  .sentence-track {
    inset: 0;
  }

  .stream-left-path {
    left: var(--box-left);
    right: auto;
    width: var(--box-w);
    top: 46px;
    height: 78px;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
  }

  .stream-gray {
    left: var(--box-left);
    right: auto;
    width: var(--box-w);
    top: 46px;
    height: 78px;
    display: grid;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 78%, transparent 100%);
  }

  .core {
    top: 22px;
    left: var(--box-left);
    width: var(--box-w);
    transform: none;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    z-index: 5;
  }

  .detect-list,
  .core-pill {
    display: none;
  }

  .stream span {
    font-size: 0.82rem;
  }

  .left-path-text {
    font-size: 13px;
  }

  .right-entry-box {
    --box-w: min(var(--mobile-shell-max), 100%);
    top: 112px;
    left: var(--box-left);
    height: auto;
    min-height: 178px;
    transform: none;
    opacity: 0.88;
  }
}

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

  .demo-box-visual-diagnosis,
  .demo-box-visual-auth {
    grid-column: auto;
  }

  .demo-box-visual-diagnosis .demo-box-media,
  .demo-box-visual-auth .demo-box-media {
    width: 100%;
    margin-left: 0;
    padding: 4px 6px 6px 0;
  }

  .demo-box-visual-diagnosis .demo-box-art,
  .demo-box-visual-auth .demo-box-art {
    height: 96px;
    margin-left: 0;
  }

  .demo-box,
  .demo-box-flip {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .demo-box-copy {
    grid-column: auto;
  }

  .demo-box-media,
  .demo-box-flip .demo-box-media {
    grid-column: auto;
  }

  .rollout-flags {
    width: 100%;
    min-height: 74px;
  }

  .rollout-flags {
    gap: 0;
    padding: 0;
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  .rollout-language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-height: 66px;
  }

  .rollout-flag-card {
    min-height: 0;
    border-radius: 0;
    padding: 3px 6px;
    gap: 4px;
  }

  .rollout-flag-card:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
  }

  .rollout-flag-card:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .rollout-flag {
    width: 36px;
    height: 24px;
    border-radius: 7px;
  }

  .rollout-flag-name {
    font-size: 0.62rem;
  }

  .translation-snippets {
    width: 100%;
    min-height: 84px;
  }

  .placeholder-panel {
    width: 100%;
    min-height: 84px;
  }

  .placeholder-panel-inner {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
  }

  .medication-preview {
    padding: 8px 10px;
    justify-items: start;
    text-align: left;
  }

  .medication-preview-label {
    display: none;
  }

  .medication-preview-text {
    font-size: 0.79rem;
    line-height: 1.52;
    -webkit-line-clamp: 3;
    width: 100%;
    text-align: left;
  }

  .translation-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-height: 84px;
  }

  .translation-preview-sheet {
    min-height: 80px;
    border-radius: 0;
    padding: 13px 8px 7px;
  }

  .translation-snippet-card {
    justify-items: start;
    text-align: left;
  }

  .translation-preview-sheet:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
  }

  .translation-preview-sheet:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .translation-preview-language {
    padding: 3px 6px;
    font-size: 0.5rem;
    width: 100%;
    text-align: left;
  }

  .translation-preview-text {
    font-size: 0.6rem;
    line-height: 1.28;
    -webkit-line-clamp: 4;
    width: 100%;
    text-align: left;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

}

@media (max-width: 390px) {
  .hero-title {
    font-size: clamp(1.42rem, 6.1vw, 1.86rem);
  }

  .hero-subtitle {
    font-size: 0.68rem;
  }

  .app-menu-link {
    font-size: 0.94rem;
  }

  .app-menu-language-current {
    font-size: 0.94rem;
  }

  .app-menu-language-option {
    font-size: 0.88rem;
  }

  .app-menu-demo,
  .mobile-app-download-label {
    font-size: 0.74rem;
  }

  .core-stage-title {
    font-size: 0.88rem;
  }

  .stream span {
    font-size: 0.78rem;
  }

  .app-menu-cta-row {
    grid-template-columns: minmax(0, 1fr);
  }

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