/* ==========================================================================
   تَدبير — landing page
   Design tokens and layout values measured from the reference capture
   (reference/2026-11-05-home). Class names, structure and copy are ours.
   ========================================================================== */

/* ------------------------------- tokens --------------------------------- */
:root {
  /* color — deep-green brand (replaced the maroon palette on 2026-11-06) */
  --brand: #13302e;
  --brand-ink: #0a1f1e;
  --brand-night: #071715;
  --brand-tint: #eef4f2;
  --brand-tint-2: #e2ece9;
  --sand: #e8dcc0;
  --paper: #ffffff;
  --warm: #f7faf9;
  --ink: #1b2422;
  --body: #5f6b68;
  --muted: #667872;
  --line: #e4ece9;
  --line-strong: #d5e2de;
  --amber: #c9922f;
  --green: #1e9e52;

  /* radius */
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  /* shadow */
  --sh-sm: 0 2px 8px rgba(10, 31, 30, 0.04);
  --sh-md: 0 12px 32px rgba(10, 31, 30, 0.06);
  --sh-lg: 0 22px 52px rgba(10, 31, 30, 0.09);

  /* type */
  --font-d: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-b: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --container: min(1180px, 92%);
  --section-y: 104px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* -------------------------------- base ---------------------------------- */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--body);
  background: var(--paper);
  line-height: 1.95;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-d);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* Icons: one local SVG sprite inlined after <body>, no icon font (2026-11-06).
   The .ph-* class stays on the wrapper so existing colour/size rules keep
   working; the sprite inherits colour through currentColor. */
.icon-sprite {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}
.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  fill: currentColor;
  flex-shrink: 0;
}
/* Mirror the metrics the icon font used to provide, so replacing it with a
   sprite keeps the same vertical rhythm in text lines. */
.ph, .ph-bold, .ph-fill {
  display: inline-block;
  font-style: normal;
  line-height: 1;
}

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 0; }

.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  transition: width 0.12s linear;
}

/* ------------------------------ primitives ------------------------------- */
.container { width: var(--container); margin-inline: auto; }

.section { padding: var(--section-y) 0; position: relative; }
.section.tight { padding: 84px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.2px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}
.eyebrow i { font-size: 1rem; }
.eyebrow.on-dark { color: #e8dcc0; }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}
.section-head h2 .m { color: var(--brand); }
.section-head p { font-size: 1.06rem; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.25s, border-color 0.25s, color 0.25s;
  overflow: hidden;
  isolation: isolate;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(19, 48, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(19, 48, 46, 0.26); }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { border-color: var(--brand-tint-2); transform: translateY(-2px); box-shadow: var(--sh-md); }

/* --------------------------------- nav ---------------------------------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 95;
  transition: 0.35s var(--ease);
}
.nav .shell {
  width: min(1180px, 94%);
  margin-inline: auto;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-radius: 0;
  transition: 0.35s var(--ease);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 80px;
  transition: 0.3s;
}
.nav.scrolled { padding-top: 12px; }
.nav.scrolled .shell {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(10, 31, 30, 0.06);
}
.nav.scrolled .nav-inner { height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--ink);
}
.brand-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.1; }
.brand-lockup { flex-shrink: 0; transition: transform 0.35s var(--ease); }
.brand:hover .brand-lockup { transform: scale(1.04); }
.brand small { font-size: 0.66rem; font-weight: 600; color: var(--muted); display: block; line-height: 1.1; }

.nav-links { display: flex; gap: 4px; font-weight: 500; font-size: 0.93rem; grid-column: 2; justify-self: center; }
.nav-links a {
  position: relative;
  color: var(--body);
  padding: 8px 15px;
  border-radius: 11px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--brand); background: var(--brand-tint); transform: translateY(-1px); }
.nav-links a.active { color: var(--brand); background: var(--brand-tint); font-weight: 600; }

.nav-inner > .brand { grid-column: 1; justify-self: start; }
.nav-cta { display: flex; gap: 12px; align-items: center; grid-column: 3; justify-self: end; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 95;
}
.nav-burger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--ink);
  margin: 5.5px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 90;
  padding: 120px 8% 44px;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile > a {
  color: var(--ink);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.14rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  animation: mItem 0.45s var(--ease) forwards;
}
.nav-mobile > a:nth-child(2) { animation-delay: 0.05s; }
.nav-mobile > a:nth-child(3) { animation-delay: 0.1s; }
.nav-mobile > a:nth-child(4) { animation-delay: 0.15s; }
.nav-mobile > a:nth-child(5) { animation-delay: 0.2s; }

@keyframes mItem { to { opacity: 1; transform: none; } }

/* --------------------------------- hero --------------------------------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  background:
    radial-gradient(1100px 560px at 85% -12%, rgba(19, 48, 46, 0.045), transparent 60%),
    radial-gradient(760px 480px at -6% 60%, rgba(201, 146, 47, 0.035), transparent 60%),
    linear-gradient(180deg, #f7faf9 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(19, 48, 46, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(720px 460px at 78% 22%, #000 0%, transparent 70%);
  mask-image: radial-gradient(720px 460px at 78% 22%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.55;
}

.swap {
  display: inline-grid;
  position: relative;
  vertical-align: bottom;
  color: var(--brand);
  text-align: center;
  min-width: 5.4ch;
}
.swap > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  white-space: nowrap;
}
.swap > span.on { opacity: 1; transform: none; }

.hero p.lead {
  font-size: 1.12rem;
  max-width: 530px;
  margin-bottom: 28px;
  font-weight: 300;
}
.hero p.lead b { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--body);
}
.hero-badges > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges svg,
.hero-badges i { color: var(--green); flex-shrink: 0; }

/* ------------------------------ hero stage ------------------------------- */
.stage { position: relative; perspective: 1400px; }
.stage::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  border-radius: 36px;
  background: radial-gradient(60% 60% at 50% 42%, rgba(19, 48, 46, 0.05), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.stage > * { position: relative; }

.browser {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  transform: rotateY(-7deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.stage:hover .browser { transform: rotateY(-2deg) rotateX(1deg); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser-bar .dots i:first-child { background: #d9b98a; }
.browser-bar .url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 4px 14px;
  text-align: center;
  direction: ltr;
}

.app-top {
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.88rem;
}
.app-top .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  padding: 3px 12px;
}
.app-top .live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8ef0b4;
  display: block;
  animation: blink 1.8s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.app-body { padding: 16px; background: #f7faf9; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; }
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px 10px;
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(to left, rgba(19, 48, 46, 0.75) 0%, rgba(47, 93, 88, 0.45) 40%, rgba(19, 48, 46, 0) 100%);
}
.kpi b {
  display: block;
  font-family: var(--font-d);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  white-space: nowrap;
}
/* Kept inline with the number so the "$" and the digits form one LTR run;
   a flex container would split them into separate bidi items. */
.kpi .cur { font-size: 0.62rem; color: var(--muted); font-weight: 500; }
.kpi > span { font-size: 0.68rem; color: var(--muted); }

.chart-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.chart-card h4 {
  font-size: 0.82rem;
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-card h4 em {
  font-style: normal;
  font-size: 0.64rem;
  color: var(--green);
  background: #eaf6ef;
  padding: 2px 10px;
  border-radius: 99px;
  font-family: var(--font-b);
  font-weight: 500;
}
.bars { display: flex; align-items: flex-end; gap: 7px; height: 82px; }
.bars i {
  flex: 1;
  height: var(--h, 60%);
  background: linear-gradient(180deg, #2f5d58, var(--brand));
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  animation: grow 1.1s var(--ease) both;
}
.bars i:nth-child(2) { animation-delay: 0.06s; }
.bars i:nth-child(3) { animation-delay: 0.12s; }
.bars i:nth-child(4) { animation-delay: 0.18s; }
.bars i:nth-child(5) { animation-delay: 0.24s; }
.bars i:nth-child(6) { animation-delay: 0.3s; }
.bars i:nth-child(7) { animation-delay: 0.36s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.phone {
  position: absolute;
  bottom: -58px;
  inset-inline-start: -30px;
  width: 158px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--sh-lg);
  padding: 11px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.phone-notch { width: 52px; height: 5px; border-radius: 99px; background: var(--line); margin: 2px auto 9px; }
.phone-top {
  background: var(--brand);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-d);
  font-size: 0.73rem;
  font-weight: 700;
  text-align: center;
  padding: 9px;
}
.phone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px;
  margin-top: 8px;
  font-size: 0.65rem;
  color: var(--ink);
}
.phone-item i { color: var(--brand); font-size: 0.85rem; }

.tip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--sh-md);
  padding: 11px 15px;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  animation: float 7s ease-in-out infinite;
}
.tip b { display: block; font-family: var(--font-d); font-size: 0.84rem; color: var(--ink); line-height: 1.35; }
.tip small { color: var(--muted); font-size: 0.68rem; }
.tip .ic {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--brand-tint);
  color: var(--brand);
}
.tip-1 { top: -24px; inset-inline-end: -16px; animation-delay: 0.9s; }
.tip-2 { bottom: -26px; inset-inline-end: -14px; animation-delay: 2s; }

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

/* -------------------------------- trust --------------------------------- */
.trust {
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  position: relative;
}
.marquee { display: flex; width: max-content; animation: marq 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 52px;
  padding-inline-end: 52px;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track span i { color: var(--brand); opacity: 0.7; }
.marquee-track .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: 0.35; flex-shrink: 0; display: block; }
@keyframes marq { to { transform: translateX(50%); } }

/* -------------------------------- bento --------------------------------- */
.features { background: var(--paper); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}
.b-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.b-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.b-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(440px 200px at 50% 0%, rgba(19, 48, 46, 0.05), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.b-card:hover::after { opacity: 1; }
.b-card .ic {
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  font-size: 1.35rem;
  transition: 0.35s var(--ease);
}
.b-card:hover .ic { transform: rotate(-6deg) scale(1.05); }
.b-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.b-card p { font-size: 0.91rem; }
.b-card .chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--warm);
  border: 1px solid var(--line);
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 13px;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.b-hero {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-ink) 100%);
  border: none;
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
.b-hero h3 { color: #fff; }
.b-hero p { color: rgba(255, 255, 255, 0.82); }
.b-hero .ic { background: rgba(255, 255, 255, 0.13); color: #e8dcc0; }
.b-hero .chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #e8dcc0; }

.mini-wallet {
  background: linear-gradient(155deg, #f7fbf9, #eef4f2);
  border-radius: 18px;
  padding: 16px;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease);
}
.b-hero:hover .mini-wallet { transform: rotate(0deg) scale(1.02); }
.mw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mw-logo-txt { font-family: var(--font-d); font-weight: 700; font-size: 0.95rem; color: var(--brand); }
.mw-wallet-ic { color: var(--brand); font-size: 1.1rem; }
.mw-id b { display: block; font-family: var(--font-d); font-size: 0.95rem; }
.mw-id small { color: var(--muted); font-size: 0.66rem; }
.mw-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 0.64rem; color: var(--muted); }
.mw-meta b { color: var(--ink); font-family: var(--font-d); }
.mw-stamps { display: flex; gap: 6px; margin-top: 10px; }
.mw-stamps i {
  width: 100%; height: 22px;
  border-radius: 7px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  display: block;
}
.mw-stamps i.f { background: var(--brand); border: 1px solid var(--brand); }
.mw-code {
  height: 26px;
  margin-top: 12px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, #071715 0 2px, transparent 2px 5px);
  opacity: 0.75;
}

.mini-notif { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.mini-notif .n {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 10px;
}
.n-logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.n-body { min-width: 0; }
.n-top { display: flex; justify-content: space-between; gap: 8px; font-size: 0.66rem; }
.n-top b { color: var(--ink); font-family: var(--font-d); }
.n-top em { font-style: normal; color: var(--muted); font-size: 0.6rem; white-space: nowrap; }
.n-msg { font-size: 0.68rem; color: var(--body); line-height: 1.6; }

.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 14px; }
.mini-chart i {
  flex: 1;
  background: linear-gradient(180deg, #b9cfc9, var(--brand-tint-2));
  border-radius: 4px 4px 0 0;
  height: 45%;
  transition: height 0.6s var(--ease);
}
.mini-chart i:nth-child(2) { height: 68%; }
.mini-chart i:nth-child(3) { height: 52%; }
.mini-chart i:nth-child(4) { height: 84%; }
.mini-chart i:nth-child(5) { height: 62%; }
.mini-chart i:nth-child(6) { height: 94%; }
.mini-chart i:nth-child(7) { height: 72%; }
.b-card:hover .mini-chart i { background: linear-gradient(180deg, #2f5d58, var(--brand)); }

.feat-cta { text-align: center; margin-top: 46px; }

/* Mobile-only "show all features" control. Hidden above 640px, where the whole
   grid is always visible. */
.bento-more { display: none; }
.bento-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--brand-tint-2);
  color: var(--brand);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(10, 31, 30, 0.16), 0 2px 6px rgba(10, 31, 30, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s;
}
.bento-toggle:hover { border-color: var(--brand); box-shadow: 0 14px 32px rgba(10, 31, 30, 0.2); }
.bento-toggle:active { transform: scale(0.96); }
.bento-toggle .bt-count { background: var(--brand); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; line-height: 1.7; }
.bento-toggle .bt-count:empty { display: none; }
.bento-toggle i { font-size: 0.85rem; transition: transform 0.4s var(--ease); }
.bento-more.open .bento-toggle i { transform: rotate(180deg); }

/* -------------------------------- bundle -------------------------------- */
.bundle { background: var(--warm); }
.bundle-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
}
.bundle-col { border-radius: 26px; padding: 36px 30px; position: relative; }
.bundle-before { background: #fff; border: 1.5px dashed var(--line-strong); }
.bundle-after { background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.bundle-after::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(150deg, var(--brand), var(--brand-tint-2) 55%, var(--brand));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.bundle-col h3 { font-size: 1.22rem; margin-bottom: 4px; }
.bundle-col .sub { font-size: 0.9rem; margin-bottom: 18px; }

.badge-top {
  position: absolute;
  top: -13px;
  inset-inline-start: 26px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 14px;
  border-radius: 99px;
  box-shadow: 0 6px 16px rgba(19, 48, 46, 0.28);
}

.stack { display: flex; flex-direction: column; gap: 11px; }
.stack-item {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.stack-item .tag {
  font-size: 0.68rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 10px;
  white-space: nowrap;
}
.bundle-before .stack-item { opacity: 0.85; }
.bundle-before .tag { color: var(--muted); }
.bundle-after .stack-item { background: #fff; border-color: var(--line); }
.bundle-after .tag { background: #eaf6ef; border-color: #cfe9d8; color: #17803f; font-weight: 600; }

.bundle-vs { display: grid; place-items: center; }
.bundle-vs i {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(19, 48, 46, 0.22);
  animation: pulse 2.8s ease-in-out infinite;
  font-style: normal;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.86rem;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(19, 48, 46, 0.22), 0 0 0 0 rgba(19, 48, 46, 0.16); }
  50% { box-shadow: 0 10px 24px rgba(19, 48, 46, 0.22), 0 0 0 14px rgba(19, 48, 46, 0); }
}

.bundle-cta { display: flex; justify-content: center; margin-top: 28px; }

/* -------------------------------- cases --------------------------------- */
.cases { background: var(--paper); }

.sector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.sector:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-tint-2); }
.sector.more { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Activity marquee: two rows running in opposite directions, duplicated groups
   so the loop is seamless at any width. */
.sector-marquee,
.client-marquee { display: block; overflow: hidden; position: relative; }
.sector-marquee { margin-top: 4px; }
.sector-marquee::before,
.sector-marquee::after,
.client-marquee::before,
.client-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  z-index: 2;
  pointer-events: none;
}
.sector-marquee::before,
.client-marquee::before { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
.sector-marquee::after,
.client-marquee::after { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.sm-row,
.cm-row { display: flex; width: max-content; padding: 6px 0; }
.sm-group,
.cm-group { display: flex; gap: 9px; padding-inline-end: 9px; }
.sm-row .sector { flex-shrink: 0; white-space: nowrap; }
.sm-row-1 { animation: smA 42s linear infinite; }
.sm-row-2 { animation: smB 50s linear infinite; }
.sector-marquee:active .sm-row,
.client-marquee:active .cm-row { animation-play-state: paused; }
@keyframes smA { to { transform: translateX(50%); } }
@keyframes smB { from { transform: translateX(50%); } to { transform: translateX(0); } }

/* ------------------------------- results -------------------------------- */
.results { background: var(--paper); }
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.res {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  transition: 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.res::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  border-end-end-radius: 3px;
  background: var(--brand);
  transition: width 0.5s var(--ease);
}
.res:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.res:hover::before { width: 100%; }
.res .r-ic {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 1.2rem;
  margin-bottom: 14px;
  transition: 0.35s var(--ease);
}
.res:hover .r-ic { background: var(--brand); color: #fff; }
.res b { display: block; font-family: var(--font-d); font-size: 1.02rem; color: var(--ink); margin-bottom: 2px; }
.res > b + span { font-size: 0.85rem; color: var(--body); }

/* -------------------------------- own app -------------------------------- */
.ownapp { background: var(--paper); }

.ownapp-shell {
  background:
    radial-gradient(720px 360px at 84% -6%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-ink) 100%);
  border-radius: 32px;
  padding: 68px 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.ownapp-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(232, 220, 192, 0.55), transparent 40%, transparent 60%, rgba(232, 220, 192, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.ownapp h2 { color: #fff; font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.ownapp h2 .soft { color: #e8dcc0; }
.ownapp .lead { color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; font-weight: 300; margin-bottom: 22px; max-width: 460px; }

.ownapp-list { margin-bottom: 26px; display: flex; flex-direction: column; gap: 11px; }
.ownapp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; color: rgba(255, 255, 255, 0.9); }
.ownapp-list .oc { color: #8ef0b4; margin-top: 6px; flex-shrink: 0; }

.oa-price {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  width: fit-content;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.oa-price .p-main b { font-family: var(--font-d); font-size: 2.1rem; color: #fff; line-height: 1.2; }
.oa-price .p-side b { display: block; font-family: var(--font-d); font-size: 0.86rem; font-weight: 600; color: #fff; line-height: 1.5; }
.oa-price .p-side small { display: block; font-size: 0.72rem; color: rgba(255, 255, 255, 0.62); line-height: 1.6; }
.oa-price .p-div { width: 1px; align-self: stretch; min-height: 38px; background: rgba(255, 255, 255, 0.18); }
.oa-price .p-or { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); line-height: 1.8; }
.oa-price .p-or b { color: #e8dcc0; font-weight: 700; }

.ownapp-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px 0;
  perspective: 1100px;
  perspective-origin: 50% 42%;
}
/* Ambient light behind the phone: a faint warm (sand) wash that hugs the device
   instead of a white pool. Depth comes from the tilt, the rim light and the
   contact shadow below, so the card stays deep green. */
.ownapp-stage::before {
  content: "";
  position: absolute;
  inset: 5% 9% 2%;
  border-radius: 46%;
  background: radial-gradient(52% 50% at 40% 34%, rgba(232, 220, 192, 0.15), rgba(232, 220, 192, 0.04) 58%, transparent 76%);
  filter: blur(34px);
}
/* Contact shadow: the device sits on the card instead of floating in a glow. */
.ownapp-stage::after {
  content: "";
  position: absolute;
  inset: auto 14% -2% 14%;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(4, 12, 10, 0.55), rgba(4, 12, 10, 0.2) 58%, transparent 80%);
  filter: blur(20px);
  z-index: 1;
}

.oa-phone {
  width: 268px;
  background: #081411;
  border-radius: 40px;
  padding: 10px;
  box-shadow:
    0 42px 66px rgba(0, 0, 0, 0.5),
    0 14px 28px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 30px -4px rgba(232, 220, 192, 0.2),
    inset 1px 0 0 rgba(255, 255, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 2;
  /* Real 3D tilt: the near (left) edge comes forward, the far edge recedes, with
     the light core behind and the rim light below selling the depth. */
  transform: rotateX(4deg) rotateY(12deg) rotateZ(-2deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.ownapp-shell:hover .oa-phone {
  transform: translateY(-8px) rotateX(2deg) rotateY(6deg) rotateZ(-1deg);
  box-shadow:
    0 50px 76px rgba(0, 0, 0, 0.52),
    0 16px 32px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0 38px -4px rgba(232, 220, 192, 0.26),
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55);
}
/* Specular rim: a gradient border (same mask trick as .ownapp-shell) so the lit
   corner is brighter than the shaded one instead of a flat 1px outline. */
.oa-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.16) 26%,
    rgba(255, 255, 255, 0.05) 58%,
    rgba(232, 220, 192, 0.32) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}
.oa-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 9px;
  border-radius: 99px;
  background: #081411;
  z-index: 3;
}
.oa-screen {
  background: #f7fbf9;
  border-radius: 32px;
  padding: 26px 14px 10px;
  color: var(--ink);
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
}
/* The screen turns away from the light on its far (right) edge; a faint shade
   there keeps the perspective honest instead of a perfectly flat panel. */
.oa-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to right, rgba(8, 20, 17, 0) 52%, rgba(8, 20, 17, 0.12) 100%);
}
.oa-greet { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.oa-greet b { display: block; font-family: var(--font-d); font-size: 0.82rem; }
.oa-greet small { display: block; font-size: 0.62rem; color: var(--muted); line-height: 1.5; }
.g-bell { position: relative; color: var(--brand); font-size: 0.95rem; }
.g-dot { position: absolute; top: 0; inset-inline-end: 0; width: 6px; height: 6px; border-radius: 50%; background: #e5484d; display: block; }

.oa-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 10px;
  font-size: 0.62rem;
  color: var(--muted);
}
.oa-chips { display: flex; gap: 5px; overflow: hidden; }
.oa-chips > span {
  font-size: 0.58rem;
  padding: 4px 9px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--body);
  white-space: nowrap;
}
.oa-chips > span.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.oa-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(120deg, var(--brand), #2f5d58);
  color: #fff;
  border-radius: 13px;
  padding: 10px 12px;
}
.oa-promo small { display: block; font-size: 0.55rem; opacity: 0.75; }
.oa-promo b { font-family: var(--font-d); font-size: 0.72rem; }
.oa-promo .p-mark { font-family: var(--font-d); font-weight: 700; font-size: 0.95rem; opacity: 0.9; }

.oa-sec { display: flex; align-items: center; justify-content: space-between; font-size: 0.68rem; font-family: var(--font-d); font-weight: 700; color: var(--ink); }
.oa-sec em { font-style: normal; font-size: 0.58rem; color: var(--brand); font-weight: 500; }

.oa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.oa-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px; }
.oa-img { display: grid; place-items: center; height: 52px; background: var(--brand-tint); border-radius: 9px; font-size: 1.3rem; margin-bottom: 6px; }
.oa-card b { display: block; font-family: var(--font-d); font-size: 0.62rem; }
.oa-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.oa-pr { font-size: 0.58rem; color: var(--body); }
.oa-add { width: 17px; height: 17px; border-radius: 6px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 0.7rem; line-height: 1; }

.oa-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.oa-nav > span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.5rem; color: var(--muted); }
.oa-nav > span i { font-size: 0.85rem; }
.oa-nav > span.on { color: var(--brand); }

.oa-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border-radius: 14px;
  padding: 9px 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  z-index: 3;
}
/* Wrapper only exists so the two badges can be laid out as a row on phones;
   `display: contents` keeps them direct children of the stage on desktop. */
.oa-badges { display: contents; }
.oa-badge > i { color: var(--brand); font-size: 1.2rem; }
.oab-txt small { display: block; font-size: 0.55rem; color: var(--muted); line-height: 1.2; }
.oab-txt b { display: block; font-family: var(--font-d); font-size: 0.72rem; }
.oa-b1 { top: 6%; inset-inline-start: -14px; }
.oa-b2 { bottom: 8%; inset-inline-end: -14px; }

/* -------------------------------- pricing -------------------------------- */
.pricing { background: var(--warm); }
.pricing .section-head { margin-bottom: 48px; }
.price-terms {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.84rem !important;
  color: var(--brand) !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 16px;
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 16px;
  max-width: 440px;
  margin-inline: auto;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  position: relative;
}
/* "coming soon" card: no price, no feature list — a compact dashed placeholder
   that should not stretch to the height of the priced card beside it */
.price-card--soon { background: var(--warm); border-style: dashed; border-color: var(--line-strong); align-self: start; }
.plan-soon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding: 22px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.plan-soon b { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--brand); }
.plan-soon span { font-size: 0.84rem; line-height: 1.7; color: var(--body); }
.plan-label { font-size: 0.8rem; font-weight: 600; line-height: 1.6; color: var(--body); }
.plan-name { margin-top: 4px; font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.plan-for { margin-top: 6px; font-size: 0.94rem; line-height: 1.7; color: var(--body); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 24px; line-height: 1.1; color: var(--ink); }
.plan-price b { font-family: var(--font-d); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.5px; }
.plan-unit { font-size: 0.9rem; font-weight: 500; color: var(--body); }
.plan-branches { font-size: 0.84rem; line-height: 1.6; color: var(--body); }
.plan-branches b { font-family: var(--font-d); font-size: 0.95rem; color: var(--ink); }
.plan-branches s { color: var(--muted); text-decoration-thickness: 1px; }
.price-card .plan-cta { margin-top: 20px; width: 100%; }
.plan-list-head { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; line-height: 1.6; color: var(--ink); }
.plan-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.plan-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; line-height: 1.7; }
.plan-list li i { color: var(--green); margin-top: 6px; flex-shrink: 0; }

.price-after { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 32px; text-align: center; font-size: 0.92rem; line-height: 1.8; color: var(--body); }
.price-after a { color: var(--brand); font-weight: 600; }

/* -------------------------------- clients -------------------------------- */
.clients { background: var(--paper); overflow: hidden; }
.client-marquee { margin-top: 2px; }
.cm-row-1 { animation: smA 34s linear infinite; }
.cm-row .client-tile { flex-shrink: 0; }
.client-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  width: 196px;
  height: 104px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.client-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.client-word { font-family: var(--font-d); font-weight: 700; font-size: 1.02rem; color: var(--muted); white-space: nowrap; transition: color 0.3s var(--ease); }
.client-tile:hover .client-word { color: var(--brand); }

/* --------------------------------- faq ---------------------------------- */
.faq { background: var(--paper); }
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.faq-side h2 .m { color: var(--brand); }
.faq-side p { margin-bottom: 20px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 17px;
  margin-bottom: 11px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.faq-item[open] { box-shadow: var(--sh-md); border-color: var(--line-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  cursor: pointer;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.99rem;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--brand-tint);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s;
}
.faq-item summary .pm i {
  position: absolute;
  inset: 50% 6px auto;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}
.faq-item summary .pm i:last-child { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] summary .pm { background: var(--brand); }
.faq-item[open] summary .pm i { background: #fff; }
.faq-item[open] summary .pm i:last-child { transform: translateY(-50%) rotate(0deg); }
.faq-item summary:hover .pm { background: var(--brand-tint-2); }
.faq-item[open] summary:hover .pm { background: var(--brand); }
.faq-item .faq-body { padding: 0 22px 18px; font-size: 0.94rem; line-height: 1.85; }

/* --------------------------------- final --------------------------------- */
.final { background: var(--paper); padding-bottom: 120px; }
.final-shell {
  background:
    radial-gradient(760px 380px at 82% -8%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-ink) 100%);
  border-radius: 32px;
  padding: 70px 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; position: relative; z-index: 1; }
.final h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 14px; }
.final h2 .soft { color: #e8dcc0; }
.final .lead { color: rgba(255, 255, 255, 0.82); font-size: 1.02rem; font-weight: 300; margin-bottom: 20px; }
.final .hero-badges { color: rgba(255, 255, 255, 0.8); }
.final .hero-badges i { color: #8ef0b4; }

.contact-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2);
  padding: 30px 28px 26px;
  color: var(--body);
}
.contact-card .eyebrow { margin-bottom: 10px; font-size: 0.8rem; }
.contact-card .eyebrow::before { display: none; }
.contact-card h3 { font-size: 1.24rem; margin-bottom: 6px; color: var(--ink); }
.contact-card .hint { font-size: 0.87rem; line-height: 1.75; margin-bottom: 18px; color: var(--muted); }
.wa-links { display: grid; gap: 10px; }
.wa-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--warm);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--brand);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.wa-link:hover {
  color: var(--brand-ink);
  border-color: var(--brand);
  background: var(--brand-tint);
  transform: translateY(-1px);
}
.wa-link i { color: #25d366; font-size: 1.3rem; flex-shrink: 0; }
.wa-link b { font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.wa-link small {
  margin-inline-start: auto;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
}
.contact-note { margin-top: 14px; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* -------------------------------- footer -------------------------------- */
.footer {
  background: var(--brand-night);
  color: rgba(255, 255, 255, 0.72);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 220, 192, 0.4), transparent);
}
.brand-footer { display: inline-flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.footer-logo { display: block; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.85fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 14px; }
.footer a { display: block; color: rgba(255, 255, 255, 0.62); padding: 4px 0; transition: color 0.2s; }
.footer a:hover { color: #e8dcc0; }
.footer .brand { display: block; color: rgba(255, 255, 255, 0.62); font-family: var(--font-b); font-weight: 400; font-size: 0.88rem; line-height: 1.9; margin-bottom: 18px; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
}

/* contact strip: two WhatsApp accounts + Instagram, stacked vertically */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-bottom: 20px;
}
.footer .footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.74);
}
.footer .footer-contact a:hover { color: var(--sand); }
.footer-contact i { font-size: 1.05rem; }
.footer-contact .ph-whatsapp-logo { color: #25d366; }
.footer-contact b { font-weight: 600; }

/* -------------------------------- reveal -------------------------------- */
/* Only hide when JS is confirmed: a failed script must never blank the page. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ------------------------------ responsive ------------------------------ */

/* <= 1080 */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .span-3 { grid-column: span 2; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-side { position: static; text-align: center; margin-bottom: 10px; }
}

/* <= 900 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }

  .hero { padding: 140px 0 100px; }
  .hero-grid,
  .final-grid,
  .ownapp-shell { grid-template-columns: 1fr; }

  .stage { margin-top: 38px; max-width: 560px; }
  .browser { transform: none; }

  .ownapp-shell { padding: 48px 26px; gap: 46px; }
  /* Single column here, so the stage would stretch to the full card and leave
     the two floating badges stranded far from the device. Cap it to the phone's
     own width so the composition stays together. */
  .ownapp-stage { width: min(100%, 430px); margin-inline: auto; }
  /* Both inline insets were set here, which stretched each badge across the
     whole stage and covered the phone. Keep one side auto so they stay at
     their intrinsic size. */
  .oa-b1 { inset-inline-start: 10px; inset-inline-end: auto; top: 8%; }
  .oa-b2 { inset-inline-end: 10px; inset-inline-start: auto; bottom: 10%; }

  .bundle-grid { grid-template-columns: 1fr; }
  .bundle-vs { padding: 6px 0; }

  .final-shell { padding: 52px 30px; }
  /* brand cell keeps the full width, the two link columns share the row */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer .brand { max-width: none; }
}

/* two pricing cards side by side once there is room */
@media (min-width: 760px) {
  .price-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; max-width: 880px; }
}

/* <= 640 — phone layout */
@media (max-width: 640px) {
  html { scroll-padding-top: 78px; }

  .container { width: min(560px, 91%); }
  .shell { padding-inline: 16px; }
  .nav-inner { height: 66px; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head .eyebrow { font-size: 0.75rem; margin-bottom: 9px; }
  .section-head h2 { font-size: 1.34rem; margin-bottom: 8px; line-height: 1.6; text-wrap: balance; }
  .section-head p { font-size: 0.88rem; line-height: 1.9; }

  /* hero */
  .hero { padding: 88px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-grid > div:first-child { text-align: center; }
  .hero .eyebrow { font-size: 0.7rem; margin-bottom: 10px; white-space: nowrap; gap: 7px; }
  .hero h1 { font-size: 1.46rem; margin-bottom: 9px; line-height: 1.6; text-wrap: balance; }
  .hero .lead { margin-bottom: 18px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 15px; }
  .hero-actions .btn { width: 100%; height: 47px; padding: 0 10px; font-size: 0.9rem; }
  .hero-badges { justify-content: center; gap: 5px 16px; font-size: 0.76rem; margin-top: 0; }
  .stage { margin-top: 28px; max-width: 100%; perspective: none; }
  .browser { transform: none; border-radius: 18px; }
  .phone, .tip { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 1rem; }
  .marquee-track { gap: 32px; padding-inline-end: 32px; }
  .marquee-track span { font-size: 0.85rem; }
  .swap { min-width: 4.6ch; }

  /* features */
  .bento { grid-template-columns: 1fr 1fr; gap: 11px; position: relative; }
  .span-2, .span-3, .span-4 { grid-column: span 2; }
  .b-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
  .b-hero .mini-wallet { max-width: 245px; margin-inline: auto; }
  .b-card { padding: 20px 18px; border-radius: 19px; }
  .b-card .ic { width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; font-size: 1.2rem; }
  .b-card h3 { font-size: 1rem; margin-bottom: 4px; }
  .b-card p { font-size: 0.85rem; line-height: 1.85; }
  .b-card .chips { margin-top: 10px; }

  /* collapsed bento + expand button */
  .bento.collapsed .b-card:nth-child(n + 5) { display: none; }
  .bento.collapsed::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -2px;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--paper) 88%);
    pointer-events: none;
    z-index: 2;
  }
  .bento-more {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
    margin-top: -18px;
    transition: margin 0.35s var(--ease);
  }
  .bento-more.open { margin-top: 12px; }
  .bento.collapsed ~ .feat-cta { display: none; }
  .feat-cta { margin-top: 18px; }

  /* bundle */
  .bundle-grid { gap: 0; }
  .bundle-before { padding: 22px 18px 18px; }
  .bundle-before h3 { font-size: 1rem; }
  .bundle-before .sub { font-size: 0.78rem; margin-bottom: 14px; }
  .bundle-before .stack { flex-direction: row; flex-wrap: wrap; gap: 7px; justify-content: center; }
  .bundle-before .stack-item { width: auto; display: inline-flex; padding: 6px 12px; font-size: 0.77rem; border-radius: 10px; gap: 6px; }
  .bundle-before .stack-item .tag { display: none; }
  .bundle-before .stack::after {
    content: "= ٧ اشتراكات منفصلة… و٧ فواتير شهريًا";
    width: 100%;
    text-align: center;
    margin-top: 9px;
    color: var(--muted);
    font-family: var(--font-d);
    font-weight: 600;
    font-size: 0.77rem;
  }
  .bundle-vs { margin: 4px 0 2px; padding: 0; position: relative; z-index: 3; }
  .bundle-vs i { width: 48px; height: 48px; font-size: 0.74rem; border: 3.5px solid var(--warm); }
  .bundle-after { padding: 26px 18px 20px; margin-top: 12px; }
  .bundle-after h3 { font-size: 1.02rem; }
  .bundle-after .sub { font-size: 0.78rem; margin-bottom: 14px; }
  .bundle-after .stack { gap: 8px; }
  .bundle-after .stack-item { padding: 9px 12px; font-size: 0.82rem; border-radius: 11px; }
  .bundle-after .stack-item .tag { font-size: 0.62rem; padding: 2px 10px; }
  .bundle-after .btn { width: 100%; height: 47px; font-size: 0.92rem; }
  .badge-top { font-size: 0.68rem; padding: 4px 14px; top: -12px; inset-inline-start: 18px; }
  .bundle-cta { margin-top: 20px; }
  .bundle-cta .btn { width: 100%; height: 47px; }

  /* sectors + clients marquees */
  .sector-marquee { margin-top: 2px; }
  .sm-row .sector { padding: 10px 17px; font-size: 0.88rem; gap: 7px; border-radius: 12px; }
  .cm-row .client-tile { width: 144px; height: 76px; padding: 12px 16px; border-radius: 14px; }

  /* results */
  .res-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .res { padding: 16px 11px 14px; border-radius: 16px; text-align: center; display: block; }
  .res .r-ic { margin: 0 auto 9px; width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }
  .res b { font-size: 0.9rem; margin-bottom: 3px; }
  .res > b + span { font-size: 0.74rem; line-height: 1.75; display: block; }

  /* own app */
  .ownapp-shell { padding: 30px 20px 0; gap: 16px; border-radius: 24px; }
  .ownapp h2 { font-size: 1.25rem; margin-bottom: 6px; }
  .ownapp .lead { font-size: 0.87rem; margin-bottom: 13px; }
  .ownapp-list { margin-bottom: 15px; }
  .ownapp-list li { font-size: 0.85rem; padding: 7px 0; gap: 10px; }
  .oa-price { padding: 15px 17px 13px; gap: 8px 16px; border-radius: 16px; margin-bottom: 2px; align-items: center; justify-content: flex-start; }
  .oa-price .p-main b { font-size: 1.85rem; }
  .oa-price .p-side { text-align: start; }
  .oa-price .p-side b { font-size: 0.86rem; }
  .oa-price .p-side small { font-size: 0.7rem; }
  .oa-price .p-div { display: none; }
  /* The "or" option drops to its own row under a hairline instead of sitting
     beside the price, same as the reference layout. */
  .oa-price .p-or { width: 100%; font-size: 0.8rem; padding-top: 10px; margin-top: 2px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .oa-price .p-or br { display: none; }
  .oa-price .p-or b::after { content: " "; }
  /* Show the whole device and let the store badges flow in a row underneath:
     the old clipped stage (256 px + fade mask) hid most of the phone, and the
     absolutely positioned badges sat on top of it. */
  .ownapp-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 6px 0 22px;
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ownapp-stage::before, .ownapp-stage::after { content: none; }
  .oa-phone {
    flex: 0 0 auto;
    width: min(268px, 100%);
    margin-inline: auto;
    transform: scale(0.9) rotateX(4deg) rotateY(10deg) rotateZ(-2deg);
    transform-origin: center center;
  }
  .oa-search { display: none; }
  .oa-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
  .oa-badge { position: static; padding: 7px 12px; gap: 7px; border-radius: 12px; }
  .oa-badge > i { font-size: 1.05rem; }
  .oab-txt small { font-size: 0.5rem; }
  .oab-txt b { font-size: 0.68rem; }

  /* pricing */
  .price-grid[data-count="2"] { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
  .price-card { padding: 24px 20px; border-radius: 22px; }
  .plan-name { font-size: 1.3rem; }
  .plan-price { margin-top: 20px; }
  .plan-price b { font-size: 2.2rem; }
  .price-card .plan-cta { height: 46px; margin-top: 20px; }
  .plan-list-head { margin-top: 22px; padding-top: 20px; }
  .plan-soon { margin-top: 20px; padding: 18px 16px; }

  /* faq */
  .faq-item { border-radius: 15px; margin-bottom: 9px; }
  .faq-item summary { padding: 14px 16px; font-size: 0.9rem; gap: 10px; }
  .faq-body { padding: 0 16px 15px; font-size: 0.85rem; line-height: 1.85; }

  /* final cta */
  .final-grid { grid-template-columns: 1fr; gap: 24px; }
  .final-shell { padding: 28px 18px 22px; border-radius: 24px; }
  .final h2 { font-size: 1.3rem; margin-bottom: 10px; }
  .final .lead { font-size: 0.89rem; margin-bottom: 18px; }
  .form-card { padding: 24px 18px 20px; border-radius: 20px; box-shadow: 0 14px 38px rgba(0, 0, 0, 0.15); }
  .form-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
  .form-card .hint { font-size: 0.8rem; margin-bottom: 16px; }
  .field { margin-bottom: 14px; }
  .field label { font-size: 0.84rem; margin-bottom: 6px; }
  .field input, .field select { font-size: 16px; padding: 11px 14px; border-radius: 12px; }
  .form-card .btn { height: 48px; }
  .form-ok { font-size: 0.84rem; padding: 12px 14px; }

  /* footer */
  .footer { padding: 40px 0 84px; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; margin-bottom: 24px; }
  .footer h4 { font-size: 0.92rem; margin-bottom: 10px; }
  .footer a { padding: 5px 0; font-size: 0.84rem; }
  .brand-footer { margin-bottom: 10px; }
  .footer-logo { height: 34px; width: auto; }
  .footer-bottom { flex-direction: column; gap: 4px; padding-top: 16px; font-size: 0.74rem; justify-content: center; text-align: center; }
  .footer-contact { gap: 6px; padding-bottom: 16px; }
  .footer .footer-contact a { font-size: 0.8rem; }
}

/* stacked pricing cards: no row gap, so each card carries its own top margin */
@media (max-width: 759px) {
  .pricing .section-head { margin-bottom: 32px; }
  .price-grid .price-card + .price-card { margin-top: 16px; }
  .price-after { font-size: 0.86rem; }
}

/* <= 430 */
@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* <= 400 */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.4rem; }
  .hero .eyebrow { font-size: 0.66rem; }
  .hero .lead { max-width: none; padding-inline: 6px; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 1.26rem; }
  .b-card { padding: 18px 16px; }
  .cm-row .client-tile { width: 136px; height: 72px; }
}

/* <= 340 */
@media (max-width: 340px) {
  .hero-actions { grid-template-columns: 1fr; gap: 9px; }
  .hero .eyebrow { font-size: 0.6rem; }
}

/* >= 641 — roomier marquee rhythm */
@media (min-width: 641px) {
  .sm-group, .cm-group { gap: 12px; padding-inline-end: 12px; }
  .cm-row .client-tile { width: 180px; height: 96px; }
  .sm-row { padding: 8px 0; }
}

/* --------------------------- reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .marquee,
  .cm-row,
  .phone,
  .tip { animation: none !important; }
}
