/* Colors are the shared Gero tokens (packages/ui) plus the app's chart colors. */
:root {
  --bg: #0A0F0F;
  --bg-deep: #060A0A;
  --surface: #141B1B;
  --raised: #1A2424;
  --text: #E8EFEE;
  --muted: #8FA19F;
  --border: #263231;
  --border-soft: rgba(38, 50, 49, 0.6);
  --primary: #2DBFAE;
  --primary-strong: #5BD3C5;
  --primary-contrast: #04201E;
  --primary-soft: rgba(45, 191, 174, 0.12);
  --primary-line: rgba(45, 191, 174, 0.45);
  --danger: #F97066;
  --success: #47CD89;
  --sky: #38BDF8;
  --violet: #A78BFA;
  --orange: #FB923C;
  --yellow: #FBBF24;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1200px;
  --head: 72px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

[id] {
  scroll-margin-top: calc(var(--head) + 16px);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-danger { color: var(--danger); }
.c-sky { color: var(--sky); }
.c-violet { color: var(--violet); }
.c-success { color: var(--success); }
.c-orange { color: var(--orange); }
.c-yellow { color: var(--yellow); }
.c-primary { color: var(--primary); }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo {
  width: 130px;
  height: 30px;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--primary-line);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--primary-soft);
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
}

.btn.primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}

/* Header */
.head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.head-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--head);
}

.head .brand {
  margin-right: auto;
}

.nav {
  display: none;
}

.head.open .nav {
  position: absolute;
  top: var(--head);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav a {
  padding: 12px 0;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

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

.nav .nav-cta {
  margin-top: 8px;
  padding: 0 16px;
  color: var(--primary-contrast);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.head-cta {
  display: none;
}

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* Language picker */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.lang .i {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.lang .chev {
  left: auto;
  right: 9px;
  width: 14px;
  height: 14px;
}

.lang select {
  height: 40px;
  padding: 0 30px 0 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

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

.lang option {
  background: var(--surface);
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 112px;
  background:
    radial-gradient(55% 60% at 85% 15%, rgba(45, 191, 174, 0.2), transparent 70%),
    radial-gradient(40% 50% at 5% 0%, rgba(56, 189, 248, 0.08), transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

h1 {
  font-size: clamp(1.7rem, 2.75vw, 2.25rem);
  font-weight: 750;
  background: linear-gradient(180deg, #FFFFFF 0%, #B9CFCB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Two lines; each stays on one line where the column allows. */
h1 span {
  display: block;
}

/* The Russian lines are the longest. */
h1:lang(ru) {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.lead {
  max-width: 32ch;
  margin-top: 20px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.45;
}

.hero-sub {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Dashboard mock */
.hero-visual {
  min-width: 0;
  container: dash / inline-size;
}

.dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #172020 0%, #111818 100%);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 30px 120px -40px rgba(45, 191, 174, 0.35);
  font-size: 13px;
  line-height: 1.4;
}

.dash-side {
  display: none;
  padding: 20px 12px;
  border-right: 1px solid var(--border);
  background: rgba(10, 15, 15, 0.45);
}

@container dash (min-width: 540px) {
  .dash {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .dash-side {
    display: block;
  }
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 18px;
  font-size: 15px;
  font-weight: 700;
}

.dash-brand .logo {
  width: 94px;
  height: 16px;
}

.dash-side li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
}

.dash-side li .i {
  width: 16px;
  height: 16px;
}

.dash-side li.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.dash-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  container: dmain / inline-size;
}

.pt {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pt-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(45, 191, 174, 0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 191, 174, 0.35), rgba(56, 189, 248, 0.2));
  font-size: 16px;
  font-weight: 700;
}

.pt-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pt-meta {
  color: var(--muted);
  font-size: 12.5px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
}

.dash-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 15, 15, 0.55);
}

.dash-title {
  font-size: 13px;
  font-weight: 600;
}

.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

@container dmain (min-width: 400px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tile {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.tile .i {
  width: 18px;
  height: 18px;
}

.tile-val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.tile-val small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.tile-label {
  color: var(--muted);
  font-size: 11.5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.pill .i {
  width: 12px;
  height: 12px;
}

.plan {
  display: grid;
  margin-top: 6px;
}

.plan li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
}

.plan li + li {
  border-top: 1px solid var(--border-soft);
}

.plan-check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: transparent;
}

.plan-check .i {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.plan .done .plan-check {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

.plan-time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.plan-text {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan .done .plan-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(143, 161, 159, 0.5);
}

.plan .plan-kind {
  width: 15px;
  height: 15px;
}

/* Feature strip */
.features-wrap {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.features {
  display: grid;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(20, 27, 27, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
}

.features li + li {
  border-top: 1px solid var(--border);
}

.f-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.f-icon .i {
  width: 22px;
  height: 22px;
}

.features h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.features p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Sections */
.section {
  padding-top: 72px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 720;
}

.panel-text {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checks .i {
  margin-top: 2px;
  color: var(--primary);
}

/* Section heading */
.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

/* What we track */
.track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.track li {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.t-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.t-icon .i {
  width: 22px;
  height: 22px;
}

.track h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.track p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Care team */
.team {
  display: grid;
  gap: 24px;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.team-card.featured {
  border-color: var(--primary-line);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(45, 191, 174, 0.14), transparent 60%),
    var(--surface);
}

.team-card h3 {
  margin-top: 18px;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 700;
}

.team-card > p {
  margin-top: 10px;
  color: var(--muted);
}

.roster,
.services {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}

.roster li,
.services li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--raised);
}

.services li {
  align-items: flex-start;
}

.services .i {
  margin-top: 2px;
  color: var(--primary);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(45, 191, 174, 0.4);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 191, 174, 0.35), rgba(56, 189, 248, 0.2));
  font-size: 13px;
  font-weight: 700;
}

.roster .who {
  flex: 1;
  min-width: 0;
}

.roster strong,
.services strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.roster small,
.services small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.access {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.team-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Precision and daily plan */
.duo {
  display: grid;
  gap: 24px;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(45, 191, 174, 0.1), transparent 60%),
    var(--surface);
  container: panel / inline-size;
  display: grid;
}

.panel h2 {
  font-size: clamp(1.6rem, 2.4vw, 1.95rem);
}

.panel-inner {
  display: grid;
  align-items: center;
  align-content: center;
  gap: 32px;
  padding: 28px 20px;
}

@container panel (min-width: 540px) {
  .panel-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 36px 32px;
  }
}

.panel-visual {
  display: flex;
  justify-content: center;
}

/* Phone mock */
.phone {
  width: 200px;
  height: 400px;
  padding: 7px;
  border-radius: 36px;
  background: linear-gradient(145deg, #2A3636, #0D1313);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(80% 45% at 50% 42%, rgba(45, 191, 174, 0.18), transparent 70%),
    var(--bg);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 64px;
  height: 18px;
  margin-left: -32px;
  border-radius: 999px;
  background: #000;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  padding: 34px 16px 0;
  color: var(--muted);
}

.phone-top .i {
  width: 16px;
  height: 16px;
}

.phone-center {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 14px;
  text-align: center;
}

.mic {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow:
    0 0 0 10px rgba(45, 191, 174, 0.14),
    0 0 0 22px rgba(45, 191, 174, 0.06),
    0 12px 32px rgba(45, 191, 174, 0.4);
}

.mic::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.6;
  }

  to {
    transform: scale(1.9);
    opacity: 0;
  }
}

.mic .i {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.phone-prompt {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px 4px 16px;
  border-top: 1px solid var(--border);
  background: rgba(20, 27, 27, 0.8);
}

.phone-tabs > span {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.15;
  text-align: center;
}

.phone-tabs .i {
  width: 16px;
  height: 16px;
}

.phone-tabs .active {
  color: var(--primary);
}

/* Analysis mock */
.ai-card {
  width: 270px;
  max-width: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--raised);
  box-shadow:
    0 30px 60px -24px rgba(0, 0, 0, 0.85),
    0 0 60px -20px rgba(45, 191, 174, 0.3);
  font-size: 13px;
  line-height: 1.5;
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.ai-head .i {
  color: var(--primary);
}

.ai-summary {
  margin-top: 12px;
  color: var(--muted);
}

.ai-list {
  display: grid;
  margin-top: 12px;
  counter-reset: ai;
}

.ai-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--border);
  counter-increment: ai;
}

.ai-list li::before {
  content: counter(ai) ".";
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--primary);
  font-weight: 650;
}

.ai-list strong {
  display: block;
  font-weight: 600;
}

.ai-list small {
  color: var(--muted);
  font-size: 11.5px;
}

.ai-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.ai-actions span {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.ai-actions .ok {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

/* Hospitals and clinics */
.org {
  display: grid;
  align-items: center;
  gap: 32px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 100% at 0% 100%, rgba(45, 191, 174, 0.1), transparent 60%),
    var(--surface);
}

.log {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}

.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.log-head .i {
  color: var(--primary);
}

.log-tabs {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.log-tabs span {
  padding: 8px 0;
}

.log-tabs .active {
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 -2px var(--primary);
}

.log-scroll {
  margin-top: 4px;
  overflow-x: auto;
}

.log table {
  width: 100%;
  min-width: 400px;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.4;
}

.log th {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.log td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
}

.log td:first-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.log tr:last-child td {
  border-bottom: 0;
}

.org-checks {
  display: grid;
  gap: 16px;
}

.org-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(71, 205, 137, 0.14);
  color: var(--success);
}

.badge .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Contact band */
.band {
  display: grid;
  gap: 20px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(45, 191, 174, 0.14), var(--surface) 55%);
}

.band h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
}

.band-main p {
  margin-top: 8px;
  color: var(--muted);
}

.band-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-decoration: none;
}

.band-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.band-item strong {
  display: block;
  color: var(--primary);
  font-weight: 650;
}

a.band-item:hover strong {
  text-decoration: underline;
}

.band-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.foot {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.foot-top {
  display: grid;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.foot-brand p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.foot-nav a {
  font-weight: 500;
  text-decoration: none;
}

.foot-nav a:hover {
  color: var(--primary);
}

.foot-mail {
  justify-self: start;
}

.foot-bottom-line {
  border-top: 1px solid var(--border);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* The demo log drops its patient column on phones instead of scrolling. */
@media (max-width: 519px) {
  .log table {
    min-width: 0;
  }

  .log th:last-child,
  .log td:last-child {
    display: none;
  }
}

/* Phones: the header keeps room for the menu button; access chips drop under the name. */
@media (max-width: 479px) {
  .head-signin {
    display: none;
  }

  .roster li {
    flex-wrap: wrap;
  }

  .roster .who {
    flex-basis: calc(100% - 50px);
  }

  .access {
    margin-left: 50px;
  }
}

/* Wider screens */
@media (min-width: 560px) {
  .track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .features li + li {
    border-top: 0;
  }
}

@media (min-width: 720px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section {
    padding-top: 88px;
  }

  .org {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 40px;
  }

  .org-copy {
    grid-column: 1 / -1;
  }

  .team-card {
    padding: 36px 32px;
  }
}

@media (min-width: 900px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .nav,
  .head.open .nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-right: auto;
    padding: 0;
    background: none;
    border: 0;
  }

  .nav a {
    padding: 0;
  }

  .nav .nav-cta,
  .menu-btn {
    display: none;
  }

  .head-cta {
    display: inline-flex;
  }

  .hero {
    padding: 80px 0 150px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .dash {
    transform: perspective(1800px) rotateY(-14deg) rotateX(6deg) rotateZ(1deg);
    transform-origin: left center;
  }

  .features-wrap {
    margin-top: -80px;
  }

  .band {
    grid-template-columns: minmax(0, 1.6fr) auto auto;
    align-items: center;
    gap: 0;
    padding: 36px 40px;
  }

  .band-item {
    min-height: 56px;
    margin-left: 32px;
    padding: 0 0 0 32px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .foot-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
  }

  .foot-nav {
    justify-content: center;
  }
}

@media (min-width: 1100px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    padding: 24px 8px;
  }

  .features li {
    padding: 4px 20px;
  }

  .features li + li {
    border-left: 1px solid var(--border);
  }

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


  .org {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.6fr);
    gap: 40px;
  }

  .org-copy {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mic::after {
    animation: none;
    opacity: 0;
  }
}
