/* Feature pages /features + /features/<slug> (views/features/*). Mobile first; logical properties only (EN LTR / AR RTL). --acc = feature colour. */
:root {
  --navy: #0a1a3a; --ink: #0a1a3a; --ink2: #44536b; --ink3: #6b7a90; --line: #e3e9f2; --bg: #f4f7fc; --amber: #ffb020; --r: 18px;
  --font: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html[lang="ar"] { --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }
* { box-sizing: border-box; }
body.ft { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; --acc: #0b6fe0; }
.ft img, .ft video { max-width: 100%; display: block; }
.ft a { color: inherit; }
.ft h1, .ft h2, .ft h3 { margin: 0; line-height: 1.22; letter-spacing: -.01em; }
html[lang="ar"] .ft h1, html[lang="ar"] .ft h2, html[lang="ar"] .ft h3 { letter-spacing: 0; line-height: 1.45; }
.ft-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 18px; }
.ft-narrow { max-width: 820px; }
.ft-center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[dir="rtl"] .dx-flip { display: inline-block; transform: scaleX(-1); }

/* buttons */
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: linear-gradient(180deg, #ffc23d, var(--amber)); color: #1d1300 !important;
  font-weight: 800; text-decoration: none; border-radius: 999px; padding: .8rem 1.4rem; border: 0; box-shadow: 0 8px 24px rgba(255, 176, 32, .32);
  transition: transform .15s ease, box-shadow .15s ease; touch-action: manipulation; }
.ft-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 176, 32, .42); }
.ft-btn:active { transform: translateY(1px); }
.ft-btn-lg { font-size: 1.05rem; padding: .95rem 1.7rem; }
.ft-btn-sm { padding: .45rem .95rem; font-size: .88rem; box-shadow: none; }
.ft-btn-ghost { color: #fff !important; text-decoration: none; font-weight: 700; padding: .8rem .4rem; opacity: .92; touch-action: manipulation; }
.ft-btn-ghost:hover { opacity: 1; text-decoration: underline; }

/* top bar */
.ft-top { position: sticky; top: 0; z-index: 30; background: rgba(5, 13, 31, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06); padding-top: var(--dx-sat, env(safe-area-inset-top)); }
.ft-top-in { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 58px; }
.ft-logo img { display: block; height: 32px; width: auto; }
.ft-nav { display: flex; align-items: center; gap: .9rem; }
.ft-nav-a { color: #d8e3f5 !important; text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.ft-nav-a:hover { color: #fff !important; }
.ft-nav .d-sm { display: none; }
@media (min-width: 720px) { .ft-nav .d-sm { display: inline; } }

/* hero */
.ft-hero { color: #fff; overflow: hidden;
  background: radial-gradient(900px 480px at 90% -10%, color-mix(in srgb, var(--acc) 45%, transparent), transparent 62%),
              linear-gradient(160deg, #050d1f 0%, var(--navy) 58%, #0b2a66 100%); }
.ft-hero-in { display: grid; gap: 2.2rem; padding-block: 1.6rem 2.6rem; align-items: center; }
.ft-crumbs { font-size: .8rem; color: #9fb2d2; margin-bottom: .9rem; }
.ft-crumbs a { color: #c9d6ec; text-decoration: none; }
.ft-crumbs a:hover { text-decoration: underline; }
.ft-crumbs i { font-size: .7rem; margin-inline: .25rem; }
.ft-eyebrow { display: inline-flex; gap: .45rem; align-items: center; font-size: .82rem; font-weight: 700; color: #fff; border-radius: 999px; padding: .32rem .85rem;
  background: color-mix(in srgb, var(--acc) 30%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); }
.ft-hero h1 { font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 800; margin-top: 1rem; }
.ft-lead { font-size: clamp(1rem, 2.5vw, 1.15rem); color: #c9d6ec; margin: 1rem 0 0; max-width: 38rem; }
.ft-ctas { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; align-items: center; margin-top: 1.5rem; }
.ft-chips { list-style: none; padding: 0; margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; font-size: .88rem; color: #b8c7e0; }
.ft-chips i { color: #5ee0a0; margin-inline-end: .2rem; }
.ft-hero-hub .ft-wrap { padding-block: 2.6rem 3rem; }
.ft-hero-hub .ft-lead { margin-inline: auto; }
@media (min-width: 980px) {
  .ft-hero-in { grid-template-columns: 1fr 1.05fr; padding-block: 3.2rem 4rem; gap: 3rem; }
}

/* devices: laptop/browser frame + phone frame (same markup in the hero and in every step) */
.ft-dev { position: relative; background: #0d1526; }
.ft-dev-scr { position: relative; overflow: hidden; background: #eef2f8; }
.ft-dev-scr img, .ft-dev-scr video { width: 100%; height: auto; }
.ft-dev-empty { display: flex; align-items: center; justify-content: center; color: #9aa9c2; font-size: 2rem; aspect-ratio: 16 / 10; }
.ft-dev-desk { border-radius: 12px; padding: 0 6px 6px; box-shadow: 0 28px 60px rgba(4, 12, 32, .35), 0 0 0 1px rgba(255, 255, 255, .06); }
.ft-dev-bar { display: flex; gap: 6px; padding: 9px 6px 8px; direction: ltr; }
.ft-dev-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4660; }
.ft-dev-bar i:first-child { background: #ff5f57; } .ft-dev-bar i:nth-child(2) { background: #febc2e; } .ft-dev-bar i:nth-child(3) { background: #28c840; }
.ft-dev-desk .ft-dev-scr { border-radius: 4px; aspect-ratio: 16 / 10; }
.ft-dev-desk .ft-dev-scr img { height: 100%; object-fit: cover; object-position: top; }
.ft-dev-phone { border-radius: 30px; padding: 7px; box-shadow: 0 26px 50px rgba(4, 12, 32, .4), 0 0 0 1px rgba(255, 255, 255, .08); }
.ft-dev-phone .ft-dev-scr { border-radius: 24px; aspect-ratio: 390 / 844; }
.ft-dev-phone .ft-dev-scr img, .ft-dev-phone .ft-dev-scr video { height: 100%; object-fit: cover; object-position: top; }
.ft-dev-phone .ft-dev-empty { aspect-ratio: auto; height: 100%; }

/* hero composition: laptop with the phone (clip) overlapping its lower inline-end corner */
.ft-duo { position: relative; padding-bottom: 6%; padding-inline-end: 14%; }
.ft-duo .ft-dev-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 34%; max-width: 230px; }
@media (max-width: 979px) { .ft-duo { max-width: 620px; margin-inline: auto; } }

/* sections */
.ft-sec { padding-block: 3rem; }
.ft-sec-alt { background: var(--bg); }
.ft-h2 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); font-weight: 800; text-align: center; }
.ft-sub { text-align: center; color: var(--ink2); margin: .6rem auto 0; max-width: 36rem; }

/* how it works */
.ft-steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 3rem; }
.ft-step { display: grid; gap: 1.2rem; align-items: center; }
.ft-step-n { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 800; }
.ft-step h3 { font-size: clamp(1.15rem, 3vw, 1.45rem); font-weight: 800; margin-top: .7rem; }
.ft-step p { color: var(--ink2); margin: .5rem 0 0; max-width: 32rem; }
.ft-view { display: inline-flex; margin-top: 1rem; background: #eef2f8; border-radius: 999px; padding: 3px; }
.ft-view button { border: 0; background: transparent; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink2); padding: .38rem .9rem; border-radius: 999px; cursor: pointer; touch-action: manipulation; }
.ft-view button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(10, 26, 58, .15); }
.ft-step-media { position: relative; }
/* phone width: one device at a time (switch), the phone first */
@media (max-width: 979px) {
  .ft-step-media .ft-dev-phone { width: min(72vw, 290px); margin-inline: auto; }
  .ft-step-media[data-view="phone"] .ft-dev-desk, .ft-step-media[data-view="desk"] .ft-dev-phone { display: none; }
}
/* computer width: both side by side — laptop with the phone overlapping; steps alternate sides */
@media (min-width: 980px) {
  .ft-step { grid-template-columns: .8fr 1.2fr; gap: 3rem; }
  .ft-step:nth-child(even) .ft-step-copy { order: 2; }
  .ft-view { display: none; }
  .ft-step-media { padding-bottom: 5%; padding-inline-end: 12%; }
  .ft-step-media .ft-dev-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 28%; max-width: 210px; }
}

/* who it's for */
.ft-aud { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .ft-aud { grid-template-columns: repeat(3, 1fr); } }
.ft-aud-c { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.2rem; }
.ft-aud-c h3 { font-size: 1.05rem; font-weight: 800; margin-top: .8rem; }
.ft-aud-c p { color: var(--ink2); margin: .4rem 0 0; font-size: .95rem; }
.ft-ic { display: inline-flex; width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.25rem;
  color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, #fff); }
.ft-facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; color: var(--ink2); font-size: .9rem; font-weight: 600; }
.ft-facts i { color: var(--acc); margin-inline-end: .25rem; }

/* FAQ */
.ft-faq { margin-top: 1.8rem; display: grid; gap: .7rem; }
.ft-faq details { border: 1px solid var(--line); border-radius: 14px; padding: .2rem 1.1rem; background: #fff; }
.ft-faq summary { cursor: pointer; font-weight: 700; padding: .85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: '+'; font-weight: 800; color: var(--acc); font-size: 1.2rem; line-height: 1; }
.ft-faq details[open] summary::after { content: '−'; }
.ft-faq p { margin: 0 0 1rem; color: var(--ink2); }

/* feature cards (hub + related) */
.ft-cards { display: grid; gap: 1.1rem; margin-top: 2rem; }
@media (min-width: 640px) { .ft-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ft-cards-hub { grid-template-columns: repeat(3, 1fr); } }
.ft-cards-hub { margin-top: 0; }
.ft-card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease; touch-action: manipulation; }
.ft-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 26, 58, .12); }
.ft-card-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 70%, #050d1f), #0a1a3a); position: relative; }
.ft-card-art img { width: 88%; height: auto; margin: 6% auto 0; border-radius: 8px 8px 0 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ft-card-art > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.6rem; opacity: .85; }
.ft-card-b { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1.25rem; }
.ft-card-ic { color: var(--acc); font-size: 1.2rem; }
.ft-card b { font-size: 1.1rem; }
.ft-card-b > span:not(.ft-card-ic) { color: var(--ink2); font-size: .94rem; }
.ft-card em { font-style: normal; color: var(--acc); font-weight: 700; font-size: .9rem; margin-top: .3rem; }

/* final CTA */
.ft-final { text-align: center; color: #fff; padding-block: 3.2rem;
  background: radial-gradient(700px 300px at 50% 0%, color-mix(in srgb, var(--acc) 40%, transparent), transparent 70%), linear-gradient(160deg, #050d1f, var(--navy)); }
.ft-final h2 { font-size: clamp(1.45rem, 4.4vw, 2.1rem); font-weight: 800; }
.ft-final p { color: #c9d6ec; margin: .8rem auto 1.5rem; max-width: 34rem; }

/* footer */
.ft-foot { background: #050d1f; color: #9fb2d2; padding-block: 1.6rem calc(1.6rem + var(--dx-sab, env(safe-area-inset-bottom))); font-size: .88rem; }
.ft-foot-in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.ft-foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.ft-foot a { color: #c9d6ec; text-decoration: none; }
.ft-foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { .ft-btn, .ft-card { transition: none; } }
