:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #536174;
  --soft: #f7fbff;
  --paper: #ffffff;
  --line: #cfe2f4;
  --line-strong: #9ed0ff;
  --blue: #5ab4ff;
  --blue-dark: #1b75bb;
  --mint: #8ee6ca;
  --mint-dark: #177b68;
  --yellow: #ffe49c;
  --coral: #ff9b8c;
  --shadow: 0 22px 60px rgba(34, 88, 133, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--soft);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(142, 230, 202, 0.28), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(90, 180, 255, 0.18), transparent 26rem),
    var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mint-dark);
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(207, 226, 244, 0.85);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(142, 230, 202, 0.9), rgba(90, 180, 255, 0.8)),
    var(--paper);
  box-shadow: 0 8px 18px rgba(34, 88, 133, 0.14);
  font-size: 18px;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 72px 0 56px;
}

.hero > *,
.grid > *,
.legal-layout > * {
  min-width: 0;
}

.hero.compact {
  min-height: auto;
  padding: 70px 0 36px;
}

.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #31536f;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

p,
li,
a,
strong {
  overflow-wrap: break-word;
}

h1 {
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 5.9rem);
}

.page-title {
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 63ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 760;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.hero-lab {
  position: relative;
  min-height: 420px;
}

.device-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.device-top {
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #1b2540;
}

.breath-panel {
  display: grid;
  min-height: 170px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(90, 180, 255, 0.36), rgba(142, 230, 202, 0.56));
}

.breath-ring {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 12px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(27, 117, 187, 0.18);
  color: #17475c;
  font-weight: 850;
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 10px;
  margin-top: 14px;
}

.signal-row span {
  height: 12px;
  border-radius: 99px;
  background: #dce8f3;
}

.lab-note {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: min(270px, 72%);
  padding: 16px;
  border: 1px solid #bde2d9;
  border-radius: 14px;
  background: #f6fffc;
  box-shadow: 0 14px 36px rgba(23, 123, 104, 0.12);
}

.lab-note strong {
  display: block;
  margin-bottom: 4px;
}

.lab-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(207, 226, 244, 0.8);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}

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

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

.panel,
.app-card,
.doc-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.panel,
.doc-card,
.faq-item {
  padding: 22px;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(34, 88, 133, 0.08);
}

.app-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(27, 117, 187, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  color: #10332d;
  font-weight: 900;
}

.app-card p,
.panel p,
.doc-card p,
.faq-item p,
.steps p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 42px;
  align-items: start;
  padding: 58px 0 72px;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.toc p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.doc h1 {
  max-width: none;
  margin-top: 10px;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
}

.doc h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc strong {
  color: var(--ink);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  counter-increment: step;
}

.steps li::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  content: counter(step);
  font-weight: 800;
}

.fine-print {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #f0dba2;
  border-radius: 8px;
  background: #fff9e6;
  color: #6f5d26;
}

.site-footer {
  padding: 30px 0 42px;
  border-top: 1px solid rgba(207, 226, 244, 0.9);
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

@media (max-width: 820px) {
  .site-shell {
    width: calc(100% - 40px);
    max-width: 680px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .legal-layout,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 50px;
  }

  .hero-lab {
    min-height: 360px;
  }

  .device-card {
    margin-left: 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .toc {
    position: static;
  }

  .doc {
    padding: 24px 18px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-shell {
    width: 100%;
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    max-width: 9ch;
    font-size: 2.7rem;
  }

  .page-title {
    max-width: 10ch;
    font-size: 2.45rem;
  }

  .lead {
    max-width: 100%;
    font-size: 1rem;
  }

  .actions,
  .footer-row,
  .footer-row nav {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .app-card,
  .steps li {
    grid-template-columns: 1fr;
  }

  .lab-note {
    position: relative;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }
}
