/* Daftar website.
   Brand colors follow the app (lib/theme.dart); a warm "paper" background
   for the ledger feel. Logical properties (inline-start/end) so the same
   file serves the Arabic pages (dir="rtl"). */

:root {
  --paper: #F7F5EF;
  --paper-2: #EFEBE1;
  --surface: #FFFFFF;
  --line: #E4DFD3;
  --line-soft: #EEEAE0;
  --ink: #0E1A16;
  --muted: #5B6862;
  --green: #0A6B55;
  --green-deep: #053B30;
  --green-ink: #08493A;
  --mint: #BFF3DF;
  --mint-soft: #D9F2E8;
  --hero-muted: #CFE8DF;
  --credit: #B93E14;
  --credit-soft: #FBE4DA;
  --pen: #1F3A8A;
  --shadow-sm: 0 1px 2px rgba(14, 26, 22, .06);
  --shadow: 0 1px 2px rgba(14, 26, 22, .05), 0 12px 32px -8px rgba(14, 26, 22, .14);
  --shadow-lg: 0 2px 4px rgba(5, 59, 48, .08), 0 30px 60px -12px rgba(5, 59, 48, .35);
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  color-scheme: light;
}
[lang="ar"] {
  --serif: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --hand: "Aref Ruqaa", "Caveat", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1110;
    --paper-2: #101917;
    --surface: #141D1B;
    --line: #26332F;
    --line-soft: #1C2724;
    --ink: #E8EFEC;
    --muted: #9AABA4;
    --green: #3FBF97;
    --green-ink: #BFF3DF;
    --mint-soft: #143A30;
    --credit: #F08A5D;
    --credit-soft: #3A2016;
    --pen: #9DB4FF;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-lg: 0 30px 60px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--green); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.on-hero { position: fixed; inset-inline: 0; color: #fff; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.site-header:not(.on-hero) { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
[lang="ar"] .brand { letter-spacing: 0; font-size: 23px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav a { color: inherit; opacity: .78; text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: opacity .2s, background .2s; }
.nav a:hover { opacity: 1; background: rgba(127,127,127,.12); }
.nav .lang { opacity: 1; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Phone menu (built by script.js from the .hide-sm links) */
.menu-btn {
  display: none; place-items: center; width: 42px; height: 42px; margin-inline-start: 4px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: transparent; color: inherit; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.mobile-menu { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .site-header.menu-open {
    background: var(--paper); color: var(--ink); border-bottom-color: var(--line);
    box-shadow: 0 18px 40px -20px rgba(14, 26, 22, .35);
  }
  .menu-open .mobile-menu { display: block; animation: menu-in .28s cubic-bezier(.2,.7,.2,1); }
  .mobile-menu .wrap { display: grid; padding-block: 4px 18px; }
  .mobile-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 4px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none;
    border-top: 1px solid var(--line-soft);
  }
  .mobile-menu a::after { content: "→"; color: var(--green); font-weight: 500; }
  [dir="rtl"] .mobile-menu a::after { content: "←"; }
}
@keyframes menu-in { from { opacity: 0; translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .menu-open .mobile-menu { animation: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-light { background: #fff; color: var(--green-deep); box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(0,0,0,.5); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-green { background: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-green { color: #06231C; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(191,243,223,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(0,0,0,.35), transparent 60%),
    linear-gradient(160deg, #0B7A61 0%, #0A6B55 35%, #053B30 100%);
  color: #fff;
  padding: 140px 0 120px;
}
.hero::before {
  /* Banknote security lines, like BalanceCard */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    repeating-radial-gradient(circle at 105% 115%, transparent 0 22px, rgba(255,255,255,.05) 22px 23px),
    repeating-radial-gradient(circle at -10% -20%, transparent 0 30px, rgba(255,255,255,.035) 30px 31px);
}
.hero::after {
  /* Fine grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-size: 14px; font-weight: 500; color: var(--hero-muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(191,243,223,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(191,243,223,0); } }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.025em;
  margin: 22px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--mint); }
[lang="ar"] .hero h1 { font-weight: 700; line-height: 1.25; letter-spacing: 0; font-size: clamp(38px, 5.6vw, 66px); }
[lang="ar"] .hero h1 em { font-style: normal; }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--hero-muted); max-width: 33em; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: 14.5px; color: var(--hero-muted); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--mint); }

/* ---------- Phone ---------- */
.stage { position: relative; justify-self: center; width: 100%; max-width: 420px; display: grid; place-items: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #2b3532, #0d1513);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.12);
  transform: rotate(-2.5deg);
}
[dir="rtl"] .phone { transform: rotate(2.5deg); }
.phone::before { /* side button */
  content: ""; position: absolute; inset-inline-end: -3px; top: 150px; width: 3px; height: 64px; border-radius: 3px; background: #1d2624;
}
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: #F3F5F4; color: #0E1A16; font-size: 13px;
  display: flex; flex-direction: column;
}
.notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #0d1513; z-index: 2; }
.status { display: flex; justify-content: space-between; padding: 14px 24px 0; font-size: 12px; font-weight: 600; direction: ltr; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 10px; }
.app-top b { font-size: 17px; }
.app-top small { display: block; color: #56655F; font-size: 11.5px; }
.sync { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #D3ECE3; color: #08493A; font-size: 11px; font-weight: 600; }
.sync svg { width: 13px; height: 13px; }
.note {
  position: relative; overflow: hidden; margin: 0 14px;
  border-radius: 20px; padding: 16px 16px 14px; color: #fff;
  background: linear-gradient(135deg, #0B7A61, #064B3C);
  box-shadow: 0 14px 24px -14px rgba(5,59,48,.8);
}
.note::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 115% 130%, transparent 0 8px, rgba(255,255,255,.07) 8px 9px);
}
.note small { color: #CFE8DF; font-size: 11.5px; }
.note .amount { font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.note .sub { color: #CFE8DF; font-size: 12.5px; }
.chips { display: flex; gap: 6px; margin: 12px 14px 0; }
.chips span { flex: 1; background: #fff; border: 1px solid #DDE4E1; border-radius: 12px; padding: 7px 9px; font-size: 10.5px; color: #56655F; line-height: 1.3; }
.chips b { display: block; color: #0E1A16; font-size: 12.5px; }
.list-h { display: flex; justify-content: space-between; margin: 14px 18px 6px; font-size: 11.5px; font-weight: 600; color: #56655F; }
.rows { margin: 0 14px; background: #fff; border-radius: 16px; border: 1px solid #DDE4E1; }
.row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; }
.row + .row { border-top: 1px solid #E9EEEC; }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 11.5px; }
.row .name { flex: 1; font-weight: 600; font-size: 12.5px; line-height: 1.25; }
.row .name small { display: block; font-weight: 400; color: #56655F; font-size: 10.5px; }
.owed { color: #B93E14; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paid { color: #0A6B55; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 8px 18px; background: #fff; border-top: 1px solid #E9EEEC; }
.tabbar i { width: 22px; height: 4px; border-radius: 4px; background: #DDE4E1; }
.tabbar i.on { background: #0A6B55; width: 28px; }

/* Floating cards around the phone */
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 11px; border-radius: 16px;
  background: rgba(255,255,255,.96); color: #0E1A16;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.45);
  font-size: 13px; line-height: 1.3; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-size: 14px; }
.float small { color: #56655F; }
.float .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float .ic svg { width: 18px; height: 18px; }
.f-pay { top: 3%; inset-inline-start: -14%; }
.f-rate { bottom: 11%; inset-inline-end: -14%; animation-delay: -2s; }
.f-wa { bottom: -3%; inset-inline-start: -6%; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .float, .eyebrow .dot { animation: none; } }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
[id] { scroll-margin-top: 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; }
h2 {
  font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.02em;
  margin: 0 0 18px; text-wrap: balance;
}
h2 em { font-style: italic; color: var(--green); }
[lang="ar"] h2 { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
[lang="ar"] h2 em { font-style: normal; }
.section-lead { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0; text-wrap: pretty; }
.head { margin-bottom: 56px; }
.head.center { text-align: center; }
.head.center .section-lead { margin-inline: auto; }

/* Paper vs Daftar */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.paper {
  position: relative; padding: 34px 34px 30px; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 54px, rgba(185,62,20,.35) 54px 56px, transparent 56px),
    repeating-linear-gradient(#FFFDF6 0 35px, #D9E3F0 35px 36px);
  color: #2a2a2a; box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
[dir="rtl"] .paper {
  background:
    linear-gradient(270deg, transparent 54px, rgba(185,62,20,.35) 54px 56px, transparent 56px),
    repeating-linear-gradient(#FFFDF6 0 35px, #D9E3F0 35px 36px);
  transform: rotate(1deg);
}
.paper::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; rotate: -3deg;
  width: 110px; height: 28px; background: rgba(230, 218, 180, .75); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.paper h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #8a6d3b; margin: 0 0 10px; padding-inline-start: 40px; }
[lang="ar"] .paper h3 { letter-spacing: 0; font-size: 15px; }
.paper ul { list-style: none; margin: 0; padding: 0 0 0 40px; font-family: var(--hand); font-size: 25px; line-height: 36px; color: var(--pen); }
[dir="rtl"] .paper ul { padding: 0 40px 0 0; font-size: 23px; }
.paper li { display: flex; justify-content: space-between; gap: 12px; }
.paper .x { text-decoration: line-through; text-decoration-color: rgba(185,62,20,.8); text-decoration-thickness: 2px; opacity: .7; }
.paper .q { color: #B93E14; }
.paper .smudge { position: absolute; bottom: 26px; inset-inline-end: 34px; width: 90px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 90, 40, .14), transparent); }
.paper-foot { margin-top: 18px; padding-inline-start: 40px; font-size: 15px; color: #6b5a3a; font-family: var(--sans); line-height: 1.5; }

.better { display: grid; gap: 14px; align-content: center; }
.better .item { display: flex; gap: 16px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.better .tick { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--green-ink); }
.better .tick svg { width: 18px; height: 18px; }
.better b { display: block; font-size: 17px; margin-bottom: 2px; }
.better p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.tile h3 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }
[lang="ar"] .tile h3 { letter-spacing: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.t-wide { grid-column: span 4; }
.t-narrow { grid-column: span 2; }
.t-third { grid-column: span 2; }
.t-dark { background: linear-gradient(150deg, #0A6B55, #053B30); color: #fff; border-color: transparent; }
.t-dark p { color: var(--hero-muted); }
.visual { margin-top: auto; padding-top: 26px; }

/* tile visuals */
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rate { border-radius: 16px; padding: 14px; background: var(--paper); border: 1px solid var(--line-soft); }
.rate small { display: block; color: var(--muted); font-size: 12.5px; }
.rate b { font-size: 19px; font-variant-numeric: tabular-nums; }
.rate .up { color: var(--credit); font-size: 12px; font-weight: 600; }
.spark { width: 100%; height: 34px; margin-top: 8px; }
.offline { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.offline + .offline { margin-top: 10px; }
.offline .b { width: 10px; height: 10px; border-radius: 50%; background: #F5B83D; flex: none; }
.offline .b.ok { background: var(--mint); }
.offline span { flex: 1; font-size: 14px; }
.offline small { color: var(--hero-muted); font-size: 12.5px; }
.bubble {
  max-width: 290px; padding: 12px 14px 8px; border-radius: 16px 16px 16px 4px;
  background: #DCF8C6; color: #111b21; font-size: 14px; line-height: 1.5; box-shadow: var(--shadow-sm);
}
[dir="rtl"] .bubble { border-radius: 16px 16px 4px 16px; }
.bubble small { display: block; text-align: end; color: #667781; font-size: 11px; margin-top: 2px; }
@media (prefers-color-scheme: dark) { .bubble { background: #005C4B; color: #E9EDEF; } .bubble small { color: #8FA7A0; } }
.shops { display: grid; gap: 8px; }
.shop { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-soft); font-weight: 600; font-size: 14.5px; }
.shop.on { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent); }
.shop i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--green); }
.shop span { flex: 1; }
.shop small { color: var(--muted); font-weight: 500; }
.restore { display: flex; align-items: center; gap: 14px; }
.restore .ph { width: 54px; height: 92px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); position: relative; }
.restore .ph::after { content: ""; position: absolute; inset: 10px 8px auto; height: 18px; border-radius: 5px; background: var(--green); opacity: .85; }
.restore .ph.old { opacity: .45; }
.restore .arrow { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 11px); position: relative; }
[dir="rtl"] .restore .arrow::after { inset-inline-end: -2px; rotate: 45deg; border-width: 0 0 2px 2px; }
.restore .arrow::after { content: ""; position: absolute; inset-inline-end: -2px; top: -5px; width: 10px; height: 10px; border: solid var(--green); border-width: 2px 2px 0 0; rotate: 45deg; }
[dir="rtl"] .restore .arrow::after { rotate: -135deg; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-soft); font-weight: 600; font-size: 14px; }
.langs span.on { background: var(--green); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { .langs span.on { color: #06231C; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; inset-inline: 16% 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step { text-align: center; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--green);
}
.step h3 { font-size: 20px; margin: 0 0 6px; }
.step p { margin: 0 auto; color: var(--muted); max-width: 22em; font-size: 15.5px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq details[open] p { animation: faq-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .faq details[open] p { animation: none; } }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6B55' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--line); transition: rotate .25s;
}
.faq details[open] summary::after {
  /* "−" while open */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6B55' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
  rotate: 180deg;
}
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 40em; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: 72px 56px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #0B7A61, #053B30);
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background: repeating-radial-gradient(circle at 50% 160%, transparent 0 26px, rgba(255,255,255,.05) 26px 27px);
}
.cta h2 { color: #fff; margin-inline: auto; max-width: 16em; }
.cta h2 em { color: var(--mint); }
.cta p { color: var(--hero-muted); font-size: 19px; margin: 0 auto 32px; max-width: 32em; }
.cta .cta-row { justify-content: center; }

/* Footer */
.site-footer { padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.site-footer .brand { color: var(--ink); margin-bottom: 12px; }
.site-footer h4 { color: var(--ink); font-size: 14px; margin: 4px 0 14px; letter-spacing: .08em; text-transform: uppercase; }
[lang="ar"] .site-footer h4 { letter-spacing: 0; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p a, .foot-bottom a { color: var(--green); font-weight: 600; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; }

/* Reveal on scroll (script.js adds .in) */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; transition: none; } }

/* ---------- Legal pages ---------- */
.doc-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--paper-2), var(--paper)); }
.doc-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 10px; }
[lang="ar"] .doc-hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.doc-hero .meta { color: var(--muted); margin: 0; }
.doc { max-width: 808px; padding-block: 48px 40px; }
.doc-hero .wrap { max-width: 808px; }
.doc > p:first-child { font-size: 19px; }
.doc h2 { font-family: var(--sans); font-size: 22px; font-weight: 700; letter-spacing: 0; line-height: 1.35; margin: 40px 0 10px; }
.doc ul { padding-inline-start: 22px; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 120px 0 90px; }
  .hero-grid, .versus, .faq-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 72px; }
  .t-wide, .t-narrow, .t-third { grid-column: span 6; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  section { padding: 76px 0; }
  .head { margin-bottom: 40px; }
  .hero .lead, .section-lead { font-size: 17px; }
  .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .rates { grid-template-columns: 1fr 1fr; }
  .rates .rate:last-child { display: none; }
  .cta { padding: 56px 22px; border-radius: 26px; }
  .float { font-size: 12px; padding: 9px 12px 9px 9px; }
  .f-pay { inset-inline-start: -2%; }
  .f-rate { display: none; }
  .f-wa { display: none; }
  .phone { width: 270px; }
  .paper { padding: 28px 18px 24px; }
  .paper ul, .paper h3, .paper-foot { padding-inline-start: 38px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-grid > :first-child { grid-column: auto; }
}
