/* ==========================================================================
   توصيلة القلعة — site styles
   Shared by index.html (landing) and privacy.html (policy).

   Palette is sampled from the app's own artwork, not picked by eye — the same
   values as constants/brand.ts, so the site and the app read as one thing.

   Bilingual: [data-ar] / [data-en] blocks are swapped by html[lang], and the
   whole layout flips with html[dir]. Everything here uses logical properties
   (inline-start/end, margin-inline) so the flip needs no second stylesheet.
   ========================================================================== */

:root {
  --brand:        #00BF63;
  --brand-mid:    #00934E;
  --brand-deep:   #005E31;
  --brand-ink:    #0B1F14;
  /* Brand green used as TEXT. The mid green reads fine on white but only
     manages ~4.6:1 on the dark card, so dark mode lifts it to the bright
     green (~7.4:1). Gradients keep using --brand-mid either way. */
  --brand-text:   var(--brand-mid);

  --ink:          #0d1b14;
  --muted:        #5e7268;
  --line:         #e2ece7;
  --card:         #ffffff;
  --bg:           #f6faf8;
  --bg-soft:      #ecf7f1;

  --radius:       20px;
  --radius-lg:    28px;
  --maxw:         1120px;
  --shadow:       0 18px 48px -22px rgba(0, 94, 49, .45);
  --shadow-soft:  0 8px 28px -18px rgba(0, 94, 49, .5);

  --font-ar: "Noto Kufi Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-en: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #e9f4ee;
    --muted:    #9db3a7;
    --line:     #1e2c25;
    --card:     #111a15;
    --bg:       #080d0a;
    --bg-soft:  #10201a;
    --shadow:      0 18px 48px -22px rgba(0, 0, 0, .8);
    --shadow-soft: 0 8px 28px -18px rgba(0, 0, 0, .9);
    --brand-text:  var(--brand);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ar);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.7; }

img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 22px; }

/* -- language swap --------------------------------------------------------
   Hide the *other* language rather than force a display onto the active one.
   That way every element keeps the display its own rules give it — a <span>
   stays inline, an <li> stays a list-item, `.hero-stats b` stays block.

   The earlier version did the opposite (`[data-ar]{display:none}` plus a
   per-element override) and quietly broke: `.hero-stats b` is specificity
   (0,1,1) and out-ranks the (0,1,0) attribute selector, so the Arabic stats
   rendered inside the English page. !important here is deliberate — language
   visibility is structural and must beat any component rule that sets display.

   The document ships lang="ar", so nothing flashes before site.js runs. */
html[lang="ar"] [data-en],
html[lang="en"] [data-ar] { display: none !important; }

/* ==========================================================================
   header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 11px; }
.logo span { font-size: 1rem; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--muted); font-size: .9rem; padding: 8px 12px;
  border-radius: 10px; transition: color .18s, background .18s;
}
.nav a:hover { color: var(--brand-text); background: var(--bg-soft); text-decoration: none; }
@media (max-width: 720px) { .nav .nav-link { display: none; } }

.lang-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: .82rem; font-weight: 700;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  transition: border-color .18s, transform .18s, color .18s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand-text); transform: translateY(-1px); }

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, #00C165 0%, var(--brand-mid) 48%, var(--brand-deep) 100%);
  padding-block: clamp(56px, 9vw, 104px) clamp(80px, 12vw, 140px);
}
.hero::after {
  /* soft fade into the page below, so the band does not end on a hard line */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  opacity: .0;
}
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,.04) 70%);
  animation: float 16s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; top: -170px; inset-inline-end: -120px; }
.orb-2 { width: 300px; height: 300px; bottom: -110px; inset-inline-start: -90px; animation-duration: 21s; animation-direction: reverse; }
.orb-3 { width: 180px; height: 180px; top: 42%; inset-inline-start: 18%; animation-duration: 26s; }

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(22px,-26px,0) scale(1.06); }
  66%      { transform: translate3d(-18px,18px,0) scale(.96); }
}

.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 15px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #b6ffd9;
  box-shadow: 0 0 0 0 rgba(182,255,217,.7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(182,255,217,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,255,217,0); }
}

.hero h1 {
  margin: 0 0 16px; font-weight: 700; line-height: 1.25;
  font-size: clamp(2rem, 5.4vw, 3.4rem); letter-spacing: -.01em;
}
.hero p.lead { margin: 0 0 30px; font-size: clamp(1rem, 2vw, 1.16rem); opacity: .94; max-width: 42ch; }
@media (max-width: 900px) { .hero p.lead { margin-inline: auto; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 13px; }
@media (max-width: 900px) { .cta-row { justify-content: center; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); }
.btn-primary:hover { box-shadow: 0 18px 38px -14px rgba(0,0,0,.55); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.38); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.hero-stats { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-stats { justify-content: center; } }
.hero-stats div { line-height: 1.4; }
.hero-stats b { display: block; font-size: 1.5rem; }
.hero-stats small { opacity: .85; font-size: .82rem; }

/* -- phone mockup --------------------------------------------------------- */
.phone-stage { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  position: relative; width: min(280px, 74vw); aspect-ratio: 440 / 982;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #10221a, #05100b);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.14);
  animation: tilt 9s ease-in-out infinite;
}
@keyframes tilt {
  0%, 100% { transform: rotateY(-9deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(-3deg) rotateX(-1deg) translateY(-12px); }
}
.phone::before { /* the notch */
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.28); z-index: 3;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.phone-screen img.on { opacity: 1; }

.shot-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.shot-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  border: none; background: rgba(255,255,255,.4); transition: width .25s, background .25s;
}
.shot-dots button.on { width: 26px; border-radius: 99px; background: #fff; }

/* ==========================================================================
   sections
   ========================================================================== */
section.band { padding-block: clamp(56px, 8vw, 92px); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; line-height: 1.35;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1rem; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-deep));
  margin-bottom: 16px; box-shadow: var(--shadow-soft);
}
.card .ico svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.card p  { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.75; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-inline-start: 66px; margin-bottom: 30px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand-text); border: 1px solid var(--line);
  font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.step p  { margin: 0; color: var(--muted); font-size: .93rem; }

/* call to action strip */
.cta-band {
  background: linear-gradient(140deg, var(--brand-mid), var(--brand-deep));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.cta-band p  { margin: 0 0 26px; opacity: .92; }

/* ==========================================================================
   policy page
   ========================================================================== */
.page-hero {
  background: linear-gradient(150deg, #00C165, var(--brand-mid) 55%, var(--brand-deep));
  color: #fff; padding-block: 52px 74px; position: relative; overflow: hidden;
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 4.4vw, 2.5rem); font-weight: 700; }
.page-hero p  { margin: 0; opacity: .93; }
.stamp {
  display: inline-block; margin-top: 18px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32); padding: 6px 15px; border-radius: 999px; font-size: .82rem;
}

.policy { max-width: 840px; margin: -42px auto 0; padding-inline: 22px; padding-bottom: 70px; position: relative; z-index: 1; }
.policy section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px; margin-bottom: 18px; scroll-margin-top: 90px;
}
.policy h2 {
  display: flex; align-items: center; gap: 12px; line-height: 1.5;
  font-size: 1.1rem; margin: 0 0 14px; color: var(--brand-text); font-weight: 700;
}
.policy .num {
  flex: none; width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: .85rem;
}
.policy h3 { font-size: .98rem; margin: 20px 0 8px; }
.policy p  { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-inline-start: 22px; }
.policy li { margin-bottom: 7px; }
.policy p:last-child, .policy ul:last-child, .policy .tablewrap:last-child { margin-bottom: 0; }

.note {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand); border-radius: 13px;
  padding: 15px 17px; margin: 15px 0;
}
.note p { margin: 0; }
.note.warn { border-inline-start-color: #e0a106; }

.tablewrap { overflow-x: auto; margin: 15px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 460px; }
th, td { border: 1px solid var(--line); padding: 10px 13px; text-align: start; vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--brand-text); white-space: nowrap; }

/* table of contents */
.toc { position: sticky; top: 84px; }
.toc ol { margin: 0; padding-inline-start: 20px; font-size: .88rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--brand-text); }

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line); background: var(--card);
  padding-block: 40px 30px; margin-top: 10px;
}
.site-footer .cols {
  display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; align-items: start;
}
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 12px; font-size: .9rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a, .site-footer p { color: var(--muted); font-size: .89rem; }
.site-footer .bottom {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: .84rem;
}

/* ==========================================================================
   store badges — Google Play / App Store, used in the hero and the CTA band.
   Black, like the official badges, so they read as store buttons on green.
   ========================================================================== */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .store-row { justify-content: center; } }

.store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  min-width: 176px; padding: 10px 20px 10px 18px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.6);
  transition: transform .18s, box-shadow .18s;
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(0,0,0,.7); }
.store-btn:active { transform: scale(.98); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-btn small { font-size: .7rem; opacity: .85; }
.store-btn b { font-family: var(--font-en); font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 420px) {
  .store-row { flex-direction: column; align-items: stretch; max-width: 300px; margin-inline: auto; }
  .store-btn { justify-content: center; }
}

.cta-follow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  color: #fff; font-weight: 700; font-size: .92rem; opacity: .92;
}
.cta-follow svg { width: 18px; height: 18px; }
.cta-follow:hover { opacity: 1; text-underline-offset: 4px; }

.nav .nav-social { display: grid; place-items: center; padding: 8px; color: var(--muted); }
.nav .nav-social svg { width: 19px; height: 19px; }
.nav .nav-social:hover { color: #1877F2; }

/* ==========================================================================
   link-in-bio page (links.html)
   Mobile is the real target — this is the page opened from a social bio, on
   a phone, nearly every time. Desktop just gets the same column, centred.
   ========================================================================== */
.lt-body {
  min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(165deg, #00C165 0%, var(--brand-mid) 45%, var(--brand-deep) 100%);
  background-attachment: fixed;
}
@media (prefers-color-scheme: dark) {
  .lt-body { background: linear-gradient(165deg, #04351e 0%, #062417 50%, #050c08 100%); background-attachment: fixed; }
}

.lt {
  position: relative; max-width: 460px; margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 12px;
}
.lt-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lt > :not(.lt-bg) { position: relative; z-index: 1; }

.lt-top { display: flex; justify-content: space-between; align-items: center; }
.lt-icon-btn, .lt-lang {
  border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.14); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lt-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; padding: 0; transition: background .18s, transform .18s;
}
.lt-icon-btn svg { width: 18px; height: 18px; }
.lt-icon-btn:hover, .lt-lang:hover { background: rgba(255,255,255,.24); color: #fff; border-color: rgba(255,255,255,.5); }

.lt-profile { text-align: center; color: #fff; padding: 8px 0 14px; animation: lt-in .6s cubic-bezier(.22,.9,.3,1) both; }
.lt-avatar {
  width: 104px; height: 104px; margin: 0 auto 14px; padding: 4px; border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,255,255,.35));
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.55);
}
.lt-avatar img { width: 100%; height: 100%; border-radius: 26px; background: #fff; }
.lt-profile h1 { margin: 0 0 4px; font-size: 1.55rem; font-weight: 700; line-height: 1.35; }
.lt-profile p  { margin: 0 auto 14px; max-width: 32ch; font-size: .95rem; opacity: .92; line-height: 1.7; }
.lt-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  padding: 5px 13px; border-radius: 999px;
}
.lt-chip .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #b6ffd9;
  box-shadow: 0 0 0 0 rgba(182,255,217,.7); animation: pulse 2.4s infinite;
}

.lt-label {
  margin: 10px 4px 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.82); text-transform: uppercase;
}

.lt-link {
  display: flex; align-items: center; gap: 14px; min-height: 74px;
  padding: 12px 16px 12px 12px; border-radius: 20px;
  background: var(--card); color: var(--ink);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 14px 34px -20px rgba(0,0,0,.55);
  transition: transform .2s, box-shadow .2s;
  animation: lt-in .55s cubic-bezier(.22,.9,.3,1) both;
  animation-delay: calc(120ms + var(--i, 0) * 70ms);
  -webkit-tap-highlight-color: transparent;
}
html[dir="rtl"] .lt-link { padding: 12px 12px 12px 16px; }
.lt-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.lt-link:active { transform: scale(.98); }
.lt-link:focus-visible, .lt-icon-btn:focus-visible, .lt-lang:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .lt-link { border-color: rgba(255,255,255,.08); } }

.lt-link-soft { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
.lt-link-soft .lt-txt small { color: rgba(255,255,255,.8); }

.lt-ico {
  flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
}
.lt-ico svg { width: 26px; height: 26px; }
.lt-ico-play  { background: #10231a; }
.lt-ico-play svg { width: 24px; height: 24px; }
.lt-ico-apple { background: #000; color: #fff; }
.lt-ico-fb    { background: #1877F2; color: #fff; }
.lt-ico-ig    { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.lt-ico-web   { background: rgba(255,255,255,.2); color: #fff; }
@media (prefers-color-scheme: dark) { .lt-ico-apple { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); } }

.lt-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.lt-txt b { font-size: 1.05rem; font-weight: 700; }
.lt-txt small { font-size: .82rem; color: var(--muted); }

.lt-go { flex: none; width: 20px; height: 20px; opacity: .45; transition: transform .2s, opacity .2s; }
html[dir="rtl"] .lt-go { transform: scaleX(-1); }
.lt-link:hover .lt-go { opacity: .9; transform: translateX(3px); }
html[dir="rtl"] .lt-link:hover .lt-go { transform: scaleX(-1) translateX(3px); }

.lt-foot {
  margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  color: rgba(255,255,255,.75); font-size: .8rem;
}
.lt-foot a { color: #fff; }

.lt-toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #0b1f14; color: #fff; font-size: .88rem; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
  transition: opacity .25s, transform .25s;
}
.lt-toast.on { opacity: 1; transform: translate(-50%, 0); }

@keyframes lt-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   scroll reveal — opt-in, and inert when the visitor asks for less motion
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1); }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
