/* Lawyer Office website. Logical properties (inline-start / inline-end) keep the layout right for RTL (ar) and LTR (en, fr). */
:root {
  --navy-950: #081528;
  --navy-900: #0b1d36;
  --navy-800: #0f2545;
  --navy: #1a3c6d;
  --blue: #2563eb;
  --blue-50: #eef4ff;
  --gold: #c29a4b;
  --gold-light: #e7cf9c;
  --gold-50: #fbf5e8;
  --green: #16a34a;
  --wa: #1fa855;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 37, 69, .06), 0 1px 3px rgba(15, 37, 69, .08);
  --shadow: 0 10px 30px -12px rgba(15, 37, 69, .25);
  --shadow-lg: 0 30px 60px -20px rgba(8, 21, 40, .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}
html[lang="ar"] { --font: 'Cairo', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); padding: .05em .4em; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.icon { width: 22px; height: 22px; flex: none; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .55); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .icon { width: 18px; height: 18px; }
html[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
.btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(26, 60, 109, .8); }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--navy); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178f47; transform: translateY(-1px); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 37, 69, .5); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none !important; font-family: 'Inter', var(--font); letter-spacing: -.01em; white-space: nowrap; }
.brand img { border-radius: 10px; background: #fff; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 12px; }
.main-nav > a { color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.main-nav > a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.lang-switch { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang-switch a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 5px 9px; border-radius: 8px; line-height: 1.2; }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.lang-switch-mobile { display: none; }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(37, 99, 235, .13), transparent 60%),
    radial-gradient(700px 420px at 0% 30%, rgba(194, 154, 75, .14), transparent 60%),
    linear-gradient(180deg, #f8fafd 0%, #fff 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15, 37, 69, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 37, 69, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-50); color: #8a6420; border: 1px solid #efdfbb;
  font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .icon { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin-bottom: 20px; }
.hero h1 .accent { display: block; background: linear-gradient(90deg, var(--navy), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 2.4; }

/* hero visual: browser + phone mock */
.hero-visual { position: relative; padding-bottom: 40px; padding-inline-end: 40px; }
.mock-window { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid #dbe3ef; overflow: hidden; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
html[dir="rtl"] .mock-window { transform: perspective(1400px) rotateY(4deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-inline-start: 12px; font-size: 12px; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; border: 1px solid var(--line); }
.mock-body { display: flex; min-height: 330px; }
.mock-side { width: 62px; background: linear-gradient(180deg, var(--navy-800), var(--navy)); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.mock-side img { margin-bottom: 8px; border-radius: 8px; background: #fff; }
.mock-side b { width: 26px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.mock-side b.on { background: var(--gold-light); }
.mock-main { flex: 1; padding: 18px; background: #f8fafc; min-width: 0; }
.mock-title { font-weight: 800; color: var(--ink); margin: 0 0 12px; font-size: 15px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mock-stats small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-stats strong { font-size: 22px; color: var(--navy); line-height: 1.3; }
.mock-table { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock-sub { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f5f9; font-size: 13px; color: var(--ink); font-weight: 600; }
.mock-row:first-of-type { border-top: 0; }
.mock-row span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row em, .phone-list em, .mock-phone-card em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 700; direction: ltr; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-blue { background: var(--blue); } .dot-gold { background: var(--gold); } .dot-green { background: var(--green); }

.mock-phone {
  position: absolute; bottom: 0; inset-inline-end: 0; width: 205px;
  background: var(--navy-900); border-radius: 30px; padding: 30px 12px 16px;
  box-shadow: var(--shadow-lg); border: 6px solid #1e293b;
}
.mock-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 64px; height: 14px; background: #1e293b; border-radius: 10px; }
.mock-push { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .96); border-radius: 14px; padding: 10px; margin-bottom: 10px; animation: push-in 1s .6s both cubic-bezier(.2, .8, .2, 1); }
.push-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; flex: none; }
.push-icon .icon { width: 17px; height: 17px; }
.mock-push strong { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.3; }
.mock-push small { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.mock-phone-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 9px 11px; margin-top: 8px; color: #fff; }
.mock-phone-card small { display: block; font-size: 10.5px; color: #9fb2cf; }
.mock-phone-card strong { display: block; font-size: 12px; line-height: 1.35; }
.mock-phone-card em { color: var(--gold-light); }
@keyframes push-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- facts strip */
.facts { border-block: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 26px 20px; }
.facts-grid > div + div { border-inline-start: 1px solid var(--line); }
.facts-grid .icon { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-50); color: var(--navy); }
.facts-grid strong { color: var(--ink); font-size: 16px; line-height: 1.3; }
.facts-grid span { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd9e8; }
.feature .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; margin-bottom: 16px; }
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* highlights */
.highlights { display: grid; gap: 96px; }
.highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.highlight-rev .highlight-copy { order: 2; }
.highlight-copy h2 { font-size: clamp(26px, 3vw, 36px); }
.highlight-copy > p { font-size: 17px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.checks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #dcfce7; color: var(--green); stroke-width: 3; margin-top: 2px; }

.card-mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); position: relative; }
.card-mock::before { content: ""; position: absolute; inset: -14px 24px auto; height: 14px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; opacity: .6; }
.card-mock-title { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.card-mock-title .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--gold-50); color: #8a6420; }
.roll-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.roll-row strong { display: block; color: var(--ink); font-size: 15px; }
.roll-row small { color: var(--muted); font-size: 13.5px; }
.tag { display: inline-block; white-space: nowrap; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.tag-green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.tag-gold { background: var(--gold-50); color: #8a6420; border-color: #efdfbb; }
.tag-blue { background: var(--blue-50); color: var(--blue); border-color: #c7d7fe; }
.ledger > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.ledger b { color: var(--ink); white-space: nowrap; }
.ledger b.neg { color: var(--green); }
.ledger .ledger-total { border-top: 2px solid var(--ink); margin-top: 6px; font-weight: 800; color: var(--ink); font-size: 16.5px; }
.ledger .ledger-total b { color: var(--navy); font-size: 19px; }
.dup { display: flex; align-items: center; gap: 12px; }
.dup-name { flex: 1; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); text-align: center; }
.dup-name small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.dup-eq { font-size: 26px; color: var(--gold); font-weight: 800; }
.dup-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: center; }

/* security (dark) */
.section-dark { background: radial-gradient(900px 500px at 90% 0%, rgba(37, 99, 235, .25), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #c7d3e6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: #9fb2cf; }
.section-dark .kicker { color: var(--gold-light); }
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-item { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius); padding: 28px 24px; transition: background .2s, border-color .2s; }
.sec-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(231, 207, 156, .35); }
.sec-item .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(231, 207, 156, .12); color: var(--gold-light); margin-bottom: 16px; }
.sec-item h3 { font-size: 18px; }
.sec-item p { margin: 0; font-size: 15px; line-height: 1.65; }

/* apps */
.apps { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.apps-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.apps-copy > p { font-size: 17px; color: var(--muted); }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 9px 18px 9px 14px; border-radius: 12px; font-weight: 700; font-size: 17px; line-height: 1.1; font-family: 'Inter', sans-serif; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: .75; font-family: var(--font); }
.apps-visual { display: flex; justify-content: center; position: relative; }
.apps-visual::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(194, 154, 75, .25), transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phone { position: relative; width: 270px; background: #f8fafc; border: 10px solid var(--navy-900); border-radius: 42px; padding: 38px 16px 16px; box-shadow: var(--shadow-lg); }
.phone .mock-notch { background: var(--navy-900); top: 0; width: 96px; height: 20px; border-radius: 0 0 14px 14px; }
.phone-head { font-weight: 800; color: var(--ink); margin: 0 0 12px; font-size: 17px; }
.phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.phone-stats div { background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 14px; padding: 12px; color: #fff; }
.phone-stats div:last-child { background: linear-gradient(135deg, #a67c2e, var(--gold)); }
.phone-stats strong { display: block; font-size: 24px; line-height: 1.2; }
.phone-stats small { font-size: 11.5px; opacity: .9; line-height: 1.3; display: block; }
.phone-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.phone-list div { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #f1f5f9; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.phone-list div:first-child { border-top: 0; }
.phone-list span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-tabs { display: flex; justify-content: space-around; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.phone-tabs i { width: 22px; height: 6px; border-radius: 3px; background: #cbd5e1; }
.phone-tabs i.on { background: var(--navy); }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; align-items: start; }
.price-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; border: 2px solid var(--navy); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--navy), var(--blue), var(--gold)); }
.price-name { font-weight: 800; color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.price span { font-size: 64px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; font-family: 'Inter', sans-serif; }
.price sup { font-size: 28px; vertical-align: top; position: relative; top: 8px; margin-inline-end: 2px; }
.price small { color: var(--muted); font-weight: 600; font-size: 15px; }
.price-note { color: #8a6420; background: var(--gold-50); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14.5px; margin: 18px 0 22px; }
.price-card .checks { margin-top: 26px; }
.price-card .checks li { font-weight: 600; font-size: 15px; }
.price-side { display: grid; gap: 16px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-box .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--blue-50); color: var(--navy); margin-bottom: 12px; }
.side-box h3 { font-size: 17px; margin-bottom: 6px; }
.side-box p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cfd9e8; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; color: var(--ink); font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--navy); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* contact */
.section-contact { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.contact-copy > p { font-size: 17px; color: var(--muted); }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.contact-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfd9e8; }
.contact-card .icon { width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: var(--blue-50); color: var(--navy); }
.contact-wa .icon { background: #dcfce7; color: var(--wa); }
.contact-card small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.contact-card strong { font-size: 17px; word-break: break-word; }
.contact-hours { margin-top: 18px; font-size: 14px; color: var(--muted); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 22px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 700; font-size: 14px; color: var(--ink); }
input, textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1px solid #cbd5e1; border-radius: 11px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
html[dir="rtl"] input[dir="ltr"] { text-align: right; }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
input[aria-invalid="true"] { border-color: #dc2626; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-actions .btn { flex: 1; }
.form-error { color: #b91c1c; font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* floating WhatsApp */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(31, 168, 85, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* login dialog */
.login-dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
.login-dialog::backdrop { background: rgba(8, 21, 40, .55); backdrop-filter: blur(3px); }
.login-form { padding: 32px; position: relative; }
.login-form h2 { font-size: 22px; }
.login-form > p { color: var(--muted); font-size: 15px; }
.dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bg-alt); font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.office-input { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 11px; overflow: hidden; margin: 6px 0 14px; transition: border-color .15s, box-shadow .15s; }
.office-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.office-input input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; text-align: left !important; }
.office-input span { display: flex; align-items: center; padding: 0 12px; background: var(--bg-alt); color: var(--muted); font-size: 14.5px; font-weight: 600; border-left: 1px solid var(--line); }
.login-help { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; }

/* legal pages */
.legal-hero { padding: 64px 0 40px; background: linear-gradient(180deg, #f8fafd, #fff); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 8px; }
.legal-updated { color: var(--muted); margin: 0; }
.legal-section { padding-top: 48px; }
.legal { font-size: 16.5px; }
.legal .legal-intro { font-size: 18px; color: var(--ink); }
.legal h2 { font-size: 22px; margin-top: 44px; padding-top: 8px; }
.legal h3 { font-size: 17.5px; margin-top: 26px; }
.legal ul { padding-inline-start: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--ink); }
.legal-contact { display: flex; gap: 16px; align-items: center; margin-top: 56px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.legal-contact .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--navy); }
.legal-contact strong { color: var(--ink); }
.legal-contact p { margin: 0; }

/* 404 */
.not-found { padding: 110px 0 120px; text-align: center; }
.nf-code { font-size: 110px; font-weight: 800; line-height: 1; margin: 0 0 12px; background: linear-gradient(90deg, var(--navy), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Inter', sans-serif; }
.not-found .hero-cta { justify-content: center; }

/* footer */
.site-footer { background: var(--navy-950); color: #9fb2cf; padding: 64px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.brand-light { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 340px; line-height: 1.7; }
.site-footer h2 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c7d3e6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom p { margin: 0; font-size: 14px; }
.lang-switch-footer { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.lang-switch-footer a { color: #9fb2cf; }
.lang-switch-footer a.active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }

/* reveal on scroll: site.js hides only the elements below the fold, then shows them as they scroll in */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .mock-push { animation: none; }
}

/* ---------- responsive */
@media (max-width: 1320px) {
  .main-nav > a { padding: 8px 8px; font-size: 14.5px; }
}
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .header-actions > .lang-switch { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    box-shadow: 0 20px 30px -20px rgba(15, 37, 69, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a { padding: 12px; font-size: 16px; }
  .lang-switch-mobile { display: inline-flex; align-self: flex-start; margin-top: 10px; }
}
@media (max-width: 980px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .highlight, .apps, .contact, .pricing { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .highlight { gap: 36px; }
  .highlight-rev .highlight-copy { order: 0; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div:nth-child(3) { border-inline-start: 0; }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
  .highlights { gap: 72px; }
}
@media (max-width: 680px) {
  .container { padding-inline: 16px; }
  .hide-sm { display: none; }
  .feature-grid, .security-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid > div { border-inline-start: 0 !important; padding: 18px 4px; }
  .facts-grid > div + div { border-top: 1px solid var(--line); }
  .hero-visual { padding-inline-end: 0; padding-bottom: 0; }
  .mock-window, html[dir="rtl"] .mock-window { transform: none; }
  .mock-phone { display: none; }
  .mock-body { min-height: 0; }
  .mock-side { width: 46px; }
  .mock-stats strong { font-size: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form, .price-card, .login-form { padding: 24px 20px; }
  .price span { font-size: 54px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
  .section-head { margin-bottom: 40px; }
  .brand span { font-size: 16.5px; }
}
@media (max-width: 380px) {
  .header-actions .btn-ghost { padding-inline: 8px; }
}
