@font-face {
  font-family: 'Syne';
  src: url('fonts/Syne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('fonts/Syne-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('fonts/Syne-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('fonts/Syne-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('fonts/Syne-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg: #1c1c1e;
  --muted: #6b6b70;
  --accent: #f47700;
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.82);
  --card: #f3f3f6;
  --rule: #e4e4e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f2f7;
    --muted: #a1a1a6;
    --accent: #ff9f40;
    --bg: #0b0b0d;
    --surface: #111113;
    --surface-translucent: rgba(17, 17, 19, 0.78);
    --card: #1c1c1e;
    --rule: #2c2c2e;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 "Syne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 12px;
}

nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--card);
}

a { color: var(--accent); }

strong { font-weight: 650; }

footer {
  margin-top: 48px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface-translucent);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
    margin-bottom: 26px;
  }
}

.page-wide main {
  max-width: 920px;
}

.page-wide nav,
.page-guide nav {
  max-width: 672px;
  margin: 0 auto 36px;
}

.page-hero header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.page-hero h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.05;
  margin: 14px 0 8px;
}

.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 700px;
}

.page-search {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 28px;
}

.page-search label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-search input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  padding: 10px 12px;
}

.page-search input:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.page-search-status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
  min-height: 1.4em;
}

[hidden] {
  display: none !important;
}

.appstore {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 12px;
}

.qr {
  margin: 0;
  text-align: center;
}

.qr img {
  width: 132px;
  height: 132px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: block;
}

.note,
.callout {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-standard h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

.page-standard h2 {
  font-size: 1.25rem;
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.page-standard h3 {
  font-size: 1.05rem;
  margin: 20px 0 4px;
}

.meta {
  color: var(--muted);
  margin: 0 0 8px;
}

.lede {
  font-size: 1.05rem;
}

.page-standard ul {
  padding-left: 1.25rem;
}

.page-standard li {
  margin: 6px 0;
}

.page-medical ol,
.page-medical ul {
  padding-left: 1.25rem;
}

.page-medical li {
  margin: 10px 0;
}

.team {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.team li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 14px 0;
}

.team .name {
  font-weight: 700;
  font-size: 1.08rem;
  display: block;
}

.team .title {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  margin: 2px 0 10px;
}

.team p {
  margin: 0;
}

.page-home h2 {
  font-size: 1.25rem;
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.page-home p.lede {
  font-size: 1.05rem;
}

.page-home ul {
  padding-left: 1.25rem;
}

.page-home li {
  margin: 8px 0;
}

.links {
  list-style: none;
  padding: 0;
}

.page-home .links {
  margin: 12px 0 0;
}

.page-not-found .links {
  margin: 0;
  text-align: left;
}

.links li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}

.links a {
  text-decoration: none;
  font-weight: 600;
}

.links .sub {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

ul.tool-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.tool-row img {
  width: 120px;
  flex: 0 0 120px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.tool-row p {
  margin: 0;
}

.tool-row:nth-child(even) {
  flex-direction: row-reverse;
}

.install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.page-home .appstore {
  font-weight: 600;
  font-size: 1.05rem;
}

.qr figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.page-centered-footer footer,
.page-home footer {
  text-align: center;
}

@media (max-width: 720px) {
  .page-home main {
    padding: 24px 18px 72px;
  }
}

@media (max-width: 520px) {
  .tool-row {
    flex-direction: column;
    text-align: center;
  }

  .tool-row img {
    width: 150px;
    flex: none;
  }
}

@keyframes anim-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes anim-bounce-in {
  0% { opacity: 0; transform: translateY(-16px); }
  60% { opacity: 1; transform: translateY(8px); }
  80% { transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes anim-slide-in {
  from { opacity: 0; transform: translateX(-10%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes anim-slide-top-in {
  from { transform: translateY(-20%); }
  to { transform: translateY(0); }
}

@keyframes anim-slide-right-2-in {
  from { transform: translateX(-2%); }
  to { transform: translateX(0); }
}

@keyframes anim-slide-right-10-in {
  from { transform: translateX(-10%); }
  to { transform: translateX(0); }
}

@keyframes anim-slide-left-5-in {
  from { transform: translateX(5%); }
  to { transform: translateX(0); }
}

.js-anim {
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

.anim-fade,
.anim-fade-delayed,
.anim-bounce,
.anim-slide {
  opacity: 0;
}

.anim-fade.is-visible {
  animation: anim-fade-in 1000ms ease-in-out both;
}

.anim-fade-delayed.is-visible {
  animation: anim-fade-in 1000ms ease-in-out 100ms both;
}

.anim-bounce.is-visible {
  animation: anim-bounce-in 1000ms ease-in-out both;
}

.anim-slide.is-visible {
  animation: anim-slide-in 1000ms ease-in-out 100ms both;
}

.anim-slide-top.is-visible {
  animation: anim-slide-top-in 1000ms ease-in-out both;
}

.anim-slide-right-2.is-visible {
  animation: anim-slide-right-2-in 1200ms ease-in-out both;
}

.anim-slide-right-10.is-visible {
  animation: anim-slide-right-10-in 1000ms ease-in-out both;
}

.anim-slide-left-5.is-visible {
  animation: anim-slide-left-5-in 1000ms ease-in-out both;
}

@media (prefers-reduced-motion: reduce) {
  .js-anim,
  .js-anim.is-visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.page-quick-start .toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 46px;
  padding: 0;
  list-style: none;
}

.page-quick-start .toc a {
  display: block;
  height: 100%;
  color: var(--fg);
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 650;
}

.page-quick-start .toc span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
  margin-top: 2px;
}

.page-quick-start section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

.page-quick-start section:nth-of-type(even) figure {
  order: -1;
}

.page-quick-start section.text-only {
  grid-template-columns: minmax(0, 1fr);
}

.step-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-quick-start h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.18;
  margin: 0 0 10px;
}

.page-quick-start h3 {
  font-size: 1.08rem;
  margin: 20px 0 8px;
}

.page-quick-start p {
  margin: 0 0 12px;
}

.page-quick-start p.lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 30px;
}

.page-quick-start ul {
  padding-left: 1.2rem;
  margin: 0;
}

.page-quick-start li {
  margin: 7px 0;
}

.page-quick-start strong {
  font-weight: 700;
}

.page-quick-start figure {
  margin: 0;
  text-align: center;
}

.page-quick-start figure img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  background: var(--card);
}

.page-quick-start figcaption {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 8px;
}

.beyond {
  border-top: 1px solid var(--rule);
  padding-top: 34px;
  margin-top: 8px;
}

.beyond h2 {
  margin-bottom: 14px;
}

.beyond ul {
  padding-left: 1.25rem;
}

.beyond li {
  margin: 10px 0;
}

.page-quick-start .install {
  margin: 36px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.page-quick-start footer,
.page-guide footer {
  margin-top: 42px;
}

@media (max-width: 720px) {
  .page-quick-start main {
    padding: 24px 18px 72px;
  }

  .page-quick-start .toc {
    grid-template-columns: 1fr;
  }

  .page-quick-start section {
    display: block;
  }

  .page-quick-start section figure {
    margin: 22px auto 0;
  }

  .page-quick-start section:nth-of-type(even) figure {
    order: initial;
  }
}

.page-guide {
  line-height: 1.65;
}

.page-guide main {
  max-width: 980px;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.page-guide .toc {
  position: sticky;
  top: 16px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
}

.page-guide .toc h2 {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.page-guide .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-guide .toc li {
  margin: 4px 0;
}

.page-guide .toc li.sub {
  padding-left: 14px;
}

.page-guide .toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.page-guide .toc li.sub a {
  font-size: 0.82rem;
}

.page-guide .toc a:hover {
  color: var(--accent);
}

.page-guide article {
  min-width: 0;
}

.page-guide section {
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

.page-guide section:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-guide h2 {
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1.18;
  margin: 0 0 12px;
}

.page-guide section.subsection {
  padding-left: 20px;
  margin-left: 4px;
  border-left: 2px solid var(--rule);
}

.page-guide section.subsection h2 {
  font-size: 1.2rem;
}

.page-guide section.subsection h2::before {
  content: "\00b7\00a0";
  color: var(--accent);
}

.page-guide h3 {
  font-size: 1.08rem;
  margin: 24px 0 6px;
}

.page-guide h4 {
  font-size: 0.98rem;
  margin: 18px 0 4px;
}

.page-guide p {
  margin: 0 0 13px;
}

.page-guide ul,
.page-guide ol {
  padding-left: 1.25rem;
  margin-top: 0;
}

.page-guide li {
  margin: 7px 0;
}

.page-guide strong {
  font-weight: 700;
}

.page-guide .callout,
.page-guide .note {
  margin: 16px 0;
}

.diagram {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.diagram div {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 11px 14px;
  text-align: center;
  font-weight: 650;
}

.arrow {
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.page-guide figure {
  margin: 18px 0;
  text-align: center;
}

.page-guide figure img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  background: var(--card);
}

.page-guide figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.watch-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 18px 0;
}

.watch-gallery figure {
  flex: 0 1 180px;
  margin: 0;
}

.watch-gallery figure img {
  width: min(100%, 180px);
  border-radius: 24px;
}

.page-guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.page-guide th,
.page-guide td {
  border-bottom: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 150px;
}

.page-guide th {
  background: var(--card);
}

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

@media (max-width: 820px) {
  .page-guide main {
    padding: 24px 18px 72px;
  }

  .layout {
    display: block;
  }

  .page-guide .toc {
    position: static;
    margin-bottom: 28px;
  }

  .page-guide .toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
  }
}

@media (max-width: 520px) {
  .page-guide .toc ul {
    grid-template-columns: 1fr;
  }
}

.page-videos section {
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

.page-videos section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.page-videos h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.clips {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.clip {
  width: 220px;
  text-align: center;
}

.clip video,
.clip iframe {
  width: 220px;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  background: var(--card);
  display: block;
}

.clip figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.clip figcaption strong {
  color: var(--fg);
  display: block;
  font-size: 0.95rem;
}

.page-videos figure {
  margin: 0;
}

@media (max-width: 600px) {
  .clips {
    justify-content: center;
  }
}

.page-not-found main {
  max-width: 560px;
  padding: 72px 24px 96px;
  text-align: center;
}

.page-not-found nav {
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .page-not-found nav {
    margin-bottom: 38px;
  }
}

.code {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 20px 0 6px;
}

.page-not-found h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.page-not-found p.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

/* ---- Home page: tour of the app's five areas ---- */
.tour-intro {
  margin: 0 0 8px;
  color: var(--muted);
}

.showcase {
  margin: 28px 0 0;
}

.showcase h3 {
  margin: 0 0 2px;
  font-size: 1.12rem;
}

.showcase > p {
  margin: 0 0 14px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shots.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 66%;
  margin-inline: auto;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.shots figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
}

.shots figcaption strong {
  display: block;
  color: var(--fg);
}

@media (max-width: 640px) {
  .shots,
  .shots.two {
    display: flex;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .shots figure {
    flex: 0 0 62%;
    scroll-snap-align: start;
  }
}
