/* ==========================================================================
   The sales page. Same blue, same grey, same type as the app, so the page and
   the product read as one thing — a buyer should recognise the window the
   first time they open it.
   ========================================================================== */

@font-face { font-family: 'Outfit'; src: url('fonts/outfit-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-700.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-arabic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-arabic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-arabic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('fonts/plex-arabic-700.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  /* From the logo, not invented: the play mark's blue and the wordmark's grey. */
  --blue: #1f66ff;
  --blue-deep: #1450d6;
  --blue-soft: rgba(31, 102, 255, .10);
  --grey: #585a5e;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #12192a;
  --ink-2: #4a5568;
  --ink-3: #7a8699;
  --line: rgba(18, 25, 42, .08);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-lg: 0 30px 80px -20px rgba(16, 24, 40, .28), 0 12px 30px -12px rgba(16, 24, 40, .14);

  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0, 1);

  --latin: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --arabic: 'Plex Arabic', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--latin);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root[dir='rtl'] body { font-family: var(--latin), var(--arabic); font-size: 17.5px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
:root[dir='rtl'] h1, :root[dir='rtl'] h2, :root[dir='rtl'] h3 { letter-spacing: 0; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -8px rgba(31, 102, 255, .7); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(31, 102, 255, .75); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.scrolled {
  background: rgba(246, 248, 251, .82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 12px; }

.lang {
  position: relative; display: inline-flex; align-items: center;
  width: 64px; height: 32px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  cursor: pointer; font: inherit;
}
.lang-knob {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 28px; height: 24px;
  border-radius: 999px; background: var(--blue-soft);
  transition: transform .24s var(--ease);
}
.lang span:not(.lang-knob) { position: relative; flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.lang .lang-ar { font-size: 14px; }
.lang[data-lang='en'] .lang-en, .lang[data-lang='ar'] .lang-ar { color: var(--blue); }
/* The knob starts on the reading side, so "the other language" is always the far end. */
:root[dir='ltr'] .lang[data-lang='ar'] .lang-knob,
:root[dir='rtl'] .lang[data-lang='en'] .lang-knob { transform: translateX(var(--knob-shift, 28px)); }
:root[dir='rtl'] .lang { --knob-shift: -28px; flex-direction: row-reverse; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 74px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(42% 52% at 50% 30%, rgba(31, 102, 255, .16), transparent 70%),
    radial-gradient(30% 40% at 78% 18%, rgba(88, 90, 94, .10), transparent 70%);
}
.hero-inner { text-align: center; max-width: 880px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(42px, 7.2vw, 84px); line-height: 1.04;
}
:root[dir='rtl'] .hero h1 { line-height: 1.22; font-size: clamp(40px, 6.6vw, 78px); }
.lede { margin: 22px auto 0; max-width: 660px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.hero-ctas { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.trust li::before { content: '✓'; color: var(--blue); font-weight: 700; margin-inline-end: 6px; }

/* ---------- the video tour ---------- */
.tour { margin: 58px auto 0; }
.tour .window { margin: 0; }
.tour-screen { position: relative; aspect-ratio: 16 / 10; background: #f4f6f9; }
.tour-screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; background: var(--blue);
  box-shadow: 0 12px 30px -8px rgba(31, 102, 255, .6);
  display: grid; place-items: center; padding-inline-start: 4px;
  transition: transform 160ms var(--ease-out);
}
.tour-play:hover { transform: scale(1.06); }
.tour-play[hidden] { display: none; }

.tour-chapters {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  margin: 22px auto 0; max-width: 920px;
}
.tour-chapter {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 9px 10px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; white-space: nowrap; text-overflow: ellipsis;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}
.tour-chapter:hover { color: var(--ink); }
.tour-chapter.on { color: var(--blue); border-color: rgba(31, 102, 255, .35); background: var(--blue-soft); }
.tour-chapter span { position: relative; }
/* The fill shows how far into its chapter the video is. */
.tour-chapter i {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%;
  background: rgba(31, 102, 255, .12); transform-origin: left; transform: scaleX(0);
}
:root[dir='rtl'] .tour-chapter i { transform-origin: right; }
.tour-caption {
  text-align: center; margin: 16px auto 0; max-width: 640px; min-height: 1.6em;
  color: var(--ink-2); font-size: 16px; transition: opacity 200ms var(--ease);
}
.tour-caption.swap { opacity: 0; }
@media (max-width: 900px) {
  .tour-chapters { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .tour { margin-top: 40px; }
  .tour-chapter { font-size: 12.5px; padding: 8px 6px; }
  .tour-caption { font-size: 15px; }
  .tour-play { width: 58px; height: 58px; }
}

/* ---------- the app window ---------- */
.window {
  margin: 58px auto 0;
  border-radius: 18px; overflow: hidden;
  background: #e9edf3;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(18, 25, 42, .06);
}
.window-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding-inline: 14px; background: #e9edf3; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
/* The traffic lights are a Mac thing and stay on the left in any language. */
:root[dir='rtl'] .window-bar { direction: ltr; }
.window img { width: 100%; height: auto; }
.window-sm { margin: 0; }
.window-dark, .window-dark .window-bar { background: #1a1f28; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
:root[dir='rtl'] .kicker { letter-spacing: 0; font-size: 15px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; }
:root[dir='rtl'] .section-head h2 { line-height: 1.35; }
.section-sub { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 30px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.ficon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; background: var(--blue-soft); color: var(--blue);
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- spotlights ---------- */
.spot { padding: 70px 0; }
.spot-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.spot-flip .spot-inner { grid-template-columns: 7fr 5fr; }
.spot-flip .spot-text { order: 2; }
.spot-text h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.15; margin-bottom: 18px; }
:root[dir='rtl'] .spot-text h2 { line-height: 1.4; }
.spot-text p { color: var(--ink-2); font-size: 18px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 34px 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- pricing ---------- */
.price-card {
  max-width: 460px; margin: 0 auto;
  padding: 40px 38px 34px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--blue), #6b9bff);
}
.price-top { text-align: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.price-name { font-weight: 700; color: var(--ink-2); }
.price-amount {
  display: flex; justify-content: center; align-items: flex-start; gap: 4px;
  margin: 10px 0 2px; font-weight: 800; line-height: 1; direction: ltr;
}
.price-amount .currency { font-size: 28px; margin-top: 10px; color: var(--ink-2); }
#price { font-size: 76px; letter-spacing: -.04em; }
.price-note { font-size: 14px; color: var(--ink-3); }
.price-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.price-list li::before {
  content: ''; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f66ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price-trial { display: block; text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--blue); font-weight: 600; }

/* ---------- download ---------- */
.download { background: linear-gradient(180deg, transparent, rgba(31, 102, 255, .05) 40%, transparent); }
.dl-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dl {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px 16px 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
  min-width: 220px;
}
.dl:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dl svg { width: 30px; height: 30px; flex: 0 0 auto; }
.dl span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 19px; }
.dl small { font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
.dl-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.dl-primary small { color: rgba(255, 255, 255, .6); }

/* ---------- faq ---------- */
.faq-wrap { max-width: 780px; }
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  padding: 0 24px; transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 18px;
  transition: transform .24s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 16px; }

/* ---------- final ---------- */
.final { padding: 40px 0 120px; }
.final-inner {
  text-align: center; padding: 70px 30px; border-radius: var(--r-xl);
  background: radial-gradient(80% 120% at 50% 0%, #2b6dff, #133a9e);
  color: #fff; box-shadow: var(--shadow-lg);
}
.final-inner img { width: 64px; height: 64px; margin: 0 auto 18px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); background: #fff; border-radius: 18px; padding: 8px; }
.final-inner h2 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 28px; }
.final-inner .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }
.final-inner .btn-primary:hover { background: #f0f5ff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 46px; }
.footer-inner { display: grid; gap: 12px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.legal { max-width: 640px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.copy { font-size: 13px; color: var(--ink-3); }

/* ---------- motion ----------
   One entrance: up and in, decelerating. Nothing loops, nothing bounces, and
   with reduced motion requested every element is simply already there. */
.reveal, .reveal-up {
  opacity: 0;
  /* Short enough that a fast scroller never lands on an empty band waiting
     for its content to arrive. */
  transition: opacity .45s var(--ease-out), transform .5s var(--ease-out);
}
.reveal { transform: translateY(14px); }
.reveal-up { transform: translateY(28px) scale(.99); }
.reveal.in, .reveal-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-end { margin-inline-start: auto; }
  .features, .steps { grid-template-columns: 1fr; }
  .spot-inner, .spot-flip .spot-inner { grid-template-columns: 1fr; gap: 34px; }
  .spot-flip .spot-text { order: 0; }
  .section { padding: 80px 0; }
  .hero { padding-top: 48px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .btn-lg { width: 100%; }
  .dl { width: 100%; }
  .price-card { padding: 32px 24px 28px; }
  .window { border-radius: 12px; }
  .window-bar { height: 24px; }
  .window-bar i { width: 8px; height: 8px; }
}

/* footer links to the legal and support pages */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.footer-links a:hover { color: var(--blue); }
