/* ================================================================
   AVA PROMS — Main Stylesheet
   ================================================================ */

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

:root {
  /* Brand */
  --blue:        #2F6FED;
  --blue-dark:   #1a5dd4;
  --blue-darker: #1449b8;
  --blue-light:  #eef4fd;
  --blue-mid:    #d5e5fc;

  --green:       #27AE60;
  --green-dark:  #219653;
  --green-light: #e8f8ee;

  /* Grays */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Accents (used in impact cards) */
  --purple:  #8b5cf6;
  --orange:  #f97316;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.06);
  --shadow-blue: 0 8px 32px rgba(47,111,237,.30);

  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}

.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* Secondary: outline style on white hero */
.btn--secondary {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue-mid);
}
.btn--secondary:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--white {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--nav {
  padding: 8px 18px;
  background: var(--blue);
  color: #fff !important;
  font-size: 18px;
}
.btn--nav:hover {
  background: #fff;
  color: #2F6FED !important;
  border: 2px solid #2F6FED;
}

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

/* ================================================================
   NAVIGATION
   ================================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 21px 0;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 0;
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 37px;
  width: auto;
  display: block;
  transition: opacity 0.25s ease;
}

/* Over dark slider — show white logo, hide colour logo */
.nav__logo-img--color { display: none; }
.nav__logo-img--white { display: block; }

/* Scrolled over white bg — swap to colour logo */
.nav.scrolled .nav__logo-img--white { display: none; }
.nav.scrolled .nav__logo-img--color { display: block; }

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

.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: all var(--transition);
}

.nav__links a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

/* Scrolled state — dark background, switch to dark text */
.nav.scrolled .nav__links a {
  color: var(--gray-600);
}
.nav.scrolled .nav__links a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.88);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav.scrolled .nav__burger span { background: var(--gray-700); }

/* ================================================================
   HERO  — white background
   ================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

/* Blue blob top-right */
.hero__blob--1 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(47,111,237,.18), transparent 70%);
  top: -240px;
  right: -120px;
  opacity: 1;
}

/* Green blob bottom-left */
.hero__blob--2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(39,174,96,.14), transparent 70%);
  bottom: -120px;
  left: -80px;
  opacity: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .35;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}


.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 100px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero__heading {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  letter-spacing: -.5px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subheading {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.stat__num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.5px;
}

.stat__label {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px;
}

.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
}

/* ---- MOCKUP (light-themed) ---- */

.hero__visual {
  display: flex;
  justify-content: center;
}

.mockup {
  position: relative;
  width: 340px;
}

.mockup__screen {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(47,111,237,.06);
}

.mockup__bar {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.mockup__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.mockup__bar span:first-child  { background: #ff5f57; }
.mockup__bar span:nth-child(2) { background: #febc2e; }
.mockup__bar span:nth-child(3) { background: #28c840; }

.mockup__content { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

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

.mockup__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  flex-shrink: 0;
}

.mockup__line {
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
  margin-bottom: 6px;
}
.mockup__line--sm    { width: 100px; }
.mockup__line--xs    { width: 70px; height: 6px; }
.mockup__line--muted { background: var(--gray-100); }

.mockup__card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup__card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mockup__progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.mockup__progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), #6fa0f5);
  transition: width 1s ease;
}

.mockup__progress-fill--teal {
  background: linear-gradient(90deg, var(--green), #3dbe76);
}

.mockup__card-row { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

.chip--green { background: var(--green-light); color: var(--green-dark); }
.chip--blue  { background: var(--blue-light);  color: var(--blue-dark); }
.chip--teal  { background: var(--green-light);  color: var(--green-dark); }

.mockup__card--notification {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #b45309;
  font-size: 12px;
  font-weight: 500;
  background: #fffbeb;
  border-color: #fde68a;
}

.mockup__glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: var(--blue);
  filter: blur(40px);
  opacity: .18;
  border-radius: 50%;
  pointer-events: none;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  color: var(--gray-400);
  transition: all var(--transition);
  animation: bounce 2.5s ease-in-out infinite;
}

.hero__scroll a:hover { color: var(--blue); border-color: var(--blue); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ================================================================
   HERO SLIDER
   ================================================================ */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

/* ── Individual slides ── */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

.slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Slide backgrounds — Unsplash healthcare photos + brand-colour multiply tint.
   Swap the URL for your own photo at any time; the overlay ensures readability. */

/* Slide 1 — doctor / medical professional */
.slide--1 {
  background-image: url('slide1.jpg');
  background-color: #5a709b;
  background-blend-mode: multiply;
}

/* Slide 2 — healthcare team / digital efficiency */
.slide--2 {
  background-image: url('slide2.jpg');
  background-color: #587d72;
  background-blend-mode: multiply;
}

/* Slide 3 — patient care / quality */
.slide--3 {
  background-image: url('slide3.jpg');
  background-color: #635d93;
  background-blend-mode: multiply;
}

/* Dark overlay for readability */
.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.36) 0%,
    rgba(0,0,0,.21) 60%,
    rgba(0,0,0,.07) 100%
  );
}

/* ── Slide content ── */
.slide__content {
  position: relative;
  z-index: 2;
  width: 70vw;
  max-width: 70vw;
  padding-top: 120px; /* clear the fixed nav */
}

.slide__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease .1s, transform .6s ease .1s;
}

.slide__heading {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease .2s, transform .6s ease .2s;
}

.slide__sub {
  font-size: 21px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease .32s, transform .6s ease .32s;
}

.slide__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease .44s, transform .6s ease .44s;
}

/* Slider buttons — arrow suffix + reduced visibility */
.slide__actions .btn::after { content: ' ➔'; }
.slide__actions .btn         { opacity: 0.68; }
.slide__actions .btn:hover   { opacity: 1; }

/* Animate content in when slide is active */
.slide--active .slide__label,
.slide--active .slide__heading,
.slide--active .slide__sub,
.slide--active .slide__actions {
  opacity: 1;
  transform: none;
}

/* ── Navigation arrows ── */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.slider__arrow:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-50%) scale(1.08);
}

.slider__arrow--prev { left: 28px; }
.slider__arrow--next { right: 28px; }

/* ── Dot indicators ── */
.slider__dots {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slider__dot--active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.25);
}

/* ── Progress bar ── */
.slider__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
  z-index: 10;
}

.slider__progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width linear;
}

/* ── Scroll hint (reused from old hero) ── */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  right: 40px;
  z-index: 10;
}

.hero__scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
  animation: bounce 2.5s ease-in-out infinite;
}

.hero__scroll a:hover { color: #fff; border-color: rgba(255,255,255,.6); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .slide__content { padding-top: 100px; width: 84vw; max-width: 84vw; }
  .slide__sub { font-size: 18px; line-height: 1.6; margin-top: 40px; margin-bottom: 56px; }
  /* Move arrows to bottom so they don't cut through the text */
  .slider__arrow {
    width: 40px; height: 40px;
    top: auto; bottom: 68px;
    transform: none;
  }
  .slider__arrow:hover { transform: scale(1.08); }
  .slider__arrow--prev { left: 16px; }
  .slider__arrow--next { right: 16px; }
  .slider__dots { bottom: 24px; }
  .hero__scroll { display: none; }
}

@media (max-width: 560px) {
  .slide__content { padding-top: 80px; width: 91vw; max-width: 91vw; }
  .slide__label { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 12px; }
  .slide__heading { margin-bottom: 12px; }
  .slide__sub { font-size: 16px; line-height: 1.55; margin-top: 24px; margin-bottom: 40px; }
  /* Hide arrows — swipe is already supported */
  .slider__arrow { display: none; }
  .slider__dots { bottom: 16px; }
  .slide__actions { flex-direction: column; }
  .slide__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .slide__actions { flex-direction: column; }
  .slide__actions .btn { width: 100%; justify-content: center; }
}

/* ================================================================
   SECTIONS
   ================================================================ */

.section          { padding: 96px 0; }
.section--light   { background: var(--gray-50); }
.section--white   { background: #fff; }
/* Dark → solid brand blue */
.section--dark    { background: var(--blue); }
/* Gradient → blue variations */
.section--gradient { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-darker) 100%); }

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 16px;
}

.section__label--light { color: var(--green); }

.section__heading {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section__heading--light  { color: #fff; }
.section__heading--center { text-align: center; }

.section__lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.5;
}

.section__lead--light  { color: rgba(255,255,255,.85); }
.section__lead--center { text-align: center; max-width: 600px; margin-left: auto; margin-right: auto; }

.section__body {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.section__body--light  { color: rgba(255,255,255,.75); }
.section__body--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ================================================================
   TWO COLUMN
   ================================================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 48px;
}

.two-col--reverse { align-items: center; }

/* ================================================================
   BENEFIT CARDS
   ================================================================ */

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

.benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-mid);
}

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--blue-light);
  border-radius: 10px;
  color: var(--blue);
  flex-shrink: 0;
}

.benefit-card__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.4;
}

/* ================================================================
   FEATURE BLOCK (on blue section)
   ================================================================ */

.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 56px;
}

.feature-block__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
}

.feature-block__icon-wrap--blue {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
}

.feature-block__content { flex: 1; }

/* Feature grid — white cards on blue background */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-item {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-item__num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-200);
  letter-spacing: 1px;
}

.feature-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 10px;
  color: var(--blue);
  margin-bottom: 16px;
}

.feature-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-item__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ================================================================
   PATIENT VISUAL
   ================================================================ */

.patient-visual {
  display: flex;
  justify-content: center;
}

.patient-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.patient-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  flex-shrink: 0;
}

.patient-card__name { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.patient-card__meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.patient-card__badge {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}

.patient-card__question {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

.pain-scale {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pain-scale__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 16px;
  text-align: center;
}

.pain-scale__dots {
  display: flex;
  gap: 3px;
  flex: 1;
  justify-content: center;
}

.pain-dot {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  font-size: 0;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.pain-dot:hover        { border-color: var(--blue); color: var(--blue); }
.pain-dot--selected    { background: var(--blue); border-color: var(--blue); color: #fff; }

/* CHECKLIST */

.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 500;
}

.check-list li svg {
  flex-shrink: 0;
  color: var(--green);
  width: 18px;
  height: 18px;
}

/* ================================================================
   FEATURE PILLS (on gradient section)
   ================================================================ */

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 800px;
  margin: 32px auto 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.pill:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

.pill svg { color: var(--green); flex-shrink: 0; }

/* ================================================================
   SECURITY BLOCK
   ================================================================ */

.security-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }

.security-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.security-badge:hover {
  border-color: var(--blue-mid);
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.security-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 10px;
  color: var(--blue);
  flex-shrink: 0;
}

.security-badge__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.3;
}

/* SECURITY SHIELD */

.security-shield {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 620px;
}

.shield-outer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 189px;
  height: 189px;
  background: linear-gradient(135deg, var(--blue), var(--blue-darker));
  border-radius: 50%;
  box-shadow: var(--shadow-blue), 0 0 60px rgba(47,111,237,.25);
}

.shield-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 122px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
}

.shield-label {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 2.7px;
}

.shield-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--blue-mid);
  animation: ring-pulse 3s ease-in-out infinite;
}

.shield-ring--1 { width: 270px; height: 270px; animation-delay: 0s; }
.shield-ring--2 { width: 378px; height: 378px; animation-delay: .6s; opacity: .5; }
.shield-ring--3 { width: 486px; height: 486px; animation-delay: 1.2s; opacity: .25; }

@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: inherit; }
  50%       { transform: translate(-50%, -50%) scale(1.05); }
}

/* CERT BADGES — shield column */

.cert-badges {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  margin-top: 27px;
  justify-content: center;
}

.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cert-badge--hipaa {
  width: 97px;
  height: 108px;
  clip-path: polygon(50% 0%, 100% 18%, 100% 64%, 50% 100%, 0% 64%, 0% 18%);
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-darker) 100%);
  color: #fff;
}

.cert-badge--iso {
  width: 97px;
  height: 97px;
  border-radius: 50%;
  border: 2px solid var(--blue-mid);
  background: #fff;
  color: var(--blue);
}

.cert-badge--soc {
  width: 97px;
  height: 97px;
  border-radius: 50%;
  border: 2px solid rgba(39, 174, 96, .45);
  background: #fff;
  color: var(--green);
}

/* CERT LIST — text column */

.cert-list__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-top: 28px;
  margin-bottom: 10px;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.cert-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cert-list__tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
  line-height: 1.5;
}

.cert-list__text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.45;
  padding-top: 2px;
}

/* ================================================================
   IMPACT GRID
   ================================================================ */

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

.impact-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.impact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.impact-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #fff;
}

.impact-card p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}

.impact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* Updated to use brand colors */
.impact-card--blue   { background: linear-gradient(135deg, var(--blue),      var(--blue-darker)); }
.impact-card--teal   { background: linear-gradient(135deg, var(--green),     var(--green-dark)); }
.impact-card--purple { background: linear-gradient(135deg, var(--purple),    #7c3aed); }
.impact-card--orange { background: linear-gradient(135deg, var(--orange),    #ea580c); }
.impact-card--green  { background: linear-gradient(135deg, var(--green-dark), #166534); }

/* ================================================================
   AUDIENCE GRID  (on blue section)
   ================================================================ */

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

.audience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}

.audience-card svg { color: #fff; }

.audience-card:hover {
  background: #fff;
  border-color: #fff;
  color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.audience-card:hover svg { color: var(--green); }

/* ================================================================
   TRUST STRIP
   ================================================================ */

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 48px 0;
  padding: 32px 40px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
}

.trust-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-300);
  letter-spacing: -.5px;
  transition: color var(--transition);
  cursor: default;
}

.trust-logo:hover { color: var(--blue); }

/* TESTIMONIALS */

.testimonial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.testimonial {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.testimonial:hover { box-shadow: var(--shadow); border-color: var(--blue-mid); }

.testimonial__stars {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  flex-shrink: 0;
}

.testimonial__author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.testimonial__author span {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ================================================================
   CTA SECTION
   ================================================================ */

.cta-section {
  position: relative;
  padding: 120px 0;
  background: #fff;
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
}

.cta-section__bg { position: absolute; inset: 0; pointer-events: none; }

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
  top: -200px;
  right: -100px;
}

.cta-blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(39,174,96,.25), transparent 70%);
  bottom: -150px;
  left: -50px;
}

.cta-section__inner { position: relative; text-align: center; }

.cta-section__heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}

.cta-section__sub {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 40px;
}

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

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding: 64px 24px;
}

.footer__logo-link { display: block; margin-bottom: 20px; }
.footer__logo-img  { height: 30px !important; width: auto !important; max-width: none; }

.footer__tagline {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 380px;
}

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

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

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

.footer__col a {
  font-size: 14px;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--gray-200); }

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 24px;
}

.footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-600);
}

.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: var(--gray-600); transition: color var(--transition); }
.footer__legal a:hover { color: var(--gray-400); }

/* ================================================================
   LEGAL PAGE (zasady.php)
   ================================================================ */

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.legal-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-topbar__logo { height: 34px; width: auto; }

.legal-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-darker) 100%);
  padding: 56px 0 48px;
  color: #fff;
}

.legal-hero__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}

.legal-hero__title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-hero__meta {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

.legal-body h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 44px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

.legal-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin: 28px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-body p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-body ul,
.legal-body ol {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 8px 0 14px 22px;
}

.legal-body li { margin-bottom: 5px; }

.legal-body a:not(.btn) { color: var(--blue); text-decoration: underline; }
.legal-body a:not(.btn):hover { color: var(--blue-dark); }

.legal-back {
  text-align: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--delay, 0s);
}

[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .mockup { width: 300px; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col--reverse .patient-visual { order: -1; }

  .feature-grid  { grid-template-columns: 1fr 1fr; }
  .benefit-grid  { grid-template-columns: repeat(2, 1fr); }
  .security-block { grid-template-columns: 1fr; }
  .security-shield { height: 460px; margin-top: 40px; }

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

  .footer__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 10px 0; }

  .section { padding: 64px 0; }
  .hero    { padding: 100px 0 60px; }

  /* Mobile nav overlay */
  .nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    background: var(--gray-900);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 72px;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    display: block;
    font-size: 18px;
    color: rgba(255,255,255,.8) !important;
    padding: 18px 32px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-align: left;
  }
  .nav__links a:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
  .nav__links li:last-child a {
    display: block;
    margin: 24px 24px 0;
    padding: 14px 24px;
    text-align: center;
    border-radius: 10px;
    background: var(--blue) !important;
    color: #fff !important;
    border-bottom: none;
  }
  .nav__links li:last-child a:hover { background: var(--blue-dark) !important; }
  .nav__burger { display: flex; position: relative; z-index: 201; }
  .nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.active span:nth-child(2) { opacity: 0; }
  .nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Nav bar goes dark and floats above the overlay when menu is open */
  .nav.menu-open {
    background: var(--gray-900) !important;
    box-shadow: none !important;
    border-bottom-color: rgba(255,255,255,.1) !important;
    z-index: 100;
  }
  .nav.menu-open .nav__burger span { background: rgba(255,255,255,.88); }

  .feature-grid    { grid-template-columns: 1fr; }
  .benefit-grid    { grid-template-columns: 1fr; }
  .impact-grid     { grid-template-columns: 1fr; }
  .audience-grid   { grid-template-columns: 1fr; }
  .testimonial-row { grid-template-columns: 1fr; }
  .hero__stats     { flex-wrap: wrap; gap: 16px; }
  .stat__divider   { display: none; }
  .security-badges { grid-template-columns: 1fr; }
  .feature-pills   { justify-content: flex-start; }
  .footer__links   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .footer__links { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; align-items: flex-start; }
}
