/* RevMed Systems: navy and blue from the logo; zTreatment's red is kept for the product mark only. */
:root {
  --ink: #1d2130;
  --muted: #5c6270;
  --navy: #282a3a;
  --navy-deep: #1b1d2a;
  --blue: #1e74d6;
  --blue-light: #5bb0ea;
  --spark: #f0813a;
  --paper: #ffffff;
  --wash: #f3f5f9;
  --line: #dde2ea;
  --z-red: #c8102e;
  --link: #1a5fb0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: var(--wash);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  flex-wrap: wrap;
}

.brand img { display: block; height: 46px; }

.site-header nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-header nav a,
.site-header nav button.link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  font-family: inherit;
}
.site-header nav a:hover,
.site-header nav button.link:hover { text-decoration: underline; }
.site-header nav a.button {
  background: var(--blue);
  padding: 9px 16px;
  border-radius: 5px;
}
.site-header nav a.button:hover { background: #1a64ba; text-decoration: none; }
.site-header form { margin: 0; }

main { flex: 1; padding: 32px 16px 48px; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 6px;
  padding: 32px 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.prose.narrow { max-width: 480px; }
.prose.wide { max-width: 1100px; }
.prose h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
.prose h2 { font-size: 1.35rem; margin: 30px 0 8px; color: var(--navy); }
.prose blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--blue); font-size: 1.15rem; color: var(--navy); }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose img { max-width: 100%; }
.prose .actions { margin: 28px 0 12px; }
.prose .button,
.home .button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 5px;
}
.prose .button:hover,
.home .button:hover { background: #1a64ba; }

/* The home page and the product page: content/public/{home,ztreatment}.md, a column of bands. */
.home { max-width: 1080px; margin: 0 auto; }
.home section { margin: 0 0 24px; }
.home .kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.home .zmark { height: 22px; width: auto; }

.home .hero {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 56px 56px 48px;
}
.home .hero .eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.home .hero h1 { font-size: 3rem; line-height: 1.1; margin: 0 0 18px; max-width: 900px; letter-spacing: -0.01em; text-wrap: balance; }
.home .hero .lead { font-size: 1.2rem; line-height: 1.6; margin: 0 0 28px; max-width: 740px; color: #dfe6f2; }
.home .promo-frame { margin: 0 0 28px; }
.home video.promo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.home .promo-frame .caption { margin: 12px 0 0; font-size: 15px; color: #b9c3d6; }
.home .actions { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.home .hero.centered { text-align: center; padding-top: 48px; }
.home .hero.centered h1,
.home .hero.centered .lead { margin-left: auto; margin-right: auto; }
.home .hero-logo { display: block; height: 104px; width: auto; margin: 0 auto 30px; }
.home .hero .now { margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 1.4rem; font-weight: 700; color: #fff; }
.home .centered .kicker { justify-content: center; }
.home .product-intro { text-align: center; }
.home .product-intro .lead { margin: 0 auto; max-width: 720px; }
.home .product-logo { display: block; height: 72px; width: auto; margin: 0 auto 22px; }
.home .product .promo-frame { margin: 8px 0 34px; }
.home .product .promo-frame .caption { color: var(--muted); }
.home .product h2 { text-align: center; margin-bottom: 20px; }
.home .button.ghost { background: transparent; border: 2px solid rgba(255, 255, 255, 0.6); padding: 11px 20px; }
.home .button.ghost:hover { background: rgba(255, 255, 255, 0.1); }

.home .band {
  background: var(--paper);
  border-radius: 10px;
  padding: 40px 56px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.home .band.plain { background: transparent; box-shadow: none; }
.home .band h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 14px; color: var(--navy); }
.home .band h2 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 12px; color: var(--navy); }
.home .band .lead { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 780px; }
.home .band .intro { margin: 0 0 22px; color: var(--muted); max-width: 780px; font-size: 1.05rem; }
.home .more { margin: 24px 0 0; font-weight: 600; }

/* The numbers band: the clinic's record. */
.home .numbers { text-align: center; }
.home .numbers .kicker { justify-content: center; color: var(--muted); }
.home .stats {
  list-style: none;
  margin: 18px 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.home .stats li { display: grid; gap: 4px; padding: 10px 8px; border-left: 1px solid var(--line); }
.home .stats li:first-child { border-left: 0; }
.home .stats strong { font-size: 2.6rem; line-height: 1.1; color: var(--blue); font-weight: 700; }
.home .stats span { font-size: 15px; color: var(--muted); }
.home .numbers .source { margin: 0; font-size: 14px; color: var(--muted); }

/* A moment of care: a photo beside its words. Photos alternate sides. */
.home .moment { display: grid; grid-template-columns: 5fr 6fr; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.home .moment:first-of-type { border-top: 0; }
.home .moment:nth-of-type(even) .photo { order: 2; }
.home .moment h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 10px; color: var(--navy); }
.home .moment p { margin: 0; }
.home .photo { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--wash); }
.home .photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home .photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
  border: 2px dashed #b7c6dd;
  background: repeating-linear-gradient(135deg, #e9eef6 0 14px, #f3f5f9 14px 28px);
}

.home .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 36px; margin-top: 8px; }
.home .feature h3 { font-size: 1.15rem; margin: 0 0 8px; color: var(--navy); }
.home .feature p { margin: 0; }

/* The outcomes picture. */
.home .proof { padding: 24px; }
.home .proof figure { margin: 0; }
.home .proof img { display: block; width: 100%; height: auto; border-radius: 6px; }
.home .proof figcaption { margin: 14px 8px 4px; font-size: 15px; color: var(--muted); max-width: 900px; }

/* The story band is dark, like the hero. */
.home .story { background: var(--navy); color: #e4e9f3; }
.home .story .kicker { color: var(--blue-light); }
.home .story h2 { color: #fff; }
.home .story p { max-width: 820px; font-size: 1.08rem; }
.home .story a { color: var(--blue-light); }

/* Three proofs side by side. */
.home .cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 6px; }
.home .card3 { border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.home .card3 strong { font-size: 2.2rem; line-height: 1.1; color: var(--blue); }
.home .card3 p { margin: 0; font-size: 16px; }
.home .card3 .cite { font-size: 14px; color: var(--muted); }

.home .takes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 820px; }
.home .takes li { padding-left: 18px; border-left: 3px solid var(--blue); }
.home .takes b { color: var(--navy); }

.home .cta { text-align: center; background: var(--navy); color: #e4e9f3; }
.home .cta h2 { color: #fff; }
.home .cta p { margin: 0 auto 18px; max-width: 680px; }
.home .cta a { color: var(--blue-light); }
.home .cta .actions { justify-content: center; }
.home .cta .button { color: #fff; }

.muted { color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
}
.card:hover { border-color: var(--navy); }
.card h2 { margin: 0 0 6px; font-size: 1.15rem; color: var(--link); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.code-form { display: grid; gap: 10px; margin-top: 20px; }
.code-form label { font-weight: 600; }
.code-form input[type="text"] {
  font: inherit;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border: 1px solid #9aa4b5;
  border-radius: 4px;
}
.code-form button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 4px;
  padding: 11px 16px;
  cursor: pointer;
}
.error { color: var(--z-red); margin: 0; }

video { width: 100%; background: #000; border-radius: 4px; }

/* Videos: a featured video, then each series as a numbered playlist; a video plays beside its series. */
.videos .eyebrow {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.videos .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--navy);
}
.videos .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.videos .time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.videos .thumb .num {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-video {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: center;
  margin: 20px 0 36px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.feature-video:hover { border-color: var(--navy); }
.feature-video .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(30, 116, 214, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.feature-video .play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 21px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent #fff;
}
.feature-video .text { display: grid; gap: 8px; }
.feature-video strong { font-size: 1.4rem; line-height: 1.25; color: var(--navy); }
.feature-video .text > span:last-child { color: var(--muted); }

.playlist h2 { margin-bottom: 4px; }
.playlist .tiles {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px 22px;
}
.playlist .tiles a { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.playlist .tiles strong { font-size: 1.05rem; line-height: 1.3; color: var(--navy); margin-top: 4px; }
.playlist .tiles .desc { font-size: 14px; line-height: 1.45; color: var(--muted); }
.playlist .tiles a:hover strong { color: var(--link); text-decoration: underline; }
.playlist .tiles a:hover .thumb img { opacity: 0.9; }

.watch.with-playlist { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.watch h1 { font-size: 1.7rem; margin: 0 0 14px; }
.watch .player { position: relative; }
.watch .lede { color: var(--muted); margin: 14px 0 0; }
.up-next {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: rgba(27, 29, 42, 0.9);
  border-radius: 4px;
}
.up-next[hidden] { display: none; }
.up-next p { margin: 0; color: var(--blue-light); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.up-next strong { font-size: 1.3rem; }
.up-next .count { text-transform: none; letter-spacing: 0; font-size: 15px; color: #e4e9f3; }
.up-next-actions { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.videos .button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 4px;
}
.videos button.link {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.step-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.step-nav a {
  display: grid;
  gap: 2px;
  max-width: 48%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.step-nav a span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.step-nav a:hover { border-color: var(--navy); }
.step-nav .next { margin-left: auto; text-align: right; }

.watch-list h2 { font-size: 1.1rem; margin: 0 0 10px; display: grid; gap: 2px; }
.watch-list h2 .muted { font-size: 14px; font-weight: 400; }
.watch-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 70vh; overflow-y: auto; }
.watch-list a {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
.watch-list a:hover { background: var(--wash); }
.watch-list .current a { background: #e4ecf7; font-weight: 600; }
.watch-list .thumb { border-radius: 4px; }
.watch-list .time { right: 4px; bottom: 4px; font-size: 11px; padding: 0 4px; }
.watch-list .text .num { display: inline-block; min-width: 1.6em; color: var(--blue); font-weight: 700; }

@media (max-width: 900px) {
  .watch.with-playlist { grid-template-columns: 1fr; }
  .watch-list ol { max-height: none; }
  .feature-video { grid-template-columns: 1fr; gap: 14px; }
}

.site-footer { text-align: center; color: var(--muted); font-size: 14px; padding: 22px 16px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  .site-header { padding: 8px 16px; }
  .brand img { height: 38px; }
  .site-header nav { gap: 14px; }
  .prose { padding: 22px 18px; }
  .home .hero { padding: 32px 20px 28px; }
  .home .hero h1 { font-size: 2.1rem; }
  .home .band { padding: 26px 20px; }
  .home .band h1 { font-size: 2rem; }
  .home .band h2 { font-size: 1.5rem; }
  .home .moment { grid-template-columns: 1fr; gap: 16px; }
  .home .moment:nth-of-type(even) .photo { order: 0; }
  .home .stats li { border-left: 0; }
  .home .proof { padding: 12px; }
}
