:root {
  color-scheme: light;
  --ink: #172323;
  --muted: #5e6b68;
  --line: #dce5e1;
  --surface: #f5f5f7;
  --surface-strong: #f5f5f7;
  --white: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0d4f4b;
  --gold: #b47b35;
  --shadow: 0 18px 48px rgba(23, 35, 35, 0.08);
}

* {
  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",
    sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 225, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-name {
  color: inherit;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.22);
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  font-size: 12px;
  font-weight: 900;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}

.secret-login-button {
  border: 1px solid rgba(15, 118, 110, 0.22);
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

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

.secret-login-button:focus-visible {
  outline: 3px solid rgba(180, 123, 53, 0.42);
  outline-offset: 3px;
}

.main-nav {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a,
.nav-cta {
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  background: #e5f4f0;
  cursor: pointer;
}

.nav-cta:hover {
  background: #d6eee9;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #10201f;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/dental-revenue-hero.png");
  background-position: center right;
  background-size: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 21, 21, 0.9) 0%, rgba(7, 21, 21, 0.72) 42%, rgba(7, 21, 21, 0.18) 78%),
    linear-gradient(180deg, rgba(7, 21, 21, 0.12), rgba(7, 21, 21, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c17f;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.button,
.review-form button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.review-form button {
  color: var(--white);
  background: var(--teal);
}

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

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.snapshot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.snapshot-links button {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.snapshot-links button:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: #e5f4f0;
  transform: translateY(-2px);
}

.snapshot-links span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.snapshot-links strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.hero-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.intro-section,
.review-section,
.benchmark-section,
.process-section,
.diagnostic-section,
.support-section,
.cta-section,
.contact-section {
  padding: clamp(64px, 8vw, 104px) 0;
}

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

.review-section {
  background: var(--surface);
}

.two-column,
.split-feature,
.support-layout,
.cta-inner,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.lead-block {
  color: var(--muted);
  font-size: 19px;
}

.lead-block p:last-child,
.section-heading p:last-child,
.ladder-step p:last-child,
.outcome-card li:last-child,
.support-options p:last-child,
.cta-inner p:last-child,
.contact-inner p:last-child {
  margin-bottom: 0;
}

.benchmark-section {
  background: var(--surface-strong);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.narrow {
  max-width: 720px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.benchmark-panel {
  max-width: 860px;
  min-height: auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ladder-step p,
.diagnostic-section p,
.support-options p,
.benchmark-copy p,
.benchmark-panel p,
.review-grid p,
.cta-inner p,
.contact-inner p {
  color: var(--muted);
}

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

.review-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e5f4f0;
  font-size: 13px;
  font-weight: 900;
}

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

.ladder {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.ladder-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.ladder-step.accent {
  background: transparent;
  border-color: var(--line);
}

.step-number {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0;
  border-radius: 8px;
  color: var(--teal);
  background: #e5f4f0;
  font-size: 13px;
  font-weight: 900;
}

.ladder-step p {
  margin-bottom: 0;
  font-size: 15px;
}

.diagnostic-section {
  background: #172323;
  color: var(--white);
}

.diagnostic-section .eyebrow {
  color: #f0c17f;
}

.diagnostic-section p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.outcome-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.07);
}

.outcome-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome-card li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.support-section {
  background: var(--surface);
}

.support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-options article {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

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

.review-form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.review-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.review-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.review-form input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.contact-section {
  color: var(--white);
  background: #172323;
}

.contact-section .eyebrow {
  color: #f0c17f;
}

.contact-inner {
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-card a {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-card span {
  color: rgba(255, 255, 255, 0.68);
}

.sample-page {
  background: var(--surface);
}

.sample-hero {
  padding: clamp(72px, 10vw, 120px) 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(23, 35, 35, 0.94), rgba(15, 118, 110, 0.82)),
    #172323;
}

.sample-hero-inner {
  max-width: 820px;
}

.sample-hero .eyebrow {
  color: #f0c17f;
}

.sample-hero h1 {
  font-size: clamp(42px, 6vw, 70px);
}

.sample-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.sample-docs-section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.dashboard-page {
  background: var(--surface);
}

.dashboard-section {
  padding: 0;
}

.dashboard-banner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.2vw, 38px);
  overflow-x: hidden;
  padding: 0 clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(220, 229, 225, 0.72);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: clamp(15px, 1.35vw, 22px);
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-banner a {
  color: #2e3131;
}

.dashboard-banner .brand-mark {
  color: var(--white);
}

.dashboard-banner a:hover {
  color: var(--teal-dark);
}

.dashboard-banner-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 34px;
  font-size: 11px;
}

.dashboard-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-menu-toggle span {
  display: block;
  width: 31px;
  height: 4px;
  border-radius: 999px;
  background: #2e3131;
}

.revenue-kpi-page {
  background: #f5f5f7;
}

.revenue-kpi-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

.revenue-kpi-card {
  padding: 18px 20px;
  border: 1px solid #dfe5eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(23, 35, 35, 0.12);
}

.revenue-kpi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 16px;
}

.revenue-kpi-header > div {
  min-width: 0;
  flex: 1;
}

.revenue-kpi-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #3796a8;
  background: #eef7f8;
}

.revenue-kpi-icon svg {
  width: 40px;
  height: 40px;
}

.revenue-kpi-header h1 {
  margin: 0;
  color: #172c3f;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
}

.revenue-kpi-header p {
  margin: 8px 0 0;
  color: #6c7280;
  font-size: 17px;
}

.revenue-kpi-header p span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #6bbfb3;
  font-size: 15px;
  font-weight: 900;
}

.chairs-control {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  padding: 8px 13px;
  color: #172c3f;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 35, 35, 0.06);
}

.chairs-control span {
  color: #5f6b78;
  font-size: 13px;
  font-weight: 800;
}

.chairs-control select {
  width: 46px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: #315f91;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.chairs-control select:focus {
  outline: 3px solid rgba(49, 95, 145, 0.2);
  outline-offset: 2px;
}

.kpi-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(23, 35, 35, 0.08);
}

.kpi-summary-grid article {
  display: grid;
  gap: 7px;
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid #e4e8ee;
}

.kpi-summary-grid article:last-child {
  border-right: 0;
}

.kpi-summary-grid article:nth-child(1) {
  background: #edf3f7;
}

.kpi-summary-grid article:nth-child(3) {
  background: #fbede5;
}

.kpi-summary-grid article:nth-child(4) {
  background: #eef7f0;
}

.kpi-summary-grid h2 {
  margin: 0;
  color: #315f91;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1;
}

.kpi-summary-grid article:nth-child(2) h2,
.kpi-summary-grid article:nth-child(3) h2 {
  color: #a04b1f;
}

.kpi-summary-grid article:nth-child(4) h2 {
  color: #2c6b3d;
}

.kpi-summary-grid strong {
  color: #172c3f;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1;
}

.kpi-summary-grid article:nth-child(3) strong {
  color: #a04b1f;
}

.kpi-summary-grid article:nth-child(4) strong {
  color: #2c6b3d;
}

.kpi-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.9fr) minmax(360px, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.kpi-panel,
.kpi-insight {
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 12px rgba(23, 35, 35, 0.06);
}

.kpi-panel {
  padding: 14px 16px;
}

.kpi-panel h2,
.kpi-insight h2 {
  margin: 0 0 12px;
  color: #202536;
  font-size: 19px;
  line-height: 1.1;
}

.leakage-category {
  display: grid;
  gap: 13px;
}

.leakage-category h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e6ec;
}

.kpi-row,
.service-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(140px, 1.5fr) auto auto;
  align-items: center;
  gap: 10px;
  color: #202536;
  font-size: 16px;
}

.service-row {
  grid-template-columns: minmax(110px, 0.85fr) minmax(100px, 1.2fr) auto;
}

.kpi-row i,
.service-row i {
  display: block;
  width: var(--bar);
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f5aa47, #ffc371);
}

.kpi-row.red i,
.service-row.red i {
  background: #d75739;
}

.kpi-row.blue i,
.service-row.blue i {
  background: #7dbbe0;
}

.service-row.green i {
  background: #98b98a;
}

.kpi-row b,
.service-row b {
  white-space: nowrap;
}

.kpi-row em {
  color: #6c7280;
  font-style: normal;
}

.loss-driver {
  grid-column: 1;
  grid-row: 2;
  background: #fff4ec;
}

.loss-driver-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(23, 35, 35, 0.08);
}

.loss-alert {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #ef7436;
  font-size: 21px;
  font-weight: 900;
}

.loss-driver-card p {
  margin: 0;
  color: #172c3f;
  font-size: 17px;
  line-height: 1.25;
}

.loss-driver-card strong {
  display: block;
}

.loss-driver-card [data-money] {
  display: inline;
  margin-right: 4px;
  white-space: nowrap;
}

.trend-panel svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
}

.kpi-trend-chart {
  margin-top: 2px;
}

.trend-grid path {
  fill: none;
  stroke: #dfe5eb;
  stroke-width: 1;
}

.trend-axis-labels,
.trend-months {
  fill: #6c7280;
  font-family: inherit;
  font-size: 13px;
}

.trend-axis-labels {
  font-size: 18px;
}

.trend-area {
  fill: url("#trend-fill");
}

.trend-line {
  fill: none;
  stroke: #68a7cf;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-points circle {
  fill: #79bde0;
  stroke: #ffffff;
  stroke-width: 2;
}

.provider-panel {
  grid-column: 3;
  grid-row: 2;
}

.service-panel {
  grid-column: 2;
  grid-row: 2;
}

.trend-panel {
  grid-column: 3;
  grid-row: 1;
}

.leakage-category {
  grid-column: 1 / 3;
  grid-row: 1;
}

.kpi-insight {
  padding: 16px 20px;
  color: #24496c;
  background: #eef5fa;
}

.kpi-insight p {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.35;
}

.kpi-insight.side {
  grid-column: 3;
  grid-row: 3;
}

.kpi-insight.side h2 {
  color: #315f91;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpi-insight.side p {
  padding-top: 18px;
  border-top: 1px solid #cdd8e3;
  color: #172c3f;
  font-size: 17px;
}

.kpi-insight.primary {
  grid-column: 1 / 3;
  grid-row: 3;
}

.market-bi-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

.market-bi-card {
  padding: 22px;
  border: 1px solid #dfe5eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 42px rgba(23, 35, 35, 0.12);
}

.market-bi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 14px 18px;
}

.market-bi-header p {
  margin: 0 0 4px;
  color: #315f91;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-bi-clinic {
  display: block;
  margin-top: 8px;
  color: #5f6b78;
  font-size: 18px;
  font-weight: 800;
}

.market-bi-header h1 {
  margin: 0;
  color: #172c3f;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1;
}

.market-bi-header > strong {
  flex: 0 0 auto;
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  padding: 13px 16px;
  color: #2c6b3d;
  background: #eef7f0;
  font-size: 20px;
}

.market-bi-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.market-bi-scoreboard article,
.market-bi-panel {
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px rgba(23, 35, 35, 0.06);
}

.market-bi-scoreboard article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.market-bi-scoreboard span,
.funnel-row span,
.gap-row span,
.readiness-list span {
  color: #5f6b78;
  font-weight: 800;
}

.market-bi-scoreboard strong {
  color: #172c3f;
  font-size: 34px;
  line-height: 1;
}

.market-bi-scoreboard em {
  color: #315f91;
  font-style: normal;
  font-weight: 800;
}

.market-bi-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(300px, 0.9fr) minmax(360px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.market-bi-panel {
  padding: 16px;
}

.market-bi-panel h2 {
  margin: 0 0 14px;
  color: #202536;
  font-size: 20px;
}

.market-bi-funnel {
  grid-column: 1 / 3;
}

.market-bi-radar {
  grid-column: 3;
}

.market-bi-gap {
  grid-column: 1;
}

.market-bi-gap .gap-row {
  grid-template-columns: minmax(120px, 0.9fr) minmax(70px, 1fr) minmax(48px, auto);
  gap: 8px;
}

.market-bi-gap .gap-row i {
  max-width: 100%;
}

.market-bi-gap .gap-row b {
  justify-self: end;
  min-width: 48px;
  text-align: right;
}

.market-bi-trend {
  grid-column: 2 / 4;
}

.market-bi-actions {
  grid-column: 1 / 2;
}

.market-bi-insight {
  grid-column: 2 / 4;
  color: #24496c;
  background: #eef5fa;
}

.funnel-row,
.gap-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(160px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.funnel-row i,
.gap-row i {
  display: block;
  width: var(--bar);
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #315f91, #7dbbe0);
}

.gap-row i {
  background: #7dbbe0;
}

.gap-row.clinic i {
  background: #d75739;
}

.funnel-row b,
.gap-row b {
  white-space: nowrap;
}

.readiness-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.readiness-list div {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  padding: 12px;
  background: #f5f8fb;
}

.readiness-list strong {
  color: #172c3f;
  font-size: 24px;
}

.market-bi-panel p,
.market-bi-actions li {
  color: #172c3f;
  font-size: 16px;
  line-height: 1.35;
}

.market-bi-actions ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.market-bi-trend svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
}

.bi-grid-line {
  fill: none;
  stroke: #dfe5eb;
  stroke-width: 1;
}

.bi-area {
  fill: rgba(125, 187, 224, 0.22);
}

.bi-line {
  fill: none;
  stroke: #68a7cf;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bi-points circle {
  fill: #79bde0;
  stroke: #ffffff;
  stroke-width: 2;
}

.bi-labels {
  fill: #6c7280;
  font-family: inherit;
  font-size: 13px;
}

.ios-app-icon {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -16px 28px rgba(2, 38, 36, 0.2),
    0 12px 24px rgba(23, 35, 35, 0.18);
}

.market-strength-icon {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 26%),
    linear-gradient(145deg, #2be0c4 0%, #0f8f83 42%, #08504d 100%);
}

.market-strength-icon::before {
  content: "";
  position: absolute;
  inset: 7px 8px auto;
  height: 34px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.market-strength-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.market-bars {
  position: absolute;
  bottom: 19px;
  left: 19px;
  display: flex;
  align-items: end;
  gap: 5px;
}

.market-bars i {
  display: block;
  width: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 5px rgba(2, 38, 36, 0.18);
}

.market-bars i:nth-child(1) {
  height: 20px;
}

.market-bars i:nth-child(2) {
  height: 31px;
}

.market-bars i:nth-child(3) {
  height: 42px;
}

.market-line {
  position: absolute;
  right: 17px;
  bottom: 25px;
  width: 32px;
  height: 22px;
  border-top: 5px solid #ffe08a;
  border-right: 5px solid #ffe08a;
  border-radius: 0 8px 0 0;
  filter: drop-shadow(0 2px 4px rgba(2, 38, 36, 0.22));
  transform: skew(-18deg) rotate(-18deg);
  transform-origin: right bottom;
}

.operational-strength-icon {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 26%),
    linear-gradient(145deg, #7bb7ff 0%, #3277d8 46%, #173b86 100%);
}

.operational-strength-icon::before {
  content: "";
  position: absolute;
  inset: 7px 8px auto;
  height: 34px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.operational-strength-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.operation-ring {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-top-color: #ffe08a;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(9, 36, 87, 0.18);
}

.operation-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: #ffe08a;
  box-shadow: 0 3px 7px rgba(9, 36, 87, 0.22);
}

.node-one {
  top: 18px;
  right: 22px;
}

.node-two {
  bottom: 19px;
  right: 20px;
}

.node-three {
  bottom: 22px;
  left: 19px;
}

.sample-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.pdf-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.pdf-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.pdf-toolbar b {
  color: var(--teal-dark);
}

.pdf-page {
  min-height: 580px;
  margin: 22px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #e8ecea;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(15, 118, 110, 0.15), rgba(57, 143, 216, 0.08)) border-box;
  box-shadow: 0 12px 30px rgba(23, 35, 35, 0.08);
}

.pdf-page header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 46px;
}

.pdf-page header span {
  display: inline-grid;
  width: 44px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  font-size: 12px;
  font-weight: 900;
}

.pdf-page header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.pdf-page h3 {
  max-width: 420px;
  font-size: clamp(28px, 4vw, 42px);
}

.pdf-page > p {
  color: var(--muted);
  font-size: 16px;
}

.pdf-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 24px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
}

.pdf-score-row strong {
  color: var(--muted);
}

.pdf-score-row b {
  color: var(--teal-dark);
  font-size: 34px;
}

.pdf-bars {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.pdf-bars span {
  width: var(--bar);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #80beb5);
}

.pdf-bars.benchmark span {
  background: linear-gradient(90deg, #d79535, #e9c17d);
}

.pdf-page ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdf-page li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  padding: 28px;
}

.modal-shell[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 35, 35, 0.68);
  backdrop-filter: blur(10px);
}

.sample-modal {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 8px;
  outline: none;
}

.login-modal {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  display: block;
}

.login-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.login-form {
  display: grid !important;
  gap: 16px;
  padding: 58px 36px 36px;
  color: var(--ink);
  background: var(--white);
}

.login-form h2 {
  margin-bottom: 4px;
  font-size: 34px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.login-form input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--teal);
  background: var(--white);
}

.login-form button[type="submit"] {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.login-form button[type="submit"]:hover {
  background: var(--teal-dark);
}

.modal-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  margin: 14px 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.modal-preview {
  clear: both;
}

.sample-image-frame {
  clear: both;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.sample-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

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

  .two-column,
  .split-feature,
  .support-layout,
  .cta-inner,
  .contact-inner,
  .benchmark-panel {
    grid-template-columns: 1fr;
  }

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

  .sample-doc-grid {
    grid-template-columns: 1fr;
  }

  .kpi-layout {
    grid-template-columns: 1fr;
  }

  .market-bi-scoreboard,
  .market-bi-grid {
    grid-template-columns: 1fr;
  }

  .market-bi-funnel,
  .market-bi-radar,
  .market-bi-gap,
  .market-bi-trend,
  .market-bi-actions,
  .market-bi-insight {
    grid-column: auto;
  }

  .provider-panel,
  .service-panel,
  .trend-panel,
  .leakage-category,
  .kpi-insight.side,
  .kpi-insight.primary {
    grid-column: auto;
    grid-row: auto;
  }

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

  .benchmark-panel {
    min-height: auto;
  }

  .ladder-step {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }

  .ladder-step p {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .dashboard-banner {
    min-height: 64px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    overflow-x: visible;
    padding: 10px 18px;
  }

  .dashboard-banner .brand-mark {
    order: 1;
  }

  .dashboard-menu-toggle {
    display: inline-flex;
    order: 2;
    flex-direction: column;
  }

  .dashboard-banner > a:not(.brand-mark) {
    display: none;
    order: 3;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid rgba(220, 229, 225, 0.72);
    font-size: 19px;
  }

  .dashboard-banner.is-open > a:not(.brand-mark) {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-cta {
    padding: 9px 12px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-media {
    background-position: 63% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 21, 21, 0.94), rgba(7, 21, 21, 0.74)),
      linear-gradient(180deg, rgba(7, 21, 21, 0.25), rgba(7, 21, 21, 0.66));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
  }

  h1 {
    font-size: 40px;
  }

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

  .benchmark-panel {
    padding: 24px;
  }

  .snapshot-links {
    grid-template-columns: 1fr;
  }

  .revenue-kpi-wrap {
    width: min(100% - 20px, 620px);
    padding: 18px 0;
  }

  .revenue-kpi-card {
    padding: 10px;
    border-radius: 16px;
  }

  .revenue-kpi-header {
    align-items: flex-start;
    gap: 8px;
    padding: 0 4px 12px;
  }

  .revenue-kpi-icon {
    width: 44px;
    height: 44px;
  }

  .revenue-kpi-icon svg {
    width: 30px;
    height: 30px;
  }

  .revenue-kpi-header h1 {
    font-size: 22px;
  }

  .revenue-kpi-header p {
    margin-top: 5px;
    font-size: 13px;
  }

  .revenue-kpi-header p span {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .chairs-control {
    min-height: 38px;
    gap: 7px;
    padding: 6px 8px;
  }

  .chairs-control span {
    max-width: 58px;
    font-size: 11px;
    line-height: 1.05;
  }

  .chairs-control select {
    width: 36px;
    height: 27px;
    font-size: 15px;
  }

  .kpi-summary-grid {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    border-radius: 12px;
  }

  .kpi-summary-grid article {
    gap: 5px;
    padding: 12px 8px;
    border-right: 1px solid #e4e8ee;
    border-bottom: 0;
  }

  .kpi-summary-grid h2 {
    font-size: 14px;
  }

  .kpi-summary-grid strong {
    font-size: 21px;
  }

  .kpi-layout {
    gap: 10px;
    margin-top: 10px;
  }

  .kpi-panel {
    padding: 12px;
  }

  .kpi-panel h2,
  .kpi-insight h2 {
    font-size: 17px;
  }

  .kpi-summary-grid article:last-child {
    border-right: 0;
  }

  .kpi-row,
  .service-row {
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 14px;
  }

  .kpi-row i,
  .service-row i {
    width: 100%;
    height: 14px;
  }

  .loss-driver-card {
    gap: 9px;
    padding: 12px;
  }

  .loss-alert {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .loss-driver-card p,
  .kpi-insight.side p {
    font-size: 15px;
  }

  .kpi-insight {
    padding: 13px;
  }

  .kpi-insight p {
    font-size: 15px;
  }

  .support-options {
    grid-template-columns: 1fr;
  }

  .ladder-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 0;
  }

  .ladder-step p {
    grid-column: auto;
  }
}
