/* DigiHealthCloud — navy / paper palette.
   Edit colors here once and the whole site follows. */

:root {
  --navy:        #0c1f38;
  --navy-deep:   #071426;
  --navy-soft:   #1b3557;
  --paper:       #f7f4ee;
  --paper-dim:   #e9e4da;
  --ink:         #16202e;
  --ink-soft:    #5b6779;
  --signal:      #2ea3a5;   /* waveform / accent */
  --signal-dim:  rgba(46, 163, 165, 0.16);
  --line:        rgba(12, 31, 56, 0.12);
  --radius:      14px;
  --maxw:        1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 31, 56, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 700; letter-spacing: -0.01em; }
.brand svg { display: block; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: rgba(247,244,238,0.78); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--paper); }
.nav .btn-sm {
  background: var(--signal); color: #04201f; padding: 8px 16px;
  border-radius: 999px; font-weight: 600;
}
.nav .btn-sm:hover { background: #3fb9bb; color: #04201f; }
@media (max-width: 720px) { .nav a:not(.btn-sm) { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  padding: 92px 0 0;
  position: relative; overflow: hidden;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--signal);
  border: 1px solid var(--signal-dim); background: var(--signal-dim);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 20px; max-width: 18ch; font-weight: 700;
}
.hero p.lede { font-size: clamp(17px, 2.1vw, 20px); color: rgba(247,244,238,0.8); max-width: 60ch; margin: 0 0 32px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 60px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--signal); color: #04201f; }
.btn-primary:hover { background: #3fb9bb; }
.btn-ghost { border-color: rgba(247,244,238,0.3); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); }

/* waveform strip at the bottom of the hero */
.waveform { display: block; width: 100%; height: 88px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 700;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 14px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--signal-dim);
  display: flex; align-items: center; justify-content: center; color: #12706f;
}

/* how it works */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px;
}
.step h3 { margin: 6px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-soft); }

/* market pulse (scraper-fed) */
.pulse { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
@media (max-width: 620px) { .stat-row { grid-template-columns: 1fr; } }
.stat { border-left: 3px solid var(--signal); padding-left: 16px; }
.stat .num { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat .lbl { color: var(--ink-soft); font-size: 15px; }
.trial-list { list-style: none; padding: 0; margin: 0; }
.trial-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.trial-list a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 16px; }
.trial-list a:hover { text-decoration: underline; }
.trial-meta { color: var(--ink-soft); font-size: 14px; margin-top: 3px; }
.stamp { color: var(--ink-soft); font-size: 14px; margin-top: 20px; }

/* contact */
.contact { background: var(--navy); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact .section-head p { color: rgba(247,244,238,0.75); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: rgba(247,244,238,0.85); }
.field input, .field textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; padding: 12px 14px; color: var(--paper);
  font-family: inherit; font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
.form-note { font-size: 14px; color: rgba(247,244,238,0.6); margin-top: 12px; }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(247,244,238,0.6); padding: 30px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: rgba(247,244,238,0.75); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* simple content pages (privacy) */
.doc { max-width: 72ch; margin: 0 auto; padding: 60px 24px 80px; }
.doc h1 { letter-spacing: -0.02em; }
.doc h2 { margin-top: 34px; letter-spacing: -0.01em; }
.doc a { color: #12706f; }

/* form: consent row, states, and the bot honeypot */
.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 18px; font-size: 15px; color: rgba(247,244,238,0.85); cursor: pointer;
}
.check-row input { margin-top: 3px; accent-color: var(--signal); width: 16px; height: 16px; }
.form-error {
  margin: 12px 0 0; font-size: 15px; color: #ffb4a8;
}
.form-note a { color: var(--signal); }
.form-done {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 28px 26px;
}
.form-done h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.form-done p { margin: 0 0 18px; color: rgba(247,244,238,0.8); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------- device catalog */

.nav .nav-current { color: var(--paper); border-bottom: 2px solid var(--signal); padding-bottom: 2px; }

.catalog-head {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--paper);
  padding: 64px 0 56px;
}
.catalog-head h1 {
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 0 16px; font-weight: 700; max-width: 20ch;
}
.catalog-head .lede { color: rgba(247,244,238,0.8); max-width: 62ch; margin: 0; font-size: 18px; }

.catalog-body { padding: 40px 0 80px; }
.catalog-body .wrap, .catalog-head .wrap { max-width: 1320px; }

.filters {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 22px;
}
.filter { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.filter-grow { flex: 1 1 260px; }
.filter label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.filter input, .filter select {
  font-family: inherit; font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; min-height: 42px;
}
.filter select { cursor: pointer; }
.filter input:focus, .filter select:focus { outline: 2px solid var(--signal); outline-offset: 1px; }

.result-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px;
}
.result-bar strong { color: var(--ink); font-size: 17px; }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; color: #12706f; text-decoration: underline;
}

.catalog-empty {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center;
}
.catalog-empty h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.catalog-empty p { margin: 0 auto; color: var(--ink-soft); max-width: 60ch; }

.muted { color: var(--ink-soft); font-size: 15px; }
.catalog-body .stamp a { color: #12706f; }
.device-class { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 13.5px; font-style: italic; }

/* catalog table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.device-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.device-table thead th {
  text-align: left; vertical-align: bottom; white-space: nowrap;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: #fbfaf8; color: var(--ink-soft); font-size: 13px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.th-sort {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.th-sort:hover { color: var(--ink); }
.th-sort.is-active { color: var(--navy); }
.th-arrow { font-size: 10px; opacity: 0.6; }
.th-sort.is-active .th-arrow { opacity: 1; color: var(--signal); }

.device-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.device-table tbody tr:last-child td { border-bottom: none; }
.device-table tbody tr:hover { background: #fbfaf8; }
.td-device { display: block; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.td-classification { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 13px; font-style: italic; }
.td-company { color: var(--ink-soft); }
.td-date { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.td-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.device-table .col-narrow { width: 1%; white-space: nowrap; }
.device-table td a { color: #12706f; font-weight: 600; font-variant-numeric: tabular-nums; }
.device-table td a:hover { text-decoration: underline; }
