/* =========================================================
   Smart Garaje V2 — Phase 1 design system
   Tokens + homepage header / hero only
   ========================================================= */

:root {
  /* Brand */
  --sg-navy: #05103b;
  --sg-navy-deep: #060a3d;
  --sg-navy-mid: #0a1a52;
  --sg-lime: #73c620;
  --sg-lime-hover: #64b01a;
  --sg-lime-soft: rgba(115, 198, 32, 0.14);

  /* Neutrals */
  --sg-white: #ffffff;
  --sg-surface: #f4f4f2;
  --sg-surface-elevated: #fafaf8;
  --sg-charcoal: #151719;
  --sg-text: #1c2434;
  --sg-text-muted: #5b6575;
  --sg-border: rgba(21, 23, 25, 0.1);
  --sg-border-strong: rgba(21, 23, 25, 0.16);

  /* Effects */
  --sg-shadow-sm: 0 4px 16px rgba(5, 16, 59, 0.08);
  --sg-shadow-md: 0 12px 40px rgba(5, 16, 59, 0.16);
  --sg-shadow-lg: 0 28px 64px rgba(5, 16, 59, 0.28);
  --sg-radius-sm: 8px;
  --sg-radius-md: 14px;
  --sg-radius-lg: 22px;
  --sg-radius-pill: 999px;

  /* Typography */
  --sg-font-en: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --sg-font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --sg-fw-regular: 400;
  --sg-fw-medium: 500;
  --sg-fw-semibold: 600;
  --sg-fw-bold: 700;

  /* Spacing scale */
  --sg-space-1: 4px;
  --sg-space-2: 8px;
  --sg-space-3: 12px;
  --sg-space-4: 16px;
  --sg-space-5: 24px;
  --sg-space-6: 32px;
  --sg-space-7: 48px;
  --sg-space-8: 64px;
  --sg-space-9: 96px;

  /* Breakpoints (documentation reference)
     sm: 576px | md: 768px | lg: 992px | xl: 1200px */

  /* Align legacy CTA tokens with V2 accent on homepage */
  --orange: var(--sg-lime);
  --bg-orange-gradiunt: var(--sg-lime);
  --bg-hover-gradiunt: var(--sg-lime-hover);
}

/* ---------- Homepage Phase 1 shell ---------- */

.page_wrapper.sg-v2-home {
  overflow-x: hidden;
  max-width: 100vw;
}

.sg-v2-home,
.sg-v2-home .top_home_wraper,
.sg-v2-home .banner_section,
.sg-v2-home .banner_section .container {
  max-width: 100%;
}

.sg-v2-home .top_home_wraper {
  position: relative;
  min-height: auto;
  background-image: none;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(115, 198, 32, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(10, 26, 82, 0.55) 0%, transparent 60%),
    linear-gradient(165deg, #060a3d 0%, #05103b 48%, #0a1648 100%);
  padding-bottom: var(--sg-space-8);
  overflow: hidden;
}

.sg-v2-home .top_home_wraper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.sg-v2-home .banner_shapes {
  display: none;
}

/* ---------- Header / Nav ---------- */

.sg-v2-home header.fixed {
  position: relative;
  z-index: 30;
  padding-top: var(--sg-space-4);
}

.sg-v2-home header .navbar {
  padding: var(--sg-space-3) 0;
}

.sg-v2-home .navbar-brand {
  margin-right: var(--sg-space-5);
  display: inline-flex;
  align-items: flex-start;
  height: 34px;
  overflow: hidden;
  max-width: 200px;
}

.sg-v2-home .navbar-brand img {
  width: auto;
  height: 68px;
  max-width: none;
  object-fit: cover;
  object-position: top left;
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link {
  color: rgba(244, 244, 242, 0.88);
  font-weight: var(--sg-fw-medium);
  font-size: 14px;
  padding: 8px 10px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link:hover,
.sg-v2-home .navbar-expand-lg .navbar-nav .nav-item.active .nav-link {
  color: var(--sg-white);
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-nav-login {
  color: var(--sg-white);
  font-weight: var(--sg-fw-semibold);
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn,
.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial {
  background: var(--sg-lime);
  color: var(--sg-navy) !important;
  font-weight: var(--sg-fw-bold);
  border-radius: var(--sg-radius-pill);
  padding: 9px 18px;
  margin-left: var(--sg-space-2);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn:before,
.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial:before {
  display: none;
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn:hover,
.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial:hover {
  background: var(--sg-lime-hover);
  color: var(--sg-navy) !important;
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn i,
.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial i {
  color: inherit;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn:hover i,
.sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial:hover i {
  transform: translateX(3px);
}

.sg-v2-home .navbar-expand-lg .navbar-nav .has_dropdown .drp_btn {
  color: rgba(244, 244, 242, 0.75);
}

.sg-v2-home .navbar-expand-lg .navbar-nav .has_dropdown .sub_menu {
  border-radius: var(--sg-radius-md);
  box-shadow: var(--sg-shadow-md);
  border: 1px solid var(--sg-border);
  overflow: hidden;
}

.sg-v2-home .navbar-toggler-icon .toggle-bar,
.sg-v2-home .navbar-toggler-icon .toggle-bar::before,
.sg-v2-home .navbar-toggler-icon .toggle-bar::after {
  background-color: var(--sg-white);
}

.sg-v2-home header.fix_style {
  background: rgba(5, 16, 59, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--sg-shadow-sm);
}

.sg-v2-home header.fix_style .navbar-expand-lg .navbar-nav .nav-link {
  color: rgba(244, 244, 242, 0.9);
}

.sg-v2-home header.fix_style .navbar-expand-lg .navbar-nav .nav-link.dark_btn,
.sg-v2-home header.fix_style .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial {
  color: var(--sg-navy) !important;
}

.sg-v2-home .sg-nav-actions {
  gap: var(--sg-space-2);
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center !important;
  margin-left: auto;
}

.sg-v2-home .sg-nav-actions .nav-item {
  display: flex;
  align-items: center;
}

/* ---------- Hero ---------- */

.sg-v2-home .banner_section {
  padding-top: var(--sg-space-6);
  position: relative;
  z-index: 2;
}

.sg-v2-home .banner_section .container {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: var(--sg-space-6);
  align-items: center;
  max-width: 1240px;
}

.sg-v2-home .banner_section .banner_text {
  text-align: left;
  padding-top: 0;
  color: var(--sg-white);
  max-width: 560px;
}

.sg-v2-home .sg-hero-launch {
  display: inline-flex;
  align-items: center;
  gap: var(--sg-space-2);
  margin: 0 0 var(--sg-space-4);
  padding: 6px 14px;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-lime-soft);
  border: 1px solid rgba(115, 198, 32, 0.35);
  color: var(--sg-lime);
  font-size: 13px;
  font-weight: var(--sg-fw-semibold);
  letter-spacing: 0.04em;
  text-transform: none;
}

.sg-v2-home .sg-hero-launch::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sg-lime);
  box-shadow: 0 0 0 4px rgba(115, 198, 32, 0.2);
}

.sg-v2-home .banner_section .banner_text .ban_inner_text h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: var(--sg-fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sg-white);
  margin: 0;
}

.sg-v2-home .banner_section .banner_text .ban_inner_text p,
.sg-v2-home .sg-hero-desc {
  margin: var(--sg-space-5) 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(244, 244, 242, 0.82);
  max-width: 34em;
}

.sg-v2-home .sg-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sg-space-3);
  margin-top: var(--sg-space-6);
}

.sg-v2-home .sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--sg-radius-pill);
  font-weight: var(--sg-fw-bold);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.2;
}

.sg-v2-home .sg-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.sg-v2-home .sg-btn--primary {
  background: var(--sg-lime);
  color: var(--sg-navy);
}

.sg-v2-home .sg-btn--primary:hover {
  background: var(--sg-lime-hover);
  color: var(--sg-navy);
}

.sg-v2-home .sg-btn--secondary {
  background: transparent;
  color: var(--sg-white);
  border-color: rgba(244, 244, 242, 0.35);
}

.sg-v2-home .sg-btn--secondary:hover {
  border-color: var(--sg-white);
  color: var(--sg-white);
  background: rgba(255, 255, 255, 0.06);
}

.sg-v2-home .sg-hero-support {
  margin: var(--sg-space-5) 0 0;
  font-size: 14px;
  color: rgba(244, 244, 242, 0.62);
}

/* Product composition */

.sg-v2-home .banner_section .banner_images,
.sg-v2-home .sg-hero-visual {
  position: relative;
  margin: 0;
  max-width: none;
  width: 100%;
}

.sg-v2-home .sg-hero-visual__frame {
  position: relative;
  border-radius: var(--sg-radius-lg);
  overflow: hidden;
  box-shadow: var(--sg-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.45s ease;
}

.sg-v2-home .sg-hero-visual:hover .sg-hero-visual__frame {
  transform: perspective(1400px) rotateY(-1deg) rotateX(0deg);
}

.sg-v2-home .sg-hero-visual__frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sg-v2-home .sg-hero-visual__glow {
  position: absolute;
  width: 55%;
  height: 40%;
  bottom: -8%;
  left: 22%;
  background: radial-gradient(ellipse, rgba(115, 198, 32, 0.35) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
  animation: sg-glow-pulse 5s ease-in-out infinite;
}

.sg-v2-home .sg-hero-visual__accent {
  position: absolute;
  width: 42%;
  height: 28%;
  top: -6%;
  right: -4%;
  background: radial-gradient(ellipse, rgba(115, 198, 32, 0.22) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}

@keyframes sg-glow-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* Hide legacy email form styles if leftover markup exists */
.sg-v2-home .banner_section .banner_text form {
  display: none;
}

/* ---------- RTL ---------- */

html[dir="rtl"] .sg-v2-home .navbar-brand {
  margin-right: 0;
  margin-left: var(--sg-space-5);
}

html[dir="rtl"] .sg-v2-home .banner_section .banner_text {
  text-align: right;
}

html[dir="rtl"] .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn,
html[dir="rtl"] .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial {
  margin-left: 0;
  margin-right: var(--sg-space-3);
}

html[dir="rtl"] .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn i,
html[dir="rtl"] .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial i {
  margin-left: 0;
  margin-right: 6px;
}

html[dir="rtl"] .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn:hover i,
html[dir="rtl"] .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial:hover i {
  transform: translateX(-3px);
}

html[dir="rtl"] .sg-v2-home .sg-hero-visual__frame {
  transform: perspective(1400px) rotateY(4deg) rotateX(2deg);
}

html[dir="rtl"] .sg-v2-home .sg-hero-visual:hover .sg-hero-visual__frame {
  transform: perspective(1400px) rotateY(1deg) rotateX(0deg);
}

html[dir="rtl"] .sg-v2-home,
html[dir="rtl"] .sg-v2-home .banner_section .banner_text .ban_inner_text h1,
html[dir="rtl"] .sg-v2-home .sg-hero-desc,
html[dir="rtl"] .sg-v2-home .sg-hero-support,
html[dir="rtl"] .sg-v2-home .sg-btn,
html[dir="rtl"] .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link {
  font-family: var(--sg-font-ar);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .sg-v2-home .banner_section .container {
    gap: var(--sg-space-6);
  }

  .sg-v2-home .navbar-brand {
    height: 32px;
    max-width: 180px;
  }

  .sg-v2-home .navbar-brand img {
    height: 64px;
  }
}

@media (max-width: 991.98px) {
  .sg-v2-home .top_home_wraper {
    padding-bottom: var(--sg-space-7);
  }

  .sg-v2-home header .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }

  .sg-v2-home .navbar-brand {
    flex: 0 1 auto;
  }

  .sg-v2-home .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
  }

  html[dir="rtl"] .sg-v2-home .navbar-toggler {
    margin-left: 0;
    margin-right: auto;
  }

  .sg-v2-home .banner_section .container {
    grid-template-columns: 1fr;
    gap: var(--sg-space-6);
  }

  .sg-v2-home .banner_section .banner_text {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }

  html[dir="rtl"] .sg-v2-home .banner_section .banner_text {
    text-align: center;
  }

  .sg-v2-home .sg-hero-ctas {
    justify-content: center;
  }

  .sg-v2-home .sg-hero-visual,
  .sg-v2-home .sg-hero-visual__frame,
  .sg-v2-home .sg-hero-visual__frame img {
    max-width: 100%;
  }

  .sg-v2-home .sg-hero-visual__frame {
    transform: none;
  }

  .sg-v2-home .sg-hero-visual:hover .sg-hero-visual__frame,
  html[dir="rtl"] .sg-v2-home .sg-hero-visual__frame,
  html[dir="rtl"] .sg-v2-home .sg-hero-visual:hover .sg-hero-visual__frame {
    transform: none;
  }

  .sg-v2-home .sg-hero-visual__glow,
  .sg-v2-home .sg-hero-visual__accent {
    display: none;
  }

  .sg-v2-home .navbar-collapse {
    background: var(--sg-white);
    border-radius: var(--sg-radius-md);
    margin-top: var(--sg-space-3);
    padding: var(--sg-space-3);
    box-shadow: var(--sg-shadow-md);
  }

  .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link {
    color: var(--sg-text);
  }

  .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link:hover,
  .sg-v2-home .navbar-expand-lg .navbar-nav .nav-item.active .nav-link {
    color: var(--sg-navy);
  }

  .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-nav-login {
    color: var(--sg-navy);
  }

  .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.dark_btn,
  .sg-v2-home .navbar-expand-lg .navbar-nav .nav-link.sg-btn-trial {
    margin: var(--sg-space-3) 0 0;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .sg-v2-home .navbar-expand-lg .navbar-nav .has_dropdown .drp_btn {
    color: var(--sg-text-muted);
  }

  .sg-v2-home .sg-nav-actions {
    width: 100%;
    align-items: stretch !important;
  }
}

@media (max-width: 767.98px) {
  .sg-v2-home .top_home_wraper {
    padding-bottom: var(--sg-space-6);
  }

  .sg-v2-home header .navbar {
    padding-left: 0;
    padding-right: 0;
  }

  .sg-v2-home .banner_section {
    padding-top: var(--sg-space-5);
  }

  .sg-v2-home .banner_section .banner_text {
    padding-left: 4px;
    padding-right: 4px;
  }

  .sg-v2-home .banner_section .banner_text .ban_inner_text h1 {
    font-size: clamp(26px, 7.2vw, 34px);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .sg-v2-home .sg-hero-desc {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .sg-v2-home .sg-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-v2-home .sg-btn {
    width: 100%;
  }

  .sg-v2-home .navbar-brand {
    height: 28px;
    max-width: 150px;
  }

  .sg-v2-home .navbar-brand img {
    height: 56px;
  }

  .sg-v2-home .navbar-toggler {
    padding: 4px 0;
    border: 0;
  }

  .sg-v2-home .sg-hero-visual {
    margin-top: var(--sg-space-2);
  }
}

@media (max-width: 575.98px) {
  .sg-v2-home .sg-hero-launch {
    font-size: 12px;
  }

  .sg-v2-home .sg-hero-visual__frame {
    border-radius: var(--sg-radius-md);
  }
}

/* =========================================================
   Smart Garaje V2 — Phase 2
   Full homepage sections (below hero)
   ========================================================= */

/* ----------------------------------------------------------
   BACKGROUND / TEMPLATE OVERRIDE
   Prevent purple/legacy gradients leaking onto body after hero
---------------------------------------------------------- */
.sg-v2-home {
  background: var(--sg-surface);
}

/* Kill legacy section backgrounds that might bleed in */
.sg-v2-home .customer_section,
.sg-v2-home .service_list_section,
.sg-v2-home .service_section,
.sg-v2-home .about_service_section,
.sg-v2-home .pricing_section,
.sg-v2-home .testimonial_section,
.sg-v2-home .blog_section,
.sg-v2-home .newsletter_section,
.sg-v2-home .footer_section,
.sg-v2-home footer.footer_section {
  display: none !important;
}

/* ----------------------------------------------------------
   SECTION SHELLS
   sg-section is the universal section wrapper
---------------------------------------------------------- */
.sg-section {
  padding: clamp(64px, 8vw, 112px) 0;
  position: relative;
}

/* Light variant — default off-white/surface */
.sg-section--light {
  background: var(--sg-surface);
  color: var(--sg-text);
}

/* Pure white variant (can add if ever needed) */
.sg-section--white {
  background: var(--sg-white);
  color: var(--sg-text);
}

/* Dark / navy — deep blue base */
.sg-section--dark,
.sg-section--navy {
  background: var(--sg-navy);
  color: var(--sg-white);
}

/* AI section — slightly richer dark, adds a subtle gradient glow */
.sg-section--ai {
  background:
    radial-gradient(ellipse 60% 50% at 90% 50%, rgba(115, 198, 32, 0.08) 0%, transparent 60%),
    linear-gradient(165deg, #060a3d 0%, #05103b 60%, #0a1648 100%);
  color: var(--sg-white);
}

/* Features tab section — same surface but adds top rule */
.sg-section--features {
  background: var(--sg-surface);
}

/* Final CTA — dramatic navy with centre glow */
.sg-section--final-cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(115, 198, 32, 0.12) 0%, transparent 65%),
    linear-gradient(165deg, #060a3d 0%, #05103b 55%, #0a1648 100%);
  color: var(--sg-white);
}

/* Branches section uses same light look */
.sg-section--branches {
  background: var(--sg-surface);
}

/* ----------------------------------------------------------
   CONTAINER
---------------------------------------------------------- */
.sg-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

/* ----------------------------------------------------------
   SECTION HEADER + TYPOGRAPHY ATOMS
---------------------------------------------------------- */
.sg-section-header {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.sg-eyebrow {
  display: inline-block;
  color: var(--sg-lime);
  font-size: 12px;
  font-weight: var(--sg-fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 var(--sg-space-3);
  line-height: 1.4;
}

/* On dark/navy sections the eyebrow is already lime — keep it that way */
.sg-section--dark .sg-eyebrow,
.sg-section--navy .sg-eyebrow,
.sg-section--ai .sg-eyebrow,
.sg-section--final-cta .sg-eyebrow {
  color: var(--sg-lime);
}

.sg-section-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: var(--sg-fw-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sg-space-4);
  color: inherit;
}

.sg-section--light .sg-section-title,
.sg-section--white .sg-section-title,
.sg-section--branches .sg-section-title {
  color: var(--sg-text);
}

.sg-section--dark .sg-section-title,
.sg-section--navy .sg-section-title,
.sg-section--ai .sg-section-title,
.sg-section--final-cta .sg-section-title {
  color: var(--sg-white);
}

.sg-section-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--sg-text-muted);
  margin: 0;
}

.sg-section--dark .sg-section-lead,
.sg-section--navy .sg-section-lead,
.sg-section--ai .sg-section-lead,
.sg-section--final-cta .sg-section-lead {
  color: rgba(244, 244, 242, 0.75);
}

.sg-section-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 244, 242, 0.72);
  margin: var(--sg-space-4) 0 var(--sg-space-5);
}

/* Centered header max-width constraint on lead */
.sg-section-header.text-center .sg-section-lead,
.sg-section-header.text-center .sg-section-title {
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   BUTTONS — ghost variant + existing btn on dark sections
---------------------------------------------------------- */
.sg-v2-home .sg-btn--ghost {
  background: transparent;
  color: var(--sg-white);
  border: 1.5px solid rgba(244, 244, 242, 0.4);
}

.sg-v2-home .sg-btn--ghost:hover {
  border-color: var(--sg-white);
  background: rgba(255, 255, 255, 0.07);
  color: var(--sg-white);
}

/* Ghost on light background */
.sg-section--light .sg-btn--ghost,
.sg-section--white .sg-btn--ghost {
  color: var(--sg-navy);
  border-color: rgba(5, 16, 59, 0.3);
}

.sg-section--light .sg-btn--ghost:hover,
.sg-section--white .sg-btn--ghost:hover {
  border-color: var(--sg-navy);
  background: rgba(5, 16, 59, 0.05);
  color: var(--sg-navy);
}

/* ----------------------------------------------------------
   CHALLENGES GRID
---------------------------------------------------------- */
.sg-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sg-space-5);
}

.sg-challenge {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-md);
  padding: var(--sg-space-6) var(--sg-space-5);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.sg-challenge:hover {
  box-shadow: var(--sg-shadow-md);
  transform: translateY(-3px);
}

.sg-challenge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--sg-radius-sm);
  background: var(--sg-lime-soft);
  color: var(--sg-lime);
  margin-bottom: var(--sg-space-4);
  flex-shrink: 0;
}

.sg-challenge__title {
  font-size: 16px;
  font-weight: var(--sg-fw-semibold);
  color: var(--sg-text);
  margin: 0 0 var(--sg-space-2);
  line-height: 1.35;
}

.sg-challenge__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sg-text-muted);
  margin: 0;
}

/* ----------------------------------------------------------
   MEDIA LAYOUTS (2-col body + visual)
---------------------------------------------------------- */
.sg-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.sg-media--reversed {
  direction: ltr; /* explicit for RTL safety, overridden per side */
}

.sg-media--reversed .sg-media__body {
  order: 2;
}

.sg-media--reversed .sg-media__visual {
  order: 1;
}

/* Center-image: single wide visual, no body column */
.sg-media--center-img {
  grid-template-columns: 1fr;
  gap: 0;
}

.sg-media__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sg-space-4);
}

.sg-media__body > * {
  margin: 0;
}

.sg-media__body .sg-section-title {
  margin-bottom: 0;
}

.sg-media__body .sg-section-lead {
  margin-bottom: 0;
}

.sg-media__body .sg-btn {
  margin-top: var(--sg-space-2);
}

.sg-media__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-media__visual--wide {
  width: 100%;
}

.sg-media__img-wrap {
  width: 100%;
  border-radius: var(--sg-radius-lg);
  overflow: hidden;
  line-height: 0;
}

.sg-media__img-wrap--shadow {
  box-shadow: var(--sg-shadow-lg);
  border: 1px solid rgba(5, 16, 59, 0.07);
}

.sg-media__img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* On dark/navy sections, give img-wrap a subtle glow border */
.sg-section--dark .sg-media__img-wrap,
.sg-section--navy .sg-media__img-wrap,
.sg-section--ai .sg-media__img-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--sg-shadow-lg);
}

/* ----------------------------------------------------------
   FEATURE LIST (checkmarks)
---------------------------------------------------------- */
.sg-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-3);
}

.sg-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sg-space-3);
  font-size: 15px;
  line-height: 1.55;
  color: inherit;
}

.sg-section--light .sg-feature-list li,
.sg-section--white .sg-feature-list li,
.sg-section--branches .sg-feature-list li {
  color: var(--sg-text);
}

.sg-section--dark .sg-feature-list li,
.sg-section--navy .sg-feature-list li {
  color: rgba(244, 244, 242, 0.88);
}

.sg-feature-list__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sg-lime-soft);
  color: var(--sg-lime);
  font-size: 12px;
  font-weight: var(--sg-fw-bold);
  margin-top: 1px;
}

/* ----------------------------------------------------------
   WORKFLOW STEPS
---------------------------------------------------------- */
.sg-workflow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.sg-workflow-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.sg-workflow-step__pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-white);
  border: 1.5px solid var(--sg-border-strong);
  font-size: 13px;
  font-weight: var(--sg-fw-semibold);
  color: var(--sg-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: box-shadow 0.2s ease;
}

.sg-workflow-step__pill:hover {
  box-shadow: var(--sg-shadow-sm);
}

/* Accent pill — the terminal step */
.sg-workflow-step__pill--accent {
  background: var(--sg-lime);
  border-color: var(--sg-lime);
  color: var(--sg-navy);
  font-weight: var(--sg-fw-bold);
}

.sg-workflow-step__arrow {
  display: inline-block;
  color: var(--sg-text-muted);
  font-size: 18px;
  padding: 0 10px;
  user-select: none;
  line-height: 1;
}

/* ----------------------------------------------------------
   FEATURES TABS
---------------------------------------------------------- */
.sg-features {
  margin-top: 0;
}

/* Tablist — horizontal scrollable on mobile */
.sg-features__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-2);
  margin-bottom: var(--sg-space-6);
  border-bottom: 2px solid var(--sg-border);
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sg-features__tabs::-webkit-scrollbar {
  display: none;
}

.sg-features__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sg-space-2);
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--sg-text-muted);
  font-size: 14px;
  font-weight: var(--sg-fw-medium);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--sg-radius-sm) var(--sg-radius-sm) 0 0;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}

.sg-features__tab:hover {
  color: var(--sg-text);
  background: rgba(5, 16, 59, 0.04);
}

.sg-features__tab.is-active {
  color: var(--sg-navy);
  font-weight: var(--sg-fw-semibold);
  border-bottom-color: var(--sg-lime);
  background: rgba(115, 198, 32, 0.07);
}

.sg-features__tab-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
}

/* Panels */
.sg-features__panels {
  position: relative;
}

.sg-features__panel {
  display: none;
}

.sg-features__panel.is-active {
  display: block;
}

.sg-features__panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.sg-features__panel-text {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-4);
}

.sg-features__panel-text h3 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: var(--sg-fw-bold);
  color: var(--sg-text);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sg-features__panel-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--sg-text-muted);
  margin: 0;
}

.sg-features__panel-img {
  border-radius: var(--sg-radius-lg);
  overflow: hidden;
  box-shadow: var(--sg-shadow-md);
  border: 1px solid var(--sg-border);
  line-height: 0;
}

.sg-features__panel-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------
   AI CHIPS
---------------------------------------------------------- */
.sg-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-2);
  margin: var(--sg-space-2) 0 var(--sg-space-4);
}

.sg-ai-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--sg-radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(115, 198, 32, 0.28);
  color: rgba(244, 244, 242, 0.88);
  font-size: 13px;
  font-weight: var(--sg-fw-medium);
  line-height: 1.3;
  cursor: default;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sg-ai-chip::before {
  content: "✦";
  color: var(--sg-lime);
  font-size: 9px;
  margin-right: 6px;
  flex-shrink: 0;
}

.sg-ai-chip:hover {
  background: rgba(115, 198, 32, 0.12);
  border-color: rgba(115, 198, 32, 0.5);
}

/* ----------------------------------------------------------
   COMMUNICATIONS GRID
---------------------------------------------------------- */
.sg-comms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sg-space-5);
  margin-bottom: clamp(36px, 4vw, 56px);
}

.sg-comms-feature {
  background: var(--sg-white);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-md);
  padding: var(--sg-space-5) var(--sg-space-5) var(--sg-space-6);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.sg-comms-feature:hover {
  box-shadow: var(--sg-shadow-md);
  transform: translateY(-2px);
}

.sg-comms-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--sg-radius-sm);
  background: var(--sg-lime-soft);
  color: var(--sg-lime);
  margin-bottom: var(--sg-space-4);
}

.sg-comms-feature h3 {
  font-size: 15px;
  font-weight: var(--sg-fw-semibold);
  color: var(--sg-text);
  margin: 0 0 var(--sg-space-2);
  line-height: 1.35;
}

.sg-comms-feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sg-text-muted);
  margin: 0;
}

/* Dual images layout */
.sg-comms-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sg-space-5);
  margin-top: clamp(32px, 4vw, 52px);
}

.sg-comms-visuals .sg-media__img-wrap {
  box-shadow: var(--sg-shadow-md);
  border: 1px solid var(--sg-border);
}

/* ----------------------------------------------------------
   ONBOARDING STEPS
---------------------------------------------------------- */
.sg-onboarding-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.sg-onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
  flex: 1 1 220px;
  padding: var(--sg-space-5);
}

.sg-onboarding-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sg-lime);
  color: var(--sg-navy);
  font-size: 20px;
  font-weight: var(--sg-fw-bold);
  margin-bottom: var(--sg-space-4);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(115, 198, 32, 0.32);
}

.sg-onboarding-step__title {
  font-size: 17px;
  font-weight: var(--sg-fw-semibold);
  color: var(--sg-text);
  margin: 0 0 var(--sg-space-2);
  line-height: 1.3;
}

.sg-onboarding-step__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sg-text-muted);
  margin: 0;
}

/* Connector between steps */
.sg-onboarding-step__connector {
  align-self: flex-start;
  margin-top: 26px; /* aligns with center of number circle */
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  background: var(--sg-border-strong);
  border-radius: 1px;
  position: relative;
}

.sg-onboarding-step__connector::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--sg-border-strong);
  border-right: 2px solid var(--sg-border-strong);
  transform: rotate(45deg);
}

/* Onboarding visual image */
.sg-onboarding-visual {
  margin-bottom: var(--sg-space-6);
}

.sg-onboarding-visual img {
  max-width: 760px;
  width: 100%;
  border-radius: var(--sg-radius-lg);
  box-shadow: var(--sg-shadow-md);
  border: 1px solid var(--sg-border);
}

/* ----------------------------------------------------------
   PRICING TRUST BADGES
---------------------------------------------------------- */
.sg-pricing-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sg-space-5) var(--sg-space-7);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.sg-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sg-space-3);
  font-size: 15px;
  font-weight: var(--sg-fw-medium);
  color: rgba(244, 244, 242, 0.9);
}

.sg-trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(115, 198, 32, 0.15);
  color: var(--sg-lime);
  flex-shrink: 0;
}

/* Pricing CTA block */
.sg-pricing-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sg-space-5);
}

.sg-pricing-note {
  font-size: 15px;
  color: rgba(244, 244, 242, 0.72);
  margin: 0;
  max-width: 36em;
  text-align: center;
  line-height: 1.65;
}

.sg-pricing-note a {
  color: var(--sg-lime);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sg-pricing-note a:hover {
  color: #8ed640;
}

.sg-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-3);
  justify-content: center;
}

/* ----------------------------------------------------------
   FAQ
---------------------------------------------------------- */
.sg-faq .sg-section-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sg-faq__list {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--sg-border);
}

.sg-faq__item {
  border-bottom: 1px solid var(--sg-border);
}

.sg-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-space-4);
  width: 100%;
  padding: var(--sg-space-5) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: var(--sg-fw-semibold);
  color: var(--sg-text);
  font-family: inherit;
  line-height: 1.4;
  transition: color 0.18s ease;
}

.sg-faq__question:hover {
  color: var(--sg-navy);
}

.sg-faq__question[aria-expanded="true"] {
  color: var(--sg-navy);
}

.sg-faq__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--sg-text-muted);
  transition: transform 0.25s ease, color 0.18s ease;
}

.sg-faq__question[aria-expanded="true"] .sg-faq__icon {
  transform: rotate(180deg);
  color: var(--sg-lime);
}

.sg-faq__answer {
  overflow: hidden;
}

.sg-faq__answer[hidden] {
  display: none;
}

.sg-faq__answer p {
  padding: 0 0 var(--sg-space-5);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sg-text-muted);
}

/* ----------------------------------------------------------
   FINAL CTA
---------------------------------------------------------- */
.sg-final-cta {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.sg-final-cta .sg-section-lead {
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sg-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-3);
  justify-content: center;
  margin-top: var(--sg-space-6);
}

.sg-final-cta__tagline {
  margin-top: var(--sg-space-6);
  font-size: 14px;
  color: rgba(244, 244, 242, 0.5);
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.sg-footer {
  background: var(--sg-charcoal);
  color: rgba(244, 244, 242, 0.75);
  padding: 0;
}

/* Footer inner uses sg-container */
.sg-footer .sg-container {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 0;
}

/* Top bar: brand + nav columns */
.sg-footer__top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-4);
}

.sg-footer__logo {
  display: block;
  height: 36px;
  width: auto;
}

.sg-footer__tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 244, 242, 0.55);
  margin: 0;
  max-width: 220px;
}

/* Nav columns */
.sg-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sg-space-6);
}

.sg-footer__col-title {
  font-size: 12px;
  font-weight: var(--sg-fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-white);
  margin: 0 0 var(--sg-space-4);
  line-height: 1.4;
}

.sg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sg-space-3);
}

.sg-footer__links li a {
  font-size: 14px;
  color: rgba(244, 244, 242, 0.62);
  text-decoration: none;
  transition: color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--sg-space-2);
  line-height: 1.5;
}

.sg-footer__links li a:hover {
  color: var(--sg-white);
}

/* Bottom bar */
.sg-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-space-4);
  padding: var(--sg-space-5) 0;
  flex-wrap: wrap;
}

.sg-footer__copy {
  font-size: 13px;
  color: rgba(244, 244, 242, 0.42);
  margin: 0;
}

.sg-footer__copy a {
  color: rgba(244, 244, 242, 0.62);
  text-decoration: none;
  transition: color 0.18s ease;
}

.sg-footer__copy a:hover {
  color: var(--sg-white);
}

.sg-footer__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--sg-space-2);
  font-size: 13px;
  color: rgba(244, 244, 242, 0.42);
}

.sg-footer__lang-link {
  color: rgba(244, 244, 242, 0.55);
  text-decoration: none;
  font-weight: var(--sg-fw-medium);
  transition: color 0.18s ease;
}

.sg-footer__lang-link:hover,
.sg-footer__lang-link.is-active {
  color: var(--sg-white);
}

/* =========================================================
   RTL ADJUSTMENTS (Phase 2)
   ========================================================= */

/* Arabic font override for all Phase 2 text */
html[dir="rtl"] .sg-section,
html[dir="rtl"] .sg-eyebrow,
html[dir="rtl"] .sg-section-title,
html[dir="rtl"] .sg-section-lead,
html[dir="rtl"] .sg-section-body,
html[dir="rtl"] .sg-challenge__title,
html[dir="rtl"] .sg-challenge__body,
html[dir="rtl"] .sg-feature-list,
html[dir="rtl"] .sg-ai-chip,
html[dir="rtl"] .sg-features__tab,
html[dir="rtl"] .sg-features__panel-text,
html[dir="rtl"] .sg-faq__question,
html[dir="rtl"] .sg-faq__answer,
html[dir="rtl"] .sg-footer {
  font-family: var(--sg-font-ar);
}

/* Reversed media: in RTL the logical visual/body order stays but direction flips */
html[dir="rtl"] .sg-media--reversed .sg-media__body {
  order: 1;
}

html[dir="rtl"] .sg-media--reversed .sg-media__visual {
  order: 2;
}

/* FAQ icon direction */
html[dir="rtl"] .sg-faq__question {
  text-align: right;
}

/* Workflow step arrows flip */
html[dir="rtl"] .sg-workflow-step__arrow {
  transform: scaleX(-1);
}

/* Onboarding connector arrow flips */
html[dir="rtl"] .sg-onboarding-step__connector::after {
  right: auto;
  left: -5px;
  transform: rotate(-135deg);
}

/* AI chip dot position */
html[dir="rtl"] .sg-ai-chip::before {
  margin-right: 0;
  margin-left: 6px;
}

/* Feature check alignment */
html[dir="rtl"] .sg-feature-list li {
  flex-direction: row-reverse;
  text-align: right;
}

/* Footer bottom layout */
html[dir="rtl"] .sg-footer__bottom {
  flex-direction: row-reverse;
}

html[dir="rtl"] .sg-footer__top {
  direction: rtl;
}

html[dir="rtl"] .sg-footer__tagline {
  text-align: right;
}

html[dir="rtl"] .sg-footer__links li a {
  flex-direction: row-reverse;
}

html[dir="rtl"] .sg-features__tabs {
  direction: rtl;
}

html[dir="rtl"] .sg-features__panel-body {
  direction: rtl;
}

html[dir="rtl"] .sg-media__body {
  align-items: flex-end;
}

/* =========================================================
   RESPONSIVE — Phase 2
   breakpoints: 1199, 991, 767, 575
   ========================================================= */

/* -- Large tablet and below -- */
@media (max-width: 1199.98px) {
  .sg-features__panel-body {
    gap: clamp(24px, 3.5vw, 48px);
  }

  .sg-footer__top {
    grid-template-columns: 220px 1fr;
  }
}

/* -- Tablet / 991 -- */
@media (max-width: 991.98px) {
  /* Media layouts stack */
  .sg-media,
  .sg-media--reversed {
    grid-template-columns: 1fr;
    gap: var(--sg-space-7);
  }

  .sg-media--reversed .sg-media__body,
  .sg-media--reversed .sg-media__visual {
    order: unset;
  }

  /* In RTL, also reset order on tablet */
  html[dir="rtl"] .sg-media--reversed .sg-media__body,
  html[dir="rtl"] .sg-media--reversed .sg-media__visual {
    order: unset;
  }

  .sg-media__body {
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .sg-media__body {
    align-items: center;
  }

  .sg-media__body .sg-btn {
    align-self: center;
  }

  .sg-feature-list {
    max-width: 460px;
    text-align: left;
  }

  html[dir="rtl"] .sg-feature-list {
    text-align: right;
  }

  /* Feature-list centering on stacked layout */
  .sg-media__body .sg-feature-list {
    align-self: center;
  }

  /* Features panel stacks */
  .sg-features__panel-body {
    grid-template-columns: 1fr;
    gap: var(--sg-space-6);
  }

  .sg-features__panel-text {
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .sg-features__panel-text {
    align-items: center;
    text-align: center;
  }

  /* Footer top stacks */
  .sg-footer__top {
    grid-template-columns: 1fr;
    gap: var(--sg-space-7);
  }

  .sg-footer__brand {
    align-items: center;
    text-align: center;
  }

  .sg-footer__tagline {
    max-width: 300px;
    text-align: center;
  }

  .sg-footer__nav {
    justify-content: center;
    text-align: center;
  }

  .sg-footer__links li a {
    justify-content: center;
  }

  /* Onboarding steps wrap */
  .sg-onboarding-step__connector {
    display: none;
  }

  .sg-onboarding-steps {
    gap: var(--sg-space-4);
  }
}

/* -- Mobile / 767 -- */
@media (max-width: 767.98px) {
  /* Challenges single column */
  .sg-challenges-grid {
    grid-template-columns: 1fr;
    gap: var(--sg-space-4);
  }

  /* Comms grid single column */
  .sg-comms-grid {
    grid-template-columns: 1fr;
  }

  /* Comms visuals single column */
  .sg-comms-visuals {
    grid-template-columns: 1fr;
    gap: var(--sg-space-4);
  }

  /* Workflow steps tighten */
  .sg-workflow-steps {
    gap: var(--sg-space-2);
  }

  .sg-workflow-step__arrow {
    padding: 0 6px;
    font-size: 15px;
  }

  /* Pricing trust column layout */
  .sg-pricing-trust {
    gap: var(--sg-space-4) var(--sg-space-5);
  }

  /* Pricing actions column */
  .sg-pricing-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

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

  /* Final CTA actions */
  .sg-final-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .sg-final-cta__actions .sg-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* FAQ */
  .sg-faq__question {
    font-size: 15px;
    padding: var(--sg-space-4) 0;
  }

  /* Footer bottom stack */
  .sg-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sg-space-3);
  }

  html[dir="rtl"] .sg-footer__bottom {
    flex-direction: column;
  }

  /* Onboarding visual constrain */
  .sg-onboarding-visual img {
    border-radius: var(--sg-radius-md);
  }
}

/* -- Small / 575 -- */
@media (max-width: 575.98px) {
  /* Workflow step pills shrink */
  .sg-workflow-step__pill {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Features tabs wrap and shrink */
  .sg-features__tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Section header tighten */
  .sg-section-header {
    margin-bottom: var(--sg-space-7);
  }

  /* Onboarding number circles */
  .sg-onboarding-step__number {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  /* Challenge cards */
  .sg-challenge {
    padding: var(--sg-space-5) var(--sg-space-4);
  }

  /* Comms cards */
  .sg-comms-feature {
    padding: var(--sg-space-4);
  }

  /* Footer nav columns 2-col on small */
  .sg-footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer lang stays centred */
  .sg-footer__lang {
    justify-content: center;
  }
}
