/* mnemoptic — marketing design system (v3, editorial / optical)
   Shared by every public page: index/pricing/about/faq/contact (× EN/FR/AR),
   signin, checkout, my-account, downloads, privacy, terms, 404.
   Page-specific tweaks live in each page's inline <style>.

   Direction: an editorial, instrument-grade light theme — warm paper white,
   ink text, one disciplined blue. Display set in Space Grotesk (a geometric
   grotesk), UI/body in Inter, data in JetBrains Mono.
   Recurring optical motifs: focus crosshair (✛), lens rings, acuity ramp.
   Light only — no dark mode. Full RTL support. */

/* Fonts load via each page's <link>: Inter + Space Grotesk + JetBrains Mono. */

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  /* surfaces — warm paper, not cold grey */
  --bg:        #ffffff;
  --bg-2:      #f7f6f2;   /* warm stone — alternating sections */
  --bg-3:      #f1efe9;   /* deeper stone — insets */
  --surface:   #ffffff;
  --surface-2: #f7f6f2;

  /* ink */
  --text:      #18181b;   /* near-black, faintly warm */
  --text-2:    #55555d;   /* secondary */
  --text-3:    #8a8a92;   /* tertiary / captions */

  /* hairlines — warm */
  --border:    #e7e4dc;
  --border-2:  #d8d4c9;

  /* one blue, used with discipline */
  --brand:     #1a6fb8;   /* AA on white — text/links/icons */
  --brand-bright: #1e83d4;/* fills, hover */
  --brand-dim: #155e9e;
  --brand-deep:#0e2a4a;   /* ink-navy band */
  --accent:    #eef4fb;   /* faint blue wash */

  /* warm accent — used very sparingly (featured, totals) */
  --gold:      #a9772a;
  --gold-tint: #f7efe0;

  --green:     #1f8f50;
  --amber:     #a9772a;
  --red:       #c0392b;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw:      1140px;

  --shadow-sm: 0 1px 2px rgba(24,24,27,.05), 0 1px 1px rgba(24,24,27,.04);
  --shadow-md: 0 14px 34px -18px rgba(22,28,45,.22);
  --shadow-lg: 0 44px 90px -36px rgba(18,26,45,.30);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 32%, transparent);

  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── Reset + base ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05", "cv08";  /* Inter: open 4, single-storey details */
}
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dim); }
img, svg { max-width: 100%; display: block; }
strong, b { font-weight: 650; color: var(--text); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

h1, h2, h3, .display { font-family: var(--display); font-optical-sizing: auto; }

/* Arabic / RTL: more line-height; Latin display fonts lack Arabic — fall back gracefully */
[dir="rtl"] body { letter-spacing: 0; line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .display {
  font-family: 'Tajawal', 'Cairo', system-ui, 'Segoe UI', sans-serif; font-weight: 700;
}

::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: var(--focus-ring); border-radius: 8px;
}

/* ── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 8px; height: 66px; }
.nav-logo { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 18px; }
.nav-link {
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 9px; position: relative;
  transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-secondary {
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 9px;
  transition: color .2s var(--ease);
}
.nav-secondary:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: #fff;
  padding: 9px 18px; border-radius: 9px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { background: var(--brand); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px; font-size: 12px;
}
.lang-switch a {
  padding: 5px 9px; border-radius: 999px; line-height: 1;
  color: var(--text-2); font-weight: 600;
  transition: background .15s, color .15s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--text); color: #fff; }

/* Mobile hamburger */
.nav-burger {
  display: none; background: transparent; border: 1px solid var(--border);
  width: 42px; height: 42px; border-radius: 11px;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--text); font-family: inherit;
  transition: background .15s, border-color .15s;
}
.nav-burger:hover { background: var(--surface-2); border-color: var(--border-2); }
.nav-burger svg { width: 20px; height: 20px; }
.nav-burger .close-icon { display: none; }
.nav-burger[aria-expanded="true"] .open-icon { display: none; }
.nav-burger[aria-expanded="true"] .close-icon { display: block; }
.nav-mobile-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 10px 24px 18px; z-index: 49;
}
.nav-mobile-panel.open { display: block; }
.nav-mobile-panel a {
  display: block; padding: 12px 12px; color: var(--text);
  font-size: 16px; font-weight: 500; border-radius: 10px;
}
.nav-mobile-panel a:hover { background: var(--surface-2); color: var(--brand); }
.nav-mobile-panel .divider { height: 1px; background: var(--border); margin: 8px 0; }
@media (max-width: 880px) {
  .nav-links, .nav-desktop-only { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { gap: 10px; }
  .nav-spacer { flex: 1; }
}
@media (min-width: 881px) { .nav-mobile-panel { display: none !important; } }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn-lg { padding: 15px 28px; font-size: 16.5px; }
.btn-primary { background: var(--text); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled], .btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-3); color: var(--text); transform: translateY(-1px); }
.btn-text { background: transparent; color: var(--brand); padding: 12px 6px; }
.btn-text:hover { color: var(--brand-dim); }
.btn-danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 50%, var(--border)); padding: 7px 14px; font-size: 13px; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-danger[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; text-align: center; }
.hero-home, .hero-left { text-align: left; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  color: var(--text-2); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 24px; padding: 6px 13px 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.hero-eyebrow::before {
  content: "✛"; color: var(--brand); font-size: 12px; font-weight: 700;
  letter-spacing: 0; -webkit-text-stroke: 0;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 74px); font-weight: 600;
  line-height: 1.02; letter-spacing: -0.028em;
  max-width: 15ch; margin: 0 auto 24px;
  text-wrap: balance;
}
.hero-home h1, .hero-left h1 { margin-left: 0; margin-right: 0; }
.hero h1 em { font-style: normal; color: var(--brand); font-weight: 600; }
.hero-sub {
  font-size: clamp(17px, 1.55vw, 21px); color: var(--text-2);
  max-width: 560px; margin: 0 auto 34px; line-height: 1.55; letter-spacing: -0.012em;
  text-wrap: pretty;
}
.hero-home .hero-sub, .hero-left .hero-sub { margin-left: 0; margin-right: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .cta-row { justify-content: center; }
.hero-home .cta-row, .hero-left .cta-row { justify-content: flex-start; }
.hero .trust-strip { justify-content: center; }
.hero-home .trust-strip, .hero-left .trust-strip { justify-content: flex-start; }
.hero-platform { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.hero-platform .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hero-platform .dot { animation: none; } }

/* lens-ring backdrop — a calm optical motif instead of a blurry glow */
.lens-rings {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.lens-rings::before, .lens-rings::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
}
.lens-rings::before {
  width: 760px; height: 760px; right: -180px; top: -220px;
  box-shadow:
    0 0 0 80px color-mix(in srgb, var(--brand) 5%, transparent),
    inset 0 0 0 120px color-mix(in srgb, var(--brand) 4%, transparent);
}
.lens-rings::after {
  width: 360px; height: 360px; right: 20px; top: 20px;
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
}
[dir="rtl"] .lens-rings::before { right: auto; left: -180px; }
[dir="rtl"] .lens-rings::after { right: auto; left: 20px; }
.hero > .container { position: relative; z-index: 1; }

/* Editorial split hero (homepage) */
.hero-split { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: start; }
.hero-copy { padding-top: 10px; }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-split .hero-visual { order: 2; }
}

/* ── Sections ───────────────────────────────────────────────────── */
section { padding: 92px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }

/* Section header. Bare siblings (secondary pages) = centered;
   wrapped in .section-head (homepage) = left-aligned editorial with index. */
.section-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--brand); letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.section-eyebrow::before { content: "✛"; color: var(--brand); font-size: 13px; }
.section-eyebrow .idx { color: var(--text-3); }
.section-h {
  font-size: clamp(29px, 3.7vw, 45px); font-weight: 600; letter-spacing: -0.022em;
  line-height: 1.06; margin: 0 auto 18px; max-width: 20ch; text-wrap: balance; text-align: center;
}
.section-h em { font-style: normal; color: var(--brand); font-weight: 600; }
.section-sub { font-size: 18px; color: var(--text-2); max-width: 60ch; margin: 0 auto; line-height: 1.6; letter-spacing: -0.012em; text-wrap: pretty; text-align: center; }

.section-head { max-width: 820px; margin-bottom: 52px; }
.section-head .section-eyebrow { justify-content: flex-start; }
.section-head .section-h { text-align: left; margin-left: 0; margin-right: 0; max-width: 18ch; }
.section-head .section-sub { text-align: left; margin-left: 0; margin-right: 0; }
[dir="rtl"] .section-head .section-h, [dir="rtl"] .section-head .section-sub { text-align: right; }

.bg-2 { background: var(--bg-2); }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ── Forms ──────────────────────────────────────────────────────── */
label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
input[type="text"], input[type="email"], input[type="search"],
input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 13px 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 16px; letter-spacing: -0.01em;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
textarea { resize: vertical; min-height: 140px; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer.site-footer { border-top: 1px solid var(--border); padding: 64px 0 40px; color: var(--text-3); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-bottom: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { display: block; color: var(--text-2); padding: 6px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-logo { height: 24px; margin-bottom: 16px; }
.footer-blurb { max-width: 280px; line-height: 1.65; color: var(--text-3); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 12.5px; flex-wrap: wrap; gap: 12px; }
.footer-lang { display: inline-flex; gap: 4px; }
.footer-lang a { padding: 0; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ── Cards: value props / features / markets ────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* Editorial value-prop cells — hairline grid, numbered, crosshair on hover */
.card-soft {
  background: var(--surface); padding: 34px 30px 32px; position: relative;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease);
}
.grid-3 .card-soft:nth-child(3n) { border-right: 0; }
.grid-3 .card-soft:nth-last-child(-n+3) { border-bottom: 0; }
.card-soft:hover { background: var(--bg-2); }
.card-soft::after {
  content: "✛"; position: absolute; top: 22px; right: 22px;
  color: var(--brand); font-size: 13px; opacity: 0; transition: opacity .25s var(--ease);
}
[dir="rtl"] .card-soft::after { right: auto; left: 22px; }
.card-soft:hover::after { opacity: 1; }
@media (max-width: 900px) {
  .grid-3 .card-soft { border-right: 0; }
  .grid-3 .card-soft:last-child { border-bottom: 0; }
}
.card-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
}
.card-soft h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.018em; margin-bottom: 9px; }
.card-soft p { color: var(--text-2); font-size: 15px; line-height: 1.6; font-family: var(--font); }

/* Feature rows — editorial two-column list with hairline dividers */
.feature-row { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 24px 4px; border-top: 1px solid var(--border); align-items: start; }
.grid-2 .feature-row:nth-child(-n+2) { border-top: 0; }
@media (max-width: 900px) { .grid-2 .feature-row:nth-child(2) { border-top: 1px solid var(--border); } }
.feature-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.feature-row h4 { font-family: var(--display); font-size: 19px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.012em; }
.feature-row p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* Markets pills */
.markets { display: flex; flex-wrap: wrap; gap: 9px; max-width: 940px; }
.markets.center { justify-content: center; margin: 0 auto; }
.market-pill {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.market-pill:hover { border-color: var(--brand); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.market-pill .flag { margin: 0 6px; font-size: 16px; }

/* ── Comparison table ───────────────────────────────────────────── */
.compare-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 680px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
[dir="rtl"] .compare th, [dir="rtl"] .compare td { text-align: right; }
.compare thead th { background: var(--surface-2); font-weight: 600; color: var(--text-2); font-size: 12px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.compare thead th.brand-col { color: var(--brand); border-bottom: 2px solid var(--brand); font-family: var(--display); font-size: 16px; text-transform: none; letter-spacing: -0.01em; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover td { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.compare td { color: var(--text-2); }
.compare td.brand-col { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--accent) 50%, transparent); }
.compare tbody tr:hover td.brand-col { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.compare td.row-h { color: var(--text); font-weight: 600; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: var(--text-3); }
.compare .partial { color: var(--amber); font-weight: 600; }

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.price-card.featured::before { content: attr(data-badge); position: absolute; top: -12px; left: 32px; background: var(--brand); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); white-space: nowrap; }
[dir="rtl"] .price-card.featured::before { left: auto; right: 32px; }
.price-tier { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 8px; }
.price-name { font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.018em; margin-bottom: 16px; color: var(--text); }
.price-cost { font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; font-feature-settings: "tnum"; }
.price-cost small { font-size: 15px; color: var(--text-3); font-weight: 500; letter-spacing: 0; font-family: var(--font); }
.price-cost-period { font-size: 13.5px; color: var(--text-3); margin-bottom: 26px; }
.price-features { list-style: none; margin-bottom: 30px; }
.price-features li { display: flex; gap: 11px; padding: 8px 0; font-size: 14.5px; color: var(--text-2); align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.price-card .btn { width: 100%; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-q { cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -0.012em; display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; color: var(--brand); font-size: 26px; font-weight: 300; line-height: 1; flex-shrink: 0; transition: transform .25s var(--ease); }
.faq-item[open] .faq-q::after { transform: rotate(135deg); }
.faq-a { color: var(--text-2); font-size: 15.5px; padding-top: 14px; line-height: 1.7; }
.faq-a a { font-weight: 600; }

/* ── Final CTA band ─────────────────────────────────────────────── */
.final-cta { background: var(--brand-deep); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: 80px 32px; margin: 0 auto; max-width: var(--maxw); position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 300px at 80% -10%, color-mix(in srgb, var(--brand-bright) 45%, transparent), transparent 70%),
    radial-gradient(420px 260px at 10% 120%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%);
}
.final-cta::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.10); top: 50%; left: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 60px rgba(255,255,255,.04); pointer-events: none; }
.final-cta > * { position: relative; }
.final-cta h2 { font-family: var(--display); font-size: clamp(31px, 4vw, 47px); font-weight: 600; letter-spacing: -0.022em; margin-bottom: 16px; }
.final-cta h2 em { font-style: normal; color: #cfe6fb; font-weight: 600; }
.final-cta p { color: rgba(255,255,255,.76); margin: 0 auto 34px; max-width: 540px; font-size: 18px; line-height: 1.55; }
.final-cta .cta-row { position: relative; margin-bottom: 0; justify-content: center; }
.final-cta .btn-primary { background: #fff; color: var(--brand-deep); }
.final-cta .btn-primary:hover { background: #eef4fb; color: var(--brand-deep); }
.final-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

/* ── App preview mockup (browser chrome) ────────────────────────── */
.mockup { margin: 0; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.mockup.wide { max-width: 960px; margin: 56px auto 0; }
[dir="rtl"] .mockup { text-align: right; }
.mockup-tab { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mockup-tab .dots { display: flex; gap: 7px; }
.mockup-tab .dots span { width: 11px; height: 11px; border-radius: 50%; }
.mockup-tab .dots span:nth-child(1) { background: #ff5f57; }
.mockup-tab .dots span:nth-child(2) { background: #febc2e; }
.mockup-tab .dots span:nth-child(3) { background: #28c840; }
.mockup-tab .url { margin: 0 auto; font-size: 12px; color: var(--text-3); background: var(--bg); padding: 5px 16px; border-radius: 7px; font-family: var(--mono); }
.mockup-body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.mockup.wide .mockup-body { grid-template-columns: 230px 1fr; min-height: 440px; }
.mockup-side { background: var(--surface-2); border-right: 1px solid var(--border); padding: 16px; }
[dir="rtl"] .mockup-side { border-right: none; border-left: 1px solid var(--border); }
.mockup-side-h { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.mockup-client { padding: 11px 13px; border-radius: 9px; margin-bottom: 4px; font-size: 13.5px; color: var(--text-2); }
.mockup-client.active { background: var(--brand); color: #fff; }
.mockup-client .small { font-size: 11px; opacity: .75; margin-top: 2px; }
.mockup-main { padding: 24px; }
.mockup-main h3 { font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 4px; }
.mockup-main .meta { font-size: 12px; color: var(--text-3); margin-bottom: 20px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.mockup-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 16px; margin-bottom: 11px; }
.mockup-card-h { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.mockup-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; color: var(--text-2); }
.mockup-row b { font-weight: 600; color: var(--text); font-feature-settings: "tnum"; }
.mockup-row.total { border-top: 1px solid var(--border); margin-top: 7px; padding-top: 11px; font-size: 15px; color: var(--text); }
.mockup-row.total b { color: var(--brand); }
@media (max-width: 720px) {
  .mockup-body, .mockup.wide .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
}

/* ── Badges (account) ───────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }
.badge.active { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge.expired, .badge.revoked, .badge.cancelled, .badge.blocked { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red); }
.badge.basic { background: var(--surface-2); color: var(--text-2); }
.badge.pro { background: var(--gold-tint); color: var(--gold); }
.badge.enterprise { background: var(--accent); color: var(--brand); }

/* ── Reveal-on-scroll ───────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Auth / form card (signin, checkout) ────────────────────────── */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 20px; position: relative; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 42px 38px; position: relative; z-index: 1; }
.auth-card.wide { width: min(560px, 100%); }
.auth-logo { display: block; height: 30px; margin: 0 auto 24px; }
.auth-title { font-family: var(--display); font-size: 29px; font-weight: 600; letter-spacing: -0.02em; text-align: center; margin-bottom: 8px; line-height: 1.15; }
.auth-sub { text-align: center; color: var(--text-2); font-size: 15px; margin-bottom: 28px; line-height: 1.5; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-hint { font-size: 12.5px; color: var(--text-3); }
.auth-foot { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-3); }
.auth-foot a { font-weight: 600; }
.mini-footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.mini-footer a { color: var(--text-3); margin: 0 8px; }
.mini-footer a:hover { color: var(--brand); }

/* form status messages */
.msg { display: none; margin-bottom: 16px; padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; }
.msg.show { display: block; }
.msg.error { background: color-mix(in srgb, var(--red) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 30%, var(--border)); color: var(--text); }
.msg.success { background: color-mix(in srgb, var(--green) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border)); color: var(--text); }

/* ── Inline icons (replace emoji) ───────────────────────────────── */
.ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ico svg { width: 1em; height: 1em; display: block; }
.cc {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 18px; padding: 0 5px; margin-inline-end: 8px;
  border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  font-family: var(--mono); vertical-align: middle;
}

/* ── Stats bar / strip ──────────────────────────────────────────── */
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding: 0; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); }
.trust-item svg { width: 16px; height: 16px; color: var(--brand); }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.stats-bar-item { padding: 22px 22px; border-right: 1px solid var(--border); }
.stats-bar-item:last-child { border-right: 0; }
[dir="rtl"] .stats-bar-item { border-right: 0; border-left: 1px solid var(--border); }
[dir="rtl"] .stats-bar-item:last-child { border-left: 0; }
@media (max-width: 680px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stats-bar-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stats-bar-item:nth-child(even) { border-right: 0; }
  .stats-bar-item:nth-last-child(-n+2) { border-bottom: 0; }
}
.stats-bar-n {
  font-family: var(--display); font-size: 31px; font-weight: 600; letter-spacing: -0.025em;
  color: var(--text); line-height: 1; display: block; margin-bottom: 6px; font-feature-settings: "tnum";
}
.stats-bar-l { font-size: 12.5px; color: var(--text-3); letter-spacing: .1px; display: block; line-height: 1.4; }

/* ── Utilities ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.nav-spacer { flex: 1; }
.mono { font-family: var(--mono); }
.text-center { text-align: center; }
.measure { max-width: 680px; }

/* ── Scroll progress bar ────────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  transform: scaleX(0); transform-origin: left; will-change: transform; pointer-events: none;
}
[dir="rtl"] #scroll-progress { transform-origin: right; }

/* ── Nav elevation on scroll ────────────────────────────────────── */
.nav { transition: box-shadow .25s var(--ease), background .25s var(--ease); }
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 8px 26px -20px rgba(18,26,45,.45);
}

/* ── Back-to-top button ─────────────────────────────────────────── */
#to-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 55;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--text); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
}
#to-top svg { width: 20px; height: 20px; }
#to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
#to-top:hover { background: var(--brand); transform: translateY(-2px); }
[dir="rtl"] #to-top { right: auto; left: 22px; }
body.has-cookie #to-top { bottom: 96px; }
@media (max-width: 560px) { body.has-cookie #to-top { bottom: 128px; } }
@media (prefers-reduced-motion: reduce) { #to-top { transition: opacity .2s, background .2s; } }

/* ── Cookie notice ──────────────────────────────────────────────── */
#cookie-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 150%);
  width: min(640px, calc(100% - 32px)); z-index: 58;
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 13px 14px 13px 18px; opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
#cookie-bar.show { transform: translate(-50%, 0); opacity: 1; }
#cookie-bar p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin: 0; }
#cookie-bar p a { color: var(--brand); font-weight: 600; }
#cookie-bar .ck-ok {
  flex-shrink: 0; background: var(--text); color: #fff; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em;
  padding: 9px 18px; border-radius: 9px; transition: background .2s var(--ease);
}
#cookie-bar .ck-ok:hover { background: var(--brand); }
@media (max-width: 560px) {
  #cookie-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; bottom: 12px; padding: 16px; }
  #cookie-bar .ck-ok { width: 100%; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { #cookie-bar { transition: opacity .2s; transform: translate(-50%, 0); } }

/* ── Product tour (tabbed showcase) ─────────────────────────────── */
.tour { max-width: 1000px; margin: 0 auto; }
.tour-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px;
}
.tour-tab {
  appearance: none; background: transparent; border: none; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); padding: 9px 17px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tour-tab .ico { font-size: 16px; }
.tour-tab:hover { color: var(--text); }
.tour-tab.active { background: var(--text); color: #fff; }
.tour-panel { display: none; }
.tour-panel.active { display: block; animation: tourIn .4s var(--ease); }
@keyframes tourIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tour-panel.active { animation: none; } }
.tour-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center; }
@media (max-width: 860px) {
  .tour-grid { grid-template-columns: 1fr; gap: 26px; }
  .tour-tabs { display: flex; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.tour-copy h3 { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.tour-copy > p { color: var(--text-2); font-size: 15.5px; line-height: 1.65; margin-bottom: 20px; }
.tour-copy ul { list-style: none; display: grid; gap: 11px; }
.tour-copy li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); align-items: flex-start; line-height: 1.5; }
.tour-copy li::before { content: "✓"; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.tour-visual .mockup { max-width: 100%; }

/* ── Currency switch (pricing) ──────────────────────────────────── */
.cur-switch { display: inline-flex; align-items: center; gap: 10px; margin: 6px auto 0; flex-wrap: wrap; justify-content: center; }
.cur-switch label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cur-switch select { width: auto; min-width: 240px; padding: 10px 14px; font-size: 14px; border-radius: 10px; cursor: pointer; }
.price-cost .cur-note { display: block; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-top: 6px; }

/* ── Skip-to-content link (a11y) ────────────────────────────────── */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; color: #fff; outline: none; box-shadow: var(--focus-ring), var(--shadow-md); }
[dir="rtl"] .skip-link { left: auto; right: 10px; }

/* ── ROI calculator ─────────────────────────────────────────────── */
.roi { display: grid; grid-template-columns: 1fr 1.12fr; gap: 36px; max-width: 1000px; margin: 0 auto; align-items: center; }
@media (max-width: 860px) { .roi { grid-template-columns: 1fr; gap: 26px; } }
.roi-inputs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; }
.roi-inputs label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; color: var(--text-2); margin: 22px 0 12px; }
.roi-inputs label:first-of-type { margin-top: 0; }
.roi-val { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--text); font-feature-settings: "tnum"; }
.roi-inputs input[type="range"] { width: 100%; accent-color: var(--brand); height: 6px; cursor: pointer; }
.roi-out { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.roi-stat { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: 16px; }
.roi-note { padding: 16px 26px 18px; font-size: 12.5px; color: var(--text-3); line-height: 1.55; margin: 0; }
.roi-n { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--brand); line-height: 1; font-feature-settings: "tnum"; min-width: 92px; }
.roi-l { font-size: 14.5px; color: var(--text-2); line-height: 1.4; }
