:root {
  color-scheme: light;
  --ink: #14211f;
  --muted: #5f6f6b;
  --line: #d6e1dd;
  --mist: #edf5f2;
  --paper: #fbfefd;
  --panel: #ffffff;
  --teal: #11665f;
  --aqua: #d5f1ea;
  --sage: #78958c;
  --night: #10201e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a,
button {
  color: inherit;
}

main {
  overflow: hidden;
}

section {
  padding: clamp(52px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(17, 102, 95, 0.13), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 42px;
  font-size: 14px;
}

nav strong {
  font-size: 20px;
  letter-spacing: 0;
}

nav span {
  max-width: 320px;
  color: var(--muted);
  text-align: right;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(288px, 390px);
  align-items: center;
  gap: clamp(30px, 7vw, 86px);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  max-width: 820px;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.intro {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--night);
  border-radius: 999px;
  padding: 13px 18px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button.primary {
  background: var(--night);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.5);
}

.button:hover,
.button:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
}

.patient-card {
  width: min(100%, 390px);
  justify-self: end;
  border: 1px solid rgba(20, 33, 31, 0.13);
  border-radius: 24px;
  padding: 18px;
  background: var(--night);
  box-shadow: 0 28px 78px rgba(26, 62, 58, 0.22);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

.card-header strong {
  color: white;
}

.field {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.field + .field {
  margin-top: 12px;
}

.field.active {
  background: var(--aqua);
  color: var(--ink);
}

.field small {
  display: block;
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field strong {
  display: block;
  margin-bottom: 8px;
}

.field p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.82;
}

.clinic-band {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) 1fr;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
  background: #f7fbfa;
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--panel);
  font-size: 0.86rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 0.72fr);
  gap: 24px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps-grid article {
  min-height: 250px;
  padding: clamp(22px, 3vw, 34px);
  background: white;
}

.steps-grid article span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--teal);
  font-weight: 850;
}

.steps-grid p,
.panel p {
  color: var(--muted);
  line-height: 1.65;
}

.flow {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 420px);
  gap: clamp(26px, 7vw, 84px);
  align-items: center;
  background: var(--night);
  color: white;
}

.panel {
  max-width: 720px;
}

.flow .eyebrow {
  color: var(--aqua);
}

.panel p {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
}

.crm-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.row:last-child {
  border-bottom: 0;
}

.row span {
  color: rgba(255, 255, 255, 0.62);
}

.row strong {
  text-align: right;
}

.faq {
  max-width: 1180px;
  margin: 0 auto;
}

.faq h2 {
  max-width: 760px;
  margin-bottom: 32px;
}

.questions {
  display: grid;
  gap: 10px;
}

.questions button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease;
}

.questions button:hover,
.questions button:focus-visible {
  border-color: var(--teal);
  transform: translateX(4px);
}

@media (max-width: 860px) {
  section {
    padding-inline: 18px;
  }

  nav,
  .hero-grid,
  .section-head,
  .flow,
  .clinic-band {
    grid-template-columns: 1fr;
  }

  nav {
    align-items: flex-start;
  }

  nav span {
    text-align: left;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.8rem);
  }

  .patient-card {
    justify-self: start;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid article {
    min-height: 0;
  }

  .steps-grid article span {
    margin-bottom: 32px;
  }

  .row {
    display: grid;
  }

  .row strong {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
