:root {
  color-scheme: light;
  --ink: #171a17;
  --muted: #59615d;
  --quiet: #767e79;
  --paper: #f7f4ee;
  --paper-2: #edf6f1;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --line: #d9ddd6;
  --blue: #2079c8;
  --blue-soft: #dcecfb;
  --teal: #179b92;
  --teal-soft: #dff4ef;
  --green: #258256;
  --amber: #b86b1d;
  --coral: #ba4a3d;
  --charcoal: #17211f;
  --shadow: 0 18px 60px rgba(23, 26, 23, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

p,
ul,
ol {
  color: var(--muted);
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.55rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 221, 214, 0.82);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(23, 26, 23, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  padding: 0.5rem 0.72rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 72px));
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(23, 33, 31, 0.92) 0%, rgba(23, 33, 31, 0.78) 38%, rgba(23, 33, 31, 0.44) 100%),
    linear-gradient(135deg, #24352f 0%, #dfeee8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 244, 238, 0), var(--paper));
  z-index: -1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.92;
}

.hero-shot {
  position: absolute;
  width: clamp(178px, 22vw, 292px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.hero-shot.primary {
  right: clamp(24px, 10vw, 140px);
  top: 7%;
}

.hero-shot.secondary {
  right: clamp(168px, 29vw, 410px);
  top: 20%;
  transform: scale(0.88);
  opacity: 0.88;
}

.hero-shot.tertiary {
  right: clamp(-30px, 2vw, 54px);
  top: 27%;
  transform: scale(0.82);
  opacity: 0.72;
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 12vw, 132px) 0 clamp(110px, 18vw, 170px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5fff9;
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 1.1rem;
  padding: 0.44rem 0.72rem;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: 0;
  margin: 0;
  max-width: 760px;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  margin: 1.3rem 0 0;
  max-width: 620px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  color: var(--charcoal);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.button.dark {
  background: var(--charcoal);
  color: #ffffff;
}

.button.light {
  background: var(--surface);
  border-color: var(--line);
  color: var(--charcoal);
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: clamp(58px, 9vw, 96px) 0;
}

.section.tight {
  padding: clamp(36px, 6vw, 60px) 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  max-width: 740px;
}

.section-heading h2,
.doc-hero h1,
.product-hero h1 {
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
}

.section-heading p,
.doc-hero p,
.product-hero p {
  font-size: 1.08rem;
  margin: 1rem 0 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.panel,
.feature-card,
.legal-card,
.support-card {
  background: var(--surface);
  border: 1px solid rgba(217, 221, 214, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(23, 26, 23, 0.05);
}

.panel {
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.feature-card,
.legal-card,
.support-card {
  padding: 1.15rem;
}

.feature-card h3,
.legal-card h2,
.support-card h2,
.panel h3 {
  color: var(--ink);
  font-size: 1.12rem;
  margin: 0 0 0.55rem;
}

.feature-card p,
.legal-card p,
.support-card p,
.panel p {
  margin: 0;
}

.feature-card .kicker,
.legal-card .kicker,
.status-pill {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.status-pill {
  background: var(--teal-soft);
  border-radius: 999px;
  display: inline-flex;
  padding: 0.35rem 0.58rem;
}

.split-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.product-strip {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.product-copy h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  margin: 0;
}

.product-copy p {
  font-size: 1.08rem;
}

.screens-row {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  align-items: flex-start;
  justify-content: center;
}

.phone-frame {
  background: #111;
  border: 1px solid rgba(23, 26, 23, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  max-width: 210px;
  overflow: hidden;
  padding: 5px;
}

.phone-frame:nth-child(2) {
  margin-top: 2rem;
}

.phone-frame img {
  border-radius: 23px;
}

.product-hero {
  background:
    linear-gradient(90deg, rgba(23, 33, 31, 0.9), rgba(23, 33, 31, 0.56)),
    url("/assets/healthsync-overview.png") center right / auto 105% no-repeat,
    #1d2b28;
  color: #ffffff;
  min-height: 620px;
  padding: clamp(74px, 12vw, 126px) 0 clamp(74px, 11vw, 118px);
}

.product-hero h1,
.product-hero p {
  color: #ffffff;
}

.product-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
}

.product-hero .eyebrow {
  color: #ffffff;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.proof-row span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 0.72rem;
}

.doc-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(54px, 9vw, 90px) 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.doc-nav a {
  display: block;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  text-decoration: none;
}

.doc-nav a:hover,
.doc-nav a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--ink);
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-card h2 {
  font-size: 1.35rem;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 0.8rem;
}

.callout {
  background: var(--teal-soft);
  border: 1px solid rgba(23, 155, 146, 0.24);
  border-radius: var(--radius);
  padding: 1rem;
}

.callout p {
  color: #25534d;
}

.warning {
  background: #fff4e4;
  border-color: rgba(184, 107, 29, 0.24);
}

.warning p {
  color: #674018;
}

.footer {
  background: var(--charcoal);
  color: #ffffff;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.76);
}

.footer a:hover {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.updated {
  color: var(--quiet);
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.9rem 0;
  }

  .site-header {
    position: static;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 70px;
  }

  .hero-shot.primary {
    right: -34px;
    top: 10%;
    opacity: 0.46;
  }

  .hero-shot.secondary {
    display: none;
  }

  .hero-shot.tertiary {
    right: 116px;
    top: 42%;
    opacity: 0.26;
  }

  .grid.three,
  .grid.two,
  .product-strip,
  .doc-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
  }

  .screens-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.7rem;
  }

  .phone-frame {
    min-width: 172px;
  }

  .product-hero {
    background:
      linear-gradient(90deg, rgba(23, 33, 31, 0.9), rgba(23, 33, 31, 0.68)),
      url("/assets/healthsync-overview.png") 86% center / auto 92% no-repeat,
      #1d2b28;
  }

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

@media (max-width: 520px) {
  .container,
  .header-inner,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .site-nav a {
    padding-inline: 0.52rem;
  }

  .hero h1,
  .section-heading h2,
  .doc-hero h1,
  .product-hero h1 {
    font-size: 2.55rem;
  }
}
