:root {
  --blue: #2563eb;
  --blue-dark: #1747b8;
  --ink: #111827;
  --muted: #667085;
  --soft: #f8fafc;
  --soft-blue: #eef4ff;
  --line: #d9e2f2;
  --white: #ffffff;
  --teal: #0ea5a4;
  --green: #16a34a;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand img {
  border-radius: 8px;
}

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

.brand strong {
  font-size: 17px;
  font-weight: 850;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.footer a,
.contact-card a {
  text-decoration: none;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.header-cta {
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

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

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 130px) clamp(18px, 5vw, 72px);
  background: #f7faff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
}

.hero-mockup {
  position: absolute;
  right: clamp(-470px, -24vw, -180px);
  top: 50%;
  width: min(920px, 70vw);
  max-width: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 34px 60px rgba(17, 24, 39, 0.2));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

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

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

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(43px, 7vw, 82px);
  line-height: 0.97;
  letter-spacing: 0;
}

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

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

.hero-subtitle,
.section-copy p,
.demo-copy p,
.form-copy p,
.final-cta p,
.price-card p,
.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-subtitle {
  max-width: 630px;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.trust-row span {
  min-height: 36px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.logo-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  color: #475467;
  font-size: 14px;
  font-weight: 800;
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-copy {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-copy.narrow {
  max-width: 690px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.problem-section {
  background: var(--white);
}

.issue-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.issue-grid article,
.feature-grid article,
.price-card,
.contact-card,
.lead-form,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.04);
}

.issue-grid article {
  min-height: 150px;
  padding: 22px;
}

.issue-grid strong,
.issue-grid span,
.feature-grid strong,
.feature-grid p {
  display: block;
}

.issue-grid strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.issue-grid span,
.feature-grid p,
.steps p,
.faq-list p {
  color: var(--muted);
  line-height: 1.55;
}

.solution-section,
.pricing-section,
.faq-section {
  background: var(--soft);
}

.feature-grid article {
  min-height: 220px;
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 850;
}

.feature-grid strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.process-section {
  background: var(--white);
}

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

.steps article {
  padding: 20px 18px;
  border-top: 3px solid var(--blue);
  background: var(--soft);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 850;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #ffffff;
}

.demo-copy {
  max-width: 620px;
}

.phone-demo {
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 44px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 18px 22px;
  background: var(--blue);
  color: var(--white);
}

.phone-top small,
.phone-top strong {
  display: block;
}

.phone-top small {
  margin-top: 3px;
  color: #dbeafe;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 560px;
  padding: 22px;
  background: #f3f7fb;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  margin: 0;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.bubble.patient {
  background: var(--white);
  color: var(--ink);
}

.bubble.ai {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
}

.bubble.system {
  align-self: center;
  background: #ecfdf3;
  color: #027a48;
  font-weight: 800;
}

.pricing-grid {
  align-items: stretch;
}

.founder-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 24px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
}

.founder-offer h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.founder-offer p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.16);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.price {
  margin-top: 10px;
  margin-bottom: 8px;
}

.price strong {
  font-size: 42px;
}

.price span {
  margin-left: 8px;
  color: var(--muted);
}

.monthly {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 850;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: #344054;
  line-height: 1.45;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 850;
}

.price-card .button {
  margin-top: auto;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.form-section .eyebrow {
  color: #93c5fd;
}

.form-copy p {
  color: #d0d5dd;
}

.contact-card {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.contact-card a {
  color: #dbeafe;
  font-weight: 750;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfd8ea;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

.lead-form textarea {
  resize: vertical;
}

.span-2 {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
}

.final-cta {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px);
  text-align: center;
  background: var(--white);
}

.final-cta h2,
.final-cta p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.footer p {
  max-width: 780px;
  margin: 6px 0 0;
  font-size: 13px;
}

.crm-main {
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 72px);
  background: var(--soft);
}

.crm-panel {
  max-width: 1100px;
  margin: 0 auto;
}

.crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.lead-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  background: #eef4ff;
  color: #344054;
}

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

  .hero-mockup {
    opacity: 0.24;
    right: -420px;
    width: 980px;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .hero-mockup {
    top: auto;
    right: -300px;
    bottom: -210px;
    width: 720px;
    transform: none;
  }

  h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .issue-grid,
  .feature-grid,
  .pricing-grid,
  .steps,
  .demo-section,
  .form-section,
  .founder-offer,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .phone-demo {
    border-width: 7px;
    border-radius: 34px;
  }

  .footer {
    display: grid;
  }
}
