/* Base — Landing page */

:root {
  --safe-primary: #16294D;
  --safe-primary-600: #112038;
  --safe-primary-700: #0C1729;
  --safe-primary-100: #D6DCE6;
  --safe-primary-050: #EEF1F6;
  --safe-accent: #C0A050;
  --safe-accent-700: #9A7E38;
  --safe-ink: #16294D;
  --safe-body: #33415C;
  --safe-muted: #7A879C;
  --safe-surface: #FFFFFF;
  --safe-bg: #F6F8FB;
  --safe-border: rgba(22, 41, 77, 0.12);
  /* Form error palette — one red, tuned for AA contrast on the light surfaces. */
  --safe-danger: #D14343;
  --safe-danger-ink: #B02A2A;
  --safe-danger-50: #FEF6F6;
  --safe-danger-ring: rgba(209, 67, 67, 0.16);
  --safe-danger-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 5a1.1 1.1 0 0 1 1.1 1.1v5a1.1 1.1 0 0 1-2.2 0v-5A1.1 1.1 0 0 1 12 7Zm0 9.2a1.3 1.3 0 1 1 0 2.6 1.3 1.3 0 0 1 0-2.6Z'/%3E%3C/svg%3E");
  --safe-shadow-sm: 0 4px 16px rgba(22, 41, 77, 0.06);
  --safe-shadow-md: 0 18px 45px rgba(22, 41, 77, 0.12);
  --safe-shadow-brand: 0 14px 40px rgba(22, 41, 77, 0.30);
  --safe-radius: 18px;
  --safe-radius-lg: 28px;
  --safe-font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1320px;
  --header-h: 72px;
}

html[lang="en"] {
  --safe-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--safe-font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--safe-body);
  background: var(--safe-bg);
  -webkit-font-smoothing: antialiased;
  /* prevent transforms (spinning phone, tilts) from creating a horizontal scrollbar */
  overflow-x: clip;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  /* small side gutters */
  padding-inline: clamp(14px, 2vw, 22px);
}

.section {
  padding-block: clamp(40px, 5vw, 72px);
}

.section--alt {
  background: var(--safe-primary-050);
}

.section__eyebrow {
  display: inline-block;
  margin-block-end: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--safe-primary-700);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--safe-ink);
}

.section__lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--safe-body);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.site-nav a:focus-visible,
.lang-switch__opt:focus-visible,
.site-header__menu-toggle:focus-visible {
  outline: 2px solid var(--safe-primary-600);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--safe-primary-600);
  color: #fff;
  box-shadow: var(--safe-shadow-brand);
}

.btn-primary:hover {
  background: var(--safe-primary-700);
}

.btn-ghost {
  background: transparent;
  border-color: var(--safe-primary-600);
  color: var(--safe-primary-700);
}

.btn-ghost:hover {
  background: var(--safe-primary-100);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 168px;
  padding: 0.7rem 1.15rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  text-align: start;
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-store__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.95;
}

.btn-store__text small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.88;
  line-height: 1.3;
}

.btn-store__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

/* solid store button — for light backgrounds (hero) */
.btn-store--solid {
  background: var(--safe-ink);
  border-color: var(--safe-ink);
  color: #fff;
  backdrop-filter: none;
  box-shadow: var(--safe-shadow-sm);
}

.btn-store--solid:hover {
  background: var(--safe-primary-700);
  border-color: var(--safe-primary-700);
}

/* Header */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-block-end: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--safe-shadow-sm);
  border-block-end-color: var(--safe-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
}
.site-header__logo img {
  /* the source logo is a square with wide empty margins — crop them so the
     mark reads large & crisp in the bar instead of a tiny floating emblem */
  height: 50px;
  width: 156px;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  font-weight: 600;
  color: var(--safe-ink);
  transition: color 0.2s ease;
  padding-block: 0.35rem;
}

.site-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -4px;
  height: 2px;
  border-radius: 999px;
  background: var(--safe-primary-600);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--safe-primary-700);
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--safe-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--safe-shadow-sm);
}

.lang-switch--mobile {
  align-self: flex-start;
  margin-block-end: 0.5rem;
}

.lang-switch__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--safe-primary-700);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__opt:hover {
  color: var(--safe-accent-700);
}

.lang-switch__opt.is-active {
  background: linear-gradient(135deg, var(--safe-accent), var(--safe-accent-700));
  color: #fff;
  box-shadow: 0 4px 12px rgba(192, 160, 80, 0.35);
}

.lang-switch__sep {
  color: var(--safe-border);
  font-size: 0.75rem;
  user-select: none;
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.site-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--safe-border);
  border-radius: 12px;
  background: var(--safe-surface);
  color: var(--safe-ink);
  cursor: pointer;
}

.site-header__mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
  padding-inline: clamp(16px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.98);
  border-block-start: 1px solid var(--safe-border);
  box-shadow: var(--safe-shadow-sm);
}

.site-header__mobile-nav > .site-header__mobile-nav-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-header__mobile-nav.is-open .site-header__mobile-nav-inner {
  padding-block: 1rem 1.25rem;
}

.site-header__mobile-nav.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.site-header__mobile-nav .lang-switch,
.site-header__mobile-nav a,
.site-header__mobile-nav .btn {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-header__mobile-nav.is-open .lang-switch,
.site-header__mobile-nav.is-open a,
.site-header__mobile-nav.is-open .btn {
  opacity: 1;
  transform: translateY(0);
}

body.is-menu-open {
  overflow: hidden;
}

.site-header__mobile-nav a {
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--safe-ink);
  border-block-end: 1px solid var(--safe-border);
}

@media (min-width: 900px) {
  .site-nav,
  .site-header__actions {
    display: flex;
  }

  .site-header__menu-toggle {
    display: none;
  }

  .site-header__mobile-nav {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .site-header__mobile-nav {
    display: grid;
  }
}

/* Hero */
.hero {
  padding-block-start: calc(var(--header-h) + clamp(16px, 3vw, 40px));
  padding-block-end: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--safe-primary-050), transparent 55%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__content {
  max-width: 36rem;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--safe-ink);
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--safe-body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-block-end: 1.25rem;
}

.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--safe-muted);
}

.hero__trust::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--safe-primary-600);
}

.hero__visual {
  position: relative;
  isolation: isolate;
}

.hero__blob {
  position: absolute;
  inset: 6% -10% -12% 16%;
  z-index: -1;
  border-radius: 50%;
  /* golden aura glowing behind the device — the "piece of imagination" halo */
  background: radial-gradient(circle, rgba(192, 160, 80, 0.28), transparent 70%);
  filter: blur(40px);
  animation: auraPulse 6s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--safe-radius-lg);
  overflow: hidden;
  box-shadow: var(--safe-shadow-md);
  border: 1px solid var(--safe-border);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--safe-surface);
  box-shadow: var(--safe-shadow-sm);
  border: 1px solid var(--safe-border);
}

.hero__chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hero__chip--phone {
  inset-block-start: 12%;
  inset-inline-start: -4%;
}

.hero__chip--card {
  inset-block-end: 14%;
  inset-inline-end: -4%;
}

.hero-entrance .hero__eyebrow,
.hero-entrance .hero__title,
.hero-entrance .hero__subtitle,
.hero-entrance .hero__actions,
.hero-entrance .hero__trust {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.65s ease forwards;
}

.hero-entrance .hero__title { animation-delay: 0.08s; }
.hero-entrance .hero__subtitle { animation-delay: 0.16s; }
.hero-entrance .hero__actions { animation-delay: 0.24s; }
.hero-entrance .hero__trust { animation-delay: 0.32s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 899px) {
  .hero__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(16, 42, 34, 0.15), rgba(16, 42, 34, 0.05));
    pointer-events: none;
  }
}

/* About */
.about__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.about__visual {
  /* drop the illustration down so it lines up opposite the feature cards */
  align-self: end;
  transform: translateY(56px);
}

.about__features {
  display: grid;
  gap: 1rem;
  margin-block-start: 2rem;
}

.feature-card {
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--safe-surface);
  border: 1px solid var(--safe-border);
  border-radius: var(--safe-radius);
  box-shadow: var(--safe-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--safe-shadow-md);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-block-end: 0.875rem;
  border-radius: 14px;
  background: var(--safe-primary-100);
}

.feature-card__icon img,
.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--safe-ink);
}

.feature-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--safe-muted);
}

.about__visual .hero__frame {
  aspect-ratio: 16 / 11;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

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

@media (max-width: 899px) {
  .about__visual {
    transform: none;
  }
}

/* How it works */
.how__steps {
  /* mobile: vertical stack with down-arrows; desktop: one regular row with arrows between */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-block-start: 2.5rem;
  position: relative;
  list-style: none;
  padding: 0;
  padding-block-start: 24px;
}

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.85rem 1.25rem 1.35rem;
  background: var(--safe-surface);
  border: 1px solid var(--safe-border);
  border-radius: var(--safe-radius);
  box-shadow: var(--safe-shadow-sm);
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.how-step::before {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(to inline-end, var(--safe-primary), var(--safe-primary-700));
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform 0.35s ease;
  border-radius: 0 0 var(--safe-radius) var(--safe-radius);
}

.how-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--safe-shadow-md), 0 0 0 1px rgba(192, 160, 80, 0.5), 0 18px 40px rgba(192, 160, 80, 0.2);
  border-color: rgba(192, 160, 80, 0.55);
}

.how-step:hover::before {
  transform: scaleX(1);
}

.how-step__badge {
  position: absolute;
  inset-block-start: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 3px solid var(--safe-bg);
  background: linear-gradient(135deg, var(--safe-accent), var(--safe-accent-700));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(192, 160, 80, 0.45);
  z-index: 2;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(192, 160, 80, 0.45), 0 0 0 0 rgba(192, 160, 80, 0.5); }
  50% { box-shadow: 0 8px 20px rgba(192, 160, 80, 0.55), 0 0 0 7px rgba(192, 160, 80, 0); }
}

.how-step__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-start: 0.15rem;
  border-radius: 16px;
  background: var(--safe-primary-100);
  color: var(--safe-primary-700);
}

.how-step__icon svg {
  width: 26px;
  height: 26px;
}

.how-step__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--safe-ink);
}

.how-step__desc {
  margin: 0;
  color: var(--safe-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* connector arrows between steps */
.how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--safe-primary-600);
}
.how-arrow svg {
  display: block;
  transform: rotate(90deg); /* mobile (column): point downward */
  animation: arrowPulse 1.8s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (min-width: 900px) {
  .how__steps {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
  }
  /* every step shares the row equally → regular shape for any count (3, 4, 5…) */
  .how-step {
    flex: 1 1 0;
    min-width: 0;
  }
  .how-arrow { align-self: center; }
  /* arrow points along the reading direction */
  .how-arrow svg { transform: scaleX(-1); }          /* RTL → point left */
  [dir="ltr"] .how-arrow svg { transform: none; }     /* LTR → point right */
}

@media (max-width: 899px) {
  .how__steps {
    padding-block-start: 16px;
  }
  .how-step__badge {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
  }
}

/* Footer */
.site-footer {
  position: relative;
  padding-block: 0 1.75rem;
  background: linear-gradient(180deg, #0a1526 0%, var(--safe-ink) 100%);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.site-footer__accent {
  height: 4px;
  background: linear-gradient(to left, var(--safe-primary), var(--safe-accent));
}

.site-footer__main {
  display: grid;
  gap: 2rem 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__brand {
  max-width: 22rem;
}

.site-footer__logo {
  display: inline-flex;
}

.site-footer__logo img {
  height: 46px;
  width: 150px;
  object-fit: cover;
  object-position: center;
  background: #fff;
  border-radius: 12px;
  filter: none;
  opacity: 1;
}

.site-footer__tagline {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--safe-accent);
}

.site-footer__list {
  display: grid;
  gap: 0.65rem;
}

.site-footer__list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease, padding 0.2s ease;
}

.site-footer__list a:hover {
  color: #fff;
  padding-inline-start: 0.25rem;
}

.site-footer__col--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__cta-text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__cta {
  box-shadow: 0 10px 28px rgba(192, 160, 80, 0.32);
}

.site-footer__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-footer__stores .btn-store { min-width: 0; flex: 1 1 160px; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1.25rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .site-footer__main {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    align-items: start;
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 200;
  transform: scaleX(var(--p, 0));
  transform-origin: inline-start;
  background: linear-gradient(to left, var(--safe-primary), var(--safe-accent));
  will-change: transform;
}

/* Hero animated background */
.hero {
  position: relative;
  /* room below the podium so the stats card sits clear of it (no overlap) */
  padding-block-end: clamp(32px, 5vw, 60px);
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

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

.hero__orb--1 {
  width: 440px;
  height: 440px;
  inset-block-start: -140px;
  inset-inline-start: -90px;
  background: radial-gradient(circle, rgba(22, 41, 77, 0.45), transparent 70%);
  animation: orbDrift 18s ease-in-out infinite;
}

.hero__orb--2 {
  width: 380px;
  height: 380px;
  inset-block-end: -120px;
  inset-inline-end: -70px;
  background: radial-gradient(circle, rgba(192, 160, 80, 0.35), transparent 70%);
  animation: orbDrift 23s ease-in-out infinite reverse;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 41, 77, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(22, 41, 77, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 72% 18%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 72% 18%, #000, transparent 70%);
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 32px) scale(1.06); }
}

/* Animated gradient accent in the hero headline */
.hero__title-accent {
  color: var(--safe-accent-700);
  font-weight: 900;
}

@keyframes shimmerText {
  to { background-position: 220% center; }
}

/* Phone presented on a rounded stand, angled toward the viewer */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1500px;
}
.phone-stage__tilt {
  position: relative;
  z-index: 2;
  transform: rotateY(-15deg) rotateX(6deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  animation: floatTilt 6s ease-in-out infinite;
  will-change: transform;
}
.phone-stage__stand {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.phone-stage__disc {
  width: 64%;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, rgba(192, 160, 80, 0.4), rgba(192, 160, 80, 0.12) 58%, transparent 75%);
  transform: rotateX(62deg);
}
.phone-stage__disc--light {
  background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14) 58%, transparent 75%);
}
.phone-stage__shadow {
  position: absolute;
  inset-block-end: -6px;
  width: 52%;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 42, 34, 0.22);
  filter: blur(15px);
}

@keyframes floatTilt {
  0%, 100% { transform: rotateY(-15deg) rotateX(6deg) rotateZ(-1.5deg) translateY(0); }
  50% { transform: rotateY(-15deg) rotateX(6deg) rotateZ(-1.5deg) translateY(-12px); }
}

[dir="ltr"] .phone-stage__tilt {
  transform: rotateY(15deg) rotateX(6deg) rotateZ(1.5deg);
  animation-name: floatTiltLtr;
}

@keyframes floatTiltLtr {
  0%, 100% { transform: rotateY(15deg) rotateX(6deg) rotateZ(1.5deg) translateY(0); }
  50% { transform: rotateY(15deg) rotateX(6deg) rotateZ(1.5deg) translateY(-12px); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Phone standing on a glowing podium (hero) ===== */
.phone-stage--podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1700px;
}
.phone-stage--podium .phone-stage__tilt {
  /* span the column so the centered phone (margin-inline:auto) lines up with the centered podium */
  width: 100%;
  margin-block-end: -18px;
  z-index: 3;
  /* upright on the podium (slight tilt for podium perspective) */
  transform: rotateX(6deg);
  /* drop onto the podium once on load, then float gently — no continuous spin */
  animation: phoneDropPodium 1.2s cubic-bezier(0.2, 0.85, 0.3, 1) both,
             floatTiltPodium 6s ease-in-out 1.2s infinite;
}
@keyframes floatTiltPodium {
  0%, 100% { transform: rotateX(6deg) translateY(0); }
  50% { transform: rotateX(6deg) translateY(-6px); }
}
/* phone falls in from above and settles upright on the podium */
@keyframes phoneDropPodium {
  0%   { transform: rotateX(6deg) translateY(-200%); opacity: 0; }
  55%  { opacity: 1; }
  78%  { transform: rotateX(6deg) translateY(10px); }
  100% { transform: rotateX(6deg) translateY(0); }
}
/* device stays straight, then does ONE quick full spin every 15s */
.app-mock.app-mock--hero {
  width: min(232px, 56%);
  /* 18s = one full screen-cycle; the phone breathes while browsing,
     then spins around itself exactly when the reel loops back to screen 1 */
  animation: phoneSpin 18s ease-in-out infinite;
}
@keyframes phoneSpin {
  0%   { transform: rotateY(0deg) translateY(0); }
  23%  { transform: rotateY(0deg) translateY(-7px); }
  46%  { transform: rotateY(0deg) translateY(0); }
  69%  { transform: rotateY(0deg) translateY(-7px); }
  90%  { transform: rotateY(0deg) translateY(0); }
  100% { transform: rotateY(360deg) translateY(0); }
}

.phone-podium {
  position: relative;
  z-index: 1;
  width: min(286px, 74%);
  height: 88px;
  /* phone now stands upright & centered → no horizontal shift needed */
  filter: drop-shadow(0 30px 30px rgba(16, 42, 34, 0.38));
}
.phone-podium > span {
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
  display: block;
}
.phone-podium__body {
  inset-block-start: 28px;
  width: 100%;
  height: 110px;
  border-radius: 50% / 38px;
  background: linear-gradient(180deg, #1b2d4d 0%, #0c1729 55%, #050b18 100%);
}
.phone-podium__top {
  inset-block-start: 0;
  width: 100%;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(192, 160, 80, 0.32), transparent 55%),
    radial-gradient(ellipse at 50% 42%, #23375e 0%, #0d1a30 72%);
  box-shadow: inset 0 7px 18px rgba(0, 0, 0, 0.45);
}
.phone-podium__ring {
  inset-block-end: 31px;
  width: 92%;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 2%, var(--safe-accent) 18%, #ffe9b0 50%, var(--safe-accent) 82%, transparent 98%);
  box-shadow:
    0 0 22px rgba(192, 160, 80, 0.95),
    0 0 48px rgba(192, 160, 80, 0.7),
    0 0 84px rgba(192, 160, 80, 0.4);
  animation: ringPulse 3.2s ease-in-out infinite;
}
.phone-podium__glow {
  inset-block-end: 8px;
  width: 82%;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(192, 160, 80, 0.55), transparent 70%);
  filter: blur(9px);
  animation: ringPulse 3.2s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

.hero__chip--phone { animation: floatY 5s ease-in-out infinite; }
.hero__chip--card { animation: floatY 7s ease-in-out infinite 0.5s; }

/* ===== App phone mockup (3D device with real thickness) ===== */
.app-mock {
  position: relative;
  width: min(300px, 82%);
  margin-inline: auto;
  aspect-ratio: 300 / 600;
  padding: 13px;
  border-radius: 46px;
  transform-style: preserve-3d;
  /* metallic titanium frame — light catches the top-left edge */
  background: linear-gradient(145deg, #2a4a3e 0%, #16342b 22%, #0a1c16 55%, #06120e 80%, #1c3a30 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.10),
    inset 0 3px 5px rgba(255, 255, 255, 0.12),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    0 38px 70px rgba(16, 42, 34, 0.4);
}

/* extruded back-body → gives the phone visible thickness when angled */
.app-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(145deg, #0c221b 0%, #06120e 60%, #030a07 100%);
  transform: translateZ(-20px);
  box-shadow:
    0 0 0 1px #030a07,
    0 26px 50px rgba(0, 0, 0, 0.5);
}

/* inner bezel so the screen sits recessed inside the frame */
.app-mock__screen {
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.45), 0 0 0 2px #081511;
}

/* side buttons */
.app-mock__btn {
  position: absolute;
  z-index: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, #29473b, #0a1c16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transform: translateZ(-8px);
}
.app-mock__btn--power { inset-inline-end: -3px; inset-block-start: 30%; width: 3px; height: 58px; }
.app-mock__btn--vol-up { inset-inline-start: -3px; inset-block-start: 22%; width: 3px; height: 40px; }
.app-mock__btn--vol-down { inset-inline-start: -3px; inset-block-start: 33%; width: 3px; height: 40px; }
.app-mock__btn--mute { inset-inline-start: -3px; inset-block-start: 15%; width: 3px; height: 22px; }

.app-mock--download { width: min(240px, 80%); }

.app-mock__notch {
  position: absolute;
  inset-block-start: 12px;
  inset-inline: 0;
  margin-inline: auto;
  width: 120px;
  height: 22px;
  background: #0c221b;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.app-mock__screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 12px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f3faf6);
  font-size: 11px;
}

.app-mock__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--safe-ink);
}

.app-mock__statusbar-icons { display: inline-flex; gap: 3px; }
.app-mock__statusbar-icons i { width: 6px; height: 6px; border-radius: 2px; background: var(--safe-ink); opacity: 0.5; }

.app-mock__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.app-mock__brand { font-size: 15px; font-weight: 800; color: var(--safe-primary-700); }
.app-mock__avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--safe-primary), var(--safe-primary-700)); }

.app-mock__balance {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--safe-primary-600), var(--safe-primary-700));
  box-shadow: 0 10px 24px rgba(63, 154, 120, 0.35);
}

.app-mock__balance-label { font-size: 10px; opacity: 0.9; }
.app-mock__balance-value { font-size: 28px; font-weight: 800; line-height: 1; }
.app-mock__balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-block-start: 5px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.app-mock__dot { width: 6px; height: 6px; border-radius: 50%; background: #aeffd6; animation: pulseDot 2s infinite; }
.app-mock__balance-glow {
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
}

.app-mock__section { padding: 0 2px; font-size: 11px; font-weight: 800; color: var(--safe-ink); }

.app-mock__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--safe-border);
  border-radius: 12px;
  box-shadow: var(--safe-shadow-sm);
}

.app-mock__item-icon { position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; background: var(--safe-primary-100); }
.app-mock__item-icon::after { content: ''; position: absolute; inset: 7px; border-radius: 4px; border: 2px solid var(--safe-primary-700); }
.app-mock__item-body { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.app-mock__item-title { font-size: 11px; font-weight: 700; color: var(--safe-ink); }
.app-mock__item-sub { font-size: 9px; color: var(--safe-muted); }
.app-mock__pill { padding: 3px 7px; font-size: 8px; font-weight: 700; border-radius: 999px; white-space: nowrap; }
.app-mock__pill.is-active { background: var(--safe-primary-100); color: var(--safe-primary-700); }
.app-mock__pill.is-scheduled { background: #fdf1dd; color: var(--safe-accent-700); }

.app-mock__nav {
  margin-block-start: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 6px 2px;
  border-block-start: 1px solid var(--safe-border);
}
/* (legacy pill-bar nav removed — the animated nav tabs are styled at the end of this file) */

/* moving sheen across the device */
.app-mock::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 46px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  background-size: 260% 260%;
  animation: sheen 5.5s ease-in-out infinite;
}

@keyframes sheen {
  0% { background-position: 160% 0; }
  100% { background-position: -160% 0; }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(174, 255, 214, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(174, 255, 214, 0); }
  100% { box-shadow: 0 0 0 0 rgba(174, 255, 214, 0); }
}

/* ===== About illustration ===== */
.about-illu {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.about-illu::before {
  content: '';
  position: absolute;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 160, 80, 0.3), transparent 70%);
}
.about-illu__ring { position: absolute; border-radius: 50%; }
.about-illu__ring--1 { width: 78%; height: 78%; border: 1.5px dashed rgba(192, 160, 80, 0.45); animation: spin 26s linear infinite; }
.about-illu__ring--2 { width: 100%; height: 100%; border: 1.5px solid rgba(22, 41, 77, 0.16); animation: spin 42s linear infinite reverse; }

.about-illu__shield { position: relative; z-index: 2; width: 42%; filter: drop-shadow(0 18px 30px rgba(192, 160, 80, 0.4)); animation: floatY 6s ease-in-out infinite; }
.about-illu__shield svg { width: 100%; height: auto; display: block; }

.about-illu__doc {
  position: absolute;
  width: 32%;
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid var(--safe-border);
  border-radius: 10px;
  box-shadow: var(--safe-shadow-md);
}
.about-illu__doc--back { transform: rotate(-12deg) translate(-34%, 10%); opacity: 0.7; }
.about-illu__doc--mid { display: flex; flex-direction: column; gap: 6px; padding: 12px; transform: rotate(9deg) translate(36%, -4%); }
.about-illu__doc--mid span { height: 5px; border-radius: 999px; background: var(--safe-primary-100); }
.about-illu__doc--mid span:nth-child(2) { width: 70%; }
.about-illu__doc--mid span:nth-child(3) { width: 48%; }

.about-illu__chip {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--safe-shadow-md);
}
.about-illu__chip--key { inset-block-start: 16%; inset-inline-start: 9%; animation: floatY 5s ease-in-out infinite; }
.about-illu__chip--card { inset-block-end: 16%; inset-inline-end: 9%; animation: floatY 7s ease-in-out infinite 0.4s; }

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

/* ===== Stats strip ===== */
.stats {
  position: relative;
  z-index: 5;
  /* sits just below the hero — small gap, no overlap with the podium */
  margin-block-start: clamp(8px, 2vw, 16px);
  /* breathing room so the white card floats clear of the tinted section below */
  margin-block-end: clamp(8px, 2vw, 16px);
}

.stats__card {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: clamp(0.25rem, 0.8vw, 0.45rem);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(95, 181, 148, 0.22);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(16, 42, 34, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(16, 42, 34, 0.16);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stat {
  position: relative;
  padding: clamp(0.8rem, 1.6vw, 1.1rem) 0.85rem;
  text-align: center;
}

.stat:not(:first-child)::before {
  content: '';
  position: absolute;
  inset-block: 28%;
  inset-inline-start: 0;
  width: 1px;
  background: var(--safe-border);
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-inline: auto;
  margin-block-end: 0.55rem;
  border-radius: 12px;
  background: var(--safe-primary-100);
  color: var(--safe-primary-700);
  transition: transform 0.25s ease;
}

.stat__icon svg {
  width: 20px;
  height: 20px;
}

.stats__card:hover .stat__icon {
  transform: translateY(-2px);
}

.stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--safe-primary-700);
}

.stat__suffix { font-size: 0.65em; }
.stat__label { margin-block-start: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--safe-muted); }

@media (min-width: 760px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }

  .stat:nth-child(odd)::after {
    content: none;
  }
}

@media (max-width: 759px) {
  .stat:nth-child(odd)::before {
    display: none;
  }

  .stat:nth-child(n+3) {
    border-block-start: 1px solid var(--safe-border);
  }

  .stat:nth-child(even)::before {
    display: block;
  }
}

/* Feature card hover shine */
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(to left, var(--safe-primary), var(--safe-primary-700));
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform 0.3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card__icon { transition: transform 0.25s ease; }
.feature-card:hover .feature-card__icon { transform: scale(1.08) rotate(-4deg); }

/* ===== Legal / content pages (privacy, terms) ===== */
.legal {
  padding-block-start: var(--header-h);
  min-height: 72vh;
  background: var(--safe-bg);
}
.legal__hero {
  padding-block: clamp(2.25rem, 6vw, 3.75rem);
  background: linear-gradient(180deg, var(--safe-primary-050), transparent);
  border-block-end: 1px solid var(--safe-border);
}
.legal__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-block-end: 1rem;
  font-size: 0.875rem;
  color: var(--safe-muted);
}
.legal__breadcrumb a {
  color: var(--safe-primary-700);
  font-weight: 600;
}
.legal__breadcrumb a:hover {
  text-decoration: underline;
}
.legal__breadcrumb-sep {
  opacity: 0.5;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-end: 1rem;
  font-weight: 700;
  color: var(--safe-primary-700);
  transition: color 0.2s ease, gap 0.2s ease;
}
.legal__back svg { transform: scaleX(-1); }
[dir="ltr"] .legal__back svg { transform: none; }
.legal__back:hover { color: var(--safe-primary-600); gap: 0.75rem; }
.legal__title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--safe-ink);
}
.legal__updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--safe-primary-100);
  color: var(--safe-primary-700);
  font-size: 0.875rem;
  font-weight: 600;
}
.legal__layout {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2rem, 5vw, 3rem);
}
.legal__main {
  min-width: 0;
  width: 100%;
}
.legal__card {
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--safe-surface);
  border: 1px solid var(--safe-border);
  border-radius: var(--safe-radius-lg);
  box-shadow: var(--safe-shadow-sm);
}
.legal__content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--safe-body);
}
.legal__empty {
  margin: 0;
  text-align: center;
  color: var(--safe-muted);
}
.legal__content h1,
.legal__content h2,
.legal__content h3 { margin-block: 1.75rem 0.6rem; font-weight: 800; color: var(--safe-ink); line-height: 1.4; }
.legal__content h2 { font-size: 1.4rem; }
.legal__content h3 { font-size: 1.15rem; }
.legal__content p { margin-block: 0 1rem; }
.legal__content ul,
.legal__content ol { margin-block: 0 1rem; padding-inline-start: 1.5rem; }
.legal__content li { margin-block-end: 0.5rem; }
.legal__content li::marker { color: var(--safe-primary-700); }
.legal__content a { color: var(--safe-primary-700); text-decoration: underline; }
.legal__content img { border-radius: var(--safe-radius); }
.legal__content blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--safe-primary-600);
  background: var(--safe-primary-050);
  border-radius: 0 var(--safe-radius) var(--safe-radius) 0;
}
.legal__content hr {
  margin: 1.75rem 0;
  border: 0;
  border-block-start: 1px solid var(--safe-border);
}
.legal__content table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.25rem;
  font-size: 0.95rem;
}
.legal__content th,
.legal__content td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--safe-border);
  text-align: start;
}
.legal__content th {
  background: var(--safe-primary-050);
  color: var(--safe-ink);
}
.legal__related {
  max-width: 52rem;
  margin-inline: auto;
  margin-block-start: 1.5rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--safe-border);
}
.legal__related-heading {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--safe-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal__related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.legal__related-links a {
  font-weight: 700;
  color: var(--safe-primary-700);
}
.legal__related-links a:hover {
  text-decoration: underline;
}
.legal__toc {
  display: none;
}
.legal__top {
  position: fixed;
  inset-inline-end: clamp(16px, 3vw, 28px);
  inset-block-end: 28px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--safe-border);
  border-radius: 999px;
  background: var(--safe-surface);
  color: var(--safe-primary-700);
  box-shadow: var(--safe-shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.legal__top:hover {
  transform: translateY(-2px);
}
.legal__top[hidden] {
  display: none;
}
@media (min-width: 1100px) {
  .legal__layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .legal__layout--with-toc {
    grid-template-columns: 220px minmax(0, 1fr);
    justify-items: stretch;
    align-items: start;
  }

  .legal__layout--with-toc .legal__main {
    justify-self: stretch;
  }

  .legal__toc {
    display: block;
    position: sticky;
    inset-block-start: calc(var(--header-h) + 1.5rem);
    padding: 1rem;
    border: 1px solid var(--safe-border);
    border-radius: var(--safe-radius);
    background: var(--safe-surface);
    box-shadow: var(--safe-shadow-sm);
  }
  .legal__toc[hidden] {
    display: none;
  }
  .legal__toc-heading {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--safe-ink);
  }
  .legal__toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .legal__toc-nav a {
    font-size: 0.875rem;
    color: var(--safe-muted);
    line-height: 1.45;
  }
  .legal__toc-nav a:hover,
  .legal__toc-nav a.is-active {
    color: var(--safe-primary-700);
    font-weight: 700;
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero-entrance .hero__eyebrow,
  .hero-entrance .hero__title,
  .hero-entrance .hero__subtitle,
  .hero-entrance .hero__actions,
  .hero-entrance .hero__trust {
    opacity: 1 !important;
    transform: none !important;
  }

  .how-arrow svg {
    opacity: 1 !important;
  }
}

/* CKEditor-authored content: neutralize default <p> margins inside rich fields */
.hero__subtitle p,
.section__lead p,
.site-footer__tagline p { margin: 0; }
.hero__subtitle p + p,
.section__lead p + p,
.site-footer__tagline p + p { margin-block-start: 0.6em; }
.hero__subtitle ul, .hero__subtitle ol,
.section__lead ul, .section__lead ol { margin: 0.5em 0; padding-inline-start: 1.4em; }

/* ===== Success partners (logos marquee) ===== */
.partners { text-align: center; }
.partners .section__eyebrow,
.partners .section__title { margin-inline: auto; }
.partners .section__title { margin-block-end: 0; }

.partners__marquee {
  position: relative;
  margin-block-start: clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.partners__track {
  display: inline-flex;
  align-items: center;
  /* no flex `gap`: spacing lives on the items so the duplicated halves are
     evenly spaced and translateX(-50%) loops seamlessly (no mid-gap jump) */
  width: max-content;
  animation: partnersMarquee 32s linear infinite;
}
.partners__marquee:hover .partners__track { animation-play-state: paused; }
.partners__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: clamp(1rem, 2.5vw, 2rem);
  height: 48px;
  opacity: 0.65;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.partners__item:hover { opacity: 1; filter: grayscale(0); }
.partners__item img,
.partners__item svg { max-height: 40px; width: auto; }
.partners__name {
  font-family: var(--font-display, var(--safe-font));
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--safe-ink);
  white-space: nowrap;
  letter-spacing: 0.5px;
}
@keyframes partnersMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== FAQ + contact (single merged panel) ===== */
.faq__head { text-align: center; }
.faq__head .section__eyebrow,
.faq__head .section__title { margin-inline: auto; }

.faq__panel {
  margin-block-start: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--safe-surface);
  border: 1px solid var(--safe-border);
  border-radius: var(--safe-radius-lg);
  box-shadow: var(--safe-shadow-md);
  overflow: hidden;
  display: grid;
}
@media (min-width: 900px) {
  .faq__panel { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .faq__form-side { border-inline-start: 1px solid var(--safe-border); }
}

.faq__questions { padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1.1rem, 2.5vw, 1.75rem); }

.faq__item {
  border-block-end: 1px solid var(--safe-border);
}
.faq__item:last-child { border-block-end: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--safe-ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q > span { transition: color 0.2s ease; }
.faq__item[open] .faq__q > span { color: var(--safe-primary-700); }
.faq__chevron {
  flex-shrink: 0;
  color: var(--safe-primary-700);
  transition: transform 0.25s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a {
  padding-block: 0 clamp(1rem, 2.5vw, 1.25rem);
  color: var(--safe-body);
  line-height: 1.8;
}
.faq__a p { margin: 0; }
.faq__a p + p { margin-block-start: 0.6em; }

/* contact form side of the panel */
.faq__form-side {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--safe-primary-050);
}
.faq__form-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--safe-ink);
}
.faq__form-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--safe-muted);
}
.contact-form { display: grid; gap: 0.85rem; }
.contact-form__field { display: grid; gap: 0.35rem; }
.contact-form__label { font-size: 0.85rem; font-weight: 700; color: var(--safe-ink); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--safe-ink);
  background: var(--safe-bg);
  border: 1px solid var(--safe-border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--safe-primary-600);
  box-shadow: 0 0 0 3px rgba(95, 181, 148, 0.18);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: var(--safe-danger);
  background: var(--safe-danger-50);
  box-shadow: 0 0 0 3px var(--safe-danger-ring);
}
.contact-form input.is-invalid:focus,
.contact-form textarea.is-invalid:focus {
  border-color: var(--safe-danger);
  box-shadow: 0 0 0 3px var(--safe-danger-ring);
}
/* The label turns with its field so the eye lands on the right row first. */
.contact-form__field:has(.is-invalid) .contact-form__label { color: var(--safe-danger-ink); }
.contact-form__submit { margin-block-start: 0.25rem; justify-self: start; }
.contact-form__submit[disabled] { opacity: 0.7; cursor: progress; }
.contact-form__error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--safe-danger-ink);
  animation: contact-error-in 0.18s ease-out;
}
/* Warning glyph drawn in CSS — no icon font needed on the landing page. */
.contact-form__error::before {
  content: '';
  flex: 0 0 auto;
  inline-size: 1rem;
  block-size: 1rem;
  margin-block-start: 0.1rem;
  background: currentColor;
  -webkit-mask: var(--safe-danger-icon) center / contain no-repeat;
  mask: var(--safe-danger-icon) center / contain no-repeat;
}
.contact-form__error:empty { display: none; }

@keyframes contact-error-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__error { animation: none; }
}

/* shared alert banner (success / error) */
.contact-form__alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-form__alert.is-success {
  background: var(--safe-primary-100);
  color: var(--safe-primary-700);
}
.contact-form__alert.is-error {
  background: var(--safe-danger-50);
  color: var(--safe-danger-ink);
  border: 1px solid var(--safe-danger-ring);
}
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; }
  .faq__chevron { transition: none; }
}

/* ============================================================= */
/* ذِمّة — animated hero phone: screen auto-cycles through app    */
/* screens (Home → Add Debt → Details → Reports) & loops forever  */
/* ============================================================= */

/* Recolor the device frame to the ذِمّة navy/gold palette (was base green) */
.app-mock {
  background: linear-gradient(145deg, #2c3f66 0%, #1b2d4d 22%, #0c1729 55%, #070f1c 80%, #26385e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.10),
    inset 0 3px 5px rgba(255, 255, 255, 0.12),
    inset 0 -3px 6px rgba(0, 0, 0, 0.55),
    0 38px 70px rgba(22, 41, 77, 0.42);
}
.app-mock::before { background: linear-gradient(145deg, #101f38 0%, #070f1c 60%, #03070f 100%); }
.app-mock__btn { background: linear-gradient(180deg, #2c3f66, #0a1424); }
.app-mock__notch { background: #0c1729; }
.app-mock__screen { gap: 6px; }

/* ---- the cycling stage ---- */
.app-mock__reel { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }

.app-mock__frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0;
  will-change: opacity, transform;
  animation: mockCycle 18s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.app-mock__frame:nth-child(1) { animation-delay: 0s; }
.app-mock__frame:nth-child(2) { animation-delay: 4.5s; }
.app-mock__frame:nth-child(3) { animation-delay: 9s; }
.app-mock__frame:nth-child(4) { animation-delay: 13.5s; }

@keyframes mockCycle {
  0%   { opacity: 0; transform: translateX(16px) scale(0.975); }
  3%   { opacity: 1; transform: translateX(0) scale(1); }
  22%  { opacity: 1; transform: translateX(0) scale(1); }
  25%  { opacity: 0; transform: translateX(-16px) scale(0.975); }
  100% { opacity: 0; }
}

/* ---- shared screen bits ---- */
.amf-top { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.amf-brand { font-size: 14px; font-weight: 800; color: var(--safe-primary-700); }
.amf-ava { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--safe-primary), var(--safe-accent)); }
.amf-h2 { font-size: 12px; font-weight: 800; color: var(--safe-ink); padding: 2px; }

/* hero balance card */
.amf-hero {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 12px;
  border-radius: 15px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--safe-primary), var(--safe-primary-700));
  box-shadow: 0 10px 22px rgba(22, 41, 77, 0.32);
}
.amf-hero-l { font-size: 9px; opacity: 0.85; }
.amf-hero-v { font-size: 24px; font-weight: 800; line-height: 1; }
.amf-hero-v small { font-size: 10px; font-weight: 700; opacity: 0.8; }
.amf-hero-glow { position: absolute; inset-block-start: -45%; inset-inline-end: -18%; width: 110px; height: 110px; background: radial-gradient(circle, rgba(192, 160, 80, 0.5), transparent 70%); }
.amf-kpis { display: flex; gap: 5px; margin-block-start: 9px; }
.amf-kpi { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 5px 6px; border-radius: 9px; font-size: 7.5px; font-weight: 700; background: rgba(255, 255, 255, 0.12); }
.amf-kpi b { font-size: 10px; font-weight: 800; }
.amf-kpi.k-due  b { color: #7ee7b8; }
.amf-kpi.k-late b { color: #ff9a9a; }
.amf-kpi.k-paid b { color: var(--safe-accent); }

/* debt rows */
.amf-rows { display: flex; flex-direction: column; gap: 6px; }
.amf-row { display: flex; align-items: center; gap: 7px; padding: 7px 8px; background: #fff; border: 1px solid var(--safe-border); border-radius: 11px; box-shadow: var(--safe-shadow-sm); }
.amf-dot { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--safe-primary-100), var(--safe-primary)); }
.amf-rl { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.amf-rl b { font-size: 10px; font-weight: 700; color: var(--safe-ink); }
.amf-rl i { font-size: 8.5px; font-style: normal; color: var(--safe-muted); }
.amf-pill { padding: 3px 7px; font-size: 8px; font-weight: 800; border-radius: 999px; white-space: nowrap; }
.amf-pill.p-due  { background: #e3f7ee; color: #0e7c5a; }
.amf-pill.p-late { background: #fde4e4; color: #c8322f; }

/* add-debt form */
.amf-seg { display: flex; gap: 5px; padding: 3px; background: var(--safe-primary-050); border-radius: 11px; }
.amf-seg span { flex: 1; text-align: center; padding: 6px; font-size: 10px; font-weight: 800; color: var(--safe-muted); border-radius: 8px; }
.amf-seg span.on { background: var(--safe-accent); color: #fff; box-shadow: 0 4px 10px rgba(192, 160, 80, 0.4); }
.amf-field { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid var(--safe-border); border-radius: 10px; }
.amf-field span { font-size: 9px; color: var(--safe-muted); }
.amf-field b { font-size: 10px; font-weight: 800; color: var(--safe-ink); }
.amf-btn { margin-block-start: auto; text-align: center; padding: 10px; font-size: 11px; font-weight: 800; color: #fff; border-radius: 12px; background: linear-gradient(135deg, var(--safe-accent), var(--safe-accent-700)); box-shadow: 0 8px 18px rgba(192, 160, 80, 0.4); }

/* details timeline */
.amf-log-t { font-size: 9px; font-weight: 800; color: var(--safe-ink); padding: 2px; margin-block-start: 2px; }
.amf-log { list-style: none; margin: 0; padding: 4px 6px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.amf-log::before { content: ''; position: absolute; inset-block: 12px 12px; inset-inline-start: 11px; width: 2px; background: var(--safe-border); }
.amf-log li { position: relative; display: flex; align-items: center; gap: 9px; font-size: 9.5px; font-weight: 700; color: var(--safe-body); padding-inline-start: 2px; }
.amf-log li span { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--safe-primary); z-index: 1; }
.amf-log li.cur { color: var(--safe-accent-700); }
.amf-log li.cur span { border-color: var(--safe-accent); background: var(--safe-accent); box-shadow: 0 0 0 4px rgba(192, 160, 80, 0.2); }

/* reports */
.amf-rep-grid { display: flex; gap: 6px; }
.amf-cell { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 8px 9px; border-radius: 11px; font-size: 8px; font-weight: 700; color: var(--safe-muted); background: #fff; border: 1px solid var(--safe-border); }
.amf-cell b { font-size: 14px; font-weight: 800; }
.amf-cell.c-due  b { color: #0e7c5a; }
.amf-cell.c-late b { color: #c8322f; }
.amf-chart-t { font-size: 9px; font-weight: 800; color: var(--safe-ink); padding: 2px; }
.amf-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 5px; height: 62px; padding: 0 2px; }
.amf-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--safe-accent), var(--safe-accent-700)); animation: barGrow 0.9s ease both; }
@keyframes barGrow { from { height: 4px; } }
.amf-rep-foot { display: flex; align-items: center; gap: 10px; margin-block-start: 2px; }
.amf-donut { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--safe-primary) 0 40%, var(--safe-accent) 40% 72%, #0e7c5a 72% 100%); -webkit-mask: radial-gradient(circle 10px at center, transparent 98%, #000 100%); mask: radial-gradient(circle 10px at center, transparent 98%, #000 100%); }
.amf-legend { display: flex; flex-direction: column; gap: 4px; }
.amf-legend i { display: block; width: 26px; height: 5px; border-radius: 999px; }
.amf-legend i:nth-child(1) { background: var(--safe-primary); }
.amf-legend i:nth-child(2) { background: var(--safe-accent); }
.amf-legend i:nth-child(3) { background: #0e7c5a; }

/* bottom nav with a gliding highlight synced to the reel */
/* padding-inline MUST be 0 so the absolute highlight (positioned against the nav's
   padding box) lines up exactly with the flex:1 tabs (each a true 20% of that box). */
.app-mock__nav { position: relative; gap: 0; padding: 7px 0 3px; justify-content: space-between; }
.app-mock__nav .amf-nav-ind {
  position: absolute;
  inset-block-start: 4px;
  inset-inline-start: 0;
  width: 20%;
  height: 26px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--safe-primary) 12%, transparent);
  animation: navMove 18s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.app-mock__nav .amf-tab { position: relative; z-index: 1; flex: 1 1 20%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 7px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--safe-muted); text-align: center; }
.app-mock__nav .amf-tab svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
/* static fallback: Home is the landing screen (reduced-motion friendly) */
.app-mock__nav .amf-tab:nth-child(2) { color: var(--safe-primary-700); }

/* the active tab lights up in sync with the gliding indicator (navMove, 18s) */
.app-mock__nav .amf-tab { animation: tabActive 18s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.app-mock__nav .amf-tab svg { animation: tabIconPop 18s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.app-mock__nav .amf-tab:nth-child(2),
.app-mock__nav .amf-tab:nth-child(2) svg { animation-delay: 0s; }
.app-mock__nav .amf-tab:nth-child(3),
.app-mock__nav .amf-tab:nth-child(3) svg { animation-delay: 4.5s; }
.app-mock__nav .amf-tab:nth-child(4),
.app-mock__nav .amf-tab:nth-child(4) svg { animation-delay: 9s; }
.app-mock__nav .amf-tab:nth-child(5),
.app-mock__nav .amf-tab:nth-child(5) svg { animation-delay: 13.5s; }
/* Account (5th tab) is never reached by the reel → stays idle */
.app-mock__nav .amf-tab:nth-child(6),
.app-mock__nav .amf-tab:nth-child(6) svg { animation: none; }

@keyframes tabActive {
  0% { color: var(--safe-muted); }
  1%, 21% { color: var(--safe-primary-700); }
  23%, 100% { color: var(--safe-muted); }
}
@keyframes tabIconPop {
  0% { transform: scale(1); }
  5% { transform: scale(1.22); }
  12%, 100% { transform: scale(1); }
}

@keyframes navMove {
  0%, 22%   { inset-inline-start: 0%; }
  25%, 47%  { inset-inline-start: 20%; }
  50%, 72%  { inset-inline-start: 40%; }
  75%, 97%  { inset-inline-start: 60%; }
  100%      { inset-inline-start: 0%; }
}

/* ---- realism layer: status-bar glyphs, glass glare, live toast, gold sparks ---- */

/* status bar — real signal wedge + wifi dot + battery pill */
.app-mock__statusbar-icons { align-items: center; }
.app-mock__statusbar-icons i:nth-child(1) {
  width: 9px; height: 7px; border-radius: 0; opacity: 0.75;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.app-mock__statusbar-icons i:nth-child(2) { width: 7px; height: 7px; border-radius: 50% 50% 2px 2px; opacity: 0.65; }
.app-mock__statusbar-icons i:nth-child(3) {
  position: relative; width: 16px; height: 8px; border-radius: 2.5px;
  background: transparent; border: 1px solid rgba(12, 23, 41, 0.55); opacity: 0.95;
}
.app-mock__statusbar-icons i:nth-child(3)::after {
  content: ''; position: absolute; inset: 1.5px; inset-inline-end: 4px;
  border-radius: 1px; background: #0e7c5a;
}

/* diagonal glass glare sweeping the screen once per cycle */
.app-mock__screen::after {
  content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.03) 57%, transparent 64%);
  background-size: 320% 100%;
  background-position: 120% 0;
  animation: screenGlare 18s ease-in-out infinite;
}
@keyframes screenGlare {
  0%, 55%  { background-position: 120% 0; }
  70%, 100% { background-position: -120% 0; }
}

/* live smart-reminder toast — timed to the details frame (9s → 13.5s of the 18s cycle) */
.amf-toast {
  position: absolute; inset-inline: 10px; inset-block-start: 36px; z-index: 5;
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(22, 41, 77, 0.08);
  box-shadow: 0 12px 26px rgba(12, 23, 41, 0.2);
  opacity: 0; transform: translateY(-16px);
  animation: toastDrop 18s cubic-bezier(0.34, 1.4, 0.4, 1) infinite;
}
.amf-toast-ic {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px;
  display: grid; place-items: center; font-size: 11px;
  background: linear-gradient(135deg, var(--safe-accent), var(--safe-accent-700));
  box-shadow: 0 4px 9px rgba(192, 160, 80, 0.45);
}
.amf-toast-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.amf-toast-tx b { font-size: 9px; font-weight: 800; color: var(--safe-ink); }
.amf-toast-tx i { font-size: 8px; font-style: normal; color: var(--safe-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes toastDrop {
  0%, 53%   { opacity: 0; transform: translateY(-16px) scale(0.96); }
  56%, 68%  { opacity: 1; transform: translateY(0) scale(1); }
  71%, 100% { opacity: 0; transform: translateY(-16px) scale(0.96); }
}

/* floating gold sparks around the device */
.amf-spark {
  position: absolute; z-index: 7; pointer-events: none;
  inset-inline-start: var(--sx); inset-block-start: var(--sy);
  width: var(--ss, 12px); height: var(--ss, 12px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff6df 0%, #ffe9b0 40%, var(--safe-accent) 68%, transparent 78%);
  box-shadow: 0 0 16px 2px rgba(192, 160, 80, 0.95), 0 0 34px rgba(192, 160, 80, 0.55);
  opacity: 0;
  transform: translateZ(46px);
  animation: sparkFloat 6.5s ease-in-out var(--sd, 0s) infinite;
}
.amf-spark--star {
  border-radius: 0; box-shadow: none;
  background: linear-gradient(135deg, #fff6df, var(--safe-accent));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 10px rgba(192, 160, 80, 0.95)) drop-shadow(0 0 4px #ffe9b0);
}
@keyframes sparkFloat {
  0%, 100% { opacity: 0; translate: 0 10px; scale: 0.4; }
  25%      { opacity: 1; scale: 1.1; }
  55%      { opacity: 0.95; translate: 0 -12px; scale: 1; }
  80%      { opacity: 0; translate: 0 -24px; scale: 0.35; }
}

/* respect reduced-motion: static first screen, no spin, no effects */
@media (prefers-reduced-motion: reduce) {
  .app-mock.app-mock--hero { animation: none; }
  .app-mock__frame { animation: none; opacity: 0; }
  .app-mock__frame:nth-child(1) { opacity: 1; }
  .app-mock__nav .amf-nav-ind { animation: none; }
  .amf-bars i { animation: none; }
  .app-mock__screen::after { animation: none; }
  .amf-toast { animation: none; opacity: 0; }
  .amf-spark { animation: none; opacity: 0; }
}

/* ============================================================= */
/* ذِمّة — fantasy layer: animated hero atmosphere, glass value   */
/* band, gold CTAs, floating back-to-top, gold selection          */
/* ============================================================= */

/* ---- 1) hero atmosphere: slow navy/gold wash + twinkling gold stars ---- */
.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(22, 41, 77, 0.07), transparent 42%, rgba(192, 160, 80, 0.06) 72%, transparent);
  background-size: 200% 200%;
  animation: heroWash 16s ease-in-out infinite;
}
@keyframes heroWash {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__stars { position: absolute; inset: 0; }
.hero__stars i {
  position: absolute;
  inset-inline-start: var(--tx);
  inset-block-start: var(--ty);
  width: var(--ts, 3px);
  height: var(--ts, 3px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9b0, var(--safe-accent) 55%, transparent 72%);
  box-shadow: 0 0 8px rgba(192, 160, 80, 0.8);
  opacity: 0.5;
  animation: twinkle 4s ease-in-out var(--td, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* animated golden underline under the accented brand word */
.hero__title-accent { position: relative; }
.hero__title-accent::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--safe-accent), transparent);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: inline-start;
  animation: underlineIn 0.9s ease 0.55s forwards, underlineShine 3s linear 1.5s infinite;
}
@keyframes underlineIn { to { transform: scaleX(1); } }
@keyframes underlineShine { to { background-position: 200% 0; } }

/* ---- CTA store buttons: lift + gold glow + sheen sweep + icon nudge ---- */
.btn-store { position: relative; overflow: hidden; }
.btn-store::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
}
.btn-store:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 160, 80, 0.7);
  box-shadow: 0 12px 28px rgba(192, 160, 80, 0.35);
}
.btn-store:hover::after { transform: translateX(130%); }
.btn-store:hover .btn-store__icon { animation: iconShake 0.5s ease; }
@keyframes iconShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}

/* ---- 3) glass value band (the marquee under the hero) ---- */
.partners__marquee {
  padding-block: clamp(0.85rem, 2vw, 1.15rem);
  background: linear-gradient(180deg, rgba(22, 41, 77, 0.05), rgba(22, 41, 77, 0.02));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block: 1px solid rgba(192, 160, 80, 0.32);
}
.partners__track { animation-duration: 48s; }
.partners__item {
  gap: 0.55rem;
  height: auto;
  margin-inline: 0.5rem;
  padding: 0.6rem 1.15rem;
  opacity: 1;
  filter: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--safe-border);
  border-radius: 999px;
  box-shadow: var(--safe-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.partners__item:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.08);
  background: #fff;
  border-color: rgba(192, 160, 80, 0.6);
  box-shadow: 0 10px 24px rgba(192, 160, 80, 0.22);
}
.partners__icon { display: inline-flex; color: var(--safe-accent); }
.partners__icon svg { width: 22px; height: 22px; }
.partners__item .partners__name {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--safe-ink);
}

/* ---- 6) footer ending: soft gold starfield over the navy gradient ---- */
.site-footer { isolation: isolate; }
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 14% 26%, rgba(192, 160, 80, 0.85), transparent 60%),
    radial-gradient(2px 2px at 82% 18%, rgba(255, 233, 176, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 62%, rgba(192, 160, 80, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 34% 78%, rgba(255, 233, 176, 0.6), transparent 60%),
    radial-gradient(2px 2px at 92% 70%, rgba(192, 160, 80, 0.6), transparent 60%);
  animation: twinkle 5s ease-in-out infinite;
}
.site-footer__accent,
.site-footer__main,
.site-footer__bottom { position: relative; z-index: 1; }

/* ---- 7) floating gold back-to-top ---- */
.to-top {
  position: fixed;
  inset-inline-end: clamp(16px, 3vw, 28px);
  inset-block-end: clamp(20px, 4vw, 32px);
  z-index: 120;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--safe-accent), var(--safe-accent-700));
  box-shadow: 0 12px 28px rgba(192, 160, 80, 0.45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  pointer-events: none;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 34px rgba(192, 160, 80, 0.55);
}
.to-top:focus-visible {
  outline: 2px solid var(--safe-primary-600);
  outline-offset: 3px;
}

/* ---- 2) stat icon bounces as its card scrolls into view ---- */
.stat.is-visible .stat__icon { animation: statBounce 0.7s ease; }
@keyframes statBounce {
  0% { transform: translateY(0); }
  30% { transform: translateY(-7px) scale(1.08); }
  55% { transform: translateY(0) scale(1); }
  75% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* ---- About section: illustration-in-center orbit of feature cards ---- */
.about__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.about__head .section__eyebrow,
.about__head .section__title,
.about__head .section__lead { margin-inline: auto; }

/* base (mobile): illustration on top, then cards stacked */
.about-orbit {
  margin-block-start: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-orbit__center { display: grid; place-items: center; margin-block-end: 0.5rem; }
.about-orbit__center .about-illu { width: min(240px, 66%); }
.about-orbit__ring { display: none; }
.about-orbit__node .feature-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* tablet: two-column card grid with the illustration spanning the top */
@media (min-width: 620px) and (max-width: 999px) {
  .about-orbit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .about-orbit__center { grid-column: 1 / -1; }
}

/* desktop: true circular orbit around the centered illustration */
@media (min-width: 1000px) {
  .about-orbit {
    position: relative;
    display: block;
    width: min(880px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
    --r: 300px;
  }
  .about-orbit__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
  }
  .about-orbit__center .about-illu { width: 210px; }
  .about-orbit__ring {
    display: block;
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    border: 1.5px dashed rgba(192, 160, 80, 0.35);
    animation: spin 60s linear infinite;
  }
  .about-orbit__node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 232px;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  }
  .about-orbit__node .feature-card { margin: 0; text-align: center; }
  .about-orbit__node .feature-card__icon { margin-inline: auto; }
  .about-orbit__node .feature-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* pass-over animation: card pops toward the viewer with a golden glow */
  .about-orbit__node .feature-card:hover {
    transform: scale(1.07) translateY(-5px);
    border-color: rgba(192, 160, 80, 0.6);
    box-shadow: 0 20px 44px rgba(192, 160, 80, 0.28);
    z-index: 3;
  }
}

/* ---- "كيف يعمل" — more life: soft gold glow, lively step icons ---- */
#how {
  position: relative;
  overflow: hidden;
}

#how::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset-block-start: -12%;
  inset-inline-start: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(192, 160, 80, 0.1), transparent 68%);
  pointer-events: none;
}

#how .container {
  position: relative;
  z-index: 1;
}

.how-step__icon {
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.how-step.is-visible .how-step__icon {
  animation: statBounce 0.7s ease;
}

.how-step:hover .how-step__icon {
  transform: translateY(-3px) scale(1.08);
  background: color-mix(in srgb, var(--safe-accent) 22%, #fff);
  color: var(--safe-accent-700);
}

/* golden text selection */
::selection { background: rgba(192, 160, 80, 0.3); color: var(--safe-ink); }

/* sane static states when motion is reduced (global rule kills the animations) */
@media (prefers-reduced-motion: reduce) {
  .hero__title-accent::after { transform: scaleX(1); }
  .hero__stars i { opacity: 0.55; }
  .to-top { transition: none; }
}
