/* ============================================================
   سيلها Sayelha — Design System
   Emerald fintech, Arabic-first (Cairo font), day/night modes
   Motion language: everything moves with purpose — money flows,
   numbers count, cards breathe. Activity, not decoration.
   ============================================================ */
:root {
  --brand: #10b981;
  --brand-deep: #059669;
  --brand-glow: rgba(16, 185, 129, .35);
  --radius: 18px;
  --font: 'Cairo', system-ui, sans-serif;
}
[data-theme="light"] {
  --bg: #f6fbf8;
  --bg-soft: #ffffff;
  --bg-card: #ffffff;
  --ink: #0c1f17;
  --ink-soft: #476355;
  --line: #dcebe2;
  --shadow: 0 18px 45px -18px rgba(6, 95, 70, .25);
  --hero-glow-1: rgba(16, 185, 129, .16);
  --hero-glow-2: rgba(52, 211, 153, .10);
}
[data-theme="dark"] {
  --bg: #07120d;
  --bg-soft: #0b1a12;
  --bg-card: #0d2017;
  --ink: #eaf7f0;
  --ink-soft: #9dbfae;
  --line: #1d3a2b;
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, .6);
  --hero-glow-1: rgba(16, 185, 129, .22);
  --hero-glow-2: rgba(52, 211, 153, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin-inline: auto; }
section { padding: 72px 0; }
section[id], div[id] { scroll-margin-top: 84px; }
::selection { background: var(--brand); color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand-glow); outline-offset: 2px;
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 8px;
}
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 0 40px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-weight: 800; font-family: var(--font);
  border: none; border-radius: 999px;
  padding: 15px 38px; font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 12px 30px -8px var(--brand-glow);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -8px var(--brand-glow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--line); box-shadow: none;
}
.btn-pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid var(--brand);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(.96); opacity: .9; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; }
.brand img { height: 78px; width: auto; max-width: 320px; object-fit: contain; }
.site-footer .brand img { height: 84px; }
@media (max-width: 640px) {
  .brand img { height: 58px; max-width: 220px; }
}
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 700; }
.nav a { color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--brand-deep); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-card);
  color: var(--ink); font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s, border-color .2s;
  font-family: var(--font); font-size: .85rem;
}
.tool-btn:hover { transform: translateY(-2px); border-color: var(--brand); }

/* ---------- Hero cinematic (full-viewport, video-ready) ---------- */
.hero-cine { padding: 18px 0 10px; }
.hero-frame {
  position: relative; overflow: hidden;
  border-radius: 2rem;
  min-height: clamp(580px, 92svh, 880px);
  display: flex; align-items: flex-end;
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(16, 185, 129, .38), transparent 60%),
    radial-gradient(720px 520px at 8% 100%, rgba(4, 120, 87, .55), transparent 62%),
    linear-gradient(160deg, #0c3d2d, #07120d 72%);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(3, 10, 7, .84) 0%, rgba(3, 10, 7, .42) 36%, transparent 64%),
    linear-gradient(to bottom, rgba(3, 10, 7, .5), transparent 30%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 2;
  min-width: 0; max-width: 100%;
  padding: clamp(24px, 4vw, 60px);
  padding-bottom: clamp(64px, 9vh, 104px);
  max-width: 940px; color: #f7f3e8;
}
.hero-hook {
  font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700;
  color: rgba(247, 243, 232, .9); margin: 0 0 8px; text-wrap: balance;
}
.hero-title {
  font-size: clamp(2.7rem, 8.5vw, 6.4rem); font-weight: 900;
  line-height: 1.14; margin: 0 0 18px; color: #f7f3e8; text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.9;
  color: rgba(247, 243, 232, .84); margin: 0 0 32px; max-width: 60ch;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* Primary: cream pill + dark arrow disc (Prisma cue) */
.btn-cine {
  display: inline-flex; align-items: center; gap: 14px;
  background: #f5f1e4; color: #0c1f17;
  font-weight: 900; font-size: 1.12rem; font-family: var(--font);
  border-radius: 999px; padding: 8px; padding-inline-start: 30px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
  transition: transform .25s, box-shadow .25s;
}
.btn-cine:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -12px rgba(0, 0, 0, .6); }
.btn-cine-arrow {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: #0c1f17; color: #f5f1e4;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-cine-arrow svg { width: 20px; height: 20px; transition: transform .25s; }
[dir="rtl"] .btn-cine-arrow svg { transform: scaleX(-1); }
.btn-cine:hover .btn-cine-arrow svg { transform: translateX(3px); }
[dir="rtl"] .btn-cine:hover .btn-cine-arrow svg { transform: scaleX(-1) translateX(3px); }
/* Secondary: quiet outline pill */
.btn-cine-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(247, 243, 232, .55); color: #f7f3e8;
  border-radius: 999px; padding: 15px 30px;
  font-weight: 800; font-size: 1.05rem; font-family: var(--font);
  transition: background .25s, transform .25s, border-color .25s;
}
.btn-cine-ghost:hover { background: rgba(247, 243, 232, .12); transform: translateY(-3px); border-color: #f7f3e8; }
.btn-cine-ghost svg { width: 22px; height: 22px; flex: none; }
.hero-trust {
  list-style: none; display: flex; gap: 10px 26px; flex-wrap: wrap;
  margin: 30px 0 0; padding: 0;
  color: rgba(247, 243, 232, .88); font-weight: 700; font-size: .98rem;
}
.hero-trust li { display: flex; gap: 9px; align-items: center; }
.hero-trust svg { width: 20px; height: 20px; color: #34d399; flex: none; }
.hero-scroll {
  position: absolute; z-index: 2; bottom: 24px; inset-inline-end: clamp(20px, 4vw, 48px);
  width: 27px; height: 46px; border-radius: 999px;
  border: 2px solid rgba(247, 243, 232, .55);
  display: flex; justify-content: center; padding-top: 9px;
}
.hero-scroll span {
  width: 5px; height: 9px; border-radius: 5px; background: #f7f3e8;
  animation: scroll-dot 1.8s cubic-bezier(.22, 1, .36, 1) infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
/* Word-by-word pull-up (the one authored motion moment) */
[data-words] .w {
  display: inline-block; opacity: 0; transform: translateY(.55em);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
[data-words].in .w { opacity: 1; transform: none; }

/* ---------- Logo marquee: 3D river, full-color logos ---------- */
.trust { padding: 40px 0; border-block: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.trust h3 { text-align: center; color: var(--ink-soft); font-size: 1rem; margin: 0 0 24px; font-weight: 700; }
.trust .container { perspective: 1200px; }
.marquee {
  overflow: hidden; transform: rotateX(5deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="ltr"] .marquee-track { animation-name: marquee-ltr; }
@keyframes marquee-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.co-logo {
  height: auto; min-width: 140px; padding: 14px 26px 12px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 900; white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(6, 95, 70, .35);
  transition: transform .3s;
  margin-inline-end: 54px;
}
.co-logo:hover { transform: translateY(-4px); }
.co-logo img {
  height: 46px; max-width: 100%; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px 10px;
}
.co-logo .co-name { font-size: 1.05rem; font-weight: 800; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap; }
.tab {
  font-family: var(--font); font-weight: 800; font-size: 1.1rem;
  padding: 13px 42px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: var(--bg-card); color: var(--ink-soft);
  transition: all .3s;
}
.tab.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; border-color: transparent;
  box-shadow: 0 12px 28px -10px var(--brand-glow);
  transform: translateY(-2px);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fade-up .5s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.coming-soon-card {
  text-align: center; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 56px 24px; box-shadow: var(--shadow);
}
.coming-soon-card .big { margin-bottom: 10px; display: flex; justify-content: center; }
.notify-form { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Calculator wizard ---------- */
.calc-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 44px); position: relative; overflow: hidden;
}
.calc-card::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 6px;
  background: linear-gradient(90deg, var(--brand), #34d399, var(--brand-deep));
  background-size: 200% 100%; animation: cash-flow 3s linear infinite;
}
@keyframes cash-flow { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.steps-bar { display: flex; gap: 6px; margin-bottom: 30px; }
.steps-bar i { flex: 1; height: 8px; border-radius: 8px; background: var(--line); transition: background .4s; font-style: normal; }
.steps-bar i.on { background: linear-gradient(90deg, var(--brand), var(--brand-deep)); box-shadow: 0 0 10px var(--brand-glow); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fade-up .45s ease; }
.wizard-step h3 { margin: 0 0 20px; font-size: 1.35rem; font-weight: 800; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.co-card {
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; cursor: pointer;
  background: var(--bg-soft); color: var(--ink);
  transition: all .25s; font-family: var(--font);
}
.co-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.co-card.selected {
  border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--bg-soft));
  box-shadow: 0 0 0 3px var(--brand-glow); transform: translateY(-4px);
}
.co-card .co-name { font-weight: 900; font-size: 1.2rem; margin: 8px 0 4px; }
.co-card img {
  height: 56px; width: 100%; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 10px;
}
.co-card .co-rates { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
.amount-wrap { max-width: 520px; margin-inline: auto; text-align: center; }
.amount-input {
  width: 100%; font-family: var(--font); font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem); text-align: center;
  background: var(--bg-soft); color: var(--ink);
  border: 3px solid var(--line); border-radius: var(--radius);
  padding: 18px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.amount-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.quick-amounts { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.quick-amounts button {
  font-family: var(--font); font-weight: 800; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink);
  border-radius: 999px; padding: 8px 20px; transition: all .2s;
}
.quick-amounts button:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-2px); }
.hint { color: var(--ink-soft); margin-top: 12px; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.method-card {
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; cursor: pointer; background: var(--bg-soft); color: var(--ink);
  transition: all .25s; font-family: var(--font); text-align: center;
}
.method-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.method-card.selected {
  border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--bg-soft));
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.method-card .m-icon { display: flex; justify-content: center; }
.method-card .m-icon svg { width: 46px; height: 46px; color: var(--brand-deep); }
.method-card h4 { margin: 10px 0 6px; font-size: 1.1rem; }
.method-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.area-select { max-width: 420px; margin: 20px auto 0; display: none; }
.area-select.show { display: block; animation: fade-up .4s ease; }
.field { margin-bottom: 16px; text-align: start; }
.field label { display: block; font-weight: 800; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1.05rem;
  background: var(--bg-soft); color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px; padding: 13px 16px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow);
}
.result-box {
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, var(--bg-card)), var(--bg-card));
  border: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 700;
}
.result-row:last-child { border: none; }
.result-row .neg { color: #e11d48; }
.result-net {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; font-size: 1.35rem; font-weight: 900;
}
.result-net .val {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 2rem;
}
.wizard-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; }
/* Smart sticky mobile CTA — hidden on desktop, fixed mirror of .wizard-nav on mobile */
.wizard-sticky-cta { display: none; }
.calc-loading { text-align: center; padding: 30px; color: var(--ink-soft); font-weight: 700; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Wizard extras: counter, rate cards, modal ---------- */
.step-counter { text-align: center; color: var(--ink-soft); font-weight: 800; margin-bottom: 22px; }
.step-counter span { color: var(--brand-deep); font-size: 1.2em; font-variant-numeric: tabular-nums; }
.rate-card {
  max-width: 520px; margin-inline: auto; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 14%, var(--bg-card)), var(--bg-card));
  border: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
  border-radius: var(--radius); padding: 40px 24px;
}
.rate-big { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 900; color: var(--brand-deep); line-height: 1; font-variant-numeric: tabular-nums; }
.rate-amt { font-size: 1.4rem; font-weight: 800; margin-top: 10px; }
.rate-lbl { color: var(--ink-soft); font-weight: 700; margin-top: 6px; }
.rate-net { font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 900; color: var(--brand-deep); font-variant-numeric: tabular-nums; line-height: 1.1; }
.modal-ov {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 12, 8, .6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-ov[hidden] { display: none; }
.modal-card {
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 26px;
  padding: 44px 36px; max-width: 480px; width: 100%; text-align: center;
  box-shadow: var(--shadow);
  animation: pop-in .45s cubic-bezier(.22, 1, .36, 1);
}
.modal-card h3 { margin: 0 0 10px; font-size: 1.5rem; }
.modal-card p { color: var(--ink-soft); line-height: 1.9; margin: 0 0 26px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; position: relative; }
.how-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 24px; text-align: center; box-shadow: var(--shadow); position: relative;
  transition: transform .3s;
}
.how-card:hover { transform: translateY(-8px); }
.how-num {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-weight: 900; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px var(--brand-glow);
}
.how-card h3 { margin: 0 0 8px; }
.how-card p { color: var(--ink-soft); margin: 0; line-height: 1.8; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(150deg, #064e3b, #065f46 55%, #047857); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 80% 20%, rgba(255,255,255,.12), transparent 60%);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; text-align: center; position: relative; }
.stat .num { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 900; font-variant-numeric: tabular-nums; }
.stat .lbl { opacity: .85; font-weight: 700; }

/* ---------- Reviews: auto marquee flowing opposite the logos river ---------- */
#reviews .container { perspective: 1200px; }
.rev-track {
  overflow: hidden; padding: 14px 4px 26px;
  /* LTR flow so a leftward loop stays seamless in RTL pages;
     Arabic text direction is restored on the cards below. */
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
[dir="rtl"] .rev-inner .rev-card { direction: rtl; }
.rev-track.in { transform: rotateX(-4deg); }
.rev-inner {
  display: flex; width: max-content;
  animation: rev-marquee 48s linear infinite;
}
.rev-track:hover .rev-inner { animation-play-state: paused; }
@keyframes rev-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="ltr"] .rev-inner { animation-name: rev-marquee-ltr; }
@keyframes rev-marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.rev-inner .rev-card { margin-inline-end: 18px; }
.rev-card {
  min-width: 280px; max-width: 340px; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.rev-card .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.rev-card p { line-height: 1.9; color: var(--ink-soft); margin: 0 0 14px; }
.rev-card .who { font-weight: 800; }
.review-form-card {
  max-width: 640px; margin: 40px auto 0;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.stars-input { display: flex; gap: 6px; font-size: 1.8rem; }
.stars-input button { background: none; border: none; cursor: pointer; color: var(--line); padding: 0; transition: color .15s, transform .15s; }
.stars-input button.lit { color: #f59e0b; }
.stars-input button:hover { transform: scale(1.2); }
.flash-ok {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid var(--brand); color: var(--brand-deep);
  border-radius: 12px; padding: 12px 18px; font-weight: 700; margin-bottom: 18px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px 20px; transition: border-color .25s;
}
.faq-item[open] { border-color: var(--brand); }
.faq-item summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.6rem; color: var(--brand-deep); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); line-height: 1.9; margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #07120d; color: #c9e2d4; padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 40px;
}
.f-brand p { line-height: 1.9; opacity: .85; margin: 14px 0 20px; max-width: 34ch; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(201, 226, 212, .3);
  display: inline-flex; align-items: center; justify-content: center;
  color: #c9e2d4; transition: all .25s;
}
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.f-col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.f-col h4 { margin: 0 0 6px; color: #fff; font-size: 1.05rem; }
.f-col a, .f-col span { opacity: .85; transition: opacity .2s, color .2s; line-height: 1.8; }
.f-col a:hover { opacity: 1; color: #34d399; }
.footer-bottom {
  border-top: 1px solid rgba(201, 226, 212, .15);
  padding-block: 20px; text-align: center;
}
.footer-bottom p { margin: 0; opacity: .7; font-size: .92rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Floating elements ---------- */
/* ---------- Footer action buttons (static, scroll with the page) ---------- */
.footer-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.footer-actions .to-top { opacity: 1; pointer-events: auto; transform: none; }
.wa-float {
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .55);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.to-top {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  font-family: var(--font);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--brand); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
.mobile-cta {
  display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.mobile-cta .btn { width: 100%; padding: 14px; }

/* ---------- Thank you ---------- */
.thanks-wrap { min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.thanks-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 26px; padding: 56px 40px; box-shadow: var(--shadow); max-width: 560px; }
.check-pop {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-size: 3rem; display: flex; align-items: center; justify-content: center;
  animation: pop-in .6s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 16px 40px -10px var(--brand-glow);
}
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Testimonials 3D wall ---------- */
.t-wall {
  perspective: 1400px;
  overflow: hidden;
  max-height: 720px;
  border-radius: 2rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(800px 380px at 85% 0%, var(--hero-glow-1), transparent 60%),
    radial-gradient(700px 460px at 8% 100%, var(--hero-glow-2), transparent 60%),
    var(--bg-soft);
  padding: clamp(20px, 3vw, 40px);
}
.t-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.t-stage.t-mobile { display: none; }
.t-wall .t-stage {
  transform: rotateX(7deg);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}
.t-col {
  display: flex; flex-direction: column;
  animation: t-marquee 42s linear infinite;
}
.t-col.rev { animation-direction: reverse; }
.t-wall:hover .t-col { animation-play-state: paused; }
@keyframes t-marquee {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.t-col .t-card { margin-block-end: 18px; }
.t-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.t-who { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.t-who img, .t-av {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  object-fit: cover;
}
.t-av {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.4rem; color: #fff;
}
.t-av.av0 { background: #059669; } .t-av.av1 { background: #0d9488; }
.t-av.av2 { background: #65a30d; } .t-av.av3 { background: #0284c7; }
.t-av.av4 { background: #7c3aed; }
.t-name { font-weight: 800; }
.t-stars { color: #f59e0b; letter-spacing: 2px; font-size: .95rem; }
.t-body { margin: 0; line-height: 1.9; color: var(--ink-soft); }
@media (max-width: 900px) {
  .t-wall { max-height: 82svh; }
  .t-stage.t-desktop { display: none; }
  .t-stage.t-mobile { display: grid; grid-template-columns: 1fr; }
  .t-wall .t-stage { transform: none; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
}
@media (max-width: 640px) {
  .hero-frame { border-radius: 1.25rem; min-height: 82svh; }
  .hero-scroll { display: none; }
  .hero-content { padding: 20px 16px 64px; }
  .hero-title { font-size: clamp(2rem, 12vw, 3rem); }
  .hero-hook { font-size: 1rem; }
  .hero-sub { font-size: .98rem; }
  /* Mobile has its own sticky CTA bar — hide the header one to avoid crowding */
  .header-tools .btn { display: none; }
  .header-inner { gap: 10px; }
  .thanks-card { padding: 36px 22px; }
  .mobile-cta { display: block; }
  /* While the wizard sticky CTA is active, it replaces the generic mobile CTA
     and the in-flow wizard-nav (single primary action, no double bars). */
  body.has-wizard-sticky .mobile-cta { display: none !important; }
  body.has-wizard-sticky .wizard-nav { display: none; }
  body.has-wizard-sticky #calculator { padding-bottom: 96px; }
  .wizard-sticky-cta {
    display: block; position: fixed; bottom: 0; inset-inline: 0; z-index: 70;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .25);
  }
  .wizard-sticky-cta[hidden] { display: none; }
  .wizard-sticky-inner { display: flex; gap: 10px; max-width: 640px; margin-inline: auto; align-items: stretch; }
  .wizard-sticky-back { flex: 0 0 auto; padding: 14px 20px; font-size: 1rem; }
  .wizard-sticky-back[hidden] { display: none; }
  .wizard-sticky-next { flex: 1; padding: 16px; font-size: 1.15rem; min-height: 56px; }
  .wizard-sticky-arrow { display: inline-flex; width: 26px; height: 26px; }
  .wizard-sticky-arrow svg { width: 100%; height: 100%; }
  [dir="rtl"] .wizard-sticky-arrow svg { transform: scaleX(-1); }
  .site-footer { padding-bottom: 130px; }
  .modal-card { padding: 32px 20px; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Auth & account */
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 12px; padding: 14px 18px; }
[data-theme="dark"] .alert-error { background: #3f1d1d; border-color: #7f2d2d; color: #fca5a5; }
.data-table { width: 100%; border-collapse: collapse; background: var(--card, #fff); border-radius: 14px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid rgba(0,0,0,.07); }
.data-table th { font-weight: 800; opacity: .8; font-size: .9rem; }
.field .hint { display: block; font-size: .8rem; opacity: .65; margin-top: 6px; }
.field small.hint { display: block; font-size: .8rem; opacity: .65; margin-top: 6px; }
