:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --ink: #16201d;
  --muted: #60706b;
  --line: #dfe8e4;
  --teal: #087c72;
  --teal-dark: #075d56;
  --green: #33b07a;
  --mint: #dff6ed;
  --graphite: #26312e;
  --shadow: 0 24px 70px rgba(15, 39, 34, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(246, 248, 246, 0.92);
  border-bottom: 1px solid rgba(223, 232, 228, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.header-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 700;
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: auto;
  padding: clamp(44px, 6vw, 78px) clamp(20px, 5vw, 78px) 46px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.8vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.hero-text,
.section-heading p,
.solution .section-heading p,
.proof-copy p,
.demo-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button svg {
  width: 19px;
  height: 19px;
}

.button-primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 16px 35px rgba(8, 124, 114, 0.24);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--graphite);
  background: var(--surface);
  border-color: var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}

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

.hero-media img {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 390px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-panel {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 290px;
  padding: 14px 16px;
  border: 1px solid rgba(223, 232, 228, 0.86);
  border-radius: var(--radius);
  color: var(--graphite);
  font-size: 0.94rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 39, 34, 0.16);
}

.floating-panel svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.floating-panel-top {
  top: 26px;
  left: -22px;
}

.floating-panel-bottom {
  right: -18px;
  bottom: 34px;
}

section {
  padding: 86px clamp(20px, 5vw, 78px);
}

.section-band {
  background: #eef5f1;
}

.section-heading {
  max-width: 830px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.problem-grid,
.feature-grid,
.package-grid {
  display: grid;
  gap: 18px;
}

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

.problem-grid article,
.feature,
.package,
.proof-box,
.chat-demo,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.problem-grid article,
.feature {
  padding: 26px;
}

.problem-grid svg,
.feature svg {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  color: var(--teal);
}

.problem-grid p,
.feature p,
.package p,
.package li,
.steps p,
.faq p,
.site-footer {
  color: var(--muted);
}

.solution {
  padding-top: 100px;
}

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

.workflow {
  padding-bottom: 98px;
}

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

.steps article {
  position: relative;
  min-height: 215px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--teal);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}

.proof-box {
  overflow: hidden;
  padding: 8px;
  color: #d9fff3;
  background: #14211e;
  box-shadow: var(--shadow);
}

.code-line {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: Consolas, Monaco, monospace;
  font-size: clamp(0.76rem, 1.5vw, 0.96rem);
  word-break: break-word;
}

.code-line:last-child {
  border-bottom: 0;
}

.code-line.success {
  color: #87e7b9;
}

.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.package h3 {
  font-size: 1.35rem;
}

.package ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  padding-left: 20px;
}

.package a {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 800;
  text-align: center;
  background: var(--mint);
}

.featured-package {
  border-color: rgba(8, 124, 114, 0.45);
  box-shadow: var(--shadow);
}

.badge {
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--teal);
}

.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.04fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.chat-demo {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: #edf7f2;
  box-shadow: var(--shadow);
}

.message {
  max-width: 82%;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 0.96rem;
}

.message.patient {
  justify-self: end;
  color: white;
  background: var(--teal);
}

.message.agent {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--surface);
}

.message.confirmed {
  border-color: rgba(51, 176, 122, 0.4);
  background: #e4faef;
}

.faq-list {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #15211e;
  color: white;
}

.contact .eyebrow {
  color: #8ee4bd;
}

.contact-copy p {
  color: #bdd1ca;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfdfc;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form button {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 78px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .proof,
  .demo,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero,
  section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 2.22rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-media {
    min-height: auto;
  }

  .hero-media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .floating-panel {
    position: static;
    max-width: none;
    margin-top: 10px;
  }

  .problem-grid,
  .feature-grid,
  .package-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: 0;
  }

  .message {
    max-width: 94%;
  }

  .site-footer {
    flex-direction: column;
  }
}
