/* =========================================================
   FLOWFISIO â€” Clinical Design System (Landing)
   Palette from brand logo: blue â†’ teal â†’ green
   ========================================================= */

:root {
  /* Brand */
  --brand-blue: #1B6FE8;
  --brand-blue-deep: #0F4FB8;
  --brand-teal: #05B398;
  --brand-teal-deep: #048F7A;
  --brand-green: #1FAE5A;
  --brand-green-deep: #0E8A45;

  /* Surfaces */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F8FB;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-navbar: rgba(255, 255, 255, 0.88);
  --bg-navbar-scrolled: rgba(255, 255, 255, 0.96);
  --surface: #F4F8FB;
  --surface-elevated: #FFFFFF;
  --surface-tint: #EAF6F4;
  --surface-blue: #EEF4FF;

  /* Ink */
  --ink: #0B1F33;
  --ink-muted: #4A6278;
  --ink-soft: #6B8499;
  --text-primary: #0B1F33;
  --text-secondary: #4A6278;
  --text-muted: #6B8499;

  /* Accents (compat with main.js) */
  --accent-cyan: #05B398;
  --accent-blue: #1B6FE8;
  --accent-green: #1FAE5A;

  /* Borders & shadows */
  --line: rgba(11, 31, 51, 0.08);
  --line-strong: rgba(11, 31, 51, 0.14);
  --border-glass: rgba(11, 31, 51, 0.08);
  --border-glow: rgba(5, 179, 152, 0.18);

  --shadow-xs: 0 1px 2px rgba(11, 31, 51, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 31, 51, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 31, 51, 0.07);
  --shadow-lg: 0 18px 48px rgba(11, 31, 51, 0.1);
  --shadow-card: 0 1px 2px rgba(11, 31, 51, 0.04), 0 12px 32px rgba(11, 31, 51, 0.06);
  --shadow-glow: 0 12px 40px rgba(27, 111, 232, 0.1);

  /* Gradients â€” reserved for CTAs & brand moments */
  --gradient-main: linear-gradient(135deg, #1B6FE8 0%, #05B398 55%, #1FAE5A 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(27, 111, 232, 0.06) 0%, rgba(5, 179, 152, 0.05) 100%);
  --gradient-text: linear-gradient(100deg, #1B6FE8 0%, #05B398 55%, #1FAE5A 100%);
  --gradient-soft: linear-gradient(180deg, #F8FBFD 0%, #FFFFFF 100%);

  /* Radius & type */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* IBM Plex: institutional type (not template/AI fonts) */
  --font-display: "IBM Plex Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1160px;

  /* Legacy animation tokens used by norris */
  --norris-primary: #0B1F33;
  --norris-accent: #05B398;
  --norris-font-size: clamp(2.4rem, 8vw, 5.5rem);
  --norris-time: 28ms;

  --fc-d: 500ms;
  --fc-e: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

p {
  font-family: var(--font-body);
}

body.nav-open {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 104px 0;
  position: relative;
}

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

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-header p {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.005em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  border: 1px solid rgba(5, 179, 152, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-teal-deep);
  text-transform: none;
}

.badge::before {
  content: none;
}

.badge-no-dot::before {
  display: none;
}

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Without JS, content must remain readable */
html.no-js .reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 8px 22px rgba(5, 179, 152, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(27, 111, 232, 0.24);
}

.btn-primary::after {
  display: none;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-deep);
  transform: translateY(-1px);
}

.btn-ghost-pitch,
.btn-nav-login {
  background: transparent;
  color: var(--ink-muted);
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.86rem;
  border-color: transparent;
}

.btn-ghost-pitch:hover,
.btn-nav-login:hover {
  color: var(--brand-blue);
  background: var(--surface-blue);
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-navbar);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  background: var(--bg-navbar-scrolled);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  z-index: 2;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

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

.nav-links a {
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-cta .btn-primary {
  padding: 10px 16px;
  font-size: 0.86rem;
}

.nav-cta .btn-secondary {
  padding: 9px 14px;
  font-size: 0.86rem;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 88px;
  background:
    radial-gradient(ellipse 55% 45% at 8% 10%, rgba(27, 111, 232, 0.08), transparent 60%),
    radial-gradient(ellipse 45% 40% at 92% 18%, rgba(5, 179, 152, 0.09), transparent 55%),
    linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 72%);
  overflow: hidden;
}

.hero-layout {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-copy .badge {
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-emphasis {
  white-space: nowrap;
  position: relative;
  display: inline-block;
}

.hero-emphasis::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(27, 111, 232, 0.35), rgba(5, 179, 152, 0.55));
  z-index: -1;
}

.hero .subtitle {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin: 0 auto 28px;
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

/* Hero CTA buttons — exclusive styles */
.hero-btn {
  --hb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform 0.28s var(--hb-ease),
    box-shadow 0.28s var(--hb-ease),
    border-color 0.28s ease,
    color 0.28s ease;
}

.hero-btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-btn-icon {
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--hb-ease);
}

.hero-btn-label {
  line-height: 1;
}

/* Primary — solid clinical CTA */
.hero-btn-primary {
  color: #fff;
  background: linear-gradient(115deg, #1464D8 0%, #0A9E88 55%, #129B4E 100%);
  background-size: 160% 100%;
  background-position: 0% 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 28px rgba(10, 120, 110, 0.28),
    0 2px 6px rgba(15, 79, 184, 0.18);
}

.hero-btn-primary .hero-btn-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-16deg);
  transition: transform 0.65s var(--hb-ease);
  pointer-events: none;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 16px 36px rgba(10, 120, 110, 0.34),
    0 4px 10px rgba(15, 79, 184, 0.16);
}

.hero-btn-primary:hover .hero-btn-sheen {
  transform: translateX(120%) skewX(-16deg);
}

.hero-btn-primary:hover .hero-btn-icon {
  transform: translateX(4px);
}

.hero-btn-primary:active {
  transform: translateY(-1px) scale(0.985);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 6px 16px rgba(10, 120, 110, 0.22);
}

/* Outline — secondary with fill reveal */
.hero-btn-outline {
  color: #0B1F33;
  background: #fff;
  border: 1.5px solid #C9D5E2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 14px rgba(11, 31, 51, 0.05);
}

.hero-btn-outline .hero-btn-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0B1F33;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.38s var(--hb-ease);
}

.hero-btn-outline .hero-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #EEF4FA;
  color: #0F5C8C;
  transition:
    transform 0.3s var(--hb-ease),
    background-color 0.3s ease,
    color 0.3s ease;
}

.hero-btn-outline:hover {
  color: #fff;
  border-color: #0B1F33;
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px rgba(11, 31, 51, 0.14),
    0 2px 6px rgba(11, 31, 51, 0.08);
}

.hero-btn-outline:hover .hero-btn-fill {
  transform: scaleX(1);
}

.hero-btn-outline:hover .hero-btn-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: scale(1.06);
}

.hero-btn-outline:active {
  transform: translateY(-1px) scale(0.985);
}

.hero-btn:focus-visible {
  outline: 2px solid #05B398;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn,
  .hero-btn-sheen,
  .hero-btn-fill,
  .hero-btn-icon {
    transition: none !important;
  }

  .hero-btn-primary:hover,
  .hero-btn-outline:hover {
    transform: none;
  }

  .hero-btn-primary:hover .hero-btn-sheen {
    transform: none;
  }
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-trust-list svg {
  width: 15px;
  height: 15px;
  color: var(--brand-teal);
  flex-shrink: 0;
}

/* ---------- Chrome / demo topbar shared ---------- */
.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #FAFCFE;
  border-bottom: 1px solid var(--line);
}

.chrome-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chrome-dots {
  display: flex;
  gap: 5px;
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D5DEE7;
}

.demo-dot:nth-child(1) { background: #F87171; }
.demo-dot:nth-child(2) { background: #FBBF24; }
.demo-dot:nth-child(3) { background: #34D399; }

.chrome-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.chrome-logo img {
  width: 16px;
  height: 16px;
}

.chrome-address-bar {
  flex: 1;
  max-width: 320px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.chrome-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Problems ---------- */
.problems {
  background: var(--surface);
}

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

.problem-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  min-height: 220px;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(5, 179, 152, 0.28);
}

.p-content-box {
  padding: 22px 22px 12px;
  flex: 1;
}

.p-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.p-card-content {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.p-see-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-teal-deep);
}

.p-date-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #FAFCFE, #F4F8FB);
}

.p-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-tint);
  display: grid;
  place-items: center;
  color: var(--brand-teal);
}

.p-box-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.p-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(11, 31, 51, 0.12);
}

/* ---------- Solution ---------- */
.solution {
  background: #fff;
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.solution-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.solution-item:hover {
  border-color: rgba(27, 111, 232, 0.2);
  box-shadow: var(--shadow-sm);
}

.solution-item-featured {
  background: linear-gradient(135deg, rgba(27, 111, 232, 0.05), rgba(5, 179, 152, 0.06));
  border-color: rgba(5, 179, 152, 0.25);
  position: relative;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-teal-deep);
  background: #fff;
  border: 1px solid rgba(5, 179, 152, 0.25);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.solution-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.solution-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.solution-item p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.badge-tiss {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-blue);
  color: var(--brand-blue);
  vertical-align: middle;
}

/* ---------- Clinical marquee (infinite) ---------- */
.magic-splash {
  --marquee-speed: 42s;
  position: relative;
  background:
    linear-gradient(90deg, rgba(5, 179, 152, 0.08), transparent 18%, transparent 82%, rgba(27, 111, 232, 0.08)),
    #0A1628;
  color: #fff;
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.magic-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(120px, 14vw);
  z-index: 2;
  pointer-events: none;
}

.magic-fade-left {
  left: 0;
  background: linear-gradient(90deg, #0A1628 0%, transparent 100%);
}

.magic-fade-right {
  right: 0;
  background: linear-gradient(270deg, #0A1628 0%, transparent 100%);
}

.magic-track-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.magic-track {
  display: flex;
  width: max-content;
  animation: magic-marquee var(--marquee-speed) linear infinite;
  will-change: transform;
}

.magic-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.magic-item {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease, transform 0.25s ease;
}

.magic-item span {
  display: inline-block;
  margin-left: 0.28em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #3DDBB8;
  background: linear-gradient(110deg, #3DDBB8 0%, #5EB0FF 50%, #3DDBB8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: magic-accent-shift 5s linear infinite;
}

.magic-sep {
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  margin: 0 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

@keyframes magic-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes magic-accent-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .magic-track,
  .magic-item span {
    animation: none !important;
  }

  .magic-track {
    transform: none;
  }

  .magic-track-wrap {
    overflow-x: auto;
  }
}

/* ---------- Features / SOAP ---------- */
.features {
  background: var(--surface);
}

.soap-simulator-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.soap-sim-header {
  text-align: center;
  margin-bottom: 28px;
}

.soap-sim-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  color: var(--brand-teal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.soap-sim-header h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.soap-sim-header p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.soap-simulator-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.case-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-btn {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition);
}

.case-btn:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-deep);
}

.case-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.soap-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soap-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  transition: all var(--transition);
}

.soap-tab-btn:hover {
  border-color: rgba(27, 111, 232, 0.3);
}

.soap-tab-btn.active {
  border-color: var(--brand-blue);
  background: var(--surface-blue);
  box-shadow: var(--shadow-xs);
}

.tab-letter {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--brand-blue);
  flex-shrink: 0;
}

.soap-tab-btn[data-tab="O"] .tab-letter { background: var(--brand-teal); }
.soap-tab-btn[data-tab="A"] .tab-letter { background: #D97706; }
.soap-tab-btn[data-tab="P"] .tab-letter { background: var(--brand-green); }

.tab-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab-name small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.soap-preview-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.soap-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
}

.patient-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.patient-info p {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.soap-save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-green-deep);
}

.save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(31, 174, 90, 0.15);
}

.soap-preview-body {
  padding: 20px 18px;
  flex: 1;
}

.soap-section-badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(27, 111, 232, 0.1);
  color: var(--brand-blue);
}

.soap-section-badge.tab-S { background: rgba(27, 111, 232, 0.1); color: var(--brand-blue); }
.soap-section-badge.tab-O { background: rgba(5, 179, 152, 0.12); color: var(--brand-teal-deep); }
.soap-section-badge.tab-A { background: rgba(217, 119, 6, 0.12); color: #B45309; }
.soap-section-badge.tab-P { background: rgba(31, 174, 90, 0.12); color: var(--brand-green-deep); }

.soap-text-output {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: opacity 0.2s ease;
}

.soap-text-output.fade-out {
  opacity: 0.25;
}

.soap-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.btn-copy-soap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-copy-soap:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-deep);
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 111, 232, 0.2);
}

.fc-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.fc-copy {
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.fc-btn {
  align-self: flex-start;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
}

.fc-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Specialties ---------- */
.specialties-sec {
  background: #fff;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.specialty-card {
  --spec-accent: var(--brand-teal);
  --spec-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --spec-dur: 0.28s;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  /* Isolation avoids paint thrash when switching hover between cards */
  isolation: isolate;
  will-change: transform;
  transition:
    transform var(--spec-dur) var(--spec-ease),
    box-shadow var(--spec-dur) var(--spec-ease),
    border-color var(--spec-dur) ease;
}

.specialty-card:nth-child(1) { --spec-accent: #1B6FE8; }
.specialty-card:nth-child(2) { --spec-accent: #05B398; }
.specialty-card:nth-child(3) { --spec-accent: #0E8A45; }
.specialty-card:nth-child(4) { --spec-accent: #0F4FB8; }

.specialty-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--spec-accent), transparent 85%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--spec-dur) var(--spec-ease);
  pointer-events: none;
}

.specialty-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 179, 152, 0.28);
  box-shadow:
    0 14px 30px rgba(11, 31, 51, 0.09),
    0 2px 6px rgba(11, 31, 51, 0.04);
}

.specialty-card:nth-child(1):hover { border-color: rgba(27, 111, 232, 0.28); }
.specialty-card:nth-child(2):hover { border-color: rgba(5, 179, 152, 0.28); }
.specialty-card:nth-child(3):hover { border-color: rgba(14, 138, 69, 0.28); }
.specialty-card:nth-child(4):hover { border-color: rgba(15, 79, 184, 0.28); }

.specialty-card:hover::after {
  transform: scaleX(1);
}

.specialty-media {
  position: relative;
  height: 148px;
  overflow: hidden;
  background: var(--surface);
}

.specialty-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  /* Same duration in/out so leaving one card for another feels smooth */
  transition:
    transform var(--spec-dur) var(--spec-ease),
    filter var(--spec-dur) ease;
  filter: saturate(0.96);
  will-change: transform;
}

.specialty-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 31, 51, 0.18) 100%);
  opacity: 0.55;
  transition: opacity var(--spec-dur) ease;
  pointer-events: none;
}

.specialty-card:hover .specialty-img {
  transform: scale(1.08);
  filter: saturate(1.04);
}

.specialty-card:hover .specialty-media-shade {
  opacity: 0.35;
}

.specialty-icon {
  width: 48px;
  height: 48px;
  margin: -24px 18px 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--spec-accent);
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(11, 31, 51, 0.08);
  /* Transitions only — no keyframe animations (they glitch on quick hover swap) */
  transition:
    transform var(--spec-dur) var(--spec-ease),
    box-shadow var(--spec-dur) var(--spec-ease),
    border-color var(--spec-dur) ease,
    background-color var(--spec-dur) ease;
}

.specialty-icon svg {
  width: 22px;
  height: 22px;
  transition: transform var(--spec-dur) var(--spec-ease);
}

.specialty-card:hover .specialty-icon {
  transform: translateY(-3px);
  border-color: rgba(5, 179, 152, 0.25);
  background-color: #fff;
  box-shadow: 0 10px 22px rgba(11, 31, 51, 0.1);
}

.specialty-card:nth-child(1):hover .specialty-icon { border-color: rgba(27, 111, 232, 0.28); }
.specialty-card:nth-child(2):hover .specialty-icon { border-color: rgba(5, 179, 152, 0.28); }
.specialty-card:nth-child(3):hover .specialty-icon { border-color: rgba(14, 138, 69, 0.28); }
.specialty-card:nth-child(4):hover .specialty-icon { border-color: rgba(15, 79, 184, 0.28); }

.specialty-card:hover .specialty-icon svg {
  transform: scale(1.06);
}

.specialty-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 18px 18px;
}

.specialty-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color var(--spec-dur) ease;
}

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

.specialty-card:nth-child(1):hover h3 { color: #0F4FB8; }
.specialty-card:nth-child(2):hover h3 { color: #048F7A; }
.specialty-card:nth-child(3):hover h3 { color: #0E8A45; }
.specialty-card:nth-child(4):hover h3 { color: #0F4FB8; }

.specialty-subtitle {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.specialty-list {
  margin: 0;
  padding: 0;
}

.specialty-list li {
  position: relative;
  padding: 7px 0 7px 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(11, 31, 51, 0.05);
  /* No per-item transform/delay — was causing stutter when swapping cards */
  transition: color var(--spec-dur) ease;
}

.specialty-list li:last-child {
  border-bottom: none;
}

.specialty-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spec-accent);
  opacity: 0.55;
  transform: translateY(-50%);
  transition: opacity var(--spec-dur) ease, box-shadow var(--spec-dur) ease;
}

.specialty-card:hover .specialty-list li {
  color: var(--ink);
}

.specialty-card:hover .specialty-list li::before {
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(5, 179, 152, 0.12);
}

.specialty-card:nth-child(1):hover .specialty-list li::before { box-shadow: 0 0 0 3px rgba(27, 111, 232, 0.12); }
.specialty-card:nth-child(2):hover .specialty-list li::before { box-shadow: 0 0 0 3px rgba(5, 179, 152, 0.12); }
.specialty-card:nth-child(3):hover .specialty-list li::before { box-shadow: 0 0 0 3px rgba(14, 138, 69, 0.12); }
.specialty-card:nth-child(4):hover .specialty-list li::before { box-shadow: 0 0 0 3px rgba(15, 79, 184, 0.12); }

@media (prefers-reduced-motion: reduce) {
  .specialty-card,
  .specialty-card::after,
  .specialty-img,
  .specialty-media-shade,
  .specialty-icon,
  .specialty-icon svg,
  .specialty-card h3,
  .specialty-list li,
  .specialty-list li::before {
    transition: none !important;
  }

  .specialty-card:hover {
    transform: none;
  }

  .specialty-card:hover .specialty-img,
  .specialty-card:hover .specialty-icon,
  .specialty-card:hover .specialty-icon svg {
    transform: none;
  }
}

/* ---------- Packages / WhatsApp (ops console + iPhone 17 Pro Max) ---------- */
.packages-simulator-sec {
  --pkg-ink: #0A1628;
  --pkg-muted: #4A5D72;
  --pkg-line: rgba(10, 22, 40, 0.1);
  --pkg-surface: #F3F6F9;
  --pkg-card: #FFFFFF;
  --pkg-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  background:
    linear-gradient(180deg, #EEF3F7 0%, #F7FAFC 42%, #FFFFFF 100%);
  overflow: hidden;
}

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

.pkg-kicker {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0F5C8C;
}

.pkg-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pkg-ink);
}

.pkg-lead {
  margin: 0 auto;
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--pkg-muted);
}

.packages-simulator-container {
  background: var(--pkg-card);
  border: 1px solid var(--pkg-line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(10, 22, 40, 0.06);
}

.packages-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.patients-panel {
  min-width: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-header h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pkg-ink);
}

.panel-sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pkg-muted);
}

.panel-badge {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0B6B57;
  background: #E7F6F1;
  border: 1px solid rgba(5, 179, 152, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}

.patient-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patient-pkg-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 1.5px solid #D5DEE8;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  color: inherit;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(10, 22, 40, 0.04),
    0 8px 20px rgba(10, 22, 40, 0.04);
  transition:
    border-color 0.2s var(--pkg-ease),
    box-shadow 0.2s var(--pkg-ease),
    transform 0.2s var(--pkg-ease),
    background-color 0.2s ease;
}

.patient-pkg-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #C5D0DC;
  transition: background-color 0.2s ease;
}

.patient-pkg-card:hover {
  border-color: #A8B8C9;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 16px rgba(10, 22, 40, 0.08),
    0 2px 4px rgba(10, 22, 40, 0.04);
}

.patient-pkg-card:hover::before {
  background: #0F5C8C;
}

.patient-pkg-card.active {
  border-color: #05B398;
  background: #FBFEFD;
  box-shadow:
    0 0 0 1px rgba(5, 179, 152, 0.2),
    0 10px 28px rgba(5, 179, 152, 0.12),
    0 2px 6px rgba(10, 22, 40, 0.04);
}

.patient-pkg-card.active::before {
  background: #05B398;
  width: 4px;
}

.patient-pkg-card[data-patient="luciana"].active {
  border-color: #E07A3A;
  box-shadow:
    0 0 0 1px rgba(194, 65, 12, 0.15),
    0 10px 28px rgba(194, 65, 12, 0.1),
    0 2px 6px rgba(10, 22, 40, 0.04);
}

.patient-pkg-card[data-patient="luciana"].active::before,
.patient-pkg-card[data-patient="luciana"]:hover::before {
  background: #C2410C;
}

.patient-pkg-card[data-patient="carlos"].active {
  border-color: #3B6FA0;
  box-shadow:
    0 0 0 1px rgba(15, 92, 140, 0.16),
    0 10px 28px rgba(15, 92, 140, 0.1),
    0 2px 6px rgba(10, 22, 40, 0.04);
}

.patient-pkg-card[data-patient="carlos"].active::before,
.patient-pkg-card[data-patient="carlos"]:hover::before {
  background: #0F5C8C;
}

.p-pkg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px 18px;
  border-bottom: 1px solid #E8EEF4;
  background: linear-gradient(180deg, #FAFCFE 0%, #FFFFFF 100%);
}

.patient-pkg-card.active .p-pkg-header {
  background: linear-gradient(180deg, #F2FBF8 0%, #FBFEFD 100%);
  border-bottom-color: #D7EFE8;
}

.p-pkg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E8F0F8;
  color: #0F4FB8;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid #C8D9EC;
  box-shadow: 0 1px 2px rgba(15, 79, 184, 0.08);
}

.patient-pkg-card[data-patient="luciana"] .p-pkg-avatar {
  background: #FDF2EC;
  color: #C2410C;
  border-color: #F0C9B0;
  box-shadow: 0 1px 2px rgba(194, 65, 12, 0.08);
}

.patient-pkg-card[data-patient="carlos"] .p-pkg-avatar {
  background: #EEF2F7;
  color: #334155;
  border-color: #CDD7E4;
  box-shadow: 0 1px 2px rgba(51, 65, 85, 0.06);
}

.p-pkg-info {
  flex: 1;
  min-width: 0;
}

.p-pkg-info h5 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pkg-ink);
}

.p-pkg-info span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--pkg-muted);
}

.p-pkg-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status-alert {
  background: #FFF6E8;
  color: #9A5B00;
  border-color: #F0D4A8;
}

.status-critical {
  background: #FDECEC;
  color: #B42318;
  border-color: #F0B8B2;
}

.status-ok {
  background: #E7F6F1;
  color: #0B6B57;
  border-color: #B7E2D4;
}

.p-pkg-progress-container {
  padding: 12px 16px 10px 18px;
}

.p-pkg-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--pkg-muted);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.p-pkg-progress-labels strong {
  font-weight: 700;
  color: var(--pkg-ink);
}

.p-pkg-progress-bar {
  height: 8px;
  background: #E8EEF4;
  border: 1px solid #D5DEE8;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(10, 22, 40, 0.04) inset;
}

.p-pkg-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #0F5C8C;
  transition: width 0.45s var(--pkg-ease);
  box-shadow: 0 0 0 1px rgba(15, 92, 140, 0.15);
}

.patient-pkg-card.active .p-pkg-progress-fill {
  background: #05B398;
  box-shadow: 0 0 0 1px rgba(5, 179, 152, 0.2);
}

.patient-pkg-card[data-patient="luciana"] .p-pkg-progress-fill {
  background: #C2410C;
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.18);
}

.patient-pkg-card[data-patient="carlos"] .p-pkg-progress-fill {
  background: #0F5C8C;
  box-shadow: 0 0 0 1px rgba(15, 92, 140, 0.15);
}

.p-pkg-meta {
  margin: 0 16px 14px 18px;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pkg-muted);
  background: #F5F8FB;
  border: 1px solid #E0E8F0;
  border-radius: 10px;
}

.patient-pkg-card.active .p-pkg-meta {
  background: #F0FAF6;
  border-color: #CDE9DF;
}

.p-pkg-pain strong {
  font-weight: 700;
  color: var(--pkg-ink);
}

/* iPhone 17 Pro Max mock */
.whatsapp-simulator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.iphone-stage {
  position: relative;
  width: min(100%, 340px);
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.device-frame.iphone-17-pro-max {
  --iphone-w: 300px;
  --iphone-radius: 48px;
  --iphone-bezel: 10px;
  position: relative;
  z-index: 1;
  width: var(--iphone-w);
  aspect-ratio: 9 / 19.4;
  max-height: 620px;
  padding: var(--iphone-bezel);
  border-radius: var(--iphone-radius);
  background:
    linear-gradient(145deg, #4a4d52 0%, #2b2e33 18%, #1a1c1f 48%, #2f3238 78%, #5a5e66 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 28px 60px rgba(10, 22, 40, 0.28),
    0 8px 18px rgba(10, 22, 40, 0.16);
  animation: iphone-rise 0.7s var(--pkg-ease) both;
}

@keyframes iphone-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.iphone-frame-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.16) 0%,
    transparent 28%,
    transparent 62%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.iphone-side-btn {
  position: absolute;
  background: linear-gradient(90deg, #3a3d42, #1e2024);
  border-radius: 2px;
  z-index: 0;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.35);
}

.iphone-btn-silent {
  left: -2px;
  top: 108px;
  width: 3px;
  height: 28px;
}

.iphone-btn-vol-up {
  left: -2px;
  top: 160px;
  width: 3px;
  height: 52px;
}

.iphone-btn-vol-down {
  left: -2px;
  top: 222px;
  width: 3px;
  height: 52px;
}

.iphone-btn-power {
  right: -2px;
  top: 190px;
  width: 3px;
  height: 78px;
}

.iphone-screen {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: calc(var(--iphone-radius) - 7px);
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset;
}

.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 118px;
  height: 34px;
  background: #0a0a0a;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.di-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #4b6a8a 0%, #1a2740 45%, #0b1018 100%);
  box-shadow: 0 0 0 1.5px #111;
}

.di-sensors {
  display: none;
}

.ios-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f5f5f7;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 16px 22px 8px;
  background: #0B141A;
  position: relative;
  z-index: 4;
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f5f5f7;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1F2C33;
  color: #E9EDEF;
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.wa-back-arrow {
  color: #53BDEB;
  width: 22px;
  display: grid;
  place-items: center;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0F5C8C;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-contact-info {
  flex: 1;
  min-width: 0;
}

.wa-contact-name {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-contact-status {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #8696A0;
  min-height: 1em;
  transition: color 0.2s ease;
}

.wa-header-icons {
  color: #53BDEB;
  display: grid;
  place-items: center;
  padding-right: 2px;
}

.wa-chat-area {
  flex: 1;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(11, 20, 26, 0.15), rgba(11, 20, 26, 0.05)),
    #0B141A url("../assets/img/wa_bg.png") center/cover;
  overflow-y: auto;
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.wa-message {
  display: flex;
  max-width: 88%;
  animation: wa-msg-in 0.28s var(--pkg-ease) both;
}

@keyframes wa-msg-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wa-received {
  align-self: flex-start;
}

.wa-sent {
  align-self: flex-end;
}

.wa-msg-bubble {
  background: #202C33;
  color: #E9EDEF;
  border-radius: 10px 10px 10px 3px;
  padding: 8px 10px 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.22);
}

.wa-sent .wa-msg-bubble {
  background: #005C4B;
  border-radius: 10px 10px 3px 10px;
}

.wa-msg-bubble p {
  margin: 0;
}

.wa-msg-bubble strong {
  font-weight: 700;
  color: #fff;
}

.wa-time {
  display: block;
  text-align: right;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(233, 237, 239, 0.55);
  margin-top: 4px;
}

.wa-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #8696A0;
}

.wa-typing-dots {
  display: flex;
  gap: 4px;
}

.wa-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696A0;
  animation: typing 1.1s infinite ease-in-out;
}

.wa-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.wa-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1F2C33;
  padding: 8px 10px 6px;
  flex-shrink: 0;
}

.wa-plus-btn-mock,
.wa-send-btn-mock {
  color: #8696A0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-send-btn-mock {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #00A884;
  color: #fff;
}

.wa-input-placeholder {
  flex: 1;
  background: #2A3942;
  color: #8696A0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 20px;
}

.home-indicator {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  margin: 6px auto 8px;
  flex-shrink: 0;
}

.simulator-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-wa-send {
  min-width: min(100%, 280px);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.simulator-hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pkg-muted);
  text-align: center;
}

@media (max-width: 960px) {
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .device-frame.iphone-17-pro-max {
    --iphone-w: min(100%, 300px);
  }
}

@media (max-width: 480px) {
  .device-frame.iphone-17-pro-max {
    --iphone-w: min(100%, 280px);
    --iphone-radius: 42px;
  }

  .dynamic-island {
    width: 104px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .device-frame.iphone-17-pro-max,
  .wa-message,
  .wa-typing-dots span,
  .patient-pkg-card,
  .p-pkg-progress-fill {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Demo section ---------- */
.demo {
  --demo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --demo-ink: #0A1628;
  --demo-muted: #4A5D72;
  --demo-line: #D5DEE8;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F4F7FA 48%, #FFFFFF 100%);
}

.demo-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}

.demo-kicker {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0F5C8C;
}

.demo-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--demo-ink);
}

.demo-lead {
  margin: 0 auto;
  max-width: 50ch;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--demo-muted);
}

.demo-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #EEF2F6;
  border: 1.5px solid var(--demo-line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04) inset;
}

.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--demo-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background-color 0.25s var(--demo-ease),
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s var(--demo-ease),
    transform 0.25s var(--demo-ease);
}

.demo-tab-icon {
  display: grid;
  place-items: center;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s var(--demo-ease);
}

.demo-tab:hover {
  color: var(--demo-ink);
  background: rgba(255, 255, 255, 0.7);
}

.demo-tab:hover .demo-tab-icon {
  opacity: 1;
}

.demo-tab.active {
  background: var(--demo-ink);
  border-color: var(--demo-ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 22, 40, 0.18);
  transform: translateY(-1px);
}

.demo-tab.active .demo-tab-icon {
  opacity: 1;
}

.demo-tab:focus-visible {
  outline: 2px solid #05B398;
  outline-offset: 3px;
}

.demo-screen {
  background: #fff;
  border: 1.5px solid var(--demo-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 48px rgba(10, 22, 40, 0.07);
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #FAFCFE 0%, #F3F7FB 100%);
  border-bottom: 1.5px solid var(--demo-line);
}

.chrome-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chrome-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--demo-ink);
}

.chrome-logo img {
  width: 18px;
  height: 18px;
}

.demo-topbar-status {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0B6B57;
  background: #E7F6F1;
  border: 1px solid #B7E2D4;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.demo-pane {
  display: none;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(180deg, #F7FAFC 0%, #EEF3F7 100%);
}

.demo-pane.active {
  display: block;
  animation: demo-pane-in 0.42s var(--demo-ease) both;
}

@keyframes demo-pane-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pane-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.pane-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #E7F6F1;
  border: 1px solid #B7E2D4;
  color: #0B6B57;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pane-badge.badge-finance {
  background: #EAF1FB;
  border-color: #C5D7F2;
  color: #0F4FB8;
}

.pane-badge.badge-soap {
  background: #EAF7EF;
  border-color: #BFE3CB;
  color: #0E8A45;
}

.pane-text h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--demo-ink);
}

.pane-text p {
  margin: 0 0 22px;
  color: var(--demo-muted);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.65;
  max-width: 40ch;
}

.pane-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pane-stat-item {
  background: #fff;
  border: 1.5px solid var(--demo-line);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 128px;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
  transition: transform 0.25s var(--demo-ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-pane.active .pane-stat-item {
  animation: demo-stat-in 0.45s var(--demo-ease) both;
}

.demo-pane.active .pane-stat-item:nth-child(2) {
  animation-delay: 0.06s;
}

@keyframes demo-stat-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pane-stat-item:hover {
  transform: translateY(-2px);
  border-color: #A8B8C9;
  box-shadow: 0 8px 18px rgba(10, 22, 40, 0.07);
}

.stat-num {
  display: block;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--demo-ink);
}

.stat-lbl {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--demo-muted);
}

.pane-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pane-feat-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--demo-line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.03);
  transition:
    transform 0.28s var(--demo-ease),
    border-color 0.28s ease,
    box-shadow 0.28s var(--demo-ease);
}

.pane-feat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #05B398;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s var(--demo-ease);
}

.demo-pane.active .pane-feat-card {
  animation: demo-card-in 0.48s var(--demo-ease) both;
}

.demo-pane.active .pane-feat-card:nth-child(1) { animation-delay: 0.04s; }
.demo-pane.active .pane-feat-card:nth-child(2) { animation-delay: 0.09s; }
.demo-pane.active .pane-feat-card:nth-child(3) { animation-delay: 0.14s; }
.demo-pane.active .pane-feat-card:nth-child(4) { animation-delay: 0.19s; }

@keyframes demo-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pane-feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 179, 152, 0.4);
  box-shadow: 0 12px 28px rgba(10, 22, 40, 0.08);
}

.pane-feat-card:hover::before {
  transform: scaleY(1);
}

.feat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #EAF7F3;
  border: 1.5px solid #C5E8DD;
  color: #0B6B57;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition: transform 0.28s var(--demo-ease), background-color 0.28s ease, border-color 0.28s ease;
}

.feat-card-icon svg {
  width: 20px;
  height: 20px;
}

.pane-feat-card:hover .feat-card-icon {
  transform: scale(1.06);
  background: #DDF4ED;
  border-color: #9FD9C8;
}

.card-finance .feat-card-icon {
  background: #EAF1FB;
  border-color: #C5D7F2;
  color: #0F4FB8;
}

.card-finance:hover {
  border-color: rgba(27, 111, 232, 0.4);
}

.card-finance::before {
  background: #1B6FE8;
}

.card-finance:hover .feat-card-icon {
  background: #DCE8FA;
  border-color: #A8C4EE;
}

.card-soap .feat-card-icon {
  background: #EAF7EF;
  border-color: #BFE3CB;
  color: #0E8A45;
}

.card-soap:hover {
  border-color: rgba(14, 138, 69, 0.4);
}

.card-soap::before {
  background: #0E8A45;
}

.card-soap:hover .feat-card-icon {
  background: #DDF3E6;
  border-color: #9ED4B3;
}

.pane-feat-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--demo-ink);
}

.pane-feat-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--demo-muted);
}

@media (prefers-reduced-motion: reduce) {
  .demo-pane.active,
  .demo-pane.active .pane-stat-item,
  .demo-pane.active .pane-feat-card,
  .demo-tab,
  .pane-feat-card,
  .feat-card-icon {
    animation: none !important;
    transition: none !important;
  }

  .pane-feat-card:hover {
    transform: none;
  }
}

/* ---------- Benefits / metrics ---------- */
.benefits {
  --ben-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ben-ink: #0A1628;
  --ben-muted: #4A5D72;
  --ben-line: #D5DEE8;
  --font-metric: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background:
    linear-gradient(180deg, #F3F7FA 0%, #F8FBFD 40%, #FFFFFF 100%);
}

.benefits-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.benefits-kicker {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0F5C8C;
}

.benefits-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ben-ink);
}

.benefits-lead {
  margin: 0 auto;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ben-muted);
}

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

.benefit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--ben-line);
  border-radius: 18px;
  padding: 22px 20px 24px;
  text-align: left;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 24px rgba(10, 22, 40, 0.05);
  transition:
    transform 0.32s var(--ben-ease),
    border-color 0.32s ease,
    box-shadow 0.32s var(--ben-ease);
}

.benefit-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #1B6FE8 0%, #05B398 55%, #1FAE5A 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ben-ease);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: #A8B8C9;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 16px 36px rgba(10, 22, 40, 0.1);
}

.benefit-card:hover::after {
  transform: scaleX(1);
}

.benefit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.benefit-index {
  font-family: var(--font-metric);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7A8FA3;
}

.benefit-accent {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1.5px solid #C5E8DD;
  background:
    linear-gradient(145deg, #F4FCFA 0%, #E7F6F1 100%);
  position: relative;
  transition: transform 0.32s var(--ben-ease), border-color 0.32s ease, background 0.32s ease;
}

.benefit-accent::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: #05B398;
  opacity: 0.85;
  transition: transform 0.32s var(--ben-ease);
}

.benefit-card:nth-child(1) .benefit-accent {
  border-color: #C5D7F2;
  background: linear-gradient(145deg, #F5F9FF 0%, #EAF1FB 100%);
}

.benefit-card:nth-child(1) .benefit-accent::before {
  background: #1B6FE8;
}

.benefit-card:nth-child(2) .benefit-accent::before {
  background: #05B398;
}

.benefit-card:nth-child(3) .benefit-accent {
  border-color: #BFE3CB;
  background: linear-gradient(145deg, #F4FBF6 0%, #EAF7EF 100%);
}

.benefit-card:nth-child(3) .benefit-accent::before {
  background: #0E8A45;
}

.benefit-card:nth-child(4) .benefit-accent {
  border-color: #C5D7F2;
  background: linear-gradient(145deg, #F5F9FF 0%, #EEF4FA 100%);
}

.benefit-card:nth-child(4) .benefit-accent::before {
  background: #0F4FB8;
}

.benefit-card:hover .benefit-accent {
  transform: scale(1.08);
}

.benefit-card:hover .benefit-accent::before {
  transform: scale(1.1);
}

.benefit-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0 0 16px;
  line-height: 0.92;
  transition: transform 0.32s var(--ben-ease);
}

.benefit-num-value {
  font-family: var(--font-metric);
  font-size: clamp(2.85rem, 4.2vw, 3.55rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.055em;
  color: #0A1628;
  line-height: 0.92;
  /* Soft depth without cheap gradient text */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.benefit-num-unit {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-left: 1px;
  background: linear-gradient(135deg, #1B6FE8 0%, #05B398 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #05B398;
  transform: translateY(-0.12em);
}

.benefit-card:nth-child(1) .benefit-num-unit {
  background: linear-gradient(135deg, #1B6FE8, #3B8BFF);
  -webkit-background-clip: text;
  background-clip: text;
}

.benefit-card:nth-child(2) .benefit-num-unit {
  background: linear-gradient(135deg, #05B398, #1FAE5A);
  -webkit-background-clip: text;
  background-clip: text;
}

.benefit-card:nth-child(3) .benefit-num-unit {
  background: linear-gradient(135deg, #0E8A45, #05B398);
  -webkit-background-clip: text;
  background-clip: text;
}

.benefit-card:nth-child(4) .benefit-num-unit {
  background: linear-gradient(135deg, #0F4FB8, #1B6FE8);
  -webkit-background-clip: text;
  background-clip: text;
}

.benefit-card:hover .benefit-number {
  transform: translateY(-2px);
}

.benefit-card.is-counted .benefit-num-value {
  animation: benefit-num-settle 0.5s var(--ben-ease) both;
}

@keyframes benefit-num-settle {
  0% { transform: scale(0.94); opacity: 0.75; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ben-ink);
}

.benefit-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ben-muted);
  flex: 1;
}

.benefit-card.reveal.visible {
  transition:
    opacity 0.55s var(--ben-ease),
    transform 0.55s var(--ben-ease);
}

@media (max-width: 960px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card,
  .benefit-number,
  .benefit-accent,
  .benefit-accent::before,
  .benefit-card::after {
    transition: none !important;
    animation: none !important;
  }

  .benefit-card:hover {
    transform: none;
  }
}

/* ---------- ROI ---------- */
.roi {
  background: #fff;
}

.roi-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.roi-inputs-panel h3,
.roi-results-panel h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.roi-input-group {
  margin-bottom: 20px;
}

.roi-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.roi-value {
  color: var(--ink);
  font-weight: 700;
}

.roi-slider {
  width: 100%;
  accent-color: var(--brand-teal);
  height: 6px;
}

.roi-results-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.roi-result-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.roi-result-card:last-child {
  border-bottom: none;
}

.roi-result-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.roi-result-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
}

.roi-result-value .counter-val {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-result-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.roi-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

.roi-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--brand-teal);
}

.roi-result-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.roi-result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.roi-result-card.featured {
  background: linear-gradient(135deg, rgba(27, 111, 232, 0.04), rgba(5, 179, 152, 0.08));
  border-color: rgba(5, 179, 152, 0.25);
}

.roi-results-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.roi-result-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.roi-result-value.accent-green,
.roi-result-value.accent-cyan {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roi-result-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.roi-cta-box {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.roi-cta-box p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

/* ---------- Testimonials carousel ---------- */
.testimonials {
  background: var(--surface);
  overflow: hidden;
}

.testimonials-carousel {
  --tcar-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 52px;
}

.tcar-viewport {
  overflow: hidden;
  border-radius: 18px;
}

.tcar-track {
  display: flex;
  transition: transform 0.55s var(--tcar-ease);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #D5DEE8;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(10, 22, 40, 0.06);
  display: flex;
  flex-direction: column;
  opacity: 0.55;
  transform: scale(0.97);
  transition:
    opacity 0.45s var(--tcar-ease),
    transform 0.45s var(--tcar-ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.testimonial-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(5, 179, 152, 0.35);
  box-shadow:
    0 0 0 1px rgba(5, 179, 152, 0.1),
    0 16px 40px rgba(10, 22, 40, 0.08);
}

.testimonial-stars {
  color: #D4A017;
  letter-spacing: 3px;
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1;
}

.testimonial-card blockquote {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #E8EEF4;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1B6FE8, #05B398);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.testimonial-info h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.testimonial-info p {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 3px 0 0;
}

.tcar-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #D5DEE8;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(10, 22, 40, 0.08);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s var(--tcar-ease);
}

.tcar-btn:hover {
  border-color: #05B398;
  color: #048F7A;
  box-shadow: 0 8px 20px rgba(5, 179, 152, 0.15);
  transform: translateY(-50%) scale(1.04);
}

.tcar-btn:active {
  transform: translateY(-50%) scale(0.97);
}

.tcar-prev { left: 0; }
.tcar-next { right: 0; }

.tcar-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}

.tcar-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #C5D0DC;
  cursor: pointer;
  transition:
    width 0.3s var(--tcar-ease),
    background-color 0.25s ease,
    transform 0.25s ease;
}

.tcar-dot:hover {
  background: #8FA3B5;
}

.tcar-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, #1B6FE8, #05B398);
}

@media (max-width: 640px) {
  .testimonials-carousel {
    padding: 0 44px;
  }

  .tcar-btn {
    width: 36px;
    height: 36px;
  }

  .testimonial-card {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tcar-track,
  .testimonial-card,
  .tcar-btn,
  .tcar-dot {
    transition: none !important;
  }
}

/* ---------- CTA ---------- */
.cta-section {
  background: #fff;
}

.cta-box {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(27, 111, 232, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 100%, rgba(5, 179, 152, 0.2), transparent 50%),
    var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  box-shadow: var(--shadow-lg);
}

.cta-logo img {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.cta-box h2 .gradient-text {
  background: linear-gradient(100deg, #7dd3c0, #9be7a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta-box .btn-primary {
  box-shadow: 0 10px 28px rgba(5, 179, 152, 0.35);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--surface);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-question svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform var(--transition);
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
  color: var(--brand-teal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 240px;
}

.faq-answer p {
  padding: 0 20px 18px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Norris social ---------- */
.norris-section {
  padding: 72px 24px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.norris-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.norris-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

a.norris {
  font-family: var(--font-display);
  font-size: var(--norris-font-size);
  font-weight: 600;
  line-height: 1;
  color: var(--norris-primary);
  letter-spacing: -0.025em;
  font-style: normal;
}

a.norris span {
  display: inline-block;
  transition: color var(--norris-time) linear, transform 0.25s ease;
  transition-delay: calc(var(--index, 0) * var(--norris-time));
}

a.norris:hover span {
  color: var(--norris-accent);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer h4 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 12px;
}

/* ---------- Floating contact ---------- */
.contact-tab-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 12px 12px;
  border-radius: 12px 0 0 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  writing-mode: horizontal-tb;
  transition: background var(--transition), padding var(--transition);
}

.contact-tab-float:hover {
  background: var(--brand-teal-deep);
  padding-right: 18px;
}

.contact-tab-icon {
  display: grid;
  place-items: center;
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 31, 51, 0.48);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
  overscroll-behavior: contain;
}

.modal-dashboard-overlay .modal-card {
  width: min(100%, 720px);
}

.modal-overlay.active .modal-card {
  transform: none;
}

.modal-pricing-card {
  width: min(100%, 860px);
}

.modal-compact-card {
  width: min(100%, 440px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.modal-header {
  margin-bottom: 18px;
  padding-right: 28px;
}

.modal-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  color: var(--brand-teal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-badge-spotlight {
  background: var(--surface-blue);
  color: var(--brand-blue-deep);
}

.alert-badge {
  background: #FFF4E5;
  color: #B86B00;
}

.modal-title,
.modal-header h3,
.modal-feature-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.modal-header p,
.modal-feature-summary {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(5, 179, 152, 0.14);
}

.modal-success-state {
  text-align: center;
  padding: 20px 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.modal-body-content {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-modal-header {
  text-align: center;
  margin-bottom: 24px;
  padding-right: 20px;
}

.pricing-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 8px 0;
}

.pricing-modal-header p {
  color: var(--ink-muted);
}

.pricing-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pricing-plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-plan-card.recommended {
  background: linear-gradient(180deg, #F3FBFA, #EEF4FF);
  border-color: rgba(5, 179, 152, 0.35);
  box-shadow: var(--shadow-sm);
}

.pricing-plan-card h3,
.pricing-plan-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
}

.price-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan-payment-info {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.strike-price-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.strike-price {
  text-decoration: line-through;
  color: #C0392B;
}

.saving-highlight {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(31, 174, 90, 0.12);
  color: var(--brand-green-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-recommended {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.check-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-teal);
}

/* Contact hub in Fale Conosco modal */
.contact-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.contact-hub-brand img {
  width: 40px;
  height: 40px;
}

.contact-hub-brand strong {
  display: block;
  font-size: 0.92rem;
}

.contact-hub-brand span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.contact-hub-whatsapp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #F0FAF6;
  border: 1px solid rgba(0, 168, 132, 0.2);
  border-radius: var(--radius-md);
}

.contact-whatsapp-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #00A884;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-hub-whatsapp span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.contact-hub-whatsapp strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-hub-action {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #00A884;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-form-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.contact-form-separator::before,
.contact-form-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-group {
  margin-bottom: 2px;
}

.footer .nav-logo span {
  -webkit-text-fill-color: transparent;
}

.footer .nav-logo {
  color: #fff;
}

.terms-content-scroll {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 15px;
  padding-bottom: 15px;
}

.terms-content-scroll h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1rem;
  border-bottom: 1px solid var(--brand-teal);
  padding-bottom: 4px;
}

.modal-feature-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.modal-feature-highlights span,
.modal-feature-highlights li {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-teal-deep);
  background: var(--surface-tint);
  border: 1px solid rgba(5, 179, 152, 0.18);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

.modal-dashboard-content-area {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.modal-dashboard-toast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}

.modal-dashboard-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Modal interactive widgets */
.dash-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.modal-soap-case-selector,
.modal-soap-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.m-case-btn,
.m-soap-tab {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.m-case-btn.active,
.m-soap-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.modal-soap-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.m-soap-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.m-soap-output {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
}

.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.dash-stat-box span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}

.dash-stat-box h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.finance-split-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.finance-split-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.finance-split-slider {
  width: 100%;
  accent-color: var(--brand-teal);
  margin-bottom: 10px;
}

.finance-pie-chart {
  height: 10px;
  background: var(--surface-blue);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.finance-pie-fill {
  height: 100%;
  background: var(--brand-teal);
}

.agenda-slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-slot-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.agenda-slot-card:hover {
  border-color: var(--brand-teal);
}

.agenda-slot-time {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.agenda-slot-patient {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.agenda-slot-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-muted);
}

.agenda-status-confirmed {
  background: var(--surface-tint);
  color: var(--brand-teal-deep);
}

.agenda-status-pending {
  background: #FFF4E5;
  color: #B86B00;
}

.packages-list-view,
.plans-creator-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-item-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
}

.package-item-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.package-item-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.package-item-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--surface-blue);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.package-item-progress-track {
  height: 6px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.package-item-progress-fill {
  height: 100%;
  background: var(--gradient-main);
}

.package-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.plans-library-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plan-exercise-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.plan-exercise-card:hover,
.plan-exercise-card.selected {
  border-color: var(--brand-teal);
  background: #F3FBFA;
}

.plan-exercise-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-exercise-desc {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.plans-selected-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.plans-selected-list {
  min-height: 60px;
  margin: 10px 0;
}

.plans-selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}

.plan-whatsapp-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: #00A884;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Checkout transition ---------- */
.checkout-transition {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: linear-gradient(160deg, #0B1F33 0%, #0D3A4A 55%, #0B1F33 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.checkout-transition.ct-active {
  opacity: 1;
  visibility: visible;
}

.ct-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ct-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(5, 179, 152, 0.25);
}

.ct-particles span:nth-child(1) { top: 12%; left: 18%; }
.ct-particles span:nth-child(2) { top: 28%; right: 14%; width: 12px; height: 12px; background: rgba(27, 111, 232, 0.2); }
.ct-particles span:nth-child(3) { bottom: 22%; left: 12%; }
.ct-particles span:nth-child(4) { bottom: 18%; right: 22%; width: 10px; height: 10px; }
.ct-particles span:nth-child(5) { top: 45%; left: 8%; background: rgba(31, 174, 90, 0.2); }
.ct-particles span:nth-child(6) { top: 60%; right: 10%; }
.ct-particles span:nth-child(7) { top: 16%; left: 48%; width: 6px; height: 6px; }
.ct-particles span:nth-child(8) { bottom: 30%; left: 40%; }

.ct-shell {
  position: relative;
  width: min(100%, 460px);
  margin: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.ct-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.ct-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ct-logo-img {
  width: 28px;
  height: 28px;
}

.ct-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

.ct-body {
  text-align: center;
}

.ct-status-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(5, 179, 152, 0.15);
  color: var(--brand-teal);
  display: grid;
  place-items: center;
  position: relative;
}

.ct-status-icon span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--brand-teal);
  animation: spin 0.9s linear infinite;
}

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

.ct-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 8px;
}

.ct-heading {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.ct-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.ct-plan-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 22px;
}

.ct-plan-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(5, 179, 152, 0.15);
  color: var(--brand-teal);
  display: grid;
  place-items: center;
}

.ct-plan-copy {
  flex: 1;
}

.ct-plan-copy small {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.ct-plan-copy strong {
  font-size: 0.95rem;
}

.ct-plan-check {
  color: var(--brand-green);
}

.ct-progress-copy {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.ct-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 18px;
}

.ct-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.ct-security {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 960px) {
  .soap-simulator-grid,
  .packages-grid,
  .pane-content,
  .roi-container,
  .solution-content,
  .pricing-modal-grid {
    grid-template-columns: 1fr;
  }

  .problems-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .nav-cta .btn-ghost-pitch {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 80px 24px 40px;
  }

  .nav-menu-wrapper.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .nav-links a {
    font-size: 1.15rem;
    padding: 12px 18px;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .problems-grid,
  .features-grid,
  .pane-cards-grid,
  .dash-grid-2,
  .plans-library-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid,
  .specialties-grid,
  .roi-results-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-tab-float span:last-child {
    display: none;
  }

  .contact-tab-float {
    right: 16px;
    bottom: 16px;
    top: auto;
    transform: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  .demo-pane {
    padding: 18px;
  }

  .chrome-address-bar {
    display: none;
  }

  .modal-card {
    padding: 22px 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-emphasis {
    white-space: normal;
  }

  .soap-simulator-container,
  .packages-simulator-container,
  .roi-container {
    padding: 16px;
  }

  .case-btns {
    gap: 6px;
  }

  .case-btn {
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  a.norris {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
