/* =============================================================
   AFYTI LANDING — hand-coded, responsive, no framework.
   Design tokens extracted from screenshots of the Framer page.
   ============================================================= */

:root {
  /* palette */
  --c-bg:        #ffffff;
  --c-bg-soft:   #f5f6f8;
  --c-card:      #f4f5f7;
  --c-text:      #0f1117;
  --c-muted:     #8a8f9b;
  --c-line:      #e6e8ec;
  --c-nav-bg:    #1c2430;
  --c-nav-text:  #ffffff;
  --c-cta:       #5b6ee8;
  --c-cta-2:     #8ea0ff;
  --c-mint:      #d8efe4;
  --c-mint-ink:  #1f9d6a;
  --c-blue-soft: #dde2ff;
  --c-blue-ink:  #5b6ee8;
  --c-hero-1:    #6ab1a3;   /* top of hero gradient */
  --c-hero-2:    #5b6ee8;   /* mid/bottom of hero gradient */
  --c-hero-3:    #8a99ec;   /* bottom wash */

  /* type */
  --ff-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* layout */
  --container: 1200px;
  --pad-x: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--ff-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--c-muted);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.muted { color: var(--c-muted); font-weight: 700; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--c-cta-2), var(--c-cta));
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(91, 110, 232, 0.35);
}

.btn-cta {
  background: #1c2430;
  color: #fff;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 500;
}
.btn-cta .btn-apple { width: 16px; height: auto; color: #fff; }
.btn-cta .btn-gplay { width: 18px; height: auto; color: #fff; }
.btn-cta-small { display: block; font-size: 11px; opacity: .85; line-height: 1; margin-bottom: 2px; }
.btn-cta-big { display: block; font-size: 17px; font-weight: 600; line-height: 1; }

/* Store badges stacked under the hero side text. */
.hero-side-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.hero-side-cta .btn-cta { width: 100%; }

/* =============================================================
   NAV (sticky pill)
   ============================================================= */
.nav-wrap {
  position: sticky;
  top: 20px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 var(--pad-x);
  /* margin-top: 20px; */
}
.nav {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(28, 36, 48, 0.92);
  color: var(--c-nav-text);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 22px;
  width: 100%;
  max-width: 820px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  justify-self: start;
}

.nav-brand:lang(ar) { padding-right:20px !important}

.nav-logo { width: 28px; height: 28px; border-radius: 6px; }
.nav-brand-text { letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: center;
}
.nav-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta { white-space: nowrap; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  transition: color .15s;
}
.nav-links a:hover { color: #fff; }

/* Globe-icon dropdown inside the dark nav */
.nav-lang { position: relative; display: inline-flex; align-items: center; }
.nav-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  transition: color .15s, background .15s;
}
.nav-lang__btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-lang__code { font-weight: 600; letter-spacing: 0.02em; }

.nav-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 160px;
  z-index: 1200;
}
.nav-lang__menu li { margin: 0; }
.nav-lang__menu button {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #0f1117;
  font: inherit;
  font-size: 14px;
  text-align: start;
  transition: background .15s;
}
.nav-lang__menu button:hover { background: #f4f5f7; }
.nav-lang__menu button.is-active { color: #00A991; font-weight: 600; }


.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s;
}

/* =============================================================
   HERO  — pixel proportions extracted from Framer's compiled CSS
   (.framer-154rh4f hand 776x918, .framer-1kdsgx1 phone 350x710 at top:10/left:83
    inside hand, .framer-mxgmpt screen 91% x 98% at top:1.2%/left:4.57%
    inside phone)
   ============================================================= */
.hero {
  position: relative;
  margin-top: -76px;
  padding: 140px var(--pad-x) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Framer's gradient: teal at top → indigo mid → white at bottom.
     The white at 100% is what gives the hero its smooth fade-to-page-bg. */
  background: linear-gradient(rgb(97, 196, 176) -9%, rgb(81, 109, 180) 23%, rgb(255, 255, 255) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0) 80%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero-title {
  color: #fff;
  font-size: clamp(48px, 7.2vw, 110px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  /* Scales with the title — at 1920 viewport the title can be 110px tall,
     so a 40px gap looked cramped. Clamp gives ~60px on a 1200 viewport up
     to 96px on ultra-wide. */
  margin: 0 0 clamp(56px, 5.5vw, 96px);
  text-align: center;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.hero-stage {
  position: relative;
  margin: 60px auto 0;
  max-width: 1200px;
  height: 920px;
}
.hero-phone {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  /* Framer uses 776x918 at desktop. Match exactly so the phone-frame
     positions (350x710 at top:10/left:83) land where the actual phone is.
     On smaller viewports, scale down proportionally — see media queries. */
  width: 776px;
  height: 918px;
  max-width: 100%;
  z-index: 2;
}
.hero-hand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;  /* lowest — sits behind the phone-frame */
  /* Fade the wrist to transparent at the bottom — matches the original
     where the hand softly disappears into the page background. */
  mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 96%);
}
.hero-phone-frame {
  position: absolute;
  /* Framer's exact pixel positions: 350x710 at top:10/left:83 inside 776x918 */
  top: 10px;
  left: 83px;
  width: 350px;
  height: 710px;
  z-index: 2;  /* above hand (z:1), below screen (z:3) */
  overflow: hidden;
}
.hero-screen {
  position: absolute;
  /* Match Framer's exact positioning. The bezel SVG sits on top and its
     screen-area cutout provides the rounded corners + notch shape — so
     the screen image itself stays a plain rectangle (no border-radius).
     Height is slightly under 98% so it doesn't peek below the bezel's
     bottom curve (~2px crop). */
  top: 1.2%;
  left: 4.57%;
  width: 91%;
  height: 96.5%;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  z-index: 1;
}
.hero-phone-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;  /* on top — provides the iPhone outline (notch, rounded corners) */
  pointer-events: none;
}
.hero-side {
  position: absolute;
  right: 4%;
  top: 38%;
  max-width: 280px;
  text-align: left;
  z-index: 3;
}
.hero-side-text {
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 22px;
}
.hero-badge {
  position: absolute;
  /* Sits noticeably to the LEFT of the phone, on the gradient. */
  top: -10px;
  left: calc(50% - 400px);
  background: linear-gradient(140deg, #7fc1b1 0%, #4d8a8e 100%);
  color: #fff;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  z-index: 5;
  box-shadow: 0 12px 26px rgba(0,0,0,0.20);
  transform: rotate(-10deg);
}
.hero-pill {
  position: absolute;
  background: #fff;
  color: #1c2430;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  z-index: 4;
  white-space: nowrap;
}
.hero-pill-left {
  left: calc(50% - 380px);
  bottom: 22%;
  transform: rotate(-7deg);
}
.hero-pill-right {
  right: calc(50% - 460px);
  top: 32%;
  transform: rotate(4deg);
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}
.hero-side {
  /* override earlier rule */
  right: calc(50% - 540px);
  top: 42%;
}

/* =============================================================
   SHARED — section heads
   ============================================================= */
.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 56px;
}
.section-title {
  font-size: clamp(36px, 5.5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* =============================================================
   MISSION  (replaces old Challenge section)
   ============================================================= */
.mission {
  padding: 120px var(--pad-x);
}
.mission-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow-left {
  text-align: left;
  margin-bottom: 18px;
}
.mission-copy { max-width: 560px; }
.mission-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 22px;
}
.mission-title .muted { display: inline; }
.mission-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0 0 28px;
  max-width: 460px;
}
.mission-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mission-chips li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--c-text);
}
.mission-chips strong { font-weight: 700; }
.mission-chip-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}
.mission-chip-ico svg { width: 18px; height: 18px; }

/* ---- Right column: abstract visual (orbits + medical cross) ---- */
.mission-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
}
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(91, 110, 232, 0.25);
}
.orbit-1 { transform: scale(1); }
.orbit-2 { transform: scale(0.78); border-style: dashed; opacity: 0.7; }
.orbit-3 {
  transform: scale(0.5);
  border: none;
  background: radial-gradient(circle at 35% 35%, #6fb6a4 0%, #5b6ee8 75%);
  box-shadow: 0 30px 80px -20px rgba(91, 110, 232, 0.45);
}
.mission-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
}
.mission-cross svg { width: 100%; height: 100%; display: block; }
.mission-dot {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #7fc1b1, #4d8a8e);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.mission-dot-1 { width: 14px; height: 14px; top: 18%; left: 80%; }
.mission-dot-2 { width: 22px; height: 22px; top: 78%; left: 14%; background: linear-gradient(135deg, #8ea0ff, #5b6ee8); }
.mission-dot-3 { width: 10px; height: 10px; top: 12%; left: 16%; }

/* =============================================================
   BENEFITS
   ============================================================= */
.benefits {
  padding: 80px var(--pad-x) 120px;
  max-width: var(--container);
  margin: 0 auto;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.benefit-card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 36px 36px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 540px;
  position: relative;
}
.benefit-title {
  font-size: 22px;
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.benefit-text {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 240px;
  position: relative;
  z-index: 2;
}
.benefit-phone {
  position: absolute;
  /* Anchored from the TOP so the phone sits cleanly BELOW the title+text,
     never overlapping it (previously this used `bottom:-120` which let the
     tall screenshot reach back UP and obscure the title). The card has
     overflow:hidden so anything past the bottom is clipped/masked. */
  top: 180px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 240px;
  z-index: 1;
  /* Soft fade at the bottom — phone gradually becomes transparent
     instead of being sharply cut by the card. */
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.benefit-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 36px 36px 0 0;
}

/* =============================================================
   FEATURES
   ============================================================= */
.features {
  padding: 80px var(--pad-x) 120px;
  max-width: var(--container);
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}
.features-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.features-phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  height: 560px;
  overflow: hidden;
  /* Fade the bottom of the phone into the background — this is how the
     original Features section ends: phone screen content visible at top,
     softly fading to transparent toward the bottom. */
  mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
}
.features-phone img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}
.feature {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 24px;
}
.feature h3 {
  font-size: 20px;
  margin: 16px 0 8px;
}
.feature p {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.5;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.feature-icon svg { width: 22px; height: 22px; }

.icon-bg-mint { background: var(--c-mint); color: var(--c-mint-ink); }
.icon-bg-blue { background: var(--c-blue-soft); color: var(--c-blue-ink); }

/* =============================================================
   AUTOMATION
   ============================================================= */
.automation {
  padding: 80px var(--pad-x) 120px;
  max-width: var(--container);
  margin: 0 auto;
}
.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.auto-card { display: flex; flex-direction: column; }
.auto-card-image {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #c9dfd4, #a3aee5);
  margin-bottom: 22px;
  position: relative;
}
.auto-card:nth-child(1) .auto-card-image { background: linear-gradient(135deg, #b8d3c8, #8aa3d6); }
.auto-card:nth-child(2) .auto-card-image { background: linear-gradient(140deg, #a4c8b3, #98abe0); }
.auto-card:nth-child(3) .auto-card-image { background: linear-gradient(140deg, #b9c8e0, #8b9ad9); }
.auto-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auto-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.auto-card p {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* =============================================================
   STEPS
   ============================================================= */
.steps {
  padding: 80px var(--pad-x) 120px;
  max-width: var(--container);
  margin: 0 auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.step {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.step-icon svg { width: 22px; height: 22px; }
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.5;
}
.steps-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* =============================================================
   FAQs
   ============================================================= */
.faqs {
  padding: 80px var(--pad-x) 120px;
  max-width: 920px;
  margin: 0 auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq {
  background: var(--c-card);
  border-radius: 12px;
  padding: 0 18px;
  transition: background .15s ease;
  overflow: hidden;
}
.faq-summary {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 12px 0;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.faq-chev {
  width: 18px;
  height: 18px;
  color: #b7bcc6;
  flex: none;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq.is-open .faq-chev {
  transform: rotate(180deg);
}
/* Collapsed FAQ items use display:none so they don't reserve DOM space
   (visibility:hidden would leave a gap). Open items animate in via opacity
   + a small slide using @starting-style for browsers that support it. */
.faq-body {
  display: none;
}
.faq.is-open .faq-body {
  display: block;
  animation: faqOpen 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq p {
  color: var(--c-muted);
  padding: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0;
}
.faq-contact {
  margin-top: 32px;
  text-align: center;
  color: var(--c-muted);
  font-size: 15px;
}
.faq-contact a {
  color: var(--c-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  border-top: 1px solid var(--c-line);
  padding: 32px var(--pad-x);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 700;
}
/* Match the Next.js Footer.css logo (56x56 desktop / 64x64 mobile) so the
   static landing footer and the shared inner-page footer look identical. */
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--c-muted);
  font-size: 14px;
}
.footer-links a:hover { color: var(--c-text); }
.footer-copy {
  color: var(--c-muted);
  font-size: 14px;
}
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-muted);
  transition: color .15s ease, background .15s ease;
}
.footer-social a:hover {
  color: #fff;
  background: var(--c-nav-bg);
}
.footer-social svg { width: 18px; height: 18px; }

/* =============================================================
   RESPONSIVE — tablet + iPad (810–1199)
   On these sizes the hand is dropped entirely. The scaled hand reads
   as a broken composition; instead we show a clean floating phone
   (App-Store style) — phone screen takes center stage with a soft
   double drop-shadow.
   ============================================================= */
@media (max-width: 1199.98px) {
  .nav { max-width: 680px; }

  .hero-hand { display: none; }
  .hero-phone {
    /* Resize wrapper to the phone-frame ratio (350:710 ≈ 0.493). Width is
       capped so the resulting height fits inside .hero-stage cleanly. The
       absolute pixel positions of .hero-phone-frame (top:10/left:83 inside
       the 776 container) are overridden below to fill this new box. */
    width: clamp(240px, 30vw, 320px);
    height: auto;
    aspect-ratio: 350 / 710;
    bottom: auto;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center center;
  }
  .hero-phone-frame {
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 30px 44px rgba(40, 30, 60, 0.28))
            drop-shadow(0 8px 14px rgba(40, 30, 60, 0.18));
  }

  /* 320 * 710/350 = 650px tall; +30 top + breathing room. */
  .hero-stage { height: 720px; }
  .hero-title {
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 36px;
  }

  /* Re-anchor decoration around the centered phone. */
  .hero-badge      { left: calc(50% - 220px); top: 60px; }
  .hero-pill-left  { left: calc(50% - 280px); bottom: 18%; }
  .hero-pill-right { right: calc(50% - 300px); top: 22%; }
  .hero-side {
    right: calc(50% - 380px);
    top: 40%;
  }

  .features-grid { grid-template-columns: 1fr 280px 1fr; gap: 16px; }
}

/* =============================================================
   RESPONSIVE — mobile (≤809)
   ============================================================= */
@media (max-width: 809.98px) {
  :root { --pad-x: 18px; }

  .nav-wrap { padding: 0 12px; }
  .nav {
    /* Mobile: logo LEFT, group(CTA + hamburger) RIGHT.
       Use 3-col grid with empty middle to keep the same layout shape. */
    grid-template-columns: 1fr auto auto;
    max-width: none;
    padding: 8px 8px 8px 16px;
    gap: 10px;
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; justify-self: end; }

  .nav.is-open .nav-links {
    display: flex;
    position: fixed;
    top: 80px;
    left: 12px;
    right: 12px;
    width: auto;
    justify-self: stretch;
    background: var(--c-nav-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    border-radius: 22px;
    gap: 4px;
    margin: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  }
  .nav.is-open .nav-links li {
    width: 100%;
  }
  .nav.is-open .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    width: 100%;
  }

  .hero {
    /* Generous top room so title clears the sticky nav with breathing space. */
    padding: 140px var(--pad-x) 64px;
    min-height: 0;
  }
  .hero-title {
    /* Tighter scale on mobile — Cairo (Arabic) renders chunky, and the
       previous clamp had the title swallowing ~25% of the viewport on
       phones. Drop max + ramp + line-height for a calmer balance. */
    font-size: clamp(28px, 8vw, 44px);
    white-space: normal;
    line-height: 1.08;
    letter-spacing: -0.02em;
    padding: 0 4px;
    margin-bottom: 32px;   /* gap between title and the body subtext */
  }
  /* hero-side is the FIRST static child of .hero-stage; it flows at the top
     of the stage (above the absolutely-positioned phone). The phone is
     pushed down via top:.. so the subtitle has clear breathing room. */
  .hero-side {
    position: static;
    margin: 20px auto 36px;  /* extra bottom margin = space before the phone */
    text-align: center;
    max-width: 100%;
    right: auto;
    top: auto;
    z-index: 3;
  }
  .hero-side-text {
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.5;
  }
  /* Store badges: side-by-side compact row on mobile/tablet so the CTA
     block keeps the SAME height as the original single button and never
     overlaps the (absolutely-positioned) phone, badge, or pills below. */
  .hero-side-cta {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    max-width: 380px;
    margin-inline: auto;
  }
  .hero-side-cta .btn-cta {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 11px 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-stage {
    margin: 40px auto 0;
    /* Stage holds: side-text block (~110px including margin) + phone pushed
       down via top:130 to sit cleanly below the subtitle. */
    height: 720px;
    overflow: visible;
  }
  /* Mobile: floating phone (no hand). Push phone DOWN below the static
     .hero-side block so the subtitle has room to breathe above the phone. */
  .hero-phone {
    width: clamp(200px, 58vw, 260px);
    top: 130px;
  }

  /* Pills + badge surround the centered phone. Both pills now sit at mid-
     height (not at stage extremes) so they decoratively overlap the phone
     instead of floating disconnected at the bottom corner. RTL flips the
     left/right anchors automatically — see [dir="rtl"] rules below. */
  .hero-badge {
    left: 12px;
    top: 110px;           /* sits next to the top-left of the (pushed-down) phone */
    width: 54px;
    height: 54px;
    font-size: 13px;
  }
  .hero-pill-left {
    left: 12px;
    right: auto;
    top: 62%;            /* lower-left, hugging the phone */
    bottom: auto;
    transform: rotate(-6deg);
    font-size: 12px;
    padding: 8px 12px;
    max-width: 150px;
    white-space: normal;
  }
  .hero-pill-right {
    right: 12px;
    left: auto;
    top: 32%;           /* upper-right, hugging phone (top:130 + ~100 in) */
    transform: rotate(4deg);
    font-size: 12px;
    padding: 8px 12px;
    max-width: 130px;
    white-space: normal;
  }

  .mission { padding: 80px var(--pad-x); }
  .mission-inner { grid-template-columns: 1fr; gap: 40px; }
  .mission-copy { max-width: 100%; }
  .eyebrow-left { text-align: center; }
  .mission-title { text-align: center; }
  .mission-lede { text-align: center; margin-left: auto; margin-right: auto; }
  .mission-chips { align-items: center; }
  .mission-visual { margin: 0 auto; max-width: 320px; }

  .benefits, .features, .automation, .steps, .faqs {
    padding: 60px var(--pad-x) 80px;
  }

  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card {
    /* On mobile, drop the fixed height + absolute positioning so the
       phone image stacks BELOW the text instead of overlapping it. */
    height: auto;
    min-height: 0;
    padding: 28px 28px 0;
    overflow: hidden;
  }
  .benefit-phone {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 24px auto 0;
    width: 80%;
    max-width: 280px;
    /* Keep the soft fade at the bottom so it doesn't hard-cut. */
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .features-phone { order: -1; }
  .features-phone img { max-width: 260px; }

  .automation-grid { grid-template-columns: 1fr; gap: 24px; }

  .steps-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step { min-height: 0; padding: 22px; }

  .section-head { margin-bottom: 36px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-brand-block { align-items: center; }
  .footer-brand {
    font-size: 22px;
    gap: 12px;
  }
  .footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
  .footer-social { justify-content: center; }
  .footer-links { justify-content: center; }
}

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

  /* Smallest phones — keep phone compact, tuck pills/badge in. Phone is
     still pushed down past the subtitle (top:120). */
  .hero { padding: 120px var(--pad-x) 56px; }
  .hero-title { font-size: clamp(26px, 9vw, 38px); margin-bottom: 24px; }
  .hero-side { margin: 16px auto 28px; }
  .hero-side-text { font-size: 15px; }
  .hero-phone { width: clamp(180px, 56vw, 220px); top: 120px; }
  .hero-stage { height: 660px; margin-top: 32px; }
  .hero-pill-left  { max-width: 130px; font-size: 11px; }
  .hero-pill-right { max-width: 110px; font-size: 12px; }
  .hero-badge { width: 50px; height: 50px; font-size: 12px; }
}

/* =============================================================
   MICRO-ANIMATIONS — hero pills/badge float, orbit visual spins,
   scroll-reveal fade-up. All wrapped in prefers-reduced-motion
   safety at the bottom of the file.
   ============================================================= */

/* ---- Hero floating badges + pills ----
   Each pill keeps its base rotation but drifts gently on X and Y.
   Durations are slightly out of sync so they don't pulse in unison.    */
@keyframes hero-pill-float-left {
  0%, 100% { transform: rotate(-7deg) translate(0, 0); }
  50%      { transform: rotate(-7deg) translate(6px, -10px); }
}
@keyframes hero-pill-float-right {
  0%, 100% { transform: rotate(4deg) translate(0, 0); }
  50%      { transform: rotate(4deg) translate(-7px, -8px); }
}
@keyframes hero-badge-bob {
  0%, 100% { transform: rotate(-10deg) translate(0, 0); }
  50%      { transform: rotate(-8deg)  translate(-4px, -6px); }
}

.hero-pill-left  { animation: hero-pill-float-left  5.4s ease-in-out infinite; }
.hero-pill-right { animation: hero-pill-float-right 6.2s ease-in-out infinite; }
.hero-badge      { animation: hero-badge-bob        4.8s ease-in-out infinite; }

/* Mobile rotation differs (-6deg). Keep the keyframe top-level for safe
   browser support, then swap animation-name inside the media query.   */
@keyframes hero-pill-float-left-m {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  50%      { transform: rotate(-6deg) translate(5px, -8px); }
}
@media (max-width: 809.98px) {
  .hero-pill-left { animation-name: hero-pill-float-left-m; }
}

/* Subtle drift on the hand+phone composite — it breathes very slowly. */
@keyframes hero-phone-breathe {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
@media (min-width: 810px) {
  .hero-phone { animation: hero-phone-breathe 7.5s ease-in-out infinite; }
}

/* ---- Mission orbit visual ----
   Outer ring + middle dashed ring rotate in opposite directions, inner
   gradient sphere pulses, dots drift around it. Light + airy.            */
@keyframes orbit-spin-cw  { from { transform: scale(1)    rotate(0deg);   } to { transform: scale(1)    rotate(360deg); } }
@keyframes orbit-spin-ccw { from { transform: scale(0.78) rotate(0deg);   } to { transform: scale(0.78) rotate(-360deg); } }
@keyframes orbit-pulse {
  0%, 100% { transform: scale(0.5);   box-shadow: 0 30px 80px -20px rgba(91, 110, 232, 0.45); }
  50%      { transform: scale(0.535); box-shadow: 0 36px 90px -20px rgba(91, 110, 232, 0.55); }
}
@keyframes cross-bob {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50%      { transform: translate(-50%, -54%) rotate(6deg); }
}
@keyframes dot-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-8px, 6px); }
}
@keyframes dot-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(10px, -6px); }
}
@keyframes dot-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-6px, -8px); }
}

.orbit-1       { animation: orbit-spin-cw   40s linear   infinite; }
.orbit-2       { animation: orbit-spin-ccw  28s linear   infinite; }
.orbit-3       { animation: orbit-pulse      4.2s ease-in-out infinite; }
.mission-cross { animation: cross-bob        5.5s ease-in-out infinite; }
.mission-dot-1 { animation: dot-drift-1      5.2s ease-in-out infinite; }
.mission-dot-2 { animation: dot-drift-2      6.4s ease-in-out infinite; }
.mission-dot-3 { animation: dot-drift-3      4.8s ease-in-out infinite; }

/* ---- Scroll-reveal ----
   Pre-hidden by selector ONLY when <html class="js"> is set (pre-paint
   flag in index.html). No-JS users see content normally — never invisible.

   The directional/zoom variants are picked up via data-reveal attributes
   so we don't have to add classes from JS (which would flash visible →
   hidden → animate-in after the defer script runs).                       */

html.js .section-head,
html.js .mission-copy,
html.js .mission-visual,
html.js .benefit-card,
html.js .feature-card,
html.js .features-phone,
html.js .automation-card,
html.js .step,
html.js .faq,
html.js .cta-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

/* Side-slide overrides for the mission split layout. */
html.js .mission-copy    { transform: translate(-32px, 0); }
html.js .mission-visual  { transform: translate(32px, 0); }

/* Zoom-in for hero-style centerpieces. */
html.js .features-phone,
html.js .cta-card {
  transform: scale(0.94);
}

/* Active state — JS adds .is-visible when the element enters view. */
html.js .section-head.is-visible,
html.js .mission-copy.is-visible,
html.js .mission-visual.is-visible,
html.js .benefit-card.is-visible,
html.js .feature-card.is-visible,
html.js .features-phone.is-visible,
html.js .automation-card.is-visible,
html.js .step.is-visible,
html.js .faq.is-visible,
html.js .cta-card.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger grid children so they cascade in. JS sets data-reveal-stagger. */
html.js [data-reveal-stagger="1"] { transition-delay: 0.08s; }
html.js [data-reveal-stagger="2"] { transition-delay: 0.16s; }
html.js [data-reveal-stagger="3"] { transition-delay: 0.24s; }
html.js [data-reveal-stagger="4"] { transition-delay: 0.32s; }
html.js [data-reveal-stagger="5"] { transition-delay: 0.40s; }

/* Honour accessibility prefs — also covered in afyti-overrides.css. */
@media (prefers-reduced-motion: reduce) {
  .hero-pill-left, .hero-pill-right, .hero-badge, .hero-phone,
  .orbit-1, .orbit-2, .orbit-3,
  .mission-cross, .mission-dot-1, .mission-dot-2, .mission-dot-3 {
    animation: none !important;
  }
  html.js .section-head,
  html.js .mission-copy,
  html.js .mission-visual,
  html.js .benefit-card,
  html.js .feature-card,
  html.js .features-phone,
  html.js .automation-card,
  html.js .step,
  html.js .faq,
  html.js .cta-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------
   i18n: Cairo font for Arabic & Hebrew, plus minimal RTL fixes
   ------------------------------------------------------------------ */
/* Redefine the font CSS variables for Arabic & Hebrew so EVERY rule that
   references --ff-body / --ff-display (eyebrow, btn, nav-brand, etc.)
   automatically uses Cairo. Inter has no Arabic glyphs, so without this
   the browser falls back to a generic system Arabic font. */
html[lang="ar"],
html[lang="he"] {
  --ff-body:    "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-display: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="ar"] body,
html[lang="he"] body {
  font-family: var(--ff-body);
}

/* Defensive: force Cairo on every descendant under Arabic/Hebrew. This
   overrides any class-level `font-family` (eyebrow, nav-brand, btn,
   hero-badge, footer-brand, etc.) without having to enumerate them.
   Specificity: 0,1,1 — beats single-class rules like `.eyebrow` (0,1,0). */
html[lang="ar"] *,
html[lang="he"] * {
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Keep headings in heavier Cairo (Display fallback for Latin numerals). */
html[lang="ar"] h1, html[lang="he"] h1,
html[lang="ar"] h2, html[lang="he"] h2,
html[lang="ar"] h3, html[lang="he"] h3,
html[lang="ar"] h4, html[lang="he"] h4,
html[lang="ar"] .hero-title, html[lang="he"] .hero-title,
html[lang="ar"] .section-title, html[lang="he"] .section-title,
html[lang="ar"] .mission-title, html[lang="he"] .mission-title {
  font-family: "Cairo", "Inter Display", "Inter", system-ui, sans-serif;
}
html[lang="ar"] h1, html[lang="he"] h1,
html[lang="ar"] h2, html[lang="he"] h2,
html[lang="ar"] h3, html[lang="he"] h3,
html[lang="ar"] h4, html[lang="he"] h4,
html[lang="ar"] .hero-title,
html[lang="he"] .hero-title,
html[lang="ar"] .section-title,
html[lang="he"] .section-title,
html[lang="ar"] .mission-title,
html[lang="he"] .mission-title {
  font-family: "Cairo", "Inter Display", "Inter", system-ui, sans-serif;
  font-weight: 700;
}

/* Navbar surfaces — brand text, links, CTA, language switcher — all Cairo.
   .nav-brand and .btn declare their own font-family explicitly so they
   need an override; the others inherit but we list them to be safe. */
html[lang="ar"] .nav,
html[lang="he"] .nav,
html[lang="ar"] .nav-brand,
html[lang="he"] .nav-brand,
html[lang="ar"] .nav-brand-text,
html[lang="he"] .nav-brand-text,
html[lang="ar"] .nav-links,
html[lang="he"] .nav-links,
html[lang="ar"] .nav-links a,
html[lang="he"] .nav-links a,
html[lang="ar"] .nav-lang,
html[lang="he"] .nav-lang,
html[lang="ar"] .nav-lang__menu button,
html[lang="he"] .nav-lang__menu button,
html[lang="ar"] .btn,
html[lang="he"] .btn,
html[lang="ar"] .nav-cta,
html[lang="he"] .nav-cta {
  font-family: "Cairo", "Inter", system-ui, sans-serif;
}

/* Pills in RTL: horizontal flip so they read on the correct side. */
[dir="rtl"] .hero-pill-left  { left: auto;  right: 12px;  }
[dir="rtl"] .hero-pill-right { right: auto; left: 12px;   }

/* Footer copy alignment under RTL. */
[dir="rtl"] .footer-copy { text-align: end; }

/* FAQ chevron stays as a vertical caret — no flip needed; tested fine. */
