/* =========================================================
   BASE CLINIC — Landing Page
   Paleta: Coral Vital
   ========================================================= */

/* ── Design Tokens ── */
:root {
  /* Coral Vital palette */
  --c-primary:       #0891B2;
  --c-primary-dark:  #0C6882;
  --c-primary-light: #22D3EE;
  --c-base:          #1A3040;
  --c-base-darker:   #0F1E2B;
  --c-accent:        #F97066;
  --c-accent-soft:   #FFD6CE;
  --c-accent-pale:   #FFF4F2;
  --c-peach:         #FFB8A8;
  --c-surface:       #FDF8F6;
  --c-white:         #FFFFFF;
  --c-text:          #1A2B38;
  --c-text-muted:    #6B7F8E;
  --c-text-light:    #94A8B8;
  --c-border:        #E8EDF2;
  --c-border-dark:   rgba(255,255,255,0.10);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(26,48,64,0.08), 0 1px 2px rgba(26,48,64,0.06);
  --shadow-md:      0 4px 16px rgba(26,48,64,0.10), 0 2px 6px rgba(26,48,64,0.06);
  --shadow-lg:      0 8px 32px rgba(26,48,64,0.14), 0 4px 12px rgba(26,48,64,0.08);
  --shadow-xl:      0 20px 60px rgba(26,48,64,0.20);
  --shadow-primary: 0 8px 32px rgba(8,145,178,0.30);
  --shadow-accent:  0 8px 32px rgba(249,112,102,0.30);
  --shadow-icon:    0 24px 64px rgba(8,145,178,0.40);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.15s;
  --t-base: 0.25s;
  --t-slow: 0.4s;

  /* Layout */
  --max-width: 1200px;
  --section-px: clamp(20px, 5vw, 80px);
  --section-py: clamp(64px, 8vw, 120px);
  --nav-h: 68px;
}


/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }


/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  transition: background var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #e8594e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--c-white);
  color: var(--c-base);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-full);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.20);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              background var(--t-base) var(--ease);
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.btn-text-white {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.70);
  transition: color var(--t-base) var(--ease);
}
.btn-text-white:hover { color: #fff; }


/* ── Section helpers ── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--c-accent-pale);
  color: var(--c-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.section {
  background: var(--c-surface);
}
.section:nth-child(even) {
  background: var(--c-white);
}


/* ── Reveal animation ── */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-slow) var(--ease),
              box-shadow var(--t-slow) var(--ease),
              backdrop-filter var(--t-slow) var(--ease);
}

.navbar.scrolled {
  background: rgba(253, 248, 246, 0.85);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 1px 0 var(--c-border), var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--section-px);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-icon-img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.nav-icon-svg { width: 34px; height: 34px; }
.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.02em;
  transition: color var(--t-base) var(--ease);
}
.navbar.scrolled .nav-brand { color: var(--c-text); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  border-radius: var(--r-full);
  transition: color var(--t-base) var(--ease),
              background var(--t-base) var(--ease);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
.navbar.scrolled .nav-links a { color: var(--c-text-muted); }
.navbar.scrolled .nav-links a:hover {
  color: var(--c-text);
  background: rgba(0,0,0,0.05);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-login {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  padding: 8px 16px;
  border-radius: var(--r-full);
  transition: color var(--t-base) var(--ease);
}
.nav-login:hover { color: #fff; }
.navbar.scrolled .nav-login { color: var(--c-text-muted); }
.navbar.scrolled .nav-login:hover { color: var(--c-text); }

.nav-actions .btn-primary { padding: 9px 20px; font-size: 14px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.navbar.scrolled .hamburger span { background: var(--c-text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--c-base);
  padding: 20px var(--section-px) 32px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  border-top: 1px solid var(--c-border-dark);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-link {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  border-bottom: 1px solid var(--c-border-dark);
  transition: color var(--t-fast) var(--ease);
}
.mobile-link:hover { color: #fff; }
.mobile-link:last-of-type { border-bottom: none; }
.mobile-divider { height: 1px; background: var(--c-border-dark); margin: 8px 0; }
.mobile-login { color: rgba(255,255,255,0.65); }
.mobile-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}


/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--c-base);
  display: flex;
  align-items: center;
  overflow: clip; /* clip scrollbar but allow positioned children to bleed slightly */
}

/* Background decorations */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, var(--c-primary) 0%, transparent 70%);
}
.glow-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: 5%;
  background: radial-gradient(circle, var(--c-accent) 0%, transparent 70%);
  opacity: 0.25;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Hero layout */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) var(--section-px) 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}

/* Hero — left content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: heroSlideIn 0.7s var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  width: fit-content;
  backdrop-filter: blur(8px);
}

.badge-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(249,112,102,0.5);
  animation: pulse 2s infinite;
}

.hero-headline {
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c-white);
}

.headline-coral {
  font-style: italic;
  color: var(--c-accent);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.proof-faces {
  display: flex;
}
.proof-face {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--c-base);
  margin-left: -10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0;
  user-select: none;
}
.proof-face:first-child { margin-left: 0; }
.proof-text {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.proof-text strong {
  color: rgba(255,255,255,0.90);
  font-weight: 600;
}

/* Hero — right visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 540px;
  overflow: visible;
  animation: heroFadeIn 0.9s 0.15s var(--ease) both;
}

/* Glowing mesh background spots */
.hero-glow-blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}
.blob-cyan {
  top: 12px;
  left: 8%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.46) 0%, transparent 70%);
}
.blob-peach {
  bottom: 16px;
  right: -4%;
  background: radial-gradient(circle, rgba(249, 112, 102, 0.34) 0%, transparent 70%);
}

/* Product screenshot mockup */
.hero-product-mockup {
  position: relative;
  z-index: 2;
  width: min(820px, 136%);
  margin-right: -56px;
  transform: perspective(1200px) rotateY(-9deg) rotateX(4deg) rotateZ(-1.8deg);
  transform-origin: center;
  filter: contrast(1.04) saturate(1.04) drop-shadow(0 34px 72px rgba(0,0,0,0.42));
}

.hero-product-mockup::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -20px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.36);
  filter: blur(24px);
  z-index: -1;
}

.hero-product-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #080a0f;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

/* App-inspired widget composition */
.hero-app-stage {
  position: relative;
  width: 100%;
  max-width: 590px;
  aspect-ratio: 1.08;
  z-index: 2;
  isolation: isolate;
}

.app-stage-plane {
  position: absolute;
  left: 2%;
  right: 1%;
  bottom: 30px;
  height: 42%;
  clip-path: polygon(51% 0, 100% 35%, 50% 92%, 0 48%);
  background: linear-gradient(140deg, rgba(255,255,255,0.12), rgba(8,145,178,0.07) 52%, rgba(0,0,0,0.24));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 34px 84px rgba(0,0,0,0.42),
              inset 0 1px 0 rgba(255,255,255,0.10);
  opacity: 0.78;
  z-index: 1;

}

.app-widget {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  color: rgba(255,255,255,0.88);
  background: linear-gradient(145deg, rgba(14,30,44,0.88), rgba(12,26,38,0.76));
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  box-shadow: 0 28px 72px rgba(0,0,0,0.38),
              0 0 0 1px rgba(8,145,178,0.04),
              inset 0 1px 0 rgba(255,255,255,0.10);
}

.app-calendar-widget {
  width: 70%;
  top: 112px;
  left: -1%;
  z-index: 4;
  border-radius: 20px;
  padding: 14px;
  transform: perspective(980px) rotateY(-13deg) rotateX(5deg) rotateZ(-3deg);
}

.app-day-widget {
  width: 45%;
  top: 132px;
  right: -1%;
  z-index: 5;
  border-radius: 20px;
  padding: 13px;
  transform: perspective(980px) rotateY(-14deg) rotateX(5deg) rotateZ(-3deg);
}

.app-billing-widget,
.app-signature-widget {
  z-index: 6;
  border-radius: 18px;
  padding: 14px;
  transform: perspective(900px) rotateY(-12deg) rotateX(4deg) rotateZ(-3deg);
}

.app-billing-widget {
  width: 184px;
  left: 5%;
  bottom: 44px;
  border-color: rgba(16,185,129,0.24);
}

.app-signature-widget {
  width: 208px;
  top: 58px;
  right: 9%;
  z-index: 3;
  border-color: rgba(255,184,168,0.22);
}

.app-widget::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.10), transparent 34%, transparent 78%, rgba(34,211,238,0.08));
  mix-blend-mode: screen;
}

.app-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 12px;
}

.app-window-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.app-window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.app-window-dots span:nth-child(1) { background: var(--c-accent); }
.app-window-dots span:nth-child(2) { background: var(--c-peach); }
.app-window-dots span:nth-child(3) { background: var(--c-primary-light); }

.app-window-bar strong {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.94);
}

.app-window-bar em {
  margin-left: auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--c-primary-light);
}

.app-calendar-head {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.app-calendar-head button {
  width: 28px;
  height: 26px;
  border-radius: 8px;
  color: var(--c-primary-light);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.app-calendar-head strong {
  text-align: center;
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.94);
}

.app-mode-toggle {
  width: fit-content;
  display: flex;
  gap: 2px;
  margin: 0 auto 11px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.app-mode-toggle span {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.65);
}

.app-mode-toggle .active {
  color: #fff;
  background: var(--c-primary);
  box-shadow: 0 8px 18px rgba(8,145,178,0.22);
}

.app-weekdays,
.app-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.app-weekdays {
  margin-bottom: 6px;
}

.app-weekdays span {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.56);
}

.app-day {
  min-height: 54px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.app-day strong,
.app-day small,
.app-day i {
  display: block;
}

.app-day strong {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1;
  color: rgba(255,255,255,0.92);
}

.app-day small {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  color: rgba(255,255,255,0.56);
  white-space: nowrap;
}

.app-day i {
  height: 4px;
  margin-top: 7px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.28);
}

.app-day.muted {
  opacity: 0.42;
}

.app-day.has-slots {
  border-color: rgba(34,211,238,0.26);
  background: rgba(8,145,178,0.10);
}

.app-day.has-patient {
  border-color: rgba(16,185,129,0.24);
  background: rgba(16,185,129,0.10);
}

.app-day.selected {
  border-color: rgba(34,211,238,0.42);
  background: linear-gradient(135deg, var(--c-primary), #1CA7D8);
  box-shadow: 0 12px 24px rgba(8,145,178,0.26);
}

.app-day.today {
  border-color: rgba(249,112,102,0.34);
}

.app-day.selected i {
  background: rgba(255,255,255,0.46);
}

.app-load-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.app-load-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.54);
}

.app-load-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
}

.app-load-legend span:nth-child(2) i { background: #2BA7F8; }
.app-load-legend span:nth-child(3) i { background: #F59E0B; }

.app-day-title {
  margin-bottom: 12px;
}

.app-day-title strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,0.94);
  font-size: 18px;
  line-height: 1;
}

.app-day-title span {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.52);
}

.app-day-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.app-day-metrics div {
  min-width: 0;
  padding: 8px 5px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.app-day-metrics strong,
.app-slot-row strong,
.app-billing-widget strong,
.app-signature-widget strong {
  display: block;
  color: rgba(255,255,255,0.94);
}

.app-day-metrics strong {
  font-size: 13px;
  line-height: 1;
}

.app-day-metrics span {
  display: block;
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.50);
}

.app-slot-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app-slot-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.app-slot-row > * {
  min-width: 0;
}

.app-slot-row strong {
  color: var(--c-primary-light);
  font-size: 10px;
  line-height: 1;
}

.app-slot-row span {
  color: rgba(255,255,255,0.80);
  font-size: 9.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-slot-row em {
  padding: 4px 5px;
  border-radius: 8px;
  font-size: 7.5px;
  font-style: normal;
  font-weight: 800;
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.10);
}

.app-slot-row.tele {
  border-color: rgba(34,211,238,0.22);
  background: rgba(8,145,178,0.10);
}

.app-billing-widget span,
.app-signature-widget span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-billing-widget strong {
  margin-bottom: 5px;
  color: #7DD3A6;
  font-size: 20px;
  line-height: 1;
}

.app-signature-widget strong {
  margin-bottom: 5px;
  color: var(--c-peach);
  font-size: 14px;
  line-height: 1.2;
}

.app-billing-widget small,
.app-signature-widget small {
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  line-height: 1.25;
}

/* Isometric product card stack */
.hero-app-stage {
  --iso-card-w: 386px;
  --iso-card-h: 218px;
  position: relative;
  width: 100%;
  max-width: 590px;
  height: 520px;
  aspect-ratio: auto;
  z-index: 2;
  isolation: isolate;
}

.app-stage-plane {
  position: absolute;
  left: 6%;
  right: 1%;
  bottom: 18px;
  height: 48%;
  clip-path: polygon(52% 0, 100% 35%, 50% 94%, 0 50%);
  background: linear-gradient(140deg, rgba(255,255,255,0.12), rgba(8,145,178,0.07) 52%, rgba(0,0,0,0.24));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 34px 84px rgba(0,0,0,0.42),
              inset 0 1px 0 rgba(255,255,255,0.10);
  opacity: 0.58;
  transform: perspective(1080px) rotateY(-14deg) rotateX(7deg) rotateZ(-4deg);
  z-index: 1;
}

.iso-card {
  position: absolute;
  left: var(--iso-left);
  top: var(--iso-top);
  width: var(--iso-card-w);
  height: var(--iso-card-h);
  padding: 14px;
  overflow: hidden;
  border-radius: 20px;
  color: rgba(255,255,255,0.88);
  background: linear-gradient(145deg, rgba(14,30,44,0.92), rgba(12,26,38,0.80));
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px) saturate(1.28);
  -webkit-backdrop-filter: blur(18px) saturate(1.28);
  box-shadow: 0 28px 72px rgba(0,0,0,0.40),
              0 0 0 1px rgba(8,145,178,0.04),
              inset 0 1px 0 rgba(255,255,255,0.10);
  transform: perspective(1080px) rotateY(-14deg) rotateX(7deg) rotateZ(-4deg);
  transform-origin: center;
}

.iso-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.11), transparent 34%, transparent 78%, rgba(34,211,238,0.08));
  mix-blend-mode: screen;
}

.iso-card::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -12px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.34);
  filter: blur(18px);
  z-index: -1;
}

.iso-card-calendar {
  --iso-left: 82px;
  --iso-top: 28px;
  z-index: 3;
}

.iso-card-agenda {
  --iso-left: 42px;
  --iso-top: 150px;
  z-index: 4;
}

.iso-card-editor {
  --iso-left: 2px;
  --iso-top: 272px;
  z-index: 5;
}

.iso-card > * {
  position: relative;
  z-index: 1;
}

.iso-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
  min-width: 0;
  margin-bottom: 8px;
}

.iso-window-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.iso-window-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.iso-window-dots span:nth-child(1) { background: var(--c-accent); }
.iso-window-dots span:nth-child(2) { background: var(--c-peach); }
.iso-window-dots span:nth-child(3) { background: var(--c-primary-light); }

.iso-card-bar strong,
.iso-card-bar em,
.iso-card-heading span,
.iso-card-heading strong,
.iso-metrics-row span,
.iso-agenda-row span,
.iso-agenda-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iso-card-bar strong {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.94);
}

.iso-card-bar em {
  margin-left: auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--c-primary-light);
}

.iso-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
  margin-bottom: 8px;
}

.iso-card-heading span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.iso-card-heading strong {
  display: block;
  max-width: 150px;
  color: rgba(255,255,255,0.96);
  font-size: 18px;
  line-height: 1;
}

.iso-calendar-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.iso-calendar-head button {
  width: 24px;
  height: 22px;
  border-radius: 8px;
  color: var(--c-primary-light);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  pointer-events: none;
}

.iso-calendar-head span {
  justify-self: center;
  padding: 5px 12px;
  border-radius: 9px;
  color: #fff;
  background: var(--c-primary);
  box-shadow: 0 8px 18px rgba(8,145,178,0.22);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.iso-weekdays,
.iso-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.iso-weekdays {
  gap: 5px;
  margin-bottom: 5px;
}

.iso-weekdays span {
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.54);
}

.iso-calendar-grid {
  gap: 5px;
}

.iso-calendar-grid span {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 21px;
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.iso-calendar-grid span i {
  position: absolute;
  right: 5px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.30);
}

.iso-calendar-grid .muted {
  opacity: 0.42;
}

.iso-calendar-grid .has-slots,
.iso-calendar-grid .has-patient {
  border-color: rgba(34,211,238,0.28);
  background: rgba(8,145,178,0.12);
}

.iso-calendar-grid .has-patient {
  border-color: rgba(16,185,129,0.28);
  background: rgba(16,185,129,0.12);
}

.iso-calendar-grid .selected {
  color: #fff;
  border-color: rgba(34,211,238,0.48);
  background: linear-gradient(135deg, var(--c-primary), #1CA7D8);
  box-shadow: 0 10px 20px rgba(8,145,178,0.25);
}

.iso-load-legend {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin-top: 9px;
}

.iso-load-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 96px;
  overflow: hidden;
  color: rgba(255,255,255,0.55);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iso-load-legend i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
}

.iso-load-legend span:nth-child(2) i { background: #22D3EE; }
.iso-load-legend span:nth-child(3) i { background: var(--c-primary); }

.iso-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.iso-metrics-row div {
  min-width: 0;
  padding: 6px 6px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.iso-metrics-row strong {
  display: block;
  color: rgba(255,255,255,0.94);
  font-size: 12px;
  line-height: 1;
}

.iso-metrics-row span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.50);
  font-size: 7.5px;
  font-weight: 700;
}

.iso-agenda-list {
  display: grid;
  gap: 7px;
}

.iso-agenda-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 25px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.08);
}

.iso-agenda-row strong {
  min-width: 0;
  color: var(--c-primary-light);
  font-size: 10px;
  line-height: 1;
}

.iso-agenda-row span {
  min-width: 0;
  color: rgba(255,255,255,0.82);
  font-size: 10px;
  font-weight: 800;
}

.iso-agenda-row em {
  max-width: 72px;
  padding: 4px 6px;
  border-radius: 8px;
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.10);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.iso-agenda-row.active {
  border-color: rgba(16,185,129,0.26);
  background: rgba(16,185,129,0.11);
}

.iso-agenda-row.tele {
  border-color: rgba(34,211,238,0.24);
  background: rgba(8,145,178,0.12);
}

.iso-agenda-row.muted {
  opacity: 0.72;
}

.iso-editor-shell {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
}

.iso-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 5px 7px;
  overflow: hidden;
  background: rgba(255,255,255,0.065);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.iso-editor-toolbar button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 7px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  line-height: 1;
  pointer-events: none;
}

.iso-editor-toolbar button:nth-of-type(4) {
  color: #fff;
  background: rgba(8,145,178,0.48);
  border-color: rgba(34,211,238,0.26);
}

.iso-editor-toolbar i {
  width: 1px;
  height: 18px;
  margin: 0 3px;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.11);
}

.iso-editor-body {
  height: 93px;
  padding: 10px 12px;
  overflow: hidden;
  color: rgba(255,255,255,0.72);
  font-size: 10px;
  line-height: 1.42;
}

.iso-editor-body p {
  margin: 0 0 6px;
}

.iso-editor-body strong {
  color: rgba(255,255,255,0.94);
}

.iso-editor-body ul {
  display: grid;
  gap: 4px;
  margin: 0;
}

.iso-editor-body li {
  position: relative;
  padding-left: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iso-editor-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-primary-light);
}

.hero-app-stage.float-card {
  transition: transform 0.4s var(--ease);
}

@keyframes floatDoc {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatCross {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes floatFinance {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}



/* ════════════════════════════════════════════════════════════
   FEATURES
════════════════════════════════════════════════════════════ */
.features-section {
  background: var(--c-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 28px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8,145,178,0.20);
}

.feature-card.feature-featured {
  background: linear-gradient(135deg, var(--c-accent-pale) 0%, #fff 100%);
  border-color: var(--c-accent-soft);
}
.feature-card.feature-featured:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-accent);
}

.feature-badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 4px 10px;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-full);
}

.feature-icon-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(8,145,178,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--c-primary);
  transition: background var(--t-base) var(--ease);
}
.feature-card:hover .feature-icon-box {
  background: rgba(8,145,178,0.16);
}
.feature-icon-featured {
  background: rgba(249,112,102,0.12);
  color: var(--c-accent);
}
.feature-card.feature-featured:hover .feature-icon-featured {
  background: rgba(249,112,102,0.18);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--c-text-muted);
  line-height: 1.65;
}


/* ════════════════════════════════════════════════════════════
   AUDIENCE (Para quem)
════════════════════════════════════════════════════════════ */
.audience-section {
  background: var(--c-surface);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.audience-card {
  padding: 36px;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-xl);
  position: relative;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.audience-card.audience-featured {
  background: linear-gradient(160deg, var(--c-base) 0%, var(--c-base-darker) 100%);
  border-color: transparent;
  color: var(--c-white);
}

.featured-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
}

.audience-icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(8,145,178,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  margin-bottom: 20px;
}

.audience-icon-featured {
  background: rgba(255,255,255,0.12);
  color: var(--c-accent-soft);
}

.audience-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.audience-card.audience-featured h3 { color: var(--c-white); }

.audience-card p {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.audience-card.audience-featured p { color: rgba(255,255,255,0.65); }

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.audience-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-text-muted);
}
.audience-card.audience-featured .audience-list li { color: rgba(255,255,255,0.75); }
.audience-list li::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(8,145,178,0.12);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230891B2' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  flex-shrink: 0;
}
.audience-card.audience-featured .audience-list li::before {
  background-color: rgba(249,112,102,0.25);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23F97066' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.audience-cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.audience-card.audience-featured .audience-cta { color: var(--c-accent-soft); }
.audience-cta:hover { color: var(--c-primary-dark); gap: 4px; }
.audience-card.audience-featured .audience-cta:hover { color: var(--c-white); }


/* ════════════════════════════════════════════════════════════
   STATS
════════════════════════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, var(--c-base) 0%, var(--c-base-darker) 100%);
  padding: var(--section-py) 0;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 14.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.stat-item:nth-child(2) .stat-number { color: var(--c-accent); }
.stat-item:nth-child(3) .stat-number { color: var(--c-primary-light); }


/* ════════════════════════════════════════════════════════════
   CTA FINAL
════════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--c-white);
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--c-base) 0%, var(--c-primary-dark) 50%, var(--c-base) 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(48px, 7vw, 80px) clamp(32px, 6vw, 80px);
  text-align: center;
}

.cta-bg-deco { position: absolute; inset: 0; pointer-events: none; }
.cta-deco-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.cta-deco-circle.c1 {
  width: 400px; height: 400px;
  top: -150px; right: -80px;
  background: var(--c-accent);
  opacity: 0.18;
}
.cta-deco-circle.c2 {
  width: 300px; height: 300px;
  bottom: -100px; left: -60px;
  background: var(--c-primary-light);
  opacity: 0.20;
}

.cta-body {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}


/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: var(--c-text);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px var(--section-px) 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icon-img { width: 40px; height: 40px; object-fit: cover; }
.footer-icon-svg { width: 40px; height: 40px; }

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: rgba(255,255,255,0.90); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.30);
}


/* ════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
════════════════════════════════════════════════════════════ */
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(1.08); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249,112,102,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(249,112,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,112,102,0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* fc-2 uses float2 because it has a translateY from top:50% centering */
@keyframes float2 {
  0%, 100% { transform: translateY(calc(-50% + 0px)); }
  50%       { transform: translateY(calc(-50% - 10px)); }
}

@keyframes ecgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════════════
   STAGGERED REVEAL
════════════════════════════════════════════════════════════ */
.reveal-item:nth-child(1) { transition-delay: 0ms; }
.reveal-item:nth-child(2) { transition-delay: 80ms; }
.reveal-item:nth-child(3) { transition-delay: 160ms; }
.reveal-item:nth-child(4) { transition-delay: 240ms; }
.reveal-item:nth-child(5) { transition-delay: 320ms; }
.reveal-item:nth-child(6) { transition-delay: 400ms; }



/* ── Product/Mockup Section ── */
.product-section {
  background: var(--c-white);
  padding-bottom: 96px;
  position: relative;
}

.mockup-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.tab-btn svg {
  color: var(--c-text-muted);
  transition: color var(--t-fast) var(--ease);
}

.tab-btn:hover {
  background: rgba(8, 145, 178, 0.03);
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.tab-btn:hover svg {
  color: var(--c-primary);
}

.tab-btn:focus:not(:focus-visible) {
  outline: none;
}

.tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}

.tab-btn.active {
  background: rgba(8, 145, 178, 0.07);
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.08);
}

.tab-btn.active:focus-visible {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16), 0 4px 12px rgba(8, 145, 178, 0.08);
}

.tab-btn.active svg {
  color: var(--c-primary);
}

/* Browser Shell */
.browser-mockup {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: #0b0d13;
  border: 1px solid #1f232b;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.browser-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #11141c;
  border-bottom: 1px solid #1b1e26;
  gap: 16px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.browser-url {
  flex-grow: 1;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  text-align: center;
  font-family: monospace;
  letter-spacing: 0.02em;
}

/* App Container */
.app-container {
  display: flex;
  height: 520px;
  background: #080a0f;
  color: #c9d1d9;
}

/* Sidebar Estilo Fiel aos Prints */
.app-sidebar {
  width: 200px;
  background: #0d1017;
  border-right: 1px solid #161b24;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.sidebar-brand-wrapper {
  margin-bottom: 12px;
  text-align: left;
}

.sidebar-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.sidebar-brand-name {
  color: var(--c-white);
  font-weight: 700;
  font-size: 15px;
}

.sidebar-brand-user {
  font-size: 11.5px;
  color: #8b949e;
  margin-top: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #8b949e;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item svg {
  flex-shrink: 0;
}

.nav-item.active {
  background: rgba(8, 145, 178, 0.15);
  color: var(--c-primary-light);
  font-weight: 600;
}

.nav-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--c-white);
}

/* Sidebar Footer (Theme & Profile) */
.sidebar-footer {
  border-top: 1px solid #161b24;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.theme-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #8b949e;
}

.theme-buttons {
  display: flex;
  background: #080a0f;
  border: 1px solid #161b24;
  border-radius: 6px;
  padding: 2px;
}

.theme-btn {
  flex-grow: 1;
  text-align: center;
  font-size: 12px;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: #8b949e;
}

.theme-btn.active {
  background: #1f242c;
  color: var(--c-white);
}

.profile-box {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  text-align: left;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1f242c;
  color: var(--c-white);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-name {
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  color: #8b949e;
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  margin-left: auto;
  font-size: 10px;
  color: #ff7b72;
  font-weight: 600;
}

/* Main Content Area */
.app-main {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  background: #080a0f;
}

.mockup-tab-pane {
  display: none;
  height: 100%;
}

.mockup-tab-pane.active {
  display: flex;
  flex-direction: column;
}

.browser-mockup.mockup-image-mode {
  max-width: 1180px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.browser-mockup.mockup-image-mode .browser-header,
.browser-mockup.mockup-image-mode .app-sidebar,
.browser-mockup.mockup-image-mode .mockup-tab-pane > * {
  display: none !important;
}

.browser-mockup.mockup-image-mode .app-container,
.browser-mockup.mockup-image-mode .app-main {
  display: block;
  height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.browser-mockup.mockup-image-mode .mockup-tab-pane {
  height: auto;
}

.browser-mockup.mockup-image-mode .mockup-tab-pane.active {
  display: block;
}

.browser-mockup.mockup-image-mode .mockup-tab-pane::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 1960 / 1158;
  border-radius: 28px;
  background-image: var(--mockup-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
}

.browser-mockup.mockup-image-mode #mockup-chart {
  --mockup-image: url("images/mockup_atendimento.png");
}

.browser-mockup.mockup-image-mode #mockup-calendar {
  --mockup-image: url("images/mockup_recepcao.png");
}

/* ==========================================
   ABA 1: MODAL ATENDIMENTO (Fiel ao print 2)
   ========================================== */
.mockup-modal-wrapper {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
  text-align: left;
}

.mockup-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #30363d;
}

.modal-title-group h4 {
  color: var(--c-white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.modal-title-group .modal-subtitle {
  color: #8b949e;
  font-size: 12px;
}

.modal-close-btn {
  font-size: 20px;
  color: #8b949e;
  cursor: pointer;
}

.mockup-modal-body {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
}

.modal-sidebar {
  width: 160px;
  border-right: 1px solid #30363d;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-nav-item {
  padding: 8px 12px;
  font-size: 12px;
  color: #8b949e;
  border-radius: 6px;
  cursor: pointer;
}

.modal-nav-item.active {
  background: #21262d;
  color: var(--c-white);
  font-weight: 600;
}

.modal-nav-item:hover:not(.active) {
  color: var(--c-white);
}

/* Painel central do modal */
.modal-center-panel {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #30363d;
  padding-bottom: 14px;
}

.panel-title-text h5 {
  color: var(--c-white);
  font-size: 14px;
  font-weight: 600;
}

.panel-title-text .panel-subtitle {
  color: #8b949e;
  font-size: 11.5px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checkbox-label {
  font-size: 12px;
  color: #8b949e;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-modal-blue-action {
  background: #238636;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  color: var(--c-white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-blue-action:hover {
  background: #2ea043;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.document-card-row {
  display: flex;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 14px;
  gap: 12px;
  position: relative;
  text-align: left;
}

.document-card-row.pending {
  border-left: 3px solid #d29922;
}

.document-card-row.signed {
  border-left: 3px solid #238636;
  opacity: 0.85;
}

.doc-chk {
  padding-top: 2px;
}

.doc-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.doc-title-name {
  color: var(--c-white);
  font-size: 13px;
  font-weight: 600;
}

.doc-type-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.doc-type-badge.type-receit {
  background: rgba(8, 145, 178, 0.15);
  color: var(--c-primary-light);
}

.doc-type-badge.type-control {
  background: rgba(249, 112, 102, 0.15);
  color: #ff7b72;
}

.doc-status-badge {
  font-size: 10.5px;
  font-weight: 600;
  margin-left: auto;
}

.doc-status-badge.status-pending {
  color: #d29922;
}

.doc-status-badge.status-signed {
  color: #238636;
}

.doc-desc {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.5;
  font-family: monospace;
}

.doc-date {
  font-size: 10px;
  color: #484f58;
  margin-top: 4px;
}

.modal-footer-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #30363d;
  padding-top: 14px;
  margin-top: auto;
}

.btn-modal-cancel {
  background: transparent;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  cursor: pointer;
}

.btn-modal-cancel:hover {
  background: #21262d;
}

.btn-modal-save {
  background: #1f6feb;
  border: none;
  color: var(--c-white);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-save:hover {
  background: #388bfd;
}

/* Painel direito do modal */
.modal-right-panel {
  width: 220px;
  border-left: 1px solid #30363d;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #0d1117;
}

.patient-card-box {
  text-align: center;
  border-bottom: 1px solid #21262d;
  padding-bottom: 16px;
}

.patient-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1f6feb;
  color: var(--c-white);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.patient-modal-name {
  color: var(--c-white);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.patient-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pat-badge {
  background: #21262d;
  color: #8b949e;
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 4px;
}

.pat-badge.font-smaller {
  font-size: 9.5px;
}

.patient-return-control {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #c9d1d9;
}

.toggle-switch.small {
  width: 36px;
  height: 20px;
}

.toggle-switch.small .slider:before {
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
}

.toggle-switch.small input:checked + .slider:before {
  transform: translateX(16px);
}

.date-field, .textarea-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.date-field label, .textarea-field label {
  font-size: 10.5px;
  color: #8b949e;
}

.modal-input-style {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--c-white);
  font-size: 12px;
  width: 100%;
}

.modal-textarea-style {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--c-white);
  font-size: 11.5px;
  resize: none;
  height: 70px;
  line-height: 1.4;
  width: 100%;
}


/* ==========================================
   ABA 2: CALENDÁRIO / RECEPÇÃO (Print 1 & 3)
   ========================================== */
.calendar-layout-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calendar-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-left {
  text-align: left;
}

.header-left h4 {
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.header-left .header-subtitle {
  font-size: 12px;
  color: #8b949e;
}

.header-right {
  display: flex;
  gap: 8px;
}

.btn-cal-action {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 14px;
  color: #c9d1d9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cal-action.blue-action {
  background: #1f6feb;
  border-color: #388bfd;
  color: var(--c-white);
}

.btn-cal-action:hover {
  filter: brightness(1.1);
}

.calendar-workspace-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 16px;
  flex-grow: 1;
  overflow: hidden;
}

.calendar-monthly-box {
  background: #0d1117;
  border: 1px solid #161b24;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.monthly-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

.monthly-nav span {
  cursor: pointer;
  color: #8b949e;
}

.monthly-nav strong {
  color: var(--c-white);
}

.view-toggle {
  margin-left: auto;
  display: flex;
  background: #080a0f;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 2px;
}

.view-toggle-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  color: #8b949e;
  cursor: pointer;
}

.view-toggle-btn.active {
  background: #21262d;
  color: var(--c-white);
  font-weight: 600;
}

.monthly-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  flex-grow: 1;
}

.grid-day-header {
  font-size: 10px;
  font-weight: 600;
  color: #8b949e;
  text-align: center;
  padding-bottom: 6px;
}

.month-cell {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 52px;
  position: relative;
  text-align: left;
}

.month-cell span {
  font-size: 10.5px;
  color: var(--c-white);
}

.month-cell.muted span {
  color: #484f58;
}

.cell-slot-info {
  font-size: 8.5px;
  line-height: 1.2;
  margin-top: 4px;
}

.cell-slot-info.text-muted {
  color: #484f58;
}

.cell-slot-info.badge-morn {
  color: #58a6ff;
}

.cell-slot-info.badge-after {
  color: #bc8cff;
}

.cell-slot-info.badge-both {
  color: #388bfd;
}

.cell-slot-info.badge-green-day {
  color: #56d364;
}

.month-cell.day-green-status {
  border-color: #238636;
}

.day-dot-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.blue { background: #58a6ff; }
.legend-dot.green { background: #56d364; }
.legend-dot.cyan { background: #39c5cf; }
.legend-dot.yellow { background: #e3b341; }
.legend-dot.red { background: #f85149; }

.month-cell.active {
  background: #1f6feb;
  border-color: #388bfd;
}

.month-cell.active span {
  color: var(--c-white);
}

.month-cell.active .text-active-day {
  color: rgba(255, 255, 255, 0.8);
}

.calendar-legends {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  justify-content: center;
  border-top: 1px solid #21262d;
  padding-top: 10px;
}

.legend-item {
  font-size: 10px;
  color: #8b949e;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Painel lateral: Detalhe do Dia */
.calendar-day-detail {
  background: #0d1117;
  border: 1px solid #161b24;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-header h5 {
  font-size: 14px;
  color: var(--c-white);
  font-weight: 700;
}

.prev-day-arrow, .next-day-arrow {
  cursor: pointer;
  color: #8b949e;
  font-weight: 700;
}

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

.btn-detail-action {
  flex-grow: 1;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px;
  color: #c9d1d9;
  font-size: 11px;
  font-weight: 600;
}

.btn-detail-action.blue-action {
  background: #1f6feb;
  border-color: #388bfd;
  color: var(--c-white);
}

.detail-summary-metrics {
  display: flex;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 8px 0;
}

.metric-block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-block.border-x {
  border-left: 1px solid #21262d;
  border-right: 1px solid #21262d;
}

.metric-val {
  color: var(--c-white);
  font-size: 13px;
  font-weight: 700;
}

.metric-lbl {
  color: #8b949e;
  font-size: 9.5px;
  margin-top: 2px;
}

.schedule-slots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 8px 12px;
  text-align: left;
}

.block-info h6 {
  font-size: 11.5px;
  color: var(--c-white);
  font-weight: 600;
}

.block-info p {
  font-size: 9.5px;
  color: #8b949e;
}

.block-status-pill {
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.block-status-pill.green {
  background: rgba(35, 134, 54, 0.15);
  color: #56d364;
}

.slot-item-card {
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 10px 12px;
  gap: 12px;
  text-align: left;
}

.slot-item-card.free {
  background: #0d1117;
  border: 1px dashed #30363d;
}

.slot-time {
  font-size: 11.5px;
  color: #58a6ff;
  font-weight: 700;
}

.slot-status-lbl {
  font-size: 11.5px;
  color: #8b949e;
}

.slot-time-range {
  color: #484f58;
}

.btn-slot-action {
  margin-left: auto;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10.5px;
  color: #c9d1d9;
  cursor: pointer;
}

.slot-item-card.patient-booked {
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid rgba(8, 145, 178, 0.3);
}

.slot-item-card.patient-booked .slot-time {
  color: var(--c-primary-light);
}

.slot-patient-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-patient-details strong {
  font-size: 11.5px;
  color: var(--c-white);
}

.slot-reason {
  font-size: 10px;
  color: #8b949e;
}

.slot-meta {
  font-size: 9.5px;
  color: var(--c-primary-light);
}

.btn-slot-nav-atend {
  margin-left: auto;
  color: var(--c-primary-light);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}


/* ── Pricing Section ── */
.pricing-section {
  background: var(--c-surface);
  position: relative;
}

.pricing-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-text {
  font-size: 15px;
  font-weight: 550;
  color: var(--c-text-muted);
  transition: color var(--t-base) var(--ease);
}

.active-annual {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.discount-badge {
  background: #F97066;
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--c-border);
  border: 1px solid #d0d7de;
  border-radius: 34px;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--c-white);
  box-shadow: var(--shadow-sm);
  border-radius: 50%;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--c-primary);
  border-color: var(--c-primary-dark);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.pricing-grid {
  display: flex;
  justify-content: center;
  max-width: 580px;
  margin: 0 auto;
}

.pricing-card {
  width: 100%;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  box-shadow: 0 12px 32px rgba(26,48,64,0.06);
}

.featured-pricing-card {
  border: 2px solid var(--c-primary);
  box-shadow: 0 20px 48px rgba(8, 145, 178, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-card-header {
  text-align: center;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.pricing-card-header h3 {
  font-size: 21px;
  color: var(--c-base);
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-card-header p {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 24px;
}

.price-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  color: var(--c-base);
}

.price-display .currency {
  font-size: 20px;
  font-weight: 600;
  margin-right: 4px;
}

.price-display .price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-base);
}

.price-display .period {
  font-size: 15px;
  color: var(--c-text-muted);
  margin-left: 6px;
}

.savings-text {
  font-size: 13.5px;
  color: var(--c-primary);
  font-weight: 600;
  margin-top: 12px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--c-text);
  text-align: left;
}

.pricing-features svg {
  color: var(--c-primary);
  flex-shrink: 0;
}

.btn-pricing {
  width: 100%;
  justify-content: center;
}

.pricing-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--c-text-light);
  margin-top: 14px;
  margin-bottom: 0;
}



/* ════════════════════════════════════════════════════════════
   RESPONSIVE — ≤ 900px
   ========================================================= */
@media (max-width: 900px) {

  /* Navbar */
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 64px;
    gap: 48px;
    min-height: auto;
    text-align: center;
  }

  .hero-content { align-items: center; }
  .hero-badge   { align-self: center; }
  .hero-sub     { text-align: center; max-width: 560px; }
  .hero-ctas    { justify-content: center; }
  .hero-proof   { justify-content: center; }
  .proof-text   { text-align: center; }

  .hero-visual {
    justify-content: center;
    min-height: 430px;
    margin-top: 0;
  }
  .hero-product-mockup {
    width: min(720px, 100%);
    margin-right: 0;
    transform: perspective(1100px) rotateY(-5deg) rotateX(3deg) rotateZ(-1.2deg);
  }
  .hero-app-stage {
    max-width: 520px;
  }
  .app-calendar-widget {
    width: 72%;
    top: 104px;
    left: 1%;
  }
  .app-day-widget {
    width: 40%;
    top: 132px;
    right: 1%;
  }
  .app-signature-widget {
    top: 50px;
    right: 10%;
  }
  .app-billing-widget {
    left: 8%;
    bottom: 48px;
  }

  /* Features */
  .features-grid { grid-template-columns: 1fr 1fr; }

  /* Audience */
  .audience-grid { grid-template-columns: 1fr; max-width: 480px; }

  /* Mockup & Pricing responsivity */
  .app-container { height: 400px; }
  .app-sidebar { width: 52px; padding: 16px 6px; align-items: center; }
  .sidebar-brand span, .nav-item span { display: none; }
  .sidebar-brand { justify-content: center; }
  .nav-item { justify-content: center; width: 36px; height: 36px; border-radius: 50%; padding: 0; }
  .mockup-chart-grid { grid-template-columns: 1fr; gap: 14px; }
  .sidebar-prescription { display: none; }
  .calendar-grid { grid-template-columns: 1fr; gap: 8px; }
  .calendar-card { padding: 10px; }
  .mockup-patient-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .status-badge { margin-left: 0; }
  .pricing-card { padding: 28px 20px; }
  .price-display .price { font-size: 44px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-wrap { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .features-grid     { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-links-wrap { grid-template-columns: 1fr 1fr; }
  .hero-badge        { font-size: 12px; padding: 6px 12px; }
  .hero-visual {
    min-height: 360px;
  }
  .hero-product-mockup {
    width: min(520px, 112%);
    margin-right: -18px;
  }

  .hero-product-mockup img {
    border-radius: 20px;
  }

  .browser-mockup.mockup-image-mode .mockup-tab-pane::before {
    border-radius: 18px;
  }
  .hero-app-stage {
    max-width: 350px;
    aspect-ratio: 1.02;
  }
  .app-stage-plane {
    bottom: 24px;
    left: 4%;
    right: 0;
    height: 38%;
  }
  .app-calendar-widget {
    width: 96%;
    top: 78px;
    left: 2%;
    padding: 12px;
    border-radius: 18px;
    transform: perspective(780px) rotateY(-8deg) rotateX(4deg) rotateZ(-2deg);
  }
  .app-day-widget {
    width: 46%;
    top: 186px;
    right: 0;
    padding: 10px;
    border-radius: 16px;
    transform: perspective(780px) rotateY(-8deg) rotateX(4deg) rotateZ(-2deg);
  }
  .app-signature-widget {
    display: none;
  }
  .app-billing-widget {
    width: 138px;
    left: 8%;
    bottom: 30px;
    padding: 10px;
    border-radius: 14px;
  }
  .app-window-bar {
    margin-bottom: 9px;
  }
  .app-window-bar em,
  .app-mode-toggle,
  .app-load-legend {
    display: none;
  }
  .app-calendar-head {
    margin-bottom: 10px;
  }
  .app-calendar-head strong {
    font-size: 15px;
  }
  .app-weekdays,
  .app-calendar-grid {
    gap: 5px;
  }
  .app-day {
    min-height: 42px;
    padding: 6px;
    border-radius: 9px;
  }
  .app-day:nth-child(n+15) {
    display: none;
  }
  .app-day strong {
    margin-bottom: 5px;
    font-size: 11px;
  }
  .app-day small {
    font-size: 8px;
  }
  .app-day i {
    height: 3px;
    margin-top: 5px;
  }
  .app-day-title {
    margin-bottom: 9px;
  }
  .app-day-title strong {
    font-size: 15px;
  }
  .app-day-title span,
  .app-day-metrics div:nth-child(3),
  .app-slot-row:nth-child(n+2) {
    display: none;
  }
  .app-day-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
  }
  .app-day-metrics div {
    padding: 7px 5px;
    border-radius: 10px;
  }
  .app-slot-row {
    grid-template-columns: 42px 1fr;
    padding: 8px;
    gap: 6px;
  }
  .app-slot-row em {
    display: none;
  }
  .app-billing-widget span {
    margin-bottom: 5px;
    font-size: 9px;
  }
  .app-billing-widget strong {
    margin-bottom: 4px;
    font-size: 15px;
  }
  .app-billing-widget small {
    font-size: 9px;
  }
}

@media (max-width: 900px) {
  .hero-app-stage {
    --iso-card-w: 360px;
    --iso-card-h: 206px;
    max-width: 520px;
    height: 474px;
  }

  .iso-card-calendar {
    --iso-left: 92px;
    --iso-top: 20px;
  }

  .iso-card-agenda {
    --iso-left: 58px;
    --iso-top: 132px;
  }

  .iso-card-editor {
    --iso-left: 24px;
    --iso-top: 244px;
  }

  .iso-card-heading strong {
    font-size: 18px;
  }

  .iso-calendar-grid span {
    height: 19px;
  }

  .iso-agenda-row {
    height: 27px;
  }

  .iso-editor-body {
    height: 82px;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    min-height: 430px;
  }

  .hero-app-stage {
    --iso-card-w: 296px;
    --iso-card-h: 174px;
    max-width: 350px;
    height: 392px;
    aspect-ratio: auto;
  }

  .app-stage-plane {
    left: 6%;
    right: 4%;
    bottom: 10px;
    height: 46%;
    transform: perspective(780px) rotateY(-9deg) rotateX(5deg) rotateZ(-3deg);
  }

  .iso-card {
    padding: 10px;
    border-radius: 16px;
    transform: perspective(780px) rotateY(-9deg) rotateX(5deg) rotateZ(-3deg);
  }

  .iso-card-calendar {
    --iso-left: 42px;
    --iso-top: 8px;
  }

  .iso-card-agenda {
    --iso-left: 25px;
    --iso-top: 100px;
  }

  .iso-card-editor {
    --iso-left: 8px;
    --iso-top: 192px;
  }

  .iso-card-bar {
    height: 15px;
    gap: 6px;
    margin-bottom: 6px;
  }

  .iso-window-dots span {
    width: 6px;
    height: 6px;
  }

  .iso-card-bar strong {
    font-size: 10px;
  }

  .iso-card-bar em,
  .iso-card-heading span {
    font-size: 8px;
  }

  .iso-card-heading {
    gap: 7px;
    margin-bottom: 7px;
  }

  .iso-card-heading strong {
    max-width: 110px;
    font-size: 14px;
  }

  .iso-calendar-head {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    gap: 6px;
    margin-bottom: 6px;
  }

  .iso-calendar-head button {
    width: 20px;
    height: 19px;
    border-radius: 7px;
    font-size: 10px;
  }

  .iso-calendar-head span {
    padding: 4px 9px;
    font-size: 8px;
  }

  .iso-weekdays {
    gap: 4px;
    margin-bottom: 4px;
  }

  .iso-weekdays span {
    font-size: 8px;
  }

  .iso-calendar-grid {
    gap: 4px;
  }

  .iso-calendar-grid span {
    height: 15px;
    border-radius: 6px;
    font-size: 8px;
  }

  .iso-calendar-grid span i {
    right: 3px;
    bottom: 3px;
    width: 3px;
    height: 3px;
  }

  .iso-load-legend {
    gap: 7px;
    margin-top: 7px;
  }

  .iso-load-legend span {
    max-width: 72px;
    font-size: 7.5px;
  }

  .iso-load-legend i {
    width: 5px;
    height: 5px;
  }

  .iso-metrics-row {
    gap: 5px;
    margin-bottom: 7px;
  }

  .iso-metrics-row div {
    padding: 6px 4px;
    border-radius: 9px;
  }

  .iso-metrics-row strong {
    font-size: 11px;
  }

  .iso-metrics-row span {
    margin-top: 3px;
    font-size: 7px;
  }

  .iso-agenda-list {
    gap: 5px;
  }

  .iso-agenda-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 5px;
    height: 22px;
    padding: 0 6px;
    border-radius: 8px;
  }

  .iso-agenda-row:nth-child(n+4) {
    display: none;
  }

  .iso-agenda-row strong,
  .iso-agenda-row span {
    font-size: 8px;
  }

  .iso-agenda-row em {
    max-width: 54px;
    padding: 3px 4px;
    border-radius: 6px;
    font-size: 6.5px;
  }

  .iso-editor-shell {
    border-radius: 10px;
  }

  .iso-editor-toolbar {
    height: 28px;
    gap: 3px;
    padding: 4px 5px;
  }

  .iso-editor-toolbar button {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 8px;
  }

  .iso-editor-toolbar i {
    height: 15px;
    margin: 0 1px;
  }

  .iso-editor-body {
    height: 66px;
    padding: 7px 9px;
    font-size: 8px;
    line-height: 1.34;
  }

  .iso-editor-body p {
    margin-bottom: 4px;
  }

  .iso-editor-body ul {
    gap: 2px;
  }

  .iso-editor-body li {
    padding-left: 9px;
  }

  .iso-editor-body li::before {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 600px) {
  .hero-visual {
    min-height: 320px;
  }

  .hero-product-mockup {
    width: min(520px, 112%);
    margin-right: -18px;
    transform: perspective(900px) rotateY(-4deg) rotateX(2deg) rotateZ(-1deg);
  }
}

@media (max-width: 400px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary.btn-lg, .btn-outline-light { width: 100%; justify-content: center; }
}


/* ════════════════════════════════════════════════════════════
   ACCESSIBILITY — reduced motion
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
