:root {
  --bg: #f3fbfb;
  --bg-2: #eaf7f5;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-muted: #eef8f7;
  --text: #102326;
  --muted: #607579;
  --soft: #dcefed;
  --line: rgba(15, 84, 88, 0.13);
  --primary: #0c8f8f;
  --primary-dark: #076a71;
  --primary-soft: #d8fbf7;
  --accent: #1a6df0;
  --mint: #32d3a4;
  --warning: #ffb020;
  --danger: #ef4444;
  --green: #20b486;
  --purple: #7657ff;
  --shadow: 0 24px 70px rgba(20, 73, 78, 0.14);
  --shadow-soft: 0 14px 40px rgba(20, 73, 78, 0.10);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --rail: 92px;
  --max: 1240px;
  --header: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 5%, #c9fbef 0, transparent 32%),
              radial-gradient(circle at 90% 8%, #dfe7ff 0, transparent 28%),
              linear-gradient(180deg, var(--bg) 0%, #ffffff 58%, #f6fafb 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

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

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

li + li {
  margin-top: .55rem;
}

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(25px);
  opacity: .58;
  z-index: -3;
}

.ambient-one {
  width: 330px;
  height: 330px;
  background: #8df5d5;
  top: 80px;
  left: 70px;
}

.ambient-two {
  width: 420px;
  height: 420px;
  background: #bccbff;
  top: 120px;
  right: -120px;
}

.ambient-three {
  width: 300px;
  height: 300px;
  background: #ffe3ac;
  bottom: 180px;
  left: 48%;
}

.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: linear-gradient(rgba(12, 143, 143, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(12, 143, 143, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.topbar {
  position: sticky;
  top: 0;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 calc(var(--rail) + 18px);
  background: rgba(246, 252, 252, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 34px rgba(12, 143, 143, .28);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #486368;
  font-size: .92rem;
  transition: .2s ease;
}

.nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 800;
  transition: .2s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

#menuButton {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: var(--header);
  right: 14px;
  width: min(360px, calc(100vw - 28px));
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 60;
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-muted);
  font-weight: 700;
}

.mobile-menu.open {
  display: flex;
}

.zoom-rail {
  position: fixed;
  left: 16px;
  top: 96px;
  bottom: 18px;
  width: 78px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.rail-step {
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 9px 6px;
  cursor: pointer;
  color: #5a7377;
  display: grid;
  gap: 3px;
  place-items: center;
  transition: .2s ease;
}

.rail-step span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef9f8;
  font-size: .74rem;
  font-weight: 900;
}

.rail-step b {
  font-size: .68rem;
}

.rail-step:hover,
.rail-step.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 26px rgba(12, 143, 143, .24);
}

.rail-step:hover span,
.rail-step.active span {
  background: rgba(255,255,255,.18);
}

main {
  padding-left: var(--rail);
}

.screen-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 28px;
  scroll-margin-top: calc(var(--header) + 20px);
}

.compact-section {
  padding-top: 54px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .95fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - var(--header));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.eyebrow span {
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--mint));
}

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

h1 {
  font-size: clamp(2.65rem, 5.2vw, 5.65rem);
  line-height: .94;
  letter-spacing: -.075em;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.55rem);
  letter-spacing: -.055em;
  line-height: 1.02;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  font-size: 1.18rem;
  max-width: 710px;
}

.hero-actions,
.scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 28px 0;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 15px 34px rgba(12, 143, 143, .28);
}

.btn-secondary {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(12, 143, 143, .16);
}

.btn-ghost {
  color: #34575c;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
}

.opening-card,
.glass-card,
.presentation-panel,
.presentation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.opening-card {
  padding: 22px;
  max-width: 840px;
  position: relative;
  overflow: hidden;
}

.opening-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--primary), var(--accent));
}

.card-kicker {
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 8px;
}

.opening-card p {
  margin-bottom: 0;
  color: #28464a;
  font-weight: 650;
}

.zoom-frame {
  background: rgba(255, 255, 255, .70);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.zoom-frame-top {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 254, 254, .78);
}

.zoom-frame-top strong {
  margin-left: 8px;
  font-size: .9rem;
}

.zoom-frame-top small {
  color: var(--muted);
  margin-left: auto;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #febc2e; }
.window-dot.green { background: #28c840; }

.zoom-frame-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 22px;
}

.phone-shell {
  border-radius: 36px;
  background: #0b1c20;
  padding: 12px;
  box-shadow: 0 25px 50px rgba(8, 31, 36, .18);
  color: #fff;
  position: relative;
}

.phone-status {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.78);
  font-size: .72rem;
  padding: 0 11px;
}

.phone-chat-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #10343a, #0d2a30);
  border-radius: 24px 24px 12px 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.avatar.medical {
  background: linear-gradient(135deg, #20b486, #1a6df0);
}

.phone-chat-head small {
  display: block;
  color: rgba(255,255,255,.64);
  margin-top: 2px;
  font-size: .72rem;
}

.chat-feed {
  height: 438px;
  overflow: auto;
  padding: 14px 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.compact-chat {
  height: 320px;
}

.bubble {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 17px;
  line-height: 1.45;
  font-size: .9rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.bubble.patient {
  align-self: flex-end;
  color: #072225;
  background: #d8fbf7;
  border-bottom-right-radius: 5px;
}

.bubble.bot {
  align-self: flex-start;
  color: #f7ffff;
  background: #18373d;
  border-bottom-left-radius: 5px;
}

.bubble.alert {
  align-self: flex-start;
  color: #fff5f5;
  background: linear-gradient(135deg, #9f1239, #ef4444);
  border-bottom-left-radius: 5px;
}

.phone-input {
  min-height: 42px;
  padding: 12px 14px;
  border-radius: 20px;
  color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.09);
  font-size: .82rem;
}

.typing-row {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.56);
  font-size: .72rem;
  margin: 4px 8px 10px;
}

.typing-row span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.5);
  animation: pulse 1.15s infinite ease-in-out;
}

.typing-row span:nth-child(2) { animation-delay: .13s; }
.typing-row span:nth-child(3) { animation-delay: .26s; }

@keyframes pulse {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.executive-summary-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.summary-header,
.lead-top,
.brief-header,
.control-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #05646b;
  background: #dff9f6;
  font-size: .75rem;
  font-weight: 900;
}

.badge.soft {
  color: #315b61;
  background: #edf7f8;
}

.priority-dot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: .74rem;
  font-weight: 900;
}

.priority-dot.medium {
  background: linear-gradient(135deg, var(--warning), #f97316);
}

.summary-grid,
.lead-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.summary-grid div,
.lead-details div {
  padding: 13px;
  border-radius: 16px;
  background: #f2faf9;
  border: 1px solid rgba(12,143,143,.09);
}

.summary-grid span,
.lead-details span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  margin-bottom: 4px;
}

.summary-grid strong,
.lead-details strong {
  color: #18383d;
}

.score-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12,143,143,.11), rgba(26,109,240,.10));
  border: 1px solid rgba(12,143,143,.12);
}

.score-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 3px;
}

.score-circle,
.lead-score {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 950;
  font-size: 1.18rem;
  color: #fff;
  background: conic-gradient(var(--primary) 0 72%, #d8efef 72% 100%);
  position: relative;
}

.score-circle::after,
.lead-score::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  z-index: -1;
}

/* Ensure score text stays on top */
.score-circle,
.lead-score {
  isolation: isolate;
}

.mini-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.mini-timeline span {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 46px;
  padding: 8px;
  border-radius: 16px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: .75rem;
  font-weight: 900;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.hero-metrics article {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  text-align: center;
}

.hero-metrics strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.28rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  font-size: 1.08rem;
}

.section-heading.mini {
  max-width: 100%;
  margin-top: 42px;
}

.insight-grid,
.health-safety-grid,
.recommendation-grid,
.pricing-cards,
.closing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-card,
.compare-card,
.agenda-card,
.safety-card,
.recommendation-grid article,
.architecture article,
.result-card,
.pricing-cards article,
.pilot-card,
.questions-card,
.whatsapp-close,
.control-panel,
.lead-panel > *,
.queue-board,
.morning-brief {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.insight-card {
  padding: 22px;
  min-height: 220px;
}

.insight-card.important {
  background: linear-gradient(135deg, rgba(216,251,247,.92), rgba(255,255,255,.84));
}

.insight-card.danger {
  background: linear-gradient(135deg, rgba(255,241,224,.9), rgba(255,255,255,.84));
}

.icon-pill {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
  margin-bottom: 14px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  margin-top: 26px;
}

.compare-card {
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.compare-card.before {
  background: linear-gradient(135deg, rgba(255,244,232,.9), rgba(255,255,255,.82));
}

.compare-card.after {
  background: linear-gradient(135deg, rgba(219,252,245,.95), rgba(255,255,255,.82));
}

.compare-label {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 950;
  color: #7c2d12;
  background: #ffedd5;
  margin-bottom: 16px;
}

.after .compare-label {
  color: #065f46;
  background: #d1fae5;
}

.bridge-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  align-self: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(12,143,143,.22);
}

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

.agenda-card {
  padding: 18px;
  cursor: pointer;
  transition: .2s ease;
  min-height: 240px;
}

.agenda-card:hover,
.agenda-card.active {
  transform: translateY(-4px);
  border-color: rgba(12,143,143,.32);
  box-shadow: var(--shadow);
}

.agenda-card span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-size: .75rem;
  font-weight: 950;
  margin-bottom: 14px;
}

.agenda-card p {
  font-size: .9rem;
}

.agenda-card b {
  display: block;
  margin-top: auto;
  color: #28464a;
  font-size: .85rem;
}

.presentation-panel {
  margin-top: 22px;
  padding: 24px;
}

.scene-actions {
  margin-bottom: 16px;
}

#sceneCounter {
  color: var(--muted);
  font-weight: 900;
}

.scene-progress {
  height: 9px;
  background: #e2f2f1;
  border-radius: 999px;
  overflow: hidden;
}

.scene-progress span {
  display: block;
  height: 100%;
  width: 14.28%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: inherit;
  transition: width .25s ease;
}

.demo-workbench {
  display: grid;
  grid-template-columns: 300px minmax(300px, 430px) 1fr;
  gap: 18px;
  align-items: start;
}

.control-panel,
.lead-card,
.recommendation-card {
  padding: 20px;
}

.control-header {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.control-header h3,
.control-header p {
  margin-bottom: 2px;
}

.field-label {
  display: block;
  color: #38585d;
  font-size: .86rem;
  font-weight: 950;
  margin: 15px 0 8px;
}

.select-field {
  width: 100%;
  border: 1px solid rgba(12,143,143,.18);
  border-radius: 16px;
  padding: 13px 14px;
  color: #16373c;
  background: #fff;
  outline: none;
}

.select-field:focus,
.range-field input:focus {
  box-shadow: 0 0 0 4px rgba(12,143,143,.12);
}

.quick-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.quick-buttons button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 7px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
  cursor: pointer;
}

.presenter-tip {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2fffc, #eef4ff);
  border: 1px solid rgba(12,143,143,.11);
}

.presenter-tip strong {
  color: var(--primary-dark);
}

.presenter-tip p {
  margin: 6px 0 0;
  font-size: .92rem;
}

.phone-stage {
  display: grid;
  place-items: center;
}

.demo-phone {
  width: min(100%, 410px);
}

.lead-panel {
  display: grid;
  gap: 16px;
}

.lead-score {
  width: 58px;
  height: 58px;
  font-size: 1rem;
}

.priority-banner {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
  font-size: .88rem;
}

.priority-banner.high {
  color: #991b1b;
  background: #fee2e2;
}

.priority-banner.low {
  color: #065f46;
  background: #d1fae5;
}

.tag-cloud,
.task-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span,
.task-tags span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef8f7;
  color: #315b61;
  font-size: .75rem;
  font-weight: 900;
}

.next-action {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-soft), #eef3ff);
  margin-top: 16px;
}

.next-action .icon-pill {
  flex: 0 0 auto;
  margin: 0;
}

.next-action p {
  margin: 4px 0 0;
  font-size: .92rem;
}

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

.secretary-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.queue-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
}

.board-column {
  padding: 12px;
  border-radius: 20px;
  background: rgba(241, 250, 250, .78);
  border: 1px solid rgba(12,143,143,.08);
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #294b50;
  font-weight: 950;
}

.column-head b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-dark);
}

.task-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(12,143,143,.10);
  box-shadow: 0 8px 18px rgba(13, 76, 83, .07);
}

.task-card + .task-card {
  margin-top: 12px;
}

.task-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.task-card h4 {
  margin-bottom: 6px;
}

.task-card p {
  font-size: .9rem;
  margin-bottom: 12px;
}

.task-card.urgent {
  border-color: rgba(239,68,68,.25);
  background: linear-gradient(135deg, #fff5f5, #fff);
}

.task-card.warm {
  border-color: rgba(245,158,11,.24);
  background: linear-gradient(135deg, #fff9ed, #fff);
}

.morning-brief {
  padding: 22px;
}

.brief-header {
  justify-content: flex-start;
}

.brief-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.brief-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.brief-list strong {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.brief-list span {
  color: var(--muted);
  font-weight: 700;
}

.script-mini {
  padding: 16px;
  border-radius: 18px;
  background: #f2fbfa;
  border: 1px solid rgba(12,143,143,.12);
}

.script-mini p {
  margin: 7px 0 0;
  color: #315b61;
  font-size: .92rem;
}

.safety-card {
  padding: 24px;
}

.safety-card.yes {
  background: linear-gradient(135deg, rgba(218,252,237,.95), rgba(255,255,255,.85));
}

.safety-card.no {
  background: linear-gradient(135deg, rgba(255,237,237,.92), rgba(255,255,255,.86));
}

.safety-card.protocol {
  background: linear-gradient(135deg, rgba(238,244,255,.95), rgba(255,255,255,.86));
}

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

.traffic-list div {
  display: grid;
  grid-template-columns: 18px 72px 1fr;
  gap: 8px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.traffic {
  width: 14px;
  height: 14px;
  border-radius: 99px;
  margin-top: 4px;
}

.traffic.green { background: var(--green); }
.traffic.yellow { background: var(--warning); }
.traffic.red { background: var(--danger); }

.traffic-list p {
  margin: 0;
  font-size: .88rem;
}

.recommendation-grid article {
  padding: 22px;
}

.recommendation-grid article span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 950;
  margin-bottom: 14px;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.architecture article {
  padding: 24px;
  min-height: 230px;
}

.connector {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 950;
}

.roi-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  align-items: start;
}

.roi-calculator {
  padding: 24px;
}

.range-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 20px;
}

.range-field span {
  color: #34575c;
  font-weight: 900;
}

.range-field strong {
  color: var(--primary-dark);
}

.range-field input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--primary);
}

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

.result-card {
  padding: 24px;
  min-height: 180px;
}

.result-card span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 10px;
}

.result-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  letter-spacing: -.04em;
  margin-bottom: 10px;
}

.result-card small {
  color: var(--muted);
  line-height: 1.45;
}

.result-card.primary {
  background: linear-gradient(135deg, rgba(216,251,247,.95), rgba(238,244,255,.92));
}

.soft-result {
  background: linear-gradient(135deg, rgba(255,249,237,.94), rgba(255,255,255,.84));
}

.pricing-cards {
  margin-top: 20px;
}

.pricing-cards article {
  padding: 24px;
}

.pricing-cards article.featured {
  border-color: rgba(12,143,143,.3);
  background: linear-gradient(135deg, rgba(216,251,247,.95), rgba(255,255,255,.88));
  transform: translateY(-4px);
}

.pricing-cards strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 8px 12px;
}

.closing-grid {
  grid-template-columns: 1.1fr .9fr;
}

.pilot-card,
.questions-card {
  padding: 26px;
}

.pilot-card ul {
  margin: 20px 0;
}

.pilot-footer {
  padding: 16px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.pilot-footer p {
  margin: 6px 0 0;
  color: #315b61;
}

.accordion {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f5fbfb;
  color: #18383d;
  font-weight: 950;
  cursor: pointer;
  text-align: left;
  padding: 14px;
  margin-top: 10px;
}

.accordion::after {
  content: "+";
  font-size: 1.2rem;
}

.accordion.open::after {
  content: "−";
}

.accordion-content {
  display: none;
  padding: 10px 14px 2px;
  color: var(--muted);
  line-height: 1.55;
}

.accordion-content.active {
  display: block;
}

.whatsapp-close {
  padding: 24px;
  margin-top: 20px;
}

.whatsapp-close {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.whatsapp-close pre {
  grid-column: 1 / -1;
  white-space: pre-wrap;
  margin: 0;
  border-radius: 18px;
  padding: 18px;
  color: #28464a;
  background: #f4fbfa;
  border: 1px solid rgba(12,143,143,.12);
  font-family: inherit;
  line-height: 1.55;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  background: #102326;
  box-shadow: var(--shadow);
  z-index: 100;
  font-weight: 900;
  transition: .25s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

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

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

.delay-1 {
  transition-delay: .12s;
}

@media (max-width: 1180px) {
  :root {
    --rail: 0px;
  }

  .topbar {
    padding-left: 20px;
  }

  .zoom-rail {
    display: none;
  }

  main {
    padding-left: 0;
  }

  .nav {
    display: none;
  }

  #menuButton {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .demo-workbench,
  .secretary-layout,
  .roi-layout {
    grid-template-columns: 1fr;
  }

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

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

  .connector {
    transform: rotate(90deg);
    margin: -4px auto;
  }
}

@media (max-width: 820px) {
  .screen-section {
    padding: 48px 16px;
  }

  .brand-copy small {
    display: none;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .zoom-frame-body,
  .before-after,
  .insight-grid,
  .health-safety-grid,
  .recommendation-grid,
  .pricing-cards,
  .closing-grid,
  .roi-results,
  .queue-board,
  .summary-grid,
  .lead-details {
    grid-template-columns: 1fr;
  }

  .zoom-agenda {
    grid-template-columns: 1fr;
  }

  .bridge-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

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

  .whatsapp-close {
    grid-template-columns: 1fr;
  }
}

/* === MEJORAS VISUALES V4 PRO === */

/* Animación de entrada para burbujas del chat */
@keyframes bubbleIn {
  0% { opacity: 0; transform: translateY(16px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-enter {
  opacity: 0;
  animation: bubbleIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Score circle fix — usar isolation en vez de z-index negativo */
.score-circle,
.lead-score {
  isolation: isolate;
}
.score-circle::after,
.lead-score::after {
  z-index: 0;
}

/* Profundidad extra en cards principales */
.insight-card,
.protocol-card,
.safety-card,
.result-card,
.agenda-card,
.task-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.insight-card:hover,
.protocol-card:hover,
.safety-card:hover,
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(12, 100, 106, 0.13);
}

/* Brillo sutil en botones primarios */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 45%, rgba(255,255,255,0.25) 50%, transparent 55%);
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(12, 143, 143, 0.36);
}

/* Glassmorphism más pronunciado en hero metrics */
.hero-metrics article {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-metrics article:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(12, 143, 143, 0.12);
}

/* Mejora de la barra de navegación — highlight del item activo */
.nav a.active,
.nav a:focus-visible {
  background: var(--primary);
  color: #fff;
}

/* Smooth gradient border en phone shell */
.demo-phone {
  background: linear-gradient(145deg, #0b1c20, #0f2b30);
  box-shadow: 0 30px 60px rgba(8, 31, 36, 0.24), 0 0 0 1px rgba(12, 143, 143, 0.15);
}

/* Mejora del panel de prioridad — transición suave */
.priority-banner {
  transition: background 0.3s ease, color 0.3s ease;
}

/* Lead score animación de entrada */
@keyframes scorePopIn {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.lead-score {
  animation: scorePopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Badge con sutil shimmer */
.badge {
  position: relative;
  overflow: hidden;
}
.badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: badgeShimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgeShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Mejora visual del typing indicator */
.typing-row {
  opacity: 0.7;
  transition: opacity 0.3s;
}
.typing-row span {
  background: rgba(12, 143, 143, 0.6);
}

/* Quick buttons mejora hover */
.quick-buttons button {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.quick-buttons button:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 143, 143, 0.22);
}

/* Select field mejora */
.select-field {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.select-field:hover {
  border-color: rgba(12, 143, 143, 0.35);
}

/* Gradient sutil en la topbar */
.topbar {
  background: linear-gradient(180deg, rgba(246, 252, 252, 0.92), rgba(246, 252, 252, 0.78));
}

/* Accordion mejora */
.accordion {
  transition: background 0.2s ease, border-color 0.2s ease;
}
.accordion:hover {
  background: var(--primary-soft);
  border-color: rgba(12, 143, 143, 0.25);
}

/* Morning brief card profundidad */
.morning-brief {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(242,251,250,0.88));
}

/* Zoom frame glow sutil */
.zoom-frame {
  box-shadow: 0 24px 70px rgba(20, 73, 78, 0.14), 0 0 0 1px rgba(12, 143, 143, 0.08);
}

/* Range input pulido */
input[type="range"] {
  height: 6px;
  border-radius: 99px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(12, 143, 143, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* === FIN MEJORAS VISUALES V4 PRO === */

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

@media print {
  .topbar, .zoom-rail, .mobile-menu, .toast, .hero-actions, .scene-actions, .quick-buttons {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    padding-left: 0;
  }

  .screen-section {
    page-break-inside: avoid;
    padding: 24px 0;
  }
}

/* Ultra V4 — sección adicional de flujos de salud */
.protocol-lab{
  position:relative;
}
.protocol-lab:before{
  content:"";
  position:absolute;
  left:50%;
  top:110px;
  width:min(980px, 84vw);
  height:420px;
  transform:translateX(-50%);
  border-radius:60px;
  background:
    radial-gradient(circle at 20% 30%, rgba(12,143,143,.18), transparent 35%),
    radial-gradient(circle at 80% 25%, rgba(75,123,255,.16), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.08));
  filter:blur(1px);
  z-index:-1;
}
.protocol-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}
.protocol-card{
  position:relative;
  overflow:hidden;
  min-height:310px;
  padding:24px;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.82);
  border-radius:30px;
  box-shadow:0 20px 60px rgba(15,52,64,.10);
  backdrop-filter:blur(16px);
}
.protocol-card:after{
  content:"";
  position:absolute;
  right:-55px;
  bottom:-60px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:rgba(12,143,143,.10);
}
.protocol-card.featured{
  border-color:rgba(12,143,143,.22);
  background:linear-gradient(135deg, rgba(255,255,255,.94), rgba(229,255,248,.82));
}
.protocol-card.risk{
  border-color:rgba(245,101,101,.22);
  background:linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,242,242,.86));
}
.protocol-icon{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:21px;
  font-size:28px;
  background:rgba(12,143,143,.10);
  margin-bottom:18px;
}
.protocol-card span{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(12,143,143,.08);
  color:#057273;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.protocol-card h3{
  margin:14px 0 10px;
  font-size:22px;
  line-height:1.08;
  letter-spacing:-.03em;
}
.protocol-card p{
  margin:0 0 16px;
  color:#58707a;
  line-height:1.52;
}
.protocol-card ul{
  margin:0;
  padding-left:18px;
  color:#47616c;
  line-height:1.72;
  font-size:14px;
}
.protocol-card li::marker{color:#0c8f8f}
.zoom-clarity-panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:20px;
}
.zoom-clarity-panel>div{
  padding:26px;
  border-radius:30px;
  background:#102a35;
  color:#fff;
  box-shadow:0 24px 70px rgba(16,42,53,.22);
}
.zoom-clarity-panel>div:nth-child(2){
  background:linear-gradient(135deg,#0c8f8f,#315bdc);
}
.zoom-clarity-panel h3{
  margin:16px 0 8px;
  font-size:25px;
  letter-spacing:-.03em;
}
.zoom-clarity-panel p{
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.62;
}
@media (max-width: 1100px){
  .protocol-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
@media (max-width: 720px){
  .protocol-grid,.zoom-clarity-panel{grid-template-columns:1fr;}
  .protocol-card{min-height:auto;}
}
