@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap");

:root {
  --navy: #dff4f0;
  --ink: #24485a;
  --blue: #6bb7df;
  --teal: #74d2c7;
  --mint: #edfafa;
  --aqua: #a8e6df;
  --amber: #e7c978;
  --coral: #f47f65;
  --paper: #fbfffd;
  --wash: #f0faf8;
  --stone: #e3eceb;
  --white: #ffffff;
  --text: #2d4f61;
  --muted: #678190;
  --faint: #91a5ad;
  --line: rgba(45, 79, 97, 0.12);
  --line-strong: rgba(45, 79, 97, 0.2);
  --shadow: 0 20px 60px rgba(56, 104, 119, 0.11);
  --shadow-dark: 0 26px 70px rgba(56, 104, 119, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(107, 183, 223, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(107, 183, 223, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--wash) 42%, #fff);
  background-size: 72px 72px, 72px 72px, auto;
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(23, 167, 146, 0.26);
}

.site-shell {
  min-height: 100vh;
}

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 1000;
  width: min(calc(100% - 28px), 1240px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(251, 255, 253, 0.82);
  box-shadow: 0 18px 54px rgba(56, 104, 119, 0.11);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.nav.scrolled {
  background: rgba(251, 255, 253, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(107, 183, 223, 0.22));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(107, 183, 223, 0.14);
}

.nav-links .nav-cta {
  color: var(--ink);
  background: var(--aqua);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--teal));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--aqua);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 94px 14px auto;
  z-index: 999;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: rgba(251, 255, 253, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.mobile-menu a {
  padding: 15px 16px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.mobile-menu a.active,
.mobile-menu a:hover {
  background: var(--wash);
}

.menu-open .mobile-menu {
  display: grid;
  animation: menuIn 0.22s ease both;
}

.hero,
.page-hero {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  padding: 132px 24px 76px;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.hero-home {
  --hero-image: url("../images/hero-agents.png");
}

.hero-services {
  --hero-image: url("../images/team-working.jpg");
}

.hero-about {
  --hero-image: url("../images/hero-agents.png");
}

.hero-pricing,
.hero-roi {
  --hero-image: url("../images/results-dashboard.jpg");
}

.hero-contact {
  --hero-image: url("../images/clinic-consultation.png");
}

.page-hero {
  min-height: 480px;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(245, 253, 251, 0.96), rgba(228, 248, 244, 0.84), rgba(228, 248, 244, 0.48)),
    var(--hero-image, url("../images/hero-agents.png")) center/cover;
  transform: scale(1.03);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(107, 183, 223, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(107, 183, 223, 0.1) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
}

.signal-field {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 220px;
  opacity: 0.78;
  background:
    linear-gradient(90deg, transparent, rgba(116, 210, 199, 0.42), transparent),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(45, 79, 97, 0.08) 43px 44px);
  clip-path: polygon(0 62%, 14% 42%, 28% 52%, 42% 22%, 57% 45%, 70% 30%, 84% 52%, 100% 34%, 100% 100%, 0 100%);
  animation: signalDrift 7s ease-in-out infinite alternate;
}

.wrap {
  width: min(100%, var(--wrap));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.dark .eyebrow {
  color: #3c9f94;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

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

h1,
.display,
.section-title {
  font-family: "Manrope", sans-serif;
  font-weight: 750;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.08;
}

h1 em,
.section-title em {
  color: #249b91;
  font-style: normal;
}

.hero-copy,
.page-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
}

.hero-note {
  max-width: 650px;
  margin: -16px 0 32px;
  padding: 18px 20px;
  border: 1px solid rgba(244, 127, 101, 0.3);
  border-radius: 20px;
  color: #8f3c32;
  background: linear-gradient(135deg, rgba(255, 238, 234, 0.92), rgba(255, 247, 244, 0.78));
  box-shadow: 0 18px 46px rgba(244, 127, 101, 0.11);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

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

.button {
  position: relative;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 16px 32px rgba(107, 183, 223, 0.22);
}

.button-dark {
  color: var(--ink);
  background: var(--aqua);
}

.button-light {
  color: var(--ink);
  background: #fff;
}

.button-ghost {
  color: var(--ink);
  border-color: rgba(45, 79, 97, 0.18);
  background: rgba(255, 255, 255, 0.52);
}

.button-outline {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.hero-panel {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(20px);
}

.hero-panel img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 24px;
}

.patient-card {
  position: absolute;
  right: -24px;
  bottom: 28px;
  width: min(310px, calc(100% - 28px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.patient-card span,
.mini-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.patient-card strong {
  display: block;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.pulse-line {
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent, rgba(23, 167, 146, 0.32), transparent),
    repeating-linear-gradient(90deg, rgba(45, 127, 189, 0.14) 0 2px, transparent 2px 12px);
  clip-path: polygon(0 54%, 12% 54%, 18% 22%, 25% 78%, 32% 50%, 50% 50%, 56% 28%, 62% 72%, 68% 54%, 100% 54%, 100% 100%, 0 100%);
  animation: pulseSweep 2.8s linear infinite;
}

.proof-ribbon {
  padding: 18px 24px;
  color: var(--text);
  background: linear-gradient(90deg, #e9f9f6, #f8fdfb);
  overflow: hidden;
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker-group {
  display: flex;
  gap: 34px;
  padding-right: 34px;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ticker span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 16px var(--aqua);
}

.section {
  padding: 92px 24px;
}

.section-tight {
  padding: 74px 24px;
}

.dark {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(238, 250, 247, 0.98), rgba(222, 245, 241, 0.95)),
    url("../images/results-dashboard.jpg") center/cover;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.5fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 46px;
}

.section-title {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
}

.dark .section-title {
  color: var(--ink);
}

.section-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.dark .section-copy {
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4,
.grid-5 {
  display: grid;
  gap: 20px;
}

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

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

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

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

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(8, 30, 45, 0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(45, 127, 189, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.dark .card {
  border-color: rgba(45, 79, 97, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

.card-number {
  color: rgba(45, 127, 189, 0.24);
  font-family: "Manrope", sans-serif;
  font-size: 54px;
  line-height: 1;
}

.card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.dark .card h3 {
  color: var(--ink);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 15px;
}

.dark .card p,
.dark .card li {
  color: var(--muted);
}

.icon-chip {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--blue);
  background: rgba(45, 127, 189, 0.1);
}

.icon-chip svg {
  width: 22px;
  height: 22px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.image-frame {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--wash);
}

.image-frame img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 52%, rgba(36, 72, 90, 0.26)),
    linear-gradient(110deg, transparent 0 44%, rgba(255, 255, 255, 0.24) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: imageSheen 6s ease-in-out infinite;
}

.note-stack {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.note b {
  color: var(--ink);
}

.note span:first-child {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--teal));
  font-weight: 800;
}

.workflow-section .section-title {
  margin-bottom: 20px;
}

.workflow-section .section-copy {
  margin-bottom: 38px;
}

.workflow-stack {
  position: relative;
  min-height: 560px;
  display: block;
  isolation: isolate;
  margin-top: 0;
  padding: 24px;
  border: 1px solid rgba(116, 210, 199, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle, rgba(45, 79, 97, 0.12) 1px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(237, 250, 250, 0.38));
  overflow: hidden;
}

.workflow-stack .note {
  position: absolute;
  z-index: 2;
  width: 210px;
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px 18px;
  border-color: rgba(116, 210, 199, 0.2);
  border-radius: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 50px rgba(56, 104, 119, 0.12);
  backdrop-filter: blur(12px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.workflow-stack .note:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 62px rgba(56, 104, 119, 0.16);
}

.workflow-stack .note span:first-child {
  position: relative;
  width: 50px;
  height: 50px;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  font-size: 18px;
  box-shadow: 0 12px 26px rgba(116, 210, 199, 0.28);
}

.workflow-stack .note b {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.2;
}

.workflow-stack .note br {
  display: none;
}

.workflow-stack .note div {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workflow-stack .note:nth-of-type(1) {
  top: 26px;
  left: 24px;
  background: #fff4f6;
}

.workflow-stack .note:nth-of-type(2) {
  top: 42px;
  right: 30px;
  background: #eef9ff;
}

.workflow-stack .note:nth-of-type(3) {
  top: 205px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
}

.workflow-stack .note:nth-of-type(3):hover {
  transform: translateX(-50%) translateY(-5px);
}

.workflow-stack .note:nth-of-type(4) {
  bottom: 34px;
  left: 54px;
  background: #eefaf2;
}

.workflow-stack .note:nth-of-type(5) {
  right: 34px;
  bottom: 42px;
  background: #f5efff;
}

.workflow-lines {
  position: absolute;
  inset: 16px;
  z-index: 3;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  overflow: visible;
  pointer-events: none;
}

.workflow-lines > path {
  fill: none;
  stroke: rgba(35, 150, 139, 0.9);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 10 9;
  marker-end: url("#workflow-arrow");
  animation: workflowDash 12s linear infinite;
}

.workflow-lines marker path {
  fill: rgba(35, 150, 139, 0.96);
  stroke: none;
}

.workflow-lines > path:nth-of-type(2) {
  stroke: rgba(65, 157, 204, 0.92);
}

.workflow-lines > path:nth-of-type(3) {
  stroke: rgba(211, 165, 56, 0.9);
}

.workflow-lines > path:nth-of-type(4) {
  stroke: rgba(35, 150, 139, 0.92);
}

.horizontal-workflow {
  position: relative;
  min-height: 320px;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: center;
  gap: 24px;
  isolation: isolate;
  padding: 42px 34px;
  border: 1px solid rgba(116, 210, 199, 0.18);
  border-radius: 36px;
  background:
    radial-gradient(circle, rgba(45, 79, 97, 0.12) 1px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(237, 250, 250, 0.42));
  overflow: hidden;
}

.workflow-node {
  position: relative;
  z-index: 2;
  min-height: 188px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px 16px;
  border: 1px solid rgba(116, 210, 199, 0.22);
  border-radius: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 50px rgba(56, 104, 119, 0.12);
  backdrop-filter: blur(12px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.workflow-node:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 62px rgba(56, 104, 119, 0.16);
}

.workflow-node:nth-of-type(1) {
  background: #fff4f6;
}

.workflow-node:nth-of-type(2) {
  transform: translateY(-28px);
  background: #eef9ff;
}

.workflow-node:nth-of-type(2):hover {
  transform: translateY(-34px);
}

.workflow-node:nth-of-type(3) {
  background: #ffffff;
}

.workflow-node:nth-of-type(4) {
  transform: translateY(28px);
  background: #eefaf2;
}

.workflow-node:nth-of-type(4):hover {
  transform: translateY(22px);
}

.workflow-node:nth-of-type(5) {
  background: #f5efff;
}

.workflow-node span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 12px 26px rgba(116, 210, 199, 0.28);
  font-size: 18px;
  font-weight: 800;
}

.workflow-node h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.workflow-node p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.horizontal-workflow-lines {
  position: absolute;
  inset: 32px;
  z-index: 3;
  width: calc(100% - 64px);
  height: calc(100% - 64px);
  overflow: visible;
  pointer-events: none;
}

.horizontal-workflow-lines > path {
  fill: none;
  stroke: rgba(35, 150, 139, 0.9);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 10 9;
  marker-end: url("#horizontal-workflow-arrow");
  animation: workflowDash 12s linear infinite;
}

.horizontal-workflow-lines marker path {
  fill: rgba(35, 150, 139, 0.96);
  stroke: none;
}

.horizontal-workflow-lines > path:nth-of-type(2) {
  stroke: rgba(65, 157, 204, 0.92);
}

.horizontal-workflow-lines > path:nth-of-type(3) {
  stroke: rgba(211, 165, 56, 0.9);
}

.horizontal-workflow-lines > path:nth-of-type(4) {
  stroke: rgba(35, 150, 139, 0.92);
}

blockquote {
  margin: 28px 0 0;
  padding: 24px 26px;
  border-left: 4px solid var(--teal);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(56, 104, 119, 0.09);
  font-weight: 700;
  line-height: 1.7;
}

.dark blockquote {
  background: rgba(255, 255, 255, 0.82);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 54px;
  align-items: stretch;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

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

.service-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
}

.service-row:nth-child(even) .service-copy {
  order: 2;
}

.service-visual {
  min-height: 390px;
  display: flex;
  align-items: end;
  padding: 22px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 253, 251, 0.02), rgba(36, 72, 90, 0.34)),
    var(--service-image) center/cover;
  box-shadow: var(--shadow);
}

.service-lead {
  --service-image: url("../images/hero-agents.png");
}

.service-conversion {
  --service-image: url("../images/results-dashboard.jpg");
}

.service-hours {
  --service-image: url("../images/clinic-consultation.png");
}

.metric-panel {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

.metric-line strong {
  color: var(--ink);
  text-align: right;
}

.list-clean {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding-left: 24px;
}

.list-clean li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.plan,
.package {
  display: flex;
  flex-direction: column;
}

.plan .list-clean {
  margin-bottom: 24px;
}

.plan .button {
  align-self: center;
  margin-top: auto;
  width: 100%;
  color: var(--ink);
  border-color: rgba(116, 210, 199, 0.32);
  background: linear-gradient(135deg, rgba(205, 241, 235, 0.76), rgba(116, 210, 199, 0.34));
  box-shadow: 0 14px 30px rgba(56, 104, 119, 0.1);
}

.plan .button:hover {
  background: linear-gradient(135deg, rgba(205, 241, 235, 0.92), rgba(116, 210, 199, 0.42));
  box-shadow: 0 18px 36px rgba(56, 104, 119, 0.14);
}

.package.featured {
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(245, 253, 251, 0.96), rgba(210, 242, 236, 0.92)),
    url("../images/results-dashboard.jpg") center/cover;
  transform: translateY(-18px);
}

.package.featured h3,
.package.featured p,
.package.featured li {
  color: var(--text);
}

.badge {
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(45, 127, 189, 0.1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package.featured .badge {
  color: var(--ink);
  background: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(56, 104, 119, 0.08);
}

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

.conversion-table {
  overflow-x: visible;
}

.conversion-table table {
  table-layout: fixed;
  min-width: 0;
}

.conversion-table th,
.conversion-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.results-panel {
  position: sticky;
  top: 104px;
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(245, 253, 251, 0.97), rgba(205, 241, 235, 0.94)),
    url("../images/results-dashboard.jpg") center/cover;
}

.results-panel h2 {
  color: var(--ink);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: flex-start;
}

.field-pair.full {
  grid-column: 1 / -1;
}

.field-pair .field {
  flex: 1 1 0;
  min-width: 0;
}

.field-pair .field select,
.field-pair .field input {
  min-height: 54px;
}

.field-pair-hint {
  flex: 0 0 100%;
  margin: 0;
}

label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  outline: 0;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 136px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(45, 127, 189, 0.12);
}

input[type="range"] {
  --range-progress: 0%;
  appearance: none;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) var(--range-progress), rgba(116, 210, 199, 0.18) var(--range-progress));
  cursor: pointer;
}

input[type="range"]:focus {
  box-shadow: 0 0 0 4px rgba(116, 210, 199, 0.2);
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(56, 104, 119, 0.18);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(116, 210, 199, 0.18);
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(56, 104, 119, 0.18);
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
}

.hint {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

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

.preset-btn {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.preset-btn.active,
.preset-btn:hover {
  color: var(--ink);
  border-color: rgba(45, 127, 189, 0.3);
  background: rgba(45, 127, 189, 0.1);
}

.hero-result {
  margin: 20px 0;
  padding: 24px;
  border: 1px solid rgba(45, 79, 97, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.result-label,
.result-card span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-main {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 800;
}

.result-support,
.result-card small {
  color: var(--muted);
}

.result-card {
  padding: 16px;
  border: 1px solid rgba(45, 79, 97, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.result-card strong {
  display: block;
  margin: 5px 0;
  color: var(--ink);
  font-size: 25px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border: 0;
  padding: 20px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-a {
  display: none;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block;
}

.contact-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.6fr);
  gap: 24px;
}

.contact-flow.booking-visible {
  grid-template-columns: 1fr;
}

.booking-panel {
  display: none;
}

.booking-visible .form-panel {
  display: none;
}

.booking-visible .contact-side {
  display: none;
}

.booking-visible .booking-panel {
  display: block;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  align-self: start;
}

.contact-side .eyebrow,
.contact-side .section-title,
.contact-side .section-copy {
  margin-bottom: 0;
}

.contact-side .section-title {
  max-width: 560px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
}

.contact-side .section-copy {
  max-width: 560px;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.65;
}

.contact-side .note-stack {
  gap: clamp(16px, 1.8vw, 22px);
  margin-top: clamp(6px, 1vw, 12px);
}

.contact-side .note {
  gap: 18px;
  align-items: flex-start;
  padding: clamp(20px, 2.25vw, 26px);
}

.contact-side .note b {
  display: inline-block;
  margin-bottom: 8px;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.25;
}

.contact-side .note div {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.62;
}

.contact-side .note span {
  flex: 0 0 auto;
}

.calendar-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
}

.status-message {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  color: #0b7569;
  background: rgba(23, 167, 146, 0.12);
  font-weight: 700;
}

.status-message.show {
  display: block;
}

.mt-18 {
  margin-top: 18px;
}

.mt-22 {
  margin-top: 22px;
}

.footer {
  padding: 74px 24px 34px;
  color: var(--text);
  background: linear-gradient(180deg, #e9f9f6, #f8fdfb);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 60px;
}

.footer-brand {
  max-width: 390px;
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-email {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
}

.footer-availability {
  display: inline-flex;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 800;
}

.footer p,
.footer a {
  color: var(--muted);
}

.footer a {
  text-decoration: none;
}

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

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

.footer h4 {
  margin: 0 0 16px;
  color: #3c9f94;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes signalDrift {
  to {
    transform: translateY(18px);
  }
}

@keyframes pulseSweep {
  to {
    background-position: 130px 0, 0 0;
  }
}

@keyframes workflowDash {
  to {
    stroke-dashoffset: -120;
  }
}

@keyframes imageSheen {
  45%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .section-head,
  .split,
  .split.reverse,
  .service-row,
  .service-row:nth-child(even),
  .calculator,
  .contact-flow,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(even) .service-copy {
    order: initial;
  }

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

  .results-panel {
    position: relative;
    top: 0;
  }

  .package.featured {
    transform: none;
  }

  .horizontal-workflow {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .workflow-node {
    scroll-snap-align: center;
  }
}

@media (max-width: 680px) {
  .hero,
  .page-hero {
    min-height: auto;
    padding: 126px 18px 70px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .section,
  .section-tight {
    padding: 72px 18px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .form-grid,
  .preset-grid,
  .result-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .field-pair {
    flex-direction: column;
  }

  .hero-panel img,
  .image-frame img,
  .service-visual {
    min-height: 310px;
    height: auto;
  }

  .patient-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -42px 12px 0;
  }

  .range-row {
    grid-template-columns: 1fr;
  }

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

  .workflow-stack {
    min-height: auto;
    display: grid;
    gap: 14px;
    padding-left: 0;
  }

  .workflow-lines {
    display: none;
  }

  .workflow-stack .note {
    position: static;
    width: auto;
    min-height: auto;
    display: flex;
    justify-items: initial;
    text-align: left;
    align-items: flex-start;
  }

  .workflow-stack .note:nth-of-type(3),
  .workflow-stack .note:nth-of-type(3):hover {
    transform: none;
  }

  .horizontal-workflow {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: hidden;
    padding: 24px;
  }

  .horizontal-workflow-lines {
    display: none;
  }

  .workflow-node,
  .workflow-node:nth-of-type(2),
  .workflow-node:nth-of-type(4),
  .workflow-node:nth-of-type(2):hover,
  .workflow-node:nth-of-type(4):hover {
    min-height: auto;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    transform: none;
  }
}

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

/* Spacing normalization pass */
:root {
  --space-section: clamp(64px, 7vw, 84px);
  --space-section-tight: clamp(48px, 5.5vw, 64px);
  --space-gutter: clamp(18px, 2.2vw, 24px);
  --space-card: clamp(22px, 2.1vw, 28px);
  --space-panel: clamp(24px, 2.6vw, 34px);
  --space-heading-copy: clamp(18px, 2.4vw, 28px);
}

.wrap {
  width: min(calc(100% - (var(--space-gutter) * 2)), var(--wrap));
}

.hero,
.page-hero {
  padding: clamp(112px, 10vw, 126px) var(--space-gutter) clamp(58px, 6vw, 72px);
}

.page-hero {
  min-height: clamp(380px, 42vw, 440px);
}

.section {
  padding: var(--space-section) var(--space-gutter);
}

.section-tight {
  padding: var(--space-section-tight) var(--space-gutter);
}

.section-head {
  gap: clamp(24px, 4vw, 38px);
  margin-bottom: clamp(30px, 4.6vw, 42px);
}

.split,
.split.reverse,
.hero-grid,
.service-row,
.calculator,
.contact-flow,
.footer-grid {
  gap: clamp(28px, 4vw, 48px);
}

.card,
.panel {
  padding: var(--space-card);
}

.panel {
  border-radius: clamp(22px, 2.6vw, 30px);
}

.calculator {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: stretch;
}

.calculator .panel {
  padding: var(--space-panel);
}

.calculator > .panel {
  display: flex;
  flex-direction: column;
}

.calculator .section-title {
  font-size: clamp(32px, 3.7vw, 52px);
  line-height: 1.05;
}

.calculator .section-copy {
  margin-bottom: clamp(18px, 2.4vw, 28px);
  line-height: 1.6;
}

.form-grid {
  align-content: start;
  gap: 18px 16px;
}

.field {
  gap: 7px;
}

.field-pair {
  gap: 8px 18px;
  align-items: flex-start;
}

.field-pair .field input,
.field-pair .field select,
.range-row input[type="number"] {
  min-height: 52px;
}

.range-row {
  grid-template-columns: minmax(0, 1fr) minmax(92px, 110px);
  gap: 14px;
}

.hero-result {
  margin: clamp(16px, 2vw, 22px) 0;
  padding: clamp(20px, 2.5vw, 28px);
}

.result-grid {
  flex: 1;
  gap: 14px;
  grid-auto-rows: minmax(118px, 1fr);
}

.result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2vw, 20px);
}

.note-stack {
  margin-top: clamp(18px, 2.4vw, 26px);
}

.actions {
  margin-top: clamp(18px, 2vw, 26px);
}

/* ROI calculator cockpit */
.roi-lab-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(116, 210, 199, 0.18), transparent 34%),
    radial-gradient(circle at 86% 24%, rgba(107, 183, 223, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(247, 253, 252, 0.84), rgba(255, 255, 255, 0.96));
}

.roi-lab-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(107, 183, 223, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(107, 183, 223, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

.roi-lab-section .calculator {
  position: relative;
  z-index: 1;
}

.roi-lab-section .calculator::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 50%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(116, 210, 199, 0.72), transparent);
  box-shadow: 0 0 28px rgba(116, 210, 199, 0.42);
}

.calculator-input-panel,
.calculator-results-panel {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-color: rgba(116, 210, 199, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 253, 251, 0.78)),
    radial-gradient(circle at 0 0, rgba(116, 210, 199, 0.22), transparent 36%);
  box-shadow:
    0 28px 70px rgba(56, 104, 119, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.calculator-input-panel::before,
.calculator-results-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 10%, rgba(116, 210, 199, 0.2), transparent 28%),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.46) 48%, transparent 56%);
}

.calculator-input-panel::after,
.calculator-results-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -72px;
  top: -72px;
  z-index: -1;
  border: 1px solid rgba(116, 210, 199, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(116, 210, 199, 0.055),
    0 0 0 52px rgba(107, 183, 223, 0.035);
}

.calculator-input-panel .form-grid {
  gap: 16px;
}

.calculator-input-panel .field,
.calculator-input-panel .field-pair.full {
  padding: clamp(16px, 1.8vw, 20px);
  border: 1px solid rgba(45, 79, 97, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(56, 104, 119, 0.06);
}

.calculator-input-panel .field-pair.full .field {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.calculator-input-panel label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  color: #3c9f94;
  background: rgba(116, 210, 199, 0.12);
  letter-spacing: 0.12em;
}

.calculator-input-panel input,
.calculator-input-panel select {
  min-height: 58px;
  border-color: rgba(45, 79, 97, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 750;
}

.calculator-input-panel input:focus,
.calculator-input-panel select:focus {
  border-color: rgba(116, 210, 199, 0.74);
  box-shadow:
    0 0 0 4px rgba(116, 210, 199, 0.18),
    0 16px 34px rgba(56, 104, 119, 0.08);
}

.calculator-input-panel .range-row {
  grid-template-columns: minmax(0, 1fr) minmax(94px, 116px);
}

.calculator-input-panel input[type="range"] {
  height: 12px;
  background:
    linear-gradient(90deg, var(--teal) var(--range-progress), rgba(116, 210, 199, 0.15) var(--range-progress)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.calculator-input-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
}

.calculator-input-panel input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -6px;
  box-shadow:
    0 0 0 6px rgba(116, 210, 199, 0.16),
    0 12px 22px rgba(56, 104, 119, 0.18);
}

.calculator-input-panel input[type="range"]::-moz-range-track,
.calculator-input-panel input[type="range"]::-moz-range-progress {
  height: 12px;
}

.calculator-input-panel input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  box-shadow:
    0 0 0 6px rgba(116, 210, 199, 0.16),
    0 12px 22px rgba(56, 104, 119, 0.18);
}

.calculator-results-panel {
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(239, 253, 250, 0.96), rgba(205, 241, 235, 0.92)),
    radial-gradient(circle at 78% 14%, rgba(107, 183, 223, 0.22), transparent 30%),
    url("../images/results-dashboard.jpg") center/cover;
}

.calculator-results-panel .hero-result {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 253, 252, 0.78)),
    radial-gradient(circle at 12% 0, rgba(116, 210, 199, 0.18), transparent 30%);
  box-shadow:
    0 24px 54px rgba(56, 104, 119, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.calculator-results-panel .result-main {
  font-size: clamp(46px, 4.6vw, 72px);
  letter-spacing: -0.055em;
  background: linear-gradient(135deg, var(--ink), #3c9f94);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.calculator-results-panel .result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 18px);
}

.calculator-results-panel .result-card {
  position: relative;
  justify-content: space-between;
  min-height: 138px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 40px rgba(56, 104, 119, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.calculator-results-panel .result-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(116, 210, 199, 0.16);
}

.calculator-results-panel .result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(56, 104, 119, 0.12);
}

.calculator-results-panel .result-card strong {
  margin: 10px 0 8px;
  font-size: clamp(26px, 2.5vw, 34px);
  letter-spacing: -0.03em;
}

.calculator-results-panel .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-results-panel .button {
  width: 100%;
}

.roi-lab-section .calculator {
  align-items: stretch;
}

.roi-lab-section .results-panel {
  position: sticky;
  top: 92px;
}

.calculator-input-panel {
  align-self: stretch;
  height: 100%;
}

.calculator-results-panel {
  align-self: start;
  height: auto;
}

.calculator-input-panel .range-row {
  grid-template-columns: minmax(160px, 64%) minmax(88px, 108px);
  justify-content: start;
}

.calculator-input-panel .range-row input[type="range"] {
  width: 100%;
  max-width: 360px;
}

.calculator-results-panel .result-grid {
  flex: 1;
  align-content: stretch;
}

@media (max-width: 1020px) {
  .calculator {
    align-items: start;
  }

  .roi-lab-section .calculator {
    align-items: stretch;
  }

  .results-panel {
    position: relative;
    top: 0;
    margin-top: 0;
  }

  .roi-lab-section .calculator::before {
    display: none;
  }

  .calculator-results-panel .actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --space-section: 58px;
    --space-section-tight: 48px;
    --space-gutter: 16px;
  }

  .hero,
  .page-hero {
    padding: 112px var(--space-gutter) 58px;
  }

  .section,
  .section-tight {
    padding-left: var(--space-gutter);
    padding-right: var(--space-gutter);
  }

  .card,
  .panel,
  .calculator .panel {
    padding: 20px;
  }

  .calculator .section-title {
    font-size: clamp(30px, 9vw, 38px);
  }

  .field-pair {
    gap: 12px;
  }

  .field-pair-hint {
    margin-top: -2px;
  }
}

/* Final calculator and first-section spacing polish */
.page-hero + main > .section:first-child {
  padding-top: clamp(48px, 5.2vw, 68px);
}

.hero-roi.page-hero {
  min-height: clamp(220px, 23vw, 270px);
  padding-top: clamp(76px, 6.4vw, 88px);
  padding-bottom: clamp(12px, 2vw, 24px);
}

.hero-roi h1 {
  max-width: 1080px;
  font-size: clamp(36px, 3.7vw, 50px);
}

.hero-roi .page-copy {
  margin-top: 10px;
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-roi.page-hero + main > .roi-lab-section:first-child {
  padding-top: clamp(18px, 2.4vw, 30px);
}

.roi-lab-section {
  padding-top: clamp(26px, 3.4vw, 42px);
  padding-bottom: clamp(34px, 4vw, 52px);
}

.roi-lab-section .calculator {
  align-items: start;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  gap: clamp(18px, 2.4vw, 28px);
}

.roi-lab-section .calculator::before {
  top: 24px;
  bottom: 24px;
}

.roi-lab-section .calculator .panel {
  padding: clamp(16px, 1.8vw, 22px);
  border-radius: 24px;
}

.roi-lab-section .calculator .panel > .eyebrow {
  margin-bottom: 8px;
}

.roi-lab-section .calculator .section-title,
.calculator-results-panel h2 {
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.04;
}

.roi-lab-section .calculator .panel > .section-copy {
  max-width: 620px;
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.calculator-input-panel {
  align-self: start;
  height: auto;
}

.calculator-input-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calculator-input-panel .field.full,
.calculator-input-panel .field-pair.full {
  grid-column: span 1;
}

.calculator-input-panel .field,
.calculator-input-panel .field-pair.full {
  padding: 10px;
  border-radius: 16px;
}

.calculator-input-panel .field-pair {
  gap: 5px;
}

.calculator-input-panel .field-pair-hint,
.calculator-input-panel .hint {
  display: none;
}

.calculator-input-panel label {
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.calculator-input-panel input,
.calculator-input-panel select,
.calculator-input-panel .field-pair .field input,
.calculator-input-panel .field-pair .field select,
.calculator-input-panel .range-row input[type="number"] {
  min-height: 40px;
  border-radius: 14px;
  font-size: 15px;
}

.calculator-input-panel .range-row {
  grid-template-columns: minmax(130px, 1fr) minmax(74px, 88px);
  gap: 8px;
}

.calculator-input-panel input[type="range"],
.calculator-input-panel input[type="range"]::-webkit-slider-runnable-track,
.calculator-input-panel input[type="range"]::-moz-range-track,
.calculator-input-panel input[type="range"]::-moz-range-progress {
  height: 10px;
}

.calculator-input-panel input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -5px;
}

.calculator-input-panel input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
}

.calculator-results-panel {
  align-self: start;
  height: auto;
  overflow: visible;
}

.calculator-results-panel .hero-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 18px;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 18px;
}

.calculator-results-panel .hero-result .result-label {
  grid-column: 1 / -1;
}

.calculator-results-panel .result-main {
  font-size: clamp(34px, 3.4vw, 46px);
}

.calculator-results-panel .result-support {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.35;
}

.calculator-results-panel .result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 8px;
}

.calculator-results-panel .result-card {
  min-height: 66px;
  padding: 8px 10px;
  border-radius: 14px;
}

.calculator-results-panel .result-card::before {
  top: 12px;
  right: 12px;
  width: 6px;
  height: 6px;
}

.calculator-results-panel .result-card strong {
  margin: 4px 0 2px;
  font-size: clamp(20px, 1.8vw, 25px);
}

.calculator-results-panel .result-card span {
  padding-right: 14px;
  font-size: 10px;
  line-height: 1.25;
}

.calculator-results-panel .result-card small {
  font-size: 10px;
  line-height: 1.2;
}

.calculator-results-panel .actions {
  gap: 10px;
  margin-top: 10px;
}

.calculator-results-panel .button {
  min-height: 38px;
  padding: 0 18px;
}

.growth-dashboard {
  gap: 0;
}

.growth-dashboard .section-copy {
  max-width: 560px;
}

.growth-visual {
  position: relative;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(243, 253, 251, 0.68)),
    radial-gradient(circle at 72% 14%, rgba(116, 210, 199, 0.28), transparent 34%);
  box-shadow:
    0 22px 54px rgba(56, 104, 119, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.growth-revenue {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(160px, 1fr);
  gap: 2px 18px;
  align-items: end;
  padding: 0 2px 8px;
}

.growth-revenue span,
.growth-metrics span,
.growth-legend span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.growth-revenue strong {
  display: block;
  color: #245e78;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.growth-revenue small {
  max-width: 240px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.growth-chart-shell {
  position: relative;
  height: clamp(198px, 21vw, 240px);
  margin-top: 8px;
  padding: 12px 8px 4px;
  border: 1px solid rgba(116, 210, 199, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 76% 22%, rgba(116, 210, 199, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 253, 251, 0.36));
}

.growth-chart-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border-radius: 16px;
  background-image:
    linear-gradient(90deg, rgba(45, 79, 97, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(45, 79, 97, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 86%, transparent);
}

.growth-chart-shell canvas {
  position: relative;
  z-index: 1;
}

.growth-legend,
.growth-metrics {
  display: grid;
  gap: 8px;
}

.growth-legend {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: -10px;
}

.growth-legend > div,
.growth-metrics > div {
  position: relative;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.growth-legend strong,
.growth-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.growth-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.growth-metrics > div::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(116, 210, 199, 0.13);
}

.calculator .section-title {
  max-width: 100%;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.025em;
}

.calculator .panel > .eyebrow {
  margin-bottom: 14px;
}

.calculator .panel > .section-copy {
  margin-bottom: 18px;
}

.calculator .field-pair {
  margin-top: 2px;
}

.calculator label {
  line-height: 1.25;
}

@media (max-width: 680px) {
  .page-hero + main > .section:first-child {
    padding-top: 42px;
  }

  .calculator .section-title {
    font-size: clamp(28px, 8.3vw, 36px);
  }

  .calculator-input-panel .form-grid,
  .calculator-results-panel .result-grid {
    grid-template-columns: 1fr;
  }

  .calculator-input-panel .field.full,
  .calculator-input-panel .field-pair.full {
    grid-column: 1 / -1;
  }

  .calculator-results-panel .hero-result {
    grid-template-columns: 1fr;
  }
}


/* Semantic SEO and accessibility support */
.skip-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 2000;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

/* Standardized section header system */
.section-head,
.section-tight .section-head {
  align-items: end;
  gap: clamp(22px, 3.6vw, 38px);
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-head .eyebrow,
.section > .wrap > .reveal > .eyebrow,
.section-tight .eyebrow {
  margin-bottom: clamp(12px, 1.4vw, 16px);
}

.section-title {
  max-width: 820px;
}

.section-title + .section-copy,
.section-title + .page-copy,
h1 + .hero-copy,
.panel > h2 + .section-copy {
  margin-top: var(--space-heading-copy);
}

.section-copy,
.page-copy,
.hero-copy {
  max-width: 700px;
  line-height: 1.62;
}

.section-head .section-copy {
  max-width: 520px;
}

.section-head .section-copy + .actions,
.section-head .section-copy + .button {
  margin-top: clamp(18px, 2vw, 26px);
}

.card p:last-child,
.note p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

/* ROI Calculator — reference preview implementation */
.roi-v2 {
  position: relative;
  overflow: hidden;
  padding-top: clamp(26px, 3.4vw, 42px);
  padding-bottom: clamp(34px, 4vw, 52px);
}

.hero-roi.page-hero + main > .roi-v2:first-child {
  padding-top: clamp(18px, 2.4vw, 30px);
}

.roi-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, rgba(116, 210, 199, 0.16), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(107, 183, 223, 0.14), transparent 30%);
}

.roi-v2-calculator {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: clamp(20px, 2.6vw, 30px);
  align-items: start;
}

.roi-v2-panel {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.roi-v2-inputs > .section-title,
.roi-v2-results > .section-title {
  margin-top: 2px;
  font-size: clamp(26px, 2.6vw, 32px);
}

.roi-v2-inputs > .section-copy,
.roi-v2-results > .section-copy {
  margin-top: 8px;
  font-size: 14.5px;
}

.roi-v2-inputs > .section-copy {
  max-width: 480px;
  margin-bottom: 22px;
}

.roi-v2-results > .section-copy {
  margin-bottom: 20px;
}

.roi-v2-field {
  min-width: 0;
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--wash);
}

.roi-v2-field:last-child {
  margin-bottom: 0;
}

.roi-v2-field-accent {
  border-color: rgba(116, 210, 199, 0.45);
  background: linear-gradient(135deg, rgba(116, 210, 199, 0.14), rgba(168, 230, 223, 0.1));
}

.roi-v2-field label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roi-v2-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.roi-v2-field-head label {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roi-v2-bubble {
  flex: 0 0 auto;
  padding: 3px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(107, 183, 223, 0.22);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.roi-v2-bubble-accent {
  color: #1f6b62;
  background: rgba(116, 210, 199, 0.42);
}

.roi-v2-currency-input {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.roi-v2-currency-input span {
  padding: 0 0 0 14px;
  color: var(--faint);
  font-weight: 800;
}

.roi-v2-currency-input input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 700;
}

.roi-v2-currency-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(107, 183, 223, 0.18);
}

.roi-v2-currency-input input:focus {
  box-shadow: none;
}

.roi-v2-hint {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

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

.roi-v2-range-row input[type="range"] {
  --range-progress: 0%;
  width: 100%;
  height: 10px;
  margin-top: 4px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--range-progress), rgba(107, 183, 223, 0.16) var(--range-progress));
  cursor: pointer;
}

.roi-v2-field-accent .roi-v2-range-row input[type="range"] {
  background: linear-gradient(90deg, #3c9f94 var(--range-progress), rgba(116, 210, 199, 0.2) var(--range-progress));
}

.roi-v2-range-row input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  background: transparent;
}

.roi-v2-range-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(56, 104, 119, 0.28);
}

.roi-v2-field-accent .roi-v2-range-row input[type="range"]::-webkit-slider-thumb {
  background: #3c9f94;
}

.roi-v2-range-row input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(107, 183, 223, 0.16);
}

.roi-v2-range-row input[type="range"]::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
}

.roi-v2-field-accent .roi-v2-range-row input[type="range"]::-moz-range-progress {
  background: #3c9f94;
}

.roi-v2-range-row input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(56, 104, 119, 0.28);
}

.roi-v2-field-accent .roi-v2-range-row input[type="range"]::-moz-range-thumb {
  background: #3c9f94;
}

.roi-v2-range-row input[type="range"]:focus {
  box-shadow: 0 0 0 4px rgba(107, 183, 223, 0.22);
}

.roi-v2-select-wrap {
  position: relative;
  margin-top: 10px;
}

.roi-v2-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.roi-v2-select-wrap select {
  width: 100%;
  padding: 13px 38px 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  appearance: none;
}

.roi-v2-select-wrap select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(107, 183, 223, 0.18);
}

.roi-v2-results {
  position: sticky;
  top: 96px;
  background:
    linear-gradient(150deg, rgba(245, 253, 251, 0.97), rgba(223, 244, 240, 0.9));
}

.roi-v2-hero-figure {
  padding: 22px 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(56, 104, 119, 0.1);
}

.roi-v2-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roi-v2-hero-figure strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.roi-v2-hero-figure small {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.roi-v2-compare {
  padding: 20px 22px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(116, 210, 199, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.roi-v2-compare-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.roi-v2-compare-row:last-of-type {
  margin-bottom: 0;
}

.roi-v2-compare-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.roi-v2-compare-label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.roi-v2-compare-label strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.roi-v2-compare-track {
  position: relative;
  height: 30px;
  border-radius: 999px;
  background: rgba(45, 79, 97, 0.07);
  overflow: hidden;
}

.roi-v2-compare-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3%;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.roi-v2-fill-current {
  background: linear-gradient(90deg, #9fcbe3, var(--blue));
}

.roi-v2-fill-projected {
  background: linear-gradient(90deg, #74d2c7, #3c9f94);
}

.roi-v2-compare-caption {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
}

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

.roi-v2-metric {
  position: relative;
  padding: 14px 16px;
  border: 1px solid rgba(45, 79, 97, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.roi-v2-metric span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roi-v2-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roi-v2-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.roi-v2-actions .button {
  width: 100%;
}

@media (max-width: 1020px) {
  .section-head,
  .section-tight .section-head {
    align-items: start;
  }

  .section-head .section-copy {
    max-width: 720px;
  }

  .roi-v2-calculator {
    grid-template-columns: 1fr;
  }

  .roi-v2-results {
    position: relative;
    top: 0;
  }
}

@media (max-width: 560px) {
  .hero-roi h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 42px);
  }

  .roi-v2 {
    padding-right: var(--space-gutter);
    padding-left: var(--space-gutter);
  }

  .roi-v2-panel {
    width: 100%;
    padding: 20px;
    overflow: hidden;
  }

  .roi-v2-field {
    padding: 14px;
    overflow: hidden;
  }

  .roi-v2-field-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .roi-v2-field-head label {
    white-space: normal;
  }

  .roi-v2-currency-input,
  .roi-v2-select-wrap,
  .roi-v2-select-wrap select,
  .roi-v2-range-row,
  .roi-v2-range-row input[type="range"] {
    width: 100%;
    max-width: 100%;
  }

  .roi-v2-currency-input input {
    width: 100%;
  }

  .roi-v2-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .roi-v2-compare-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .roi-v2-actions {
    grid-template-columns: 1fr;
  }
}
