/* ============================================================
   RPM DATA WORX — Complete site stylesheet
   Used by: index.html, calculator.html, thanks.html
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary:        #0033A0;
  --signal:         #1E8AFF;
  --navy:           #1B365D;
  --navy-deep:      #102544;
  --sky:            #B1C9E8;
  --sky-soft:       #E7EFF9;
  --sky-softer:     #F2F6FC;
  --teal:           #4CBCC0;
  --teal-soft:      #E4F4F5;
  --teal-ink:       #0F6E56;
  --amber:          #FFA360;
  --yellow:         #FFDC00;
  --white:          #FFFFFF;
  --paper:          #FAFAFB;
  --ink:            #0A0F1A;
  --ink-2:          #475569;
  --ink-3:          #64748B;
  --ink-4:          #94A3B8;
  --border:         #E5E7EB;
  --border-soft:    #F1F3F5;
  --brand-orange:   #F58220;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-slab:      'Roboto Slab', 'Inter', serif;
  --container:      1240px;
  --radius-sm:      8px;
  --radius:         12px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      24px;
  --radius-pill:    999px;
  --ease:           cubic-bezier(.2, .7, .2, 1);
  --ease-out:       cubic-bezier(.16, 1, .3, 1);
  --dur:            280ms;
  --dur-fast:       160ms;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Added by TIM 6/11/26 */
  /*min-height: 100vh;
  display: flex;
  flex-direction: column;*/
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--signal); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
::selection { background: var(--navy); color: var(--white); }

/* ============================================================
   SHARED COMPONENTS — brand mark, buttons
   ============================================================ */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 15px;
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }

.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px;
  background: var(--primary); color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 51, 160, 0.4);
  transition: all var(--dur) var(--ease);
}
.cta-primary:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(0, 51, 160, 0.5);
  color: var(--white);
}
.cta-primary .arrow { transition: transform var(--dur) var(--ease); font-weight: 400; }
.cta-primary:hover .arrow { transform: translateX(3px); }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 26px;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.cta-secondary:hover {
  border-color: var(--navy);
  background: var(--paper);
  color: var(--navy);
}

.cta-group {
  display: inline-flex; gap: 12px; align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap; justify-content: center;
}

/* ============================================================
   NAV — sticky pill, blurred backdrop
   ============================================================ */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 24px 0;
}
.nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 999px;
  box-shadow: 0 8px 32px -12px rgba(15,23,42,0.16), 0 2px 4px rgba(15,23,42,0.04);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
}
.nav-cta:hover { background: var(--navy); }

/* ============================================================
   HERO — index page (large, with device stage)
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sky-softer) 40%, var(--white) 100%);
  padding: 60px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse, rgba(30,138,255,0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; position: relative; }
.hero-content { text-align: center; max-width: 860px; margin: 0 auto 56px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--navy);
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76,188,192,0.2);
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 24px;
}
.hero h1 .em { color: var(--signal); font-style: italic; font-weight: 600; }

.hero-lead {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto 36px;
  max-width: 720px;
}

.hero-cta-group {
  display: inline-flex; gap: 12px; align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap; justify-content: center;
}
.hero-microcopy { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* ============================================================
   CALC-HERO — calculator page (smaller, no device stage)
   ============================================================ */
.calc-hero {
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sky-softer) 60%, var(--white) 100%);
  padding: 50px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-hero::before {
  content: "";
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(30,138,255,0.10), transparent 70%);
  pointer-events: none;
}
.calc-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; position: relative; }
.calc-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--signal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.calc-hero-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76,188,192,0.2);
}
.calc-hero h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 20px;
  font-weight: 600;
}
.calc-hero h1 .em { color: var(--signal); font-style: italic; }
.calc-hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto;
  max-width: 600px;
}

/* ============================================================
   DEVICE STAGE — three role mockups (phone/laptop/browser)
   ============================================================ */
.device-stage { position: relative; max-width: 1180px; margin: 0 auto; height: 540px; }
.device-wrap {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.device-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}
.device-label .marker { width: 6px; height: 6px; border-radius: 50%; }
.device-wrap.patient .marker { background: var(--teal); }
.device-wrap.clinician .marker { background: var(--signal); }
.device-wrap.admin .marker { background: var(--amber); }

/* PHONE - Patient */
.device-wrap.patient {
  left: 0; top: 60px; z-index: 2;
  transform: rotate(-6deg);
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.device-wrap.patient:hover { transform: rotate(-6deg) translateY(-6px); }
.phone-frame {
  width: 230px; height: 460px;
  background: #1B365D;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,0.25), 0 6px 16px rgba(15,23,42,0.08);
  position: relative;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #1B365D;
  border-radius: 12px;
  z-index: 2;
}
.phone-screen { width: 100%; height: 100%; background: white; border-radius: 28px; overflow: hidden; position: relative; }

/* LAPTOP - Clinician */
.device-wrap.clinician {
  left: 50%; transform: translateX(-50%);
  top: 30px; z-index: 3;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.device-wrap.clinician:hover { transform: translateX(-50%) translateY(-6px); }
.laptop-frame {
  width: 640px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(15,23,42,0.22), 0 8px 20px rgba(15,23,42,0.06);
}
.laptop-chrome {
  background: #F4F5F7;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.laptop-chrome .lights { display: flex; gap: 6px; }
.laptop-chrome .lights span { width: 10px; height: 10px; border-radius: 50%; }
.laptop-chrome .lights span:nth-child(1) { background: #FF5F57; }
.laptop-chrome .lights span:nth-child(2) { background: #FEBC2E; }
.laptop-chrome .lights span:nth-child(3) { background: #28C840; }
.laptop-chrome .url {
  flex: 1; background: white;
  border-radius: 6px; padding: 5px 12px;
  font-size: 11px; color: var(--ink-3);
  text-align: center;
}
.laptop-chrome .url .lock { display: inline-block; margin-right: 6px; opacity: 0.5; }
.laptop-body { width: 100%; aspect-ratio: 640/400; }

/* BROWSER - Admin */
.device-wrap.admin {
  right: 0; top: 80px; z-index: 2;
  transform: rotate(5deg);
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.device-wrap.admin:hover { transform: rotate(5deg) translateY(-6px); }
.browser-frame {
  width: 280px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,0.2), 0 6px 16px rgba(15,23,42,0.06);
}
.browser-chrome {
  background: #F4F5F7;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.browser-chrome .lights { display: flex; gap: 5px; }
.browser-chrome .lights span { width: 8px; height: 8px; border-radius: 50%; }
.browser-chrome .lights span:nth-child(1) { background: #FF5F57; }
.browser-chrome .lights span:nth-child(2) { background: #FEBC2E; }
.browser-chrome .lights span:nth-child(3) { background: #28C840; }
.browser-chrome .url {
  flex: 1; background: white;
  border-radius: 5px; padding: 4px 8px;
  font-size: 10px; color: var(--ink-3);
  text-align: center;
}
.browser-body { aspect-ratio: 280/360; }

/* ============================================================
   TRUST BAR — three stats
   ============================================================ */
.trust-bar {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 36px 48px;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px -2px rgba(15,23,42,0.04);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  position: relative; z-index: 5;
}
.trust-item {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
  border-left: 2px solid var(--sky-soft);
  padding-left: 24px;
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-num {
  font-size: 38px; font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.trust-num .accent { color: var(--signal); }
.trust-label { font-size: 13px; color: var(--ink-3); font-weight: 500; line-height: 1.5; }

/* ============================================================
   SECTION HEADER (shared across sections)
   ============================================================ */
.sec-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.sec-header.left { text-align: left; margin-left: 0; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  color: var(--signal);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.sec-eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--signal); border-radius: 2px;
}
.sec-eyebrow.on-dark { color: var(--sky); }
.sec-eyebrow.on-dark::before { background: var(--sky); }
.sec-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 20px;
}
.sec-title .em { color: var(--signal); font-style: italic; }
.sec-title.on-dark { color: var(--white); }
.sec-title.on-dark .em { color: var(--sky); }
.sec-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.sec-lead.on-dark { color: rgba(255,255,255,0.75); }

/* ============================================================
   SECTION: CAPABILITIES
   ============================================================ */
.capabilities {
  padding: 70px 0 80px;
  background: var(--white);
}
.cap-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: all 280ms ease;
}
.cap-card:hover {
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(0,51,160,0.15);
}
.cap-icon {
  width: 48px; height: 48px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.cap-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.cap-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 20px;
}
.cap-list { list-style: none; padding: 0; margin: 0; }
.cap-list li {
  font-size: 14px;
  color: var(--ink);
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.cap-list li::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--teal-soft);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.cap-list li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  color: var(--teal-ink);
  font-size: 9px;
  font-weight: 700;
}

/* ============================================================
   SECTION: DEVICES — Withings device cards (real photos)
   ============================================================ */
.devices {
  padding: 100px 0;
  background: var(--paper);
}
.devices-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.device-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 280ms ease;
}
.device-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(15,23,42,0.15);
}
.device-img {
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sky-softer) 100%);
  display: grid; place-items: center;
  padding: 28px;
  overflow: hidden;
}
.device-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.device-body { padding: 24px; }
.device-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.device-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.device-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 16px;
}
.device-meta {
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--ink-3);
}
.device-meta .status {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ============================================================
   SECTION: REVENUE — CPT codes + scale (dark)
   ============================================================ */
.revenue {
  padding: 100px 0;
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.revenue::before {
  content: "";
  position: absolute;
  top: 50%; right: -200px;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,138,255,0.15), transparent 60%);
  pointer-events: none;
}
.revenue-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 40px;
  position: relative;
}
.rev-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.cpt-list {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
}
.cpt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 18px 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cpt-row:last-child { border-bottom: none; }
.cpt-code {
  background: rgba(30,138,255,0.15);
  color: var(--signal);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.cpt-desc { color: rgba(255,255,255,0.85); }
.cpt-desc .name {
  display: block;
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.cpt-desc .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.cpt-pay {
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.rev-scale {
  background: rgba(76,188,192,0.06);
  border: 1px solid rgba(76,188,192,0.25);
  border-radius: 18px;
  padding: 28px;
}
.rev-scale-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.rev-scale-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rev-scale-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.scale-rows { display: flex; flex-direction: column; gap: 14px; }
.scale-row {
  display: grid; grid-template-columns: 100px 1fr auto;
  align-items: center; gap: 16px;
}
.scale-pts {
  font-size: 13px;
  color: var(--sky);
  font-weight: 500;
}
.scale-bar {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.scale-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--signal), var(--teal));
  border-radius: 5px;
}
.scale-rev {
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  min-width: 100px;
  text-align: right;
}
.scale-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.calculator-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  padding: 14px 22px;
  background: var(--signal);
  color: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease;
}
.calculator-cta:hover { background: white; color: var(--primary); transform: translateY(-1px); }

/* ============================================================
   SECTION: DEPLOYMENTS — brand-logo cards
   ============================================================ */
.deployments {
  padding: 100px 0;
  background: var(--sky-softer);
}
.deployments-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.dep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dep-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 280ms ease;
  display: flex;
  flex-direction: column;
}
.dep-card:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(15,23,42,0.12);
}

/* Brand logo block — sits at top of card, padded vertically */
.dep-logo {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* Total PT Connect & Total Health Connect — slab serif, black w/ orange accent */
.dep-logo.logo-totalpt,
.dep-logo.logo-totalhealth {
  font-family: var(--font-slab);
  font-weight: 800;
  font-size: 30px;
  color: #1A1A1A;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.dep-logo.logo-totalpt .accent,
.dep-logo.logo-totalhealth .accent {
  color: var(--brand-orange);
}
.dep-logo.logo-totalpt .accent i,
.dep-logo.logo-totalhealth .accent i {
  font-style: italic;
  font-weight: 800;
}
/* VibedHealth — bold sans, navy */
.dep-logo.logo-vibed {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.dep-market {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.dep-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   SECTION: ACQUISITION
   ============================================================ */
.acquisition {
  padding: 100px 0;
  background: var(--white);
}
.acq-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.acq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.acq-col {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.acq-col-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.acq-col-header .ind {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.acq-col.included .ind { background: var(--teal); }
.acq-col.addon .ind { background: var(--amber); }
.acq-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.acq-list { list-style: none; padding: 0; margin: 0; }
.acq-list li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
}
.acq-list li:first-child { border-top: none; }
.acq-list li::before {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.acq-col.included .acq-list li::before { content: "✓"; color: var(--teal); }
.acq-col.addon .acq-list li::before { content: "+"; color: var(--amber); }
.acq-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--sky-softer);
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  text-align: center;
}

/* ============================================================
   SECTION: CTA / FORM (dark)
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(30,138,255,0.18), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 40px;
  position: relative;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.cta-side h2 {
  font-size: 44px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.cta-side h2 .em { color: var(--sky); font-style: italic; }
.cta-side p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0 0 32px;
}
.cta-contact {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.cta-contact strong { color: white; font-weight: 600; }
.cta-contact a { color: var(--sky); }
.cta-contact a:hover { color: white; }

.form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-single { margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: white;
  transition: all 200ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--signal);
  background: rgba(255,255,255,0.08);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: var(--navy); color: white; }
.form-submit {
  width: 100%;
  background: var(--signal);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 200ms ease;
}
.form-submit:hover { background: white; color: var(--primary); transform: translateY(-1px); }
.form-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ============================================================
   CALCULATOR PAGE — layout, inputs, outputs, breakdown
   ============================================================ */
.calc-section { padding: 0 0 80px; background: var(--white); }
.calc-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

/* INPUTS PANEL */
.calc-inputs {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  position: sticky;
  top: 100px;
}
.calc-inputs h2 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}
.calc-inputs .input-intro {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.input-block { margin-bottom: 28px; }
.input-block:last-of-type { margin-bottom: 0; }
.input-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.input-label .label-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.input-label .label-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.input-label .label-value .unit {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.input-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
  line-height: 1.5;
}

/* SLIDERS */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
  transition: transform 160ms var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--primary);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

/* SEGMENTED CONTROL */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.segmented input[type="radio"] { display: none; }
.segmented label {
  text-align: center;
  padding: 12px 8px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  transition: all 160ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.segmented label small {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.segmented input[type="radio"]:checked + label {
  background: var(--primary);
  color: var(--white);
}
.segmented input[type="radio"]:checked + label small {
  color: var(--sky);
}

/* TOGGLE */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.toggle-row .toggle-info { flex: 1; }
.toggle-row .toggle-info .toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.toggle-row .toggle-info .toggle-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 13px;
  transition: background 200ms var(--ease);
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 200ms var(--ease);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* SHARE BUTTON */
.share-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 160ms var(--ease);
  cursor: pointer;
  font-family: inherit;
}
.share-btn:hover {
  border-color: var(--navy);
  background: var(--paper);
}
.share-btn.copied {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-ink);
}

/* OUTPUTS PANEL (dark) */
.calc-outputs {
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.calc-outputs::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30,138,255,0.15), transparent 60%);
  pointer-events: none;
}
.outputs-header {
  position: relative; z-index: 1;
  margin-bottom: 32px;
}
.outputs-header h2 {
  font-size: 16px;
  color: var(--sky);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}
.headline-number {
  position: relative; z-index: 1;
  margin-bottom: 36px;
}
.headline-number .label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.headline-number .value {
  font-size: 64px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 200ms var(--ease);
}
.headline-number .value.flash { color: var(--teal); }
.secondary-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative; z-index: 1;
}
.secondary-numbers .item .label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.secondary-numbers .item .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* BREAKDOWN */
.breakdown { position: relative; z-index: 1; }
.breakdown-title {
  font-size: 13px;
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.breakdown-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.breakdown-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 14px;
}
.breakdown-row .code {
  background: rgba(255,255,255,0.06);
  color: var(--sky);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.breakdown-row .bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.breakdown-row .bar {
  height: 100%;
  border-radius: 4px;
  transition: width 280ms var(--ease);
}
.breakdown-row[data-code="99453"] .bar { background: var(--amber); }
.breakdown-row[data-code="99454"] .bar { background: var(--signal); }
.breakdown-row[data-code="99457"] .bar { background: var(--teal); }
.breakdown-row[data-code="99458"] .bar { background: var(--sky); }
.breakdown-row .amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  min-width: 90px;
  text-align: right;
}
.breakdown-row .amount.zero {
  color: rgba(255,255,255,0.3);
}
.breakdown-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* BOTTOM CTA on calculator page */
.bottom-cta {
  background: var(--paper);
  padding: 80px 24px;
  text-align: center;
}
.bottom-cta-inner { max-width: 620px; margin: 0 auto; }
.bottom-cta h2 {
  font-size: 38px;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.bottom-cta h2 .em { color: var(--signal); font-style: italic; }
.bottom-cta p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ============================================================
   THANKS PAGE — centered card, all scoped to .thanks-card
   ============================================================ */
main {
  flex: 1;
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--sky-softer) 40%, var(--white) 100%);
  padding: 80px 24px 100px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
main::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(30,138,255,0.10), transparent 70%);
  pointer-events: none;
}
.thanks-card {
  max-width: 640px; width: 100%;
  text-align: center;
  position: relative; z-index: 1;
}
.thanks-card h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 20px;
}
.thanks-card h1 .em { color: var(--signal); font-style: italic; }
.check-circle {
  width: 88px; height: 88px;
  margin: 0 auto 32px;
  background: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px -12px rgba(0,51,160,0.25), 0 2px 8px rgba(15,23,42,0.04);
  position: relative;
}
.check-circle::after {
  content: "";
  position: absolute; inset: 8px;
  background: var(--teal-soft);
  border-radius: 50%;
}
.check-circle svg {
  position: relative; z-index: 1;
  width: 40px; height: 40px;
}
.thanks-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--navy);
  margin-bottom: 28px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.thanks-eyebrow .dot {
  width: 7px; height: 7px; background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76,188,192,0.2);
}
.thanks-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 auto 40px;
  max-width: 520px;
}
.direct-contact {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}
.direct-contact a {
  color: var(--primary);
  font-weight: 500;
}

/* ============================================================
   FOOTER — full variant (index, calculator)
   ============================================================ */
.footer-full {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-full .foot-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.footer-full .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-full .foot-brand {
  display: flex; align-items: center; gap: 10px;
  color: white;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-full .foot-brand .brand-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  color: white;
}
.footer-full .foot-brand .brand-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.015em;
}
.footer-full .foot-tag {
  font-size: 13px;
  line-height: 1.6;
  max-width: 32ch;
}
.footer-full .foot-col h5 {
  font-size: 11px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-full .foot-col a,
.footer-full .foot-col p {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  text-decoration: none;
  line-height: 1.5;
  transition: color 200ms ease;
}
.footer-full .foot-col a:hover { color: white; }
.footer-full .foot-col a.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-full .foot-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   FOOTER — minimal variant (thanks)
   ============================================================ */
.footer-minimal {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  
  /* Added by TIM 6/11/26 */
  /*margin-top: auto;*/
}
.footer-minimal .foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE — TABLET (1100px and below)
   ============================================================ */
@media (max-width: 1100px) {
  .hero h1, .sec-title, .cta-side h2 { font-size: 40px; }
  .calc-hero h1 { font-size: 42px; }
  .device-wrap.patient { left: -20px; }
  .device-wrap.admin { right: -20px; }
  .laptop-frame { width: 540px; }
  .browser-frame { width: 240px; }
  .phone-frame { width: 200px; height: 400px; }
  .device-stage { height: 500px; }
  .cap-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: 1fr; gap: 32px; }
  .dep-grid { grid-template-columns: 1fr; }
  .acq-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-full .foot-grid { grid-template-columns: 1fr 1fr; }

  /* Calculator: stack inputs above outputs */
  .calc-grid { grid-template-columns: 1fr; gap: 20px; }
  .calc-inputs { position: static; }
}

/* ============================================================
   RESPONSIVE — MOBILE (700px and below)
   ============================================================ */
@media (max-width: 700px) {
  /* NAV: hide menu items, shrink brand + CTA */
  .nav-container { padding: 12px 12px 0; }
  .nav { padding: 10px 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; font-size: 13px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }

  /* Headlines */
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .calc-hero h1 { font-size: 32px; }
  .sec-title { font-size: 28px; }
  .cta-side h2 { font-size: 30px; }
  .hero-lead { font-size: 16px; line-height: 1.55; }
  .calc-hero-lead { font-size: 15px; }
  .sec-lead { font-size: 15px; }

  /* Section horizontal padding */
  .hero-inner,
  .devices-inner,
  .revenue-inner,
  .deployments-inner,
  .acq-inner,
  .cta-inner { padding-left: 20px; padding-right: 20px; }
  .cap-grid { padding-left: 20px; padding-right: 20px; }
  .sec-header { padding-left: 4px; padding-right: 4px; }
  .footer-full .foot-inner { padding-left: 20px; padding-right: 20px; }

  /* Section vertical padding */
  .capabilities,
  .devices,
  .revenue,
  .deployments,
  .acquisition,
  .cta-section { padding: 60px 0; }

  /* Hero padding */
  .hero { padding: 24px 0 60px; }
  .calc-hero { padding: 30px 0 30px; }

  /* Device stage: stack vertically */
  .device-stage {
    height: auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 36px;
    padding: 0;
  }
  .device-wrap {
    position: relative !important;
    left: auto !important; right: auto !important; top: auto !important;
    transform: none !important;
    width: 100%; max-width: 100%;
  }
  .device-wrap:hover { transform: none !important; }
  .phone-frame { width: 220px; height: 440px; }
  .laptop-frame { width: 100%; max-width: calc(100vw - 40px); }
  .browser-frame { width: 100%; max-width: 320px; }

  /* Trust bar: stack */
  .trust-bar {
    grid-template-columns: 1fr; gap: 20px; padding: 24px;
    margin-left: 20px; margin-right: 20px;
  }
  .trust-item {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--border-soft); padding-top: 16px;
  }
  .trust-item:first-child { border-top: none; padding-top: 0; }
  .trust-num { font-size: 32px; }

  /* Device grid: single column */
  .device-grid { grid-template-columns: 1fr; }

  /* Capabilities: tighter card padding */
  .cap-card { padding: 28px 24px; }

  /* Deployments: smaller brand logos */
  .dep-logo.logo-totalpt,
  .dep-logo.logo-totalhealth { font-size: 22px; }
  .dep-logo.logo-vibed { font-size: 24px; }
  .dep-card { padding: 28px 24px; }

  /* Acquisition: tighter padding */
  .acq-col { padding: 24px; }

  /* Form: stack pairs */
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }

  /* Footer: single column */
  .footer-full .foot-grid { grid-template-columns: 1fr; }

  /* Calculator panels */
  .calc-inner { padding: 0 16px; }
  .calc-inputs, .calc-outputs { padding: 24px; border-radius: 18px; }
  .headline-number .value { font-size: 48px; }
  .secondary-numbers { grid-template-columns: 1fr; gap: 16px; padding: 18px 0; }
  .secondary-numbers .item .value { font-size: 20px; }
  .bottom-cta { padding: 60px 20px; }
  .bottom-cta h2 { font-size: 28px; }
  .bottom-cta p { font-size: 15px; }
  .breakdown-row { grid-template-columns: 60px 1fr auto; gap: 10px; }
  .breakdown-row .amount { min-width: 80px; font-size: 13px; }

  /* Thanks page */
  main { padding: 60px 20px 80px; }
  .thanks-card h1 { font-size: 36px; }
  .thanks-lead { font-size: 16px; }
  .check-circle { width: 72px; height: 72px; }
  .check-circle svg { width: 32px; height: 32px; }

  /* Footer minimal */
  .footer-minimal { padding: 24px 20px; }
  .footer-minimal .foot-inner { flex-direction: column; gap: 8px; }
}

/* ============================================================
   RESPONSIVE — VERY NARROW (380px and below, e.g. iPhone SE)
   ============================================================ */
@media (max-width: 380px) {
  .brand-name { display: none; }
  .nav-cta { font-size: 12px; padding: 7px 12px; }
  .hero h1 { font-size: 30px; }
  .calc-hero h1 { font-size: 28px; }
  .sec-title { font-size: 26px; }
  .phone-frame { width: 200px; height: 400px; }
  .thanks-card h1 { font-size: 30px; }
  .headline-number .value { font-size: 40px; }
}

/* ============================================================
   Added by TIM
   ============================================================ */
.old-nav {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.old-nav > li {
  position: relative;
  display: block;
}
.old-nav > li > a {
  position: relative;
  display: block;
  padding: 10px 15px;
}
.old-nav > li > a:hover,
.old-nav > li > a:focus {
  text-decoration: none;
  background-color: #eee;
}
.old-nav > li.disabled > a {
  color: #999;
}
.old-nav > li.disabled > a:hover,
.old-nav > li.disabled > a:focus {
  color: #999;
  text-decoration: none;
  cursor: not-allowed;
  background-color: transparent;
}
.old-nav .open > a,
.old-nav .open > a:hover,
.old-nav .open > a:focus {
  background-color: #eee;
  border-color: #428bca;
}
.old-nav .nav-divider {
  height: 1px;
  margin: 9px 0;
  overflow: hidden;
  background-color: #e5e5e5;
}
.old-nav > li > a > img {
  max-width: none;
}
/* ============================================================
   Added by TIM : MODAL dialog
   ============================================================ */
.genmodal-overlay {
  position: fixed; inset: 0; background: rgba(10,15,26,0.5);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
  backdrop-filter: blur(2px);
}
.genmodal-overlay.open { display: flex; }
.genmodal-content {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  max-width: 420px; width: 100%; box-shadow: 0 40px 80px -24px rgba(15,23,42,0.4);
}
.genmodal-content h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.genmodal-content p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 24px; }
.genmodal-content p strong { color: var(--ink); }
.genmodal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-action-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 14px; border-radius:var(--radius-sm); font-size:13px; font-weight:600;
  cursor:pointer; border:1px solid var(--border); background:var(--white); color:var(--navy);
  transition: all var(--dur-fast) var(--ease);
}
.modal-action-btn:hover { border-color:var(--signal); color:var(--signal); }
.modal-action-btn.danger { color:#B91C1C; }
.modal-action-btn.danger:hover { border-color:#EF4444; background:#FEECEC; color:#B91C1C; }
