/* ============================================
   نبضك — design tokens & base
   ============================================ */
:root {
  --color-brand: #39a29d;
  --color-bg: #f3faf9;
  --color-bg-alt: #E8F5F4;
  --color-surface: #ffffff;
  --color-text: #1a2e2d;
  --color-text-muted: #000000;
  --color-border: #c5e4e1;
  --color-primary: #39a29d;
  --color-primary-dark: #000000;
  --color-accent: #4db8b2;
  --color-accent-soft: rgba(57, 162, 157, 0.16);
  --color-primary-soft: rgba(57, 162, 157, 0.12);
  --shadow-sm: 0 1px 2px rgba(20, 55, 52, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 55, 52, 0.09);
  --shadow-lg: 0 20px 50px rgba(20, 55, 52, 0.11);
  --shadow-xl: 0 28px 64px rgba(20, 55, 52, 0.13);
  --shadow-hero-card: 0 4px 6px rgba(20, 55, 52, 0.04), 0 24px 48px rgba(30, 100, 95, 0.12);
  --shadow-hero-img: 0 12px 40px rgba(30, 100, 95, 0.2), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --container: min(1120px, 100% - 2rem);
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --transition: 0.22s ease;
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ultra-wide screens (e.g., 75–85"+ / 4K): reduce empty margins */
@media (min-width: 1600px) {
  :root {
    --container: min(1520px, 100% - 4.5rem);
  }

  body {
    font-size: 1.05rem;
  }

  .section {
    padding: clamp(2.6rem, 3.8vw, 3.6rem) 0;
  }

  .features-grid,
  .testimonials-grid {
    gap: 1.1rem;
  }

  .steps {
    max-width: 1100px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:has(#nav-open:checked) {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 100% - 2rem);
  margin-inline: auto;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(25, 95, 90, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1rem 2.25rem;
  padding-block: 0.65rem;
  min-height: 4.5rem;
  direction: rtl;
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    gap: 1rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.logo-img {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(320px, 58vw);
  object-fit: contain;
  object-position: center;
}

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform var(--transition), top var(--transition);
}

.nav-toggle::before {
  top: 15px;
  box-shadow: 0 7px 0 #ffffff;
}

.nav-toggle::after {
  top: 29px;
}

#nav-open:checked ~ .nav-toggle::before {
  top: 21px;
  transform: rotate(45deg);
  box-shadow: none;
}

#nav-open:checked ~ .nav-toggle::after {
  top: 21px;
  transform: rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 769px) {
  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-list a:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

@media (min-width: 769px) {
  .site-header .nav-list a {
    color: rgba(255, 255, 255, 0.94);
  }

  .site-header .nav-list a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.65);
  }

  .site-header .nav-cta.btn--primary {
    background: #ffffff;
    color: var(--color-brand);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .site-header .nav-cta.btn--primary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
}

.nav-cta {
  flex-shrink: 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(57, 162, 157, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(57, 162, 157, 0.45);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.btn--on-dark {
  background: #fff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.btn--on-dark:hover {
  color: var(--color-primary-dark);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.75rem, 7vw, 4.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 90% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(77, 184, 178, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(45, 130, 120, 0.14) 0%, transparent 60%),
    linear-gradient(168deg, #39a29d 0%, #2f8f86 38%, #2a756f 72%, #4db8b2 100%);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 45, 42, 0.08) 100%);
  pointer-events: none;
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.hero-slide {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #f3faf9 100%);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.35rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-hero-card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  max-width: min(100%, 680px);
  margin-inline: auto;
  width: 100%;
  isolation: isolate;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 28%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-brand), var(--color-accent));
  opacity: 0.95;
}

.hero-content {
  max-width: none;
  position: relative;
  z-index: 1;
  padding-top: 0.35rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-slide .hero-title {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
  margin: 0 0 1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.28;
  max-width: 42ch;
  margin-inline: auto;
  text-align: center;
  font-weight: 800;
}

.hero-slide .hero-lead {
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.82;
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
}

.hero-slide .hero-lead strong {
  color: var(--color-primary-dark);
  font-weight: 700;
}

.hero-slide .hero-note {
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  margin: 0 auto 1.5rem;
  line-height: 1.55;
  max-width: 48ch;
  text-align: center;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, rgba(77, 184, 178, 0.1) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57, 162, 157, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
  justify-content: center;
  align-items: center;
}

.hero-slide .hero-btn-secondary.btn--ghost {
  color: var(--color-primary-dark);
  border-color: var(--color-border);
  background: var(--color-surface);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform 0.2s var(--ease-smooth);
}

.hero-slide .hero-btn-secondary.btn--ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.hero-slide .btn--primary {
  transition: box-shadow var(--transition), transform 0.2s var(--ease-smooth);
}

.hero-slide .btn--primary:hover {
  transform: translateY(-1px);
}

/* Hero visual — صورة كبيرة، والنص في السلايد تحتها */
.hero-visual {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero-img);
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15, 40, 38, 0.06) 0%, transparent 35%, transparent 65%, rgba(30, 100, 95, 0.12) 100%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  min-height: min(48vh, 520px);
  max-height: min(68vh, 680px);
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 8s var(--ease-smooth);
}

.hero-visual:hover .hero-image {
  transform: scale(1.02);
}

.hero-image-caption {
  position: absolute;
  left: clamp(1rem, 4.5vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 900;
  line-height: 1.6;
  text-align: right;
  max-width: min(78%, 28rem);
  white-space: normal;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: rgba(8, 25, 24, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  direction: rtl;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  position: relative;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-brand));
  border-radius: 999px;
  opacity: 0.85;
}

.section-sub {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.25s var(--ease-smooth);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(57, 162, 157, 0.22);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

/* Vision */
.vision-tagline {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.vision-intro {
  max-width: 48rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.vision-card h3 {
  margin: 0 0 0.65rem;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

.vision-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Care levels */
.care-levels-intro {
  max-width: 48rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.care-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.care-level {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  align-items: start;
}

.care-level-num {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(57, 162, 157, 0.35);
}

.care-level h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  line-height: 1.45;
}

.care-level p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* Device integration — صورة يمين، نص يسار (RTL) */
.devices-section {
  overflow: hidden;
}

.devices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  direction: rtl;
}

.devices-visual {
  justify-self: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 520 / 548;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}

/* قص من الأسفل لإخفاء علامة جيميناي/النجمة تحت الصورة */
.devices-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.devices-content {
  text-align: start;
  min-width: 0;
}

.devices-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.25;
}

.devices-tagline {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.5;
}

.devices-lead {
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--color-text-muted);
}

.devices-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.devices-badges li {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .devices-grid {
    grid-template-columns: 1fr;
  }

  .devices-visual {
    order: -1;
    max-width: min(100%, 300px);
  }

  .devices-content {
    text-align: center;
  }

  .devices-badges {
    justify-content: center;
  }
}

/* Steps */
.steps-intro {
  max-width: 46rem;
  margin: 0 auto 2.75rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 900px;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  align-items: start;
}

.step-num {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(57, 162, 157, 0.35);
}

.step > h3,
.step-title-row {
  grid-column: 2;
  grid-row: 1;
}

.step-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

.step > h3,
.step-title-row h3 {
  margin: 0;
  color: var(--color-primary-dark);
  line-height: 1.45;
}

.btn.step-register-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
}

.step p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  margin: 0;
}

.testimonial p {
  color: var(--color-text-muted);
  font-style: normal;
  margin-bottom: 1rem;
}

.testimonial footer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.25rem;
  padding-inline-end: 2.75rem;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  position: absolute;
  inset-inline-end: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-accent);
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* FAQ section style to match provided reference */
#faq.faq-section {
  background: #E8F5F4;
}

#faq .section-head {
  margin-bottom: 1.65rem;
}

#faq .section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: #1e2f33;
}

#faq .section-sub {
  color: #1f3136;
}

#faq .faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}

#faq .faq-item {
  border-radius: 10px;
  border: 1px solid #d6e8e7;
  background: #fff;
  box-shadow: none;
}

#faq .faq-item summary {
  padding: 0.95rem 2.7rem 0.95rem 0.95rem;
  font-size: 1.02rem;
  color: #27383d;
  line-height: 1.5;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
}

#faq .faq-item summary::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #39a39d;
  position: absolute;
  inset-inline-start: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.8);
}

#faq .faq-item[open] summary::before {
  content: "";
}

#faq .faq-item p {
  color: #34484d;
  font-size: 0.94rem;
  line-height: 1.8;
}

#faq .faq-item:nth-child(n + 7) {
  display: none;
}

.faq-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8rem;
}

.faq-more-btn {
  min-width: 94px;
  font-size: 0.9rem;
  padding: 0.55rem 1.35rem;
}

@media (max-width: 900px) {
  #faq .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-more-wrap {
    margin-top: 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-panel,
  .contact-form-panel {
    order: initial;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-submit-btn {
    margin-inline: auto;
    width: min(100%, 180px);
  }
}


/* B2B — للعيادات والأعمال */
.b2b-tagline {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}

.b2b-intro {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.b2b-card h3 {
  margin: 0 0 0.65rem;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  line-height: 1.45;
}

.b2b-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.b2b-cta {
  text-align: center;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary-dark);
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact form */
#contact.section {
  background: #E8F5F4;
}

.contact-layout {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.3fr);
  gap: 0;
  border-radius: 14px;
  background: #f5f7f7;
  border: 1px solid #dcebea;
  max-width: 1080px;
  margin-inline: auto;
}

.contact-info-panel {
  order: 1;
  background: linear-gradient(180deg, #3ea6a1 0%, #3aa6a0 100%);
  color: #fff;
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-panel::before,
.contact-info-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contact-info-panel::before {
  width: 150px;
  height: 150px;
  bottom: -42px;
  right: -18px;
  background: rgba(255, 255, 255, 0.16);
}

.contact-info-panel::after {
  width: 108px;
  height: 108px;
  bottom: -22px;
  right: 86px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-info-title {
  margin: 0 0 1.6rem;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  color: #fff;
  text-align: center;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-info-list li {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  line-height: 1.75;
  font-size: 0.95rem;
  text-align: end;
}

.contact-item-text {
  flex: 1;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 2rem;
  justify-content: flex-start;
}

.contact-social a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.contact-social a svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-form-panel {
  order: 2;
  margin: 0;
  max-width: none;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1rem, 2.4vw, 2rem);
  background: #f5f7f7;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.4rem;
  direction: rtl;
}

.contact-form-panel,
.contact-form-panel .form-row,
.contact-form-panel label,
.contact-form-panel input,
.contact-form-panel textarea {
  text-align: right;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.83rem;
  margin-bottom: 0.4rem;
  color: #8f9ea3;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.55rem 0.1rem;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #cbd9d8;
  background: transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: #39a39d;
  box-shadow: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 82px;
}

.form-row--message {
  margin-top: 0.1rem;
}

.contact-submit-btn {
  min-width: 150px;
  margin-inline-start: 0;
  margin-inline-end: auto;
  display: inline-flex;
  padding-inline: 1.35rem;
  position: relative;
  z-index: 1;
}

.contact-submit-btn::before {
  content: "✈";
  font-size: 0.8rem;
  margin-inline-end: 0.4rem;
}

.contact-form-decor {
  position: absolute;
  right: 2rem;
  bottom: 0.9rem;
  width: clamp(60px, 7vw, 95px);
  height: auto;
  opacity: 0.75;
  pointer-events: none;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(90deg, rgba(15, 70, 75, 0.55) 0%, rgba(22, 94, 101, 0.38) 36%, rgba(40, 130, 135, 0.22) 62%, rgba(58, 155, 160, 0.14) 100%),
    url("images/link.jpg") center / cover no-repeat;
  color: #fff;
  padding: clamp(1rem, 2.8vw, 1.6rem) 0;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(360px, 1.25fr) minmax(180px, 0.9fr);
  align-items: center;
  justify-content: stretch;
  gap: 1rem 1.25rem;
  direction: ltr;
}

.cta-inner::after {
  content: "";
  display: block;
}

.cta-text {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.cta-text h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.cta-text p {
  margin: 0;
  opacity: 0.98;
  font-size: clamp(0.9rem, 1.25vw, 1.02rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.9rem 1.1rem;
  align-items: flex-start;
  order: -1;
  grid-column: 1;
  justify-self: start;
}

.cta-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: min(100%, 11rem);
}

.cta-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cta-qr {
  display: block;
  width: clamp(74px, 9vw, 96px);
  height: auto;
  border-radius: 6px;
  background: #fff;
  padding: 0.22rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.cta-qr-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

.cta-store .btn {
  font-size: 0.78rem;
  padding: 0.42rem 0.8rem;
  min-width: 9.6rem;
}

.cta-actions .btn:hover {
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--color-brand);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem 2rem;
  direction: rtl;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  flex: 1 1 16rem;
  min-width: min(100%, 20rem);
}

@media (min-width: 769px) {
  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.25rem 1.5rem;
    max-width: 32rem;
  }
}

.footer-text {
  text-align: center;
}

@media (min-width: 769px) {
  .footer-text {
    text-align: start;
  }
}

.footer-title {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-lead {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.footer-privacy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.footer-logo {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.footer-logo:hover {
  opacity: 0.92;
}

.logo-img--footer {
  height: 70px;
  max-width: min(340px, 75vw);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 1rem 1.5rem;
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  flex-basis: 100%;
  width: 100%;
  text-align: center;
  font-size: 0.88rem;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 769px) {
  .footer-inner {
    align-items: flex-start;
  }
}

/* ============================================
   Tablet
   ============================================ */
@media (max-width: 1024px) {
  .hero-slide {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .care-levels-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .b2b-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    top: 4rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    direction: rtl;
    text-align: start;
  }

  #nav-open:checked ~ .main-nav {
    transform: translateX(0);
  }

  .main-nav .nav-list a {
    color: var(--color-text);
  }

  .main-nav .nav-list a:hover {
    color: var(--color-brand);
    border-bottom-color: var(--color-accent-soft);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-inner::after {
    display: none;
  }

  .cta-text,
  .cta-actions {
    grid-column: auto;
    justify-self: center;
  }

  .cta-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-slide {
    padding: 1.15rem 1.1rem;
  }

  .hero-image {
    min-height: 36vh;
    max-height: 48vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn--primary {
    order: -1;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .b2b-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .main-nav {
    transition: none;
  }

  .hero-visual:hover .hero-image {
    transform: none;
  }
}

/* Restored latest header + hero slider design */
.site-header {
  border-bottom: var(--stroke-weight-1, 1px) solid var(--color-white-12, rgba(255, 255, 255, 0.12));
  background: #39A39D;
  box-shadow: 0 4px 20px 0 rgba(25, 95, 90, 0.22);
}

.header-auth { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.site-header .header-auth-register.btn--on-dark {
  border-radius: 999px;
  border: var(--stroke-weight-2, 2px) solid var(--color-black-0, rgba(0, 0, 0, 0));
  background: var(--color-white-solid, #FFF);
  box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.25);
  color: var(--color-brand);
}
.site-header .header-auth-login.btn--outline-light {
  border-radius: 999px;
  border: 2px solid #FFF;
  box-shadow: 0 4px 7px 0 rgba(0, 0, 0, 0.25);
}

.hero--slider { background: #03183a; padding: 0; }
.hero--slider .container { width: 100%; max-width: 100%; }
.hero-slider { position: relative; overflow: hidden; border-radius: 0; direction: ltr; }
.hero-track { display: flex; transition: transform .65s var(--ease-smooth); direction: ltr; }
.hero-panel { flex: 0 0 100%; min-width: 100%; position: relative; overflow: hidden; background: #03183a; }
.hero-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 18, 48, 0.92) 0%, rgba(6, 26, 64, 0.72) 32%, rgba(9, 36, 79, 0.2) 58%, rgba(9, 36, 79, 0.05) 100%);
}
.hero-panel-image {
  width: 100%;
  height: clamp(620px, 67vh, 690px);
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-panel-content {
  position: absolute; z-index: 2; top: 55%; left: clamp(1rem, 8vw, 7rem);
  transform: translateY(-50%); max-width: min(42rem, 54%); color: #ffffff; text-align: center; direction: rtl;
}
.hero-panel-content h1, .hero-panel-content h2 {
  margin: 0 0 .8rem; color: #FFF; font-family: Cairo; font-size: 32px; font-style: normal; font-weight: 400; line-height: 43px;
}
.hero-panel-brand { color: #FFF; font-weight: 400; }
.hero-panel-accent-line { color: #5BEAE3; font-weight: 400; }
.hero-panel-tail-line { color: #FFF; font-weight: 400; }
.hero-panel-content p {
  margin: 0 0 1.4rem; color: #FFF; font-family: Cairo; font-size: 24px; font-style: normal; font-weight: 400; line-height: 43px;
}
.hero-panel-caption { margin-bottom: 1.4rem; }
.hero--slider .hero-actions { justify-content: center; gap: .75rem; }
.hero--slider .hero-actions .btn--on-dark { order: 1; }
.hero--slider .hero-actions .btn--primary { order: 2; border-radius: 999px; border: var(--stroke-weight-2, 2px) solid var(--color-black-0, rgba(0, 0, 0, 0.00)); background: #39A39D; box-shadow: 0 4px 16px 0 rgba(57, 162, 157, 0.35); }
.hero--slider .btn--on-dark {
  border-radius: 999px;
  border: var(--stroke-weight-2, 2px) solid var(--color-cyan-83, #C5E4E1);
  background: var(--color-white-solid, #FFF);
}
.hero--slider .btn--on-dark:hover {
  border-radius: 999px;
  border: var(--stroke-weight-2, 2px) solid var(--color-black-0, rgba(0, 0, 0, 0.00));
  background: #39A39D;
  box-shadow: 0 4px 16px 0 rgba(57, 162, 157, 0.35);
  color: #fff;
}
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; gap: 1rem; }
.hero-dot { width: 90px; height: 6px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(255,255,255,.42); padding: 0; }
.hero-dot.is-active { background: #fff; }

/* First slide specific look to match reference */
.hero-panel--first::after {
  background: linear-gradient(90deg, rgba(245, 250, 250, 0.88) 0%, rgba(244, 250, 249, 0.82) 34%, rgba(244, 250, 249, 0.22) 56%, rgba(244, 250, 249, 0.06) 100%);
}

.hero-panel--first .hero-panel-image {
  object-position: center;
}

.hero-panel--first .hero-panel-content h1 {
  color: #1f2f34;
  text-shadow: none;
}

.hero-panel--first .hero-panel-brand {
  color: #26383d;
  font-weight: 400;
}

.hero-panel--first .hero-panel-accent-line {
  color: #0c7276;
  font-weight: 700;
}

.hero-panel--first .hero-panel-tail-line {
  color: #203237;
}

.hero-panel--first .hero-panel-caption {
  color: #273e43;
  font-size: 22px;
}

.hero-panel--first .hero-actions {
  direction: ltr;
  justify-content: center;
}

.hero-panel--first .hero-actions .btn--primary {
  order: 1;
}

.hero-panel--first .hero-actions .btn--on-dark {
  order: 2;
}

.hero-panel--second .hero-actions {
  direction: ltr;
  justify-content: center;
}

.hero-panel--second .hero-actions .btn--primary {
  order: 1;
}

.hero-panel--second .hero-actions .btn--on-dark {
  order: 2;
}

.hero-panel--second .hero-panel-image {
  object-position: center;
}

.hero-panel--third::after {
  background: linear-gradient(90deg, rgba(10, 58, 84, 0.86) 0%, rgba(12, 79, 103, 0.66) 35%, rgba(18, 101, 122, 0.22) 60%, rgba(19, 106, 129, 0.06) 100%);
}

.hero-panel--third .hero-panel-content h2 {
  color: #fff;
}

.hero-panel--third .hero-panel-accent-line {
  color: #5BEAE3;
  font-weight: 700;
}

.hero-panel--third .hero-panel-tail-line {
  color: #ffffff;
  font-weight: 400;
}

.hero-panel--third .hero-actions {
  direction: ltr;
  justify-content: center;
}

.hero-panel--third .hero-actions .btn--primary {
  order: 1;
}

.hero-panel--third .hero-actions .btn--on-dark {
  order: 2;
}

.hero-panel--third .hero-panel-image {
  object-position: center;
}

@media (max-width: 980px) {
  .header-auth { width: 100%; justify-content: center; padding-top: .25rem; }
  .hero-panel-content { left: 50%; transform: translate(-50%, -50%); max-width: min(92%, 40rem); }
  .hero-panel-content h1, .hero-panel-content h2 { font-size: clamp(1.6rem, 4.8vw, 2rem); line-height: 1.5; }
  .hero-panel-content p { font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.9; }
  .hero-dot { width: 64px; }
}

/* Vision section tuning to match reference */
#vision.section--alt {
  background: #E8F5F4;
}

#care-levels.section {
  background: #E8F5F4;
}

.video-section {
  padding: 0;
  background: #E8F5F4;
}

.video-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #001114;
  box-shadow: none;
  line-height: 0;
  cursor: pointer;
}

.video-cover {
  display: block;
  width: 100%;
  height: clamp(240px, 33vw, 420px);
  background: #001114;
  object-fit: cover;
  object-position: center;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 14, 24, 0.35) 0%, rgba(0, 20, 28, 0.12) 45%, rgba(0, 28, 32, 0.16) 100%);
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(58px, 7vw, 78px);
  height: clamp(58px, 7vw, 78px);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 2;
}

.video-play-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #0f6f6a;
}

.video-play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#vision .section-head {
  margin-bottom: 1.55rem;
}

#vision .section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: #1f2f34;
  font-weight: 800;
}

#vision .section-head h2::after {
  width: 44px;
  height: 3px;
  margin-top: 0.5rem;
  background: #39a39d;
  opacity: 1;
}

#vision .vision-tagline {
  color: #111;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.55;
}

#vision .vision-intro {
  max-width: 56rem;
  margin: 0 auto 2.15rem;
  color: #1f2f34;
  font-size: 1.02rem;
  line-height: 1.95;
}

#vision .vision-grid {
  gap: 1.1rem;
}

#vision .vision-card {
  border-radius: 16px;
  border: var(--stroke-weight-1, 1px) solid var(--color-cyan-83, #C5E4E1);
  background: var(--color-white-solid, #FFF);
  box-shadow: 0 1px 2px 0 rgba(20, 55, 52, 0.06);
  padding: 1.15rem 1.05rem 1.2rem;
  transform: none;
}

#vision .vision-card:hover {
  box-shadow: none;
  border-color: #d2d2d2;
  transform: none;
}

#vision .vision-card h3 {
  color: #1d2a2e;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

#vision .vision-card p {
  color: #202d31;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Devices section as full-width visual banner */
#devices.devices-section {
  padding: 0;
  margin: 0;
  background: #E8F5F4;
}

.devices-banner-image {
  display: block;
  width: 100%;
  height: clamp(260px, 44vw, 540px);
  object-fit: cover;
  object-position: center;
  margin: 0;
}

#devices.devices-section {
  position: relative;
}

.devices-overlay {
  position: absolute;
  top: 50%;
  left: clamp(1rem, 7vw, 8rem);
  transform: translateY(-50%);
  max-width: min(44rem, 54%);
  color: #fff;
  text-align: center;
  direction: rtl;
}

.devices-overlay-title {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
}

.devices-overlay-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.55;
}

.devices-overlay-lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.18rem);
  line-height: 1.95;
  white-space: pre-line;
}

@media (max-width: 980px) {
  .devices-overlay {
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(92%, 40rem);
  }
}

/* ============================================
   Landing alignment pass
   ============================================ */
main {
  background: #E8F5F4;
}

.section {
  padding: clamp(2.2rem, 4.8vw, 3.2rem) 0;
}

.section-head {
  margin-bottom: 1.7rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: #1d2f33;
}

.section-sub {
  color: #2a3e43;
  font-size: 1.05rem;
}

.card {
  border-radius: 12px;
  border: 1px solid #d7ebea;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 55, 52, 0.06);
}

#why.section--alt,
#faq.faq-section,
#contact.section,
#vision.section--alt,
#care-levels.section {
  background: #E8F5F4;
}

#features.section,
#how.section,
#testimonials.section,
#b2b.section {
  background: #ffffff;
}

#how .step,
#features .feature-card,
#b2b .b2b-card,
#why .why-card,
#testimonials .testimonial {
  border-radius: 12px;
}

#features .features-grid,
#how .steps,
#b2b .b2b-grid,
#why .why-grid {
  gap: 1rem;
}

#faq .faq-list {
  gap: 0.8rem;
}

/* Contact exactness improvements */
.contact-layout {
  border-radius: 12px;
  max-width: 1100px;
}

.contact-info-panel {
  padding: clamp(1.35rem, 2.4vw, 1.95rem) clamp(1rem, 1.8vw, 1.35rem);
}

.contact-info-title {
  margin-bottom: 1.4rem;
}

.contact-info-list {
  gap: 0.95rem;
}

.contact-info-list li {
  font-size: 0.92rem;
}

.contact-social {
  margin-top: 1.7rem;
  gap: 0.55rem;
}

.contact-social a {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
}

.contact-form-panel {
  padding: clamp(1.25rem, 2.5vw, 1.8rem) clamp(1rem, 2.2vw, 1.8rem);
}

.contact-grid {
  gap: 0.55rem 1.2rem;
}

.form-row {
  margin-bottom: 0.75rem;
}

.form-row label {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.form-row textarea {
  min-height: 74px;
}

.contact-submit-btn {
  min-width: 152px;
  padding-inline: 1.2rem;
}

@media (max-width: 900px) {
  .section {
    padding: 2rem 0;
  }

  #features.section,
  #how.section,
  #testimonials.section,
  #b2b.section {
    background: #E8F5F4;
  }

  .contact-layout {
    border-radius: 10px;
  }
}

/* ============================================
   Final section-by-section polish
   ============================================ */

:root {
  --landing-card-radius: 16px;
  --landing-card-border: 1px solid #c5e4e1;
  --landing-card-shadow: 0 1px 2px rgba(20, 55, 52, 0.06);
}

/* Hero */
.hero-panel-image {
  height: clamp(440px, 68vh, 700px);
}

.hero-panel-content {
  max-width: min(44rem, 56%);
}

.hero-panel-content h1,
.hero-panel-content h2 {
  line-height: 1.42;
}

.hero-panel-content p {
  margin-top: 0.65rem;
}

/* Vision + Care */
#vision .vision-grid,
#care-levels .care-levels-grid {
  gap: 1.05rem;
}

#vision .vision-card,
#care-levels .care-level {
  padding: 1.25rem 1.1rem;
  border-radius: var(--landing-card-radius);
  border: var(--landing-card-border);
  box-shadow: var(--landing-card-shadow);
}

/* Video banner consistency */
.video-section {
  padding: 0;
}

.video-cover {
  height: clamp(250px, 34vw, 430px);
}

/* Why, features, b2b, testimonials */
#why .why-card,
#features .feature-card,
#b2b .b2b-card,
#testimonials .testimonial {
  padding: 1.2rem 1.05rem;
  border-radius: var(--landing-card-radius);
  border: var(--landing-card-border);
  box-shadow: var(--landing-card-shadow);
}

#why .why-card p,
#features .feature-card p,
#b2b .b2b-card p,
#testimonials .testimonial p {
  line-height: 1.72;
}

/* FAQ */
#faq .section-head {
  margin-bottom: 1.2rem;
}

#faq .faq-item summary {
  font-size: 0.95rem;
  min-height: 3.15rem;
  font-weight: 600;
  color: #20353a;
}

#faq .faq-item p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.faq-more-wrap {
  margin-top: 1.6rem;
}

/* Contact */
.contact-info-list li {
  direction: rtl;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.4rem;
  text-align: right;
}

.contact-item-text {
  flex: 0 1 auto;
  text-align: right;
  line-height: 1.55;
}

.contact-icon {
  margin-top: 0.1rem;
}

.contact-social {
  justify-content: flex-end;
}

/* CTA */
.cta-band {
  padding: clamp(1rem, 2.4vw, 1.4rem) 0;
}

.cta-inner {
  gap: 0.7rem 0.95rem;
}

.cta-store .btn {
  min-width: 9rem;
  font-size: 0.76rem;
  padding: 0.4rem 0.72rem;
}

.cta-text h2 {
  font-size: clamp(1.22rem, 2vw, 1.72rem);
}

.cta-text p {
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
}

/* Footer compact polish */
.site-footer {
  padding: 1.65rem 0;
}

.footer-inner {
  gap: 1.2rem 1.5rem;
}

.footer-title {
  font-size: 1.25rem;
}

.footer-nav a {
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero-panel-content {
    max-width: min(90%, 41rem);
  }

  #vision .vision-grid,
  #care-levels .care-levels-grid,
  #features .features-grid,
  #b2b .b2b-grid,
  #testimonials .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  #why .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .cta-text,
  .cta-actions {
    grid-column: auto;
    justify-self: center;
  }

  .cta-actions {
    order: initial;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-panel-image {
    height: clamp(360px, 62vh, 520px);
  }

  #why .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding: 1rem 0.85rem 1.15rem;
  }
}

/* ============================================
   Footer match to reference
   ============================================ */
.site-footer {
  background: #39a29d;
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(1.1rem, 2.2vw, 1.5rem) 0 1rem;
  border-top: 4px solid #39A29D;
}

#contact.section {
  padding-bottom: 1.8rem;
  margin-bottom: 0;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.9fr) minmax(300px, 1.2fr);
  grid-template-areas:
    "social nav brand"
    "copy copy copy";
  gap: 1.2rem 2.4rem;
  align-items: start;
  direction: ltr;
}

.footer-social-block {
  grid-area: social;
  text-align: left;
}

.footer-social-title {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.82);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social-links a svg {
  width: 16px;
  height: 16px;
}

.footer-social-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
}

.site-footer .footer-nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, max-content));
  gap: 0.7rem 1.15rem;
  justify-content: center;
  justify-items: start;
  align-content: start;
  min-width: 0;
  direction: rtl;
}

.site-footer .footer-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.7;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .footer-nav a:hover {
  color: #ffffff;
}

.site-footer .footer-brand {
  grid-area: brand;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.6rem;
  max-width: 340px;
  margin-inline-start: auto;
}

.site-footer .footer-logo {
  justify-self: end;
}

.site-footer .logo-img--footer {
  height: 66px;
  max-width: 220px;
  width: auto;
}

.site-footer .footer-text {
  text-align: right;
}

.site-footer .footer-title {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
}

.site-footer .footer-lead {
  margin: 0 0 0.4rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer .footer-privacy {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-copy {
  grid-area: copy;
  margin: 0;
  padding-top: 0.95rem;
  margin-top: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.74);
}

/* ============================================
   Modal (B2B form)
   ============================================ */
.is-modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 26, 0.52);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(720px, 96vw);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #c5e4e1;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  direction: rtl;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 220ms var(--ease-smooth), opacity 220ms var(--ease-smooth);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, #3ea6a1 0%, #39a29d 100%);
  color: #fff;
}

.modal__head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #ffffff;
}

.modal__close {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.modal__form {
  padding: 1.1rem 1.15rem 1.15rem;
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.modal__row--full {
  grid-column: 1 / -1;
}

.modal__form .form-row label {
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: #1d2f33;
}

.modal__form .form-row input {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.55rem 0.1rem;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #cbd9d8;
  background: transparent;
  color: #1d2f33;
}

.modal__form .form-row input:focus {
  outline: none;
  border-bottom-color: #39a29d;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
}

.modal__actions .btn {
  border-radius: 999px;
}

.modal__actions .modal__cancel {
  border: 1px solid #c5e4e1;
  background: #ffffff;
  color: #1d2f33;
  box-shadow: 0 1px 2px rgba(20, 55, 52, 0.06);
}

.modal__actions .modal__cancel:hover {
  border-color: rgba(57, 162, 157, 0.45);
  transform: translateY(-1px);
}

.modal__hint {
  margin: 0.8rem 0 0;
  color: #4c6467;
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .modal__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "social"
      "copy";
    direction: rtl;
    gap: 1rem;
  }

  .footer-social-block,
  .site-footer .footer-brand,
  .site-footer .footer-text {
    text-align: center;
    justify-items: center;
    margin-inline: auto;
  }

  .site-footer .footer-nav {
    justify-items: center;
  }
}
