/* Base — Landing page */

:root {
  --safe-primary: #1d4ed8;
  --safe-primary-600: #1e40af;
  --safe-primary-700: #1e3a8a;
  --safe-primary-100: #dbeafe;
  --safe-primary-050: #eff6ff;
  --safe-accent: #ec4899;
  --safe-accent-700: #be185d;
  --safe-ink: #0f172a;
  --safe-body: #334155;
  --safe-muted: #64748b;
  --safe-surface: #ffffff;
  --safe-bg: #f8fafc;
  --safe-border: rgba(15, 23, 42, 0.1);
  --safe-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --safe-shadow-md: 0 18px 45px rgba(15, 23, 42, 0.1);
  --safe-shadow-brand: 0 14px 40px rgba(29, 78, 216, 0.3);
  --safe-radius: 18px;
  --safe-radius-lg: 28px;
  --safe-font: 'IBM Plex Sans Arabic', 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: #0a1c16;
  border-color: #0a1c16;
}

/* 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 img {
  height: 40px;
  width: auto;
}

.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: rgba(255, 255, 255, 0.72);
}

.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-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__opt.is-active {
  background: var(--safe-primary-100);
  color: var(--safe-primary-700);
}

.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%;
  /* brand-themed pulsing aura behind the device (auto-follows --safe-*) */
  background: radial-gradient(circle, color-mix(in srgb, var(--safe-accent) 28%, transparent), 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); }
}

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

.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(-4px);
  box-shadow: var(--safe-shadow-md);
  border-color: rgba(95, 181, 148, 0.35);
}

.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-primary-600), var(--safe-primary-700));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--safe-shadow-brand);
  z-index: 2;
}

.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, #0c221b 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 img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.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-primary);
}

.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(95, 181, 148, 0.28);
}

.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(130, 203, 173, 0.7), 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(224, 168, 90, 0.4), transparent 70%);
  animation: orbDrift 23s ease-in-out infinite reverse;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 42, 34, 0.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(16, 42, 34, 0.045) 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-primary-700);
  background: linear-gradient(120deg, var(--safe-primary-700), var(--safe-primary), var(--safe-accent), var(--safe-primary-700));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 6s linear infinite;
}

@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(95, 181, 148, 0.4), rgba(95, 181, 148, 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%);
  animation: phoneSpin 15s ease-in-out infinite;
}
@keyframes phoneSpin {
  0%, 91% { transform: rotateY(0deg); }
  100%    { transform: rotateY(360deg); }
}

.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, #18382e 0%, #0c221b 55%, #050f0c 100%);
}
.phone-podium__top {
  inset-block-start: 0;
  width: 100%;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(95, 181, 148, 0.3), transparent 55%),
    radial-gradient(ellipse at 50% 42%, #234d3f 0%, #0d251d 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-primary) 18%, #d6f7ea 50%, var(--safe-primary) 82%, transparent 98%);
  box-shadow:
    0 0 22px rgba(95, 181, 148, 0.95),
    0 0 48px rgba(95, 181, 148, 0.7),
    0 0 84px rgba(95, 181, 148, 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(95, 181, 148, 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__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); }

/* list 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 / create 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; margin-block-start: auto; display: flex; align-items: center; gap: 0; padding: 7px 0 3px; justify-content: space-between; border-block-start: 1px solid var(--safe-border); }
.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: 4px; font-size: 7px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--safe-muted); text-align: center; }
.app-mock__nav .amf-tab i { width: 13px; height: 13px; border-radius: 4px; background: var(--safe-primary-100); }
.app-mock__nav .amf-tab:first-of-type { color: var(--safe-primary-700); }
.app-mock__nav .amf-tab:first-of-type i { background: var(--safe-primary); box-shadow: 0 3px 7px rgba(22, 41, 77, 0.3); }

@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%; }
}

/* respect reduced-motion: show only the first screen, no cycling */
@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; }
}

/* 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(130, 203, 173, 0.28), transparent 70%);
}
.about-illu__ring { position: absolute; border-radius: 50%; }
.about-illu__ring--1 { width: 78%; height: 78%; border: 1.5px dashed rgba(95, 181, 148, 0.4); animation: spin 26s linear infinite; }
.about-illu__ring--2 { width: 100%; height: 100%; border: 1.5px solid rgba(95, 181, 148, 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(63, 154, 120, 0.35)); 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, 1.5vw, 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: #d14343;
  box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.15);
}
.contact-form__submit { margin-block-start: 0.25rem; justify-self: start; }
.contact-form__submit[disabled] { opacity: 0.7; cursor: progress; }
.contact-form__error { font-size: 0.8rem; color: #d14343; min-height: 0; }
.contact-form__error:empty { display: 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: #fdecec;
  color: #c0392b;
}
.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; }
}
