:root {
  --ink: #17211f;
  --muted: #5b6763;
  --soft: #eef3f0;
  --surface: #fbfcfa;
  --card: #ffffff;
  --line: #dce4df;
  --brand: #315f58;
  --brand-dark: #21443f;
  --accent: #b9845a;
  --accent-soft: #f1e6dc;
  --shadow: 0 22px 60px rgba(31, 50, 45, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
}

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

ul {
  margin: 0;
  padding-left: 1.15rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(220, 228, 223, 0.75);
  background: rgba(251, 252, 250, 0.88);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 720;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 680;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(49, 95, 88, 0.2);
}

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

.button-secondary,
.button-ghost {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--line);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: #b9c7c0;
  box-shadow: 0 12px 24px rgba(31, 50, 45, 0.08);
}

.button-large {
  min-height: 50px;
  padding: 0.9rem 1.25rem;
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 5vw;
  align-items: center;
  padding: 7rem 5vw 5rem;
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(135deg, rgba(238, 243, 240, 0.95), rgba(251, 252, 250, 0.5) 52%, rgba(241, 230, 220, 0.5)),
    var(--surface);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.18rem;
}

.product-visual {
  padding: 1.2rem;
  border: 1px solid rgba(220, 228, 223, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.case-header-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.case-identity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.patient-ref {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.case-meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.created-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.case-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.workflow-strip {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.step {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  background: #f6f8f6;
  color: var(--muted);
}

.step.done {
  background: var(--soft);
  color: var(--brand-dark);
}

.step.active {
  background: var(--brand);
  color: #fff;
}

.summary-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-tile {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.summary-tile:hover {
  border-color: #b9c7c0;
}

.tile-icon {
  flex-shrink: 0;
  color: var(--muted);
}

.tile-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tile-content {
  flex: 1;
  min-width: 0;
}

.tile-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.tile-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.125rem;
}

.tile-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.visual-grid p,
.feature-card p,
.price-card p,
.process-grid p,
.about-band p,
.section-heading p {
  color: var(--muted);
}

.section {
  padding: 5.5rem 5vw;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: start;
}

.compare-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-card,
.feature-card,
.price-card,
.process-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 38px rgba(31, 50, 45, 0.06);
}

.compare-card {
  padding: 1.35rem;
}

.muted-card {
  background: #f8faf8;
}

.highlight-card {
  border-color: #c3d4cd;
  background: #fbfdfb;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  min-height: 230px;
  padding: 1.35rem;
}

.process-section {
  background: #eef3f0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-grid article {
  padding: 1.35rem;
}

.process-grid span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.outcomes-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
}

.outcome-list {
  display: grid;
  gap: 0.85rem;
}

.outcome-list div {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.outcome-list span {
  color: var(--muted);
}

.pricing-preview {
  background: #f8faf8;
}

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

.price-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  padding: 1.45rem;
}

.price {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 800;
}

.price-card ul {
  margin: 1rem 0 1.5rem;
}

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

.featured-price {
  border-color: #abc3ba;
  box-shadow: 0 24px 62px rgba(49, 95, 88, 0.16);
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: start;
}

.about-band p {
  font-size: 1.08rem;
}

.final-cta {
  margin: 2rem 5vw 5rem;
  padding: clamp(2.2rem, 6vw, 4.6rem);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(33, 68, 63, 0.98), rgba(49, 95, 88, 0.95)),
    var(--brand-dark);
}

.final-cta .eyebrow,
.final-cta p {
  color: #d7e7e1;
}

.final-cta h2 {
  max-width: 880px;
}

.final-cta .button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  padding: 3rem 5vw;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer p {
  max-width: 340px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.subpage-hero {
  padding: 6rem 5vw 3rem;
  background: linear-gradient(135deg, var(--soft), #fff 70%);
}

.subpage-hero p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.15rem;
}

.content-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 5vw 6rem;
}

.content-page h2 {
  font-size: 2rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
}

.contact-box {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 38px rgba(31, 50, 45, 0.06);
}

@media (max-width: 1040px) {
  .hero,
  .split-section,
  .outcomes-section,
  .about-band,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 1rem;
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .site-header.nav-open .site-nav {
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.5rem;
  }

  .site-header.nav-open .header-actions {
    padding-bottom: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4.5rem;
  }

  .product-visual {
    border-radius: 12px;
  }

  .case-header-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .case-controls {
    align-items: flex-start;
  }

  .summary-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .outcome-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .hero,
  .section,
  .subpage-hero,
  .content-page {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  h1 {
    font-size: 3rem;
  }

  .feature-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .header-actions {
    width: 100%;
  }

  .hero-actions .button,
  .header-actions .button {
    flex: 1 1 150px;
  }

  .visual-top {
    flex-direction: column;
  }

  .summary-tiles {
    grid-template-columns: 1fr;
  }

  .final-cta {
    margin-left: 1.1rem;
    margin-right: 1.1rem;
  }
}
