/* Chameleon AI website. Colours are the app's brand tokens
   (src/theme/brand-palette.js); every one has a dark twin. */

@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/PlusJakartaSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/PlusJakartaSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/PlusJakartaSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/PlusJakartaSans-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/PlusJakartaSans-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(/fonts/IBMPlexSansArabic-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(/fonts/IBMPlexSansArabic-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(/fonts/IBMPlexSansArabic-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(/fonts/IBMPlexSansArabic-Bold.woff2) format("woff2"); font-weight: 700 800; font-display: swap; }

/* ------------------------------------------------------------ tokens */

:root {
  color-scheme: light;
  --canvas: #EDF1F5;
  --electric: #0246F1;
  --electric-deep: #0235C4;
  --on-electric: #FFFFFF;
  --ink: #0B1A3A;
  --muted: #4A5878;
  --surface: rgba(255, 255, 255, 0.86);
  --sheet: #FFFFFF;
  --line: #DCE4EE;
  --control: #C5D0E0;
  --select: rgba(2, 70, 241, 0.07);
  --danger: #D92D20;
  --danger-soft: rgba(217, 45, 32, 0.07);
  --success: #16A34A;
  --success-soft: rgba(22, 163, 74, 0.09);
  --shadow: rgba(11, 26, 58, 0.16);
  --tagline: #0246F1;
  --logo: #0246F1;
  --header: rgba(237, 241, 245, 0.78);
  --band: #0A1228;
  --band-ink: #EDF1F5;
  --band-muted: #A3B1CC;
  --band-card: rgba(255, 255, 255, 0.06);
  --band-line: rgba(255, 255, 255, 0.12);
  --facet-1: #4B3DF2; --facet-2: #8B4CF5; --facet-3: #0896B4;
  --facet-4: #0E7FDB; --facet-5: #1E6BFF; --facet-6: #0246F1;
  --bloom-1: #A9E4DC; --bloom-2: #C3D7FF; --bloom-3: #B2E8DF;
  --tint-1: #A9E4DC; --tint-2: #C3D7FF; --tint-3: #BCD6FF; --tint-4: #B5D0FF; --tint-5: #B2E8DF; --tint-6: #B9D3FF;
  --bloom-opacity: 0.55;
  --phone-frame: #0B1A3A;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --wrap: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0A1228;
    --electric: #2F6BFF;
    --electric-deep: #1F4FD6;
    --ink: #EDF1F5;
    --muted: #A3B1CC;
    --surface: rgba(17, 28, 58, 0.82);
    --sheet: #111C3A;
    --line: #22305A;
    --control: #3A4A75;
    --select: rgba(47, 107, 255, 0.16);
    --danger: #FF6B5E;
    --danger-soft: rgba(255, 107, 94, 0.12);
    --success: #4ADE80;
    --success-soft: rgba(74, 222, 128, 0.14);
    --shadow: rgba(0, 4, 16, 0.5);
    --tagline: #8FB0FF;
    --logo: #FFFFFF;
    --header: rgba(10, 18, 40, 0.78);
    --band: #111C3A;
    --band-card: rgba(255, 255, 255, 0.05);
    --band-line: #22305A;
    --facet-1: #6658FF; --facet-2: #9C66FF; --facet-3: #22CBDD;
    --facet-4: #2AAEF5; --facet-5: #3D8BFF; --facet-6: #2F6BFF;
    --bloom-1: #0E4C5A; --bloom-2: #1C3473; --bloom-3: #0F4F55;
    --tint-1: #0E4C5A; --tint-2: #1C3473; --tint-3: #173C80; --tint-4: #163A86; --tint-5: #0F4F55; --tint-6: #1A3A88;
    --bloom-opacity: 0.5;
    --phone-frame: #1E2B52;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0A1228;
  --electric: #2F6BFF;
  --electric-deep: #1F4FD6;
  --ink: #EDF1F5;
  --muted: #A3B1CC;
  --surface: rgba(17, 28, 58, 0.82);
  --sheet: #111C3A;
  --line: #22305A;
  --control: #3A4A75;
  --select: rgba(47, 107, 255, 0.16);
  --danger: #FF6B5E;
  --danger-soft: rgba(255, 107, 94, 0.12);
  --success: #4ADE80;
  --success-soft: rgba(74, 222, 128, 0.14);
  --shadow: rgba(0, 4, 16, 0.5);
  --tagline: #8FB0FF;
  --logo: #FFFFFF;
  --header: rgba(10, 18, 40, 0.78);
  --band: #111C3A;
  --band-card: rgba(255, 255, 255, 0.05);
  --band-line: #22305A;
  --facet-1: #6658FF; --facet-2: #9C66FF; --facet-3: #22CBDD;
  --facet-4: #2AAEF5; --facet-5: #3D8BFF; --facet-6: #2F6BFF;
  --bloom-1: #0E4C5A; --bloom-2: #1C3473; --bloom-3: #0F4F55;
  --tint-1: #0E4C5A; --tint-2: #1C3473; --tint-3: #173C80; --tint-4: #163A86; --tint-5: #0F4F55; --tint-6: #1A3A88;
  --bloom-opacity: 0.5;
  --phone-frame: #1E2B52;
}

[dir="rtl"] { --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; }

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--electric); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3, .h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .4em; }
[dir="rtl"] .label { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.accent { color: var(--electric); }
.center { text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; }
[dir="rtl"] .mirror { transform: scaleX(-1); }
.back { transform: scaleX(-1); }
[dir="rtl"] .back { transform: none; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--electric); color: var(--on-electric); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 860px; }
.stack { display: grid; gap: 20px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--electric); color: var(--on-electric); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--electric); color: var(--on-electric); box-shadow: 0 10px 24px -10px var(--electric); }
.btn-primary:hover { background: var(--electric-deep); }
.btn-ghost { background: var(--sheet); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--electric); color: var(--electric); }
.btn-light { background: #FFFFFF; color: #0B1A3A; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); cursor: pointer; }

/* ------------------------------------------------------------ header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px var(--shadow); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; color: var(--logo); }
.logo { display: inline-flex; color: var(--logo); }
.logo svg { height: 34px; width: auto; }
.primary { display: flex; gap: 4px; margin-inline-start: auto; }
.primary a { color: var(--ink); font-weight: 600; font-size: .96rem; padding: 8px 12px; border-radius: 999px; }
.primary a:hover { background: var(--select); color: var(--electric); text-decoration: none; }
.primary a[aria-current="page"] { color: var(--electric); background: var(--select); }
.tools { display: flex; align-items: center; gap: 10px; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); }
.seg-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: var(--electric); color: var(--on-electric); }

.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); font-weight: 700; font-size: .92rem; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px -20px var(--shadow); }
.menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.menu-list a:hover { background: var(--select); text-decoration: none; }
.menu-list a[aria-current] { color: var(--electric); }

.show-sm { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px var(--gutter) 24px; display: grid; gap: 18px; background: var(--canvas); }
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: grid; }
.mobile-nav nav a { color: var(--ink); font-weight: 700; font-size: 1.15rem; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mobile-row .label { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.center { justify-content: center; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--electric); color: var(--electric); text-decoration: none; }
.chip.is-on { background: var(--electric); border-color: var(--electric); color: var(--on-electric); }

/* ------------------------------------------------------------ bloom */

.bloom { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bloom i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--bloom-opacity); animation: drift 18s var(--ease) infinite alternate; }
.bloom i:nth-child(1) { width: 46vmax; height: 46vmax; background: var(--bloom-2); top: -18vmax; inset-inline-end: -12vmax; }
.bloom i:nth-child(2) { width: 34vmax; height: 34vmax; background: var(--bloom-1); bottom: -16vmax; inset-inline-start: -10vmax; animation-delay: -6s; }
.bloom i:nth-child(3) { width: 22vmax; height: 22vmax; background: var(--bloom-3); top: 30%; inset-inline-start: 40%; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }

/* ------------------------------------------------------------ hero */

.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.cta-row.center { justify-content: center; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: .93rem; }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges .icon { color: var(--electric); }

.phones { position: relative; height: 600px; }
.phones .phone { position: absolute; top: 50%; inset-inline-start: 50%; }
.phones .ph-home { transform: translate(-50%, -50%); z-index: 3; }
[dir="rtl"] .phones .ph-home { transform: translate(50%, -50%); }
.phones .ph-report { transform: translate(-112%, -46%) rotate(-7deg) scale(.86); z-index: 2; opacity: .96; }
.phones .ph-next-screen { transform: translate(12%, -46%) rotate(7deg) scale(.86); z-index: 2; opacity: .96; }
[dir="rtl"] .phones .ph-report { transform: translate(112%, -46%) rotate(7deg) scale(.86); }
[dir="rtl"] .phones .ph-next-screen { transform: translate(-12%, -46%) rotate(-7deg) scale(.86); }

/* ------------------------------------------------------------ phone mockup */

.phone { width: 280px; height: 572px; padding: 10px; border-radius: 46px; background: var(--phone-frame); box-shadow: 0 40px 80px -30px var(--shadow), inset 0 0 0 2px rgba(255,255,255,.08); }
.ph-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--canvas); display: flex; flex-direction: column; font-size: 12px; line-height: 1.4; text-align: start; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 24px; font-weight: 700; font-size: 12px; flex: none; }
.ph-island { width: 84px; height: 24px; border-radius: 999px; background: #000; }
.ph-sys { display: flex; gap: 3px; }
.ph-sys i { width: 4px; height: 9px; border-radius: 2px; background: var(--ink); }
.ph-sys i:nth-child(1) { height: 5px; margin-top: 4px; } .ph-sys i:nth-child(2) { height: 7px; margin-top: 2px; }
.ph-body { flex: 1; padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ph-top { display: flex; align-items: center; justify-content: space-between; }
.ph-logo { color: var(--logo); } .ph-logo svg { width: 30px; height: 30px; }
.ph-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--facet-3), var(--facet-1)); }
.ph-strip { display: flex; gap: 6px; align-items: stretch; }
.ph-num { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 10px; font-weight: 700; }
.ph-record { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 12px 22px; border-radius: 24px; background: var(--electric); color: var(--on-electric); text-align: center; box-shadow: 0 16px 30px -16px var(--electric); }
.ph-record strong { font-size: 16px; }
.ph-record small { opacity: .85; font-size: 11px; }
.ph-rec-dot { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); margin-bottom: 8px; }
.ph-rec-dot i { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.ph-rec-dot::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.ph-privacy { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.ph-section { margin: 4px 0 0; font-weight: 700; font-size: 12.5px; }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); }
.ph-thumb { width: 40px; height: 40px; border-radius: 10px; flex: none; background: linear-gradient(160deg, #8ea3c4, #3c4f73 60%, #1d2a44); }
.ph-row-text { flex: 1; min-width: 0; display: grid; }
.ph-row-text strong { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row-text small { color: var(--muted); font-size: 10px; }
.ph-pill { padding: 3px 8px; border-radius: 999px; background: var(--select); color: var(--electric); font-weight: 700; font-size: 9.5px; white-space: nowrap; }
.ph-tabs { display: flex; justify-content: space-around; padding: 10px 30px 18px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); flex: none; }
.ph-tabs .on { color: var(--electric); }
.ph-head { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; text-align: center; font-size: 14px; }
.ph-back { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sheet); border: 1px solid var(--line); }
.ph-card { padding: 12px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); }
.ph-label { margin: 0 0 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
[dir="rtl"] .ph-label { text-transform: none; letter-spacing: 0; }
.ph-label.accent { color: var(--electric); }
.ph-text { margin: 0; font-size: 11.5px; color: var(--ink); }
.ph-moment { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); }
.ph-moment:first-of-type { border-top: 0; padding-top: 0; }
.ph-time { flex: none; padding: 2px 6px; border-radius: 6px; background: var(--electric); color: var(--on-electric); font-weight: 700; font-size: 10px; font-variant-numeric: tabular-nums; }
.ph-moment strong { display: block; font-size: 11px; font-weight: 600; }
.ph-moment em { font-style: normal; font-size: 9.5px; font-weight: 700; }
.ph-moment em.ok { color: var(--success); }
.ph-bar { padding: 10px 14px 20px; border-top: 1px solid var(--line); background: var(--canvas); flex: none; }
.ph-cta { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--electric); color: var(--on-electric); font-weight: 700; font-size: 13px; }
.ph-cta span { flex: 1; }
.ph-progress-label { margin: 0; font-weight: 700; font-size: 11px; color: var(--muted); }
.ph-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: -4px; }
.ph-progress i { display: block; height: 100%; border-radius: inherit; background: var(--electric); }
.ph-next { border: 1.5px solid var(--electric); background: var(--select); }
.ph-title { display: block; font-size: 14px; margin-bottom: 4px; }
.ph-start { display: inline-flex; margin-top: 10px; padding: 6px 16px; border-radius: 999px; background: var(--electric); color: var(--on-electric); font-weight: 700; font-size: 11.5px; }
.ph-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ph-steps li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 11px; font-weight: 600; border-top: 1px solid var(--line); }
.ph-steps li:first-child { border-top: 0; }
.ph-steps li.done { color: var(--muted); text-decoration: line-through; }
.ph-steps li.now { color: var(--electric); }
.ph-check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--control); flex: none; }
.done .ph-check { background: var(--success); border-color: var(--success); color: #fff; }
.now .ph-check { border-color: var(--electric); box-shadow: inset 0 0 0 3px var(--sheet); background: var(--electric); }
.ph-verified { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 4px 9px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 700; font-size: 10px; align-self: flex-start; }

/* ------------------------------------------------------------ sections */

.section { position: relative; padding: 88px 0; }
.section.tight { padding: 40px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .lead { margin-inline: auto; }
.section-head.start { text-align: start; margin-inline: 0; }
.section-head.start .lead { margin-inline: 0; }

.type-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; }
.type-card { padding: 22px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.type-card:hover { transform: translateY(-4px); border-color: var(--facet); }
.type-card h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.type-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.type-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--facet); background: color-mix(in srgb, var(--facet) 13%, transparent); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--control) 0 8px, transparent 8px 16px); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px; background: var(--sheet); border: 1px solid var(--line); color: var(--electric); box-shadow: 0 16px 30px -22px var(--shadow); }
.step-num { position: absolute; top: -6px; inset-inline-start: calc(50% + 22px); z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--electric); color: var(--on-electric); font-weight: 800; font-size: .82rem; }
.step p { color: var(--muted); font-size: .97rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .split-text { order: 2; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks .icon { color: var(--electric); margin-top: 3px; }
.muted-ticks .icon { color: var(--muted); }
.visual-card { position: relative; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); padding: 24px; box-shadow: 0 30px 60px -40px var(--shadow); overflow: hidden; }
.visual-card.wide { max-width: 760px; margin: 0 auto; }
.phone-card { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(120% 90% at 50% 0%, var(--select), transparent 70%), var(--surface); }
.lottie { position: relative; aspect-ratio: 560 / 440; width: 100%; }
.lottie svg, .lottie img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lottie.is-playing img { display: none; }
.still-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .still-light { display: none; } :root:not([data-theme="light"]) .still-dark { display: block; } }
:root[data-theme="dark"] .still-light { display: none; }
:root[data-theme="dark"] .still-dark { display: block; }

.band { background: var(--band); color: var(--band-ink); overflow: hidden; }
.band .lead, .band p { color: var(--band-muted); }
.band h2, .band h3 { color: var(--band-ink); }
.band-card { padding: 26px; border-radius: var(--radius-lg); background: var(--band-card); border: 1px solid var(--band-line); }
.band-card .icon { color: #8FB0FF; margin-bottom: 16px; }
.band-card p { margin: 0; font-size: .95rem; }
.band .card { background: var(--band-card); border-color: var(--band-line); }
.band .card-icon { background: rgba(143, 176, 255, .14); color: #8FB0FF; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; list-style: none; }
.card { display: block; height: 100%; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-grid .card:hover, .grid-4 .card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px var(--shadow); }
.card-link:hover { text-decoration: none; border-color: var(--electric); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--electric); font-weight: 700; font-size: .95rem; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--select); color: var(--electric); }
.card-icon.lg { width: 60px; height: 60px; border-radius: 18px; }
.group-num { display: inline-block; font-weight: 800; color: var(--electric); font-size: .95rem; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.feature-group + .feature-group { padding-top: 24px; }

.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; }
.lang-chips li { padding: 10px 20px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; }
.lang-chips li[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }

.callout { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius-lg); background: var(--select); border: 1px solid color-mix(in srgb, var(--electric) 25%, transparent); }
.callout > .icon { color: var(--electric); margin-top: 2px; }
.callout h2 { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--muted); }
.founder-label { margin-top: 16px !important; font-weight: 700; color: var(--ink) !important; font-size: .95rem; }
.founder-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.founder-links a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .95rem; transition: border-color .2s, color .2s; }
.founder-links a:hover { border-color: var(--electric); color: var(--electric); text-decoration: none; }
.founder-links .icon { color: var(--electric); }
.founder-mail { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .founder-mail { display: none; } }
.callout.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.callout.danger > .icon { color: var(--danger); }

/* ------------------------------------------------------------ FAQ */

.faq-group + .faq-group { margin-top: 44px; }
.faq-group h2 { margin-bottom: 14px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--electric) 40%, var(--line)); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 1.04rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--select); color: var(--electric); flex: none; transition: transform .3s var(--ease); }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ------------------------------------------------------------ page hero */

.page-hero { position: relative; padding: 72px 0 48px; text-align: center; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lead { margin-inline: auto; }
.page-hero .bloom i:nth-child(1) { width: 34vmax; height: 34vmax; top: -22vmax; }
.page-hero .bloom i:nth-child(2) { width: 24vmax; height: 24vmax; bottom: -16vmax; }
.page-hero .bloom i:nth-child(3) { display: none; }
.updated { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ------------------------------------------------------------ legal */

.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-aside { position: sticky; top: 96px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; line-height: 1.4; counter-increment: toc; }
.toc a::before { content: counter(toc); min-width: 1.4em; color: var(--control); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-active { background: var(--select); color: var(--electric); text-decoration: none; }
.legal-body { max-width: 760px; }
.legal-section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-section:first-child { border-top: 0; padding-top: 0; }
.legal-section h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.45rem; }
.sec-num { color: var(--electric); font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.prose p, .prose li, .prose dd { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul { padding-inline-start: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.prose li::marker { color: var(--electric); }
.dl { display: grid; gap: 0; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 14px 18px; border-top: 1px solid var(--line); }
.dl > div:first-child { border-top: 0; }
.dl dt { font-weight: 700; color: var(--ink); }
.dl dd { margin: 0; }

.num-steps { margin: 16px 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.num-steps li { position: relative; padding-inline-start: 46px; min-height: 32px; padding-top: 3px; counter-increment: n; }
.num-steps li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--electric); color: var(--on-electric); font-weight: 800; font-size: .9rem; }

/* ------------------------------------------------------------ security flow */

.flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 28px; }
.flow::before { content: ""; position: absolute; top: 24px; bottom: 24px; inset-inline-start: 23px; width: 2px; background: var(--band-line); }
.flow-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.flow-dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #2F6BFF; color: #fff; box-shadow: 0 0 0 6px var(--band); }
.flow-step h3 { margin: 10px 0 6px; }
.flow-step p { margin: 0; }

/* ------------------------------------------------------------ contact */

.mail-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px var(--shadow); }
.mail-addr { font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 800; color: var(--ink); word-break: break-all; }
.mail-main .muted { margin: 6px 0 0; font-size: .95rem; }
.mail-actions { display: flex; flex-direction: column; gap: 10px; }

/* ------------------------------------------------------------ about */

.big-symbol { display: grid; place-items: center; color: #FFFFFF; }
.big-symbol svg { width: min(320px, 70%); height: auto; filter: drop-shadow(0 30px 50px rgba(47,107,255,.35)); }

/* ------------------------------------------------------------ download */

.download-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 64px 28px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.download-card > * { position: relative; z-index: 1; }
.download-card .lead { margin: 0 auto 22px; }
.download-symbol { color: var(--logo); margin-bottom: 14px; }
.download-symbol svg { width: 72px; height: 72px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px; border-radius: 16px; background: var(--ink); color: var(--canvas); text-align: start; opacity: .92; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store strong { display: block; font-size: 1.12rem; line-height: 1.2; }

/* ------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--surface); }
.f-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.f-brand .logo svg { height: 36px; }
.f-brand p { color: var(--muted); margin: 16px 0; max-width: 32ch; }
.f-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.f-title { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
[dir="rtl"] .f-title { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-col a { color: var(--ink); font-weight: 500; }
.f-prefs { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 24px; color: var(--muted); font-size: .88rem; }
.f-bottom p { margin: 0; }
.f-note { max-width: 70ch; }

/* ------------------------------------------------------------ explainer (the app's "How it works") */

.explainer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 28px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px var(--shadow); }
.ex-stage-col { display: grid; place-items: center; }
.ex-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 360 / 420; border-radius: var(--radius-lg); background: var(--canvas); overflow: hidden; }
.ex-canvas { position: absolute; left: 0; top: 0; width: 360px; height: 420px; transform-origin: 0 0; font-family: var(--font); color: var(--ink); line-height: 1.3; }
.ex-side { min-width: 0; }
.ex-progress { display: flex; gap: 5px; margin-bottom: 18px; }
.ex-progress span { --fill: 0; flex: 1; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.ex-progress span::after { content: ""; position: absolute; inset: 0; background: var(--electric); transform: scaleX(var(--fill)); transform-origin: left; }
[dir="rtl"] .ex-progress span::after { transform-origin: right; }
.ex-title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 4px 0 10px; min-height: 2.3em; }
.ex-body { color: var(--muted); min-height: 5.2em; }
.ex-controls { display: flex; align-items: center; gap: 12px; margin: 8px 0 22px; }
.ex-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.ex-btn:hover { border-color: var(--electric); color: var(--electric); }
.ex-btn:active { transform: scale(.95); }
.ex-play { width: 58px; height: 58px; background: var(--electric); border-color: var(--electric); color: var(--on-electric); box-shadow: 0 10px 24px -10px var(--electric); }
.ex-play:hover { color: var(--on-electric); background: var(--electric-deep); }
.ex-play [hidden] { display: none; }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ex-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 600; text-align: start; cursor: pointer; line-height: 1.3; }
.ex-list button:hover { background: var(--select); color: var(--ink); }
.ex-list button[aria-current] { background: var(--select); color: var(--electric); }
.ex-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--control); font-size: .78rem; font-weight: 800; }
.ex-list button[aria-current] .ex-n { background: var(--electric); border-color: var(--electric); color: var(--on-electric); }

/* Stage pieces (360 × 420 units, like the app's kit) */
.ex-move { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.ex-move.ex-flow { inset: 0; width: auto !important; height: auto !important; }
.ex-ink { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.ex-icon { display: inline-grid; place-items: center; flex: none; color: inherit; }
.ex-icon svg { width: 100%; height: 100%; }
.ex-panel { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--sheet); }
.ex-pad { padding: 14px; } .ex-pad-top { padding-top: 10px; } .ex-pad-s { padding: 12px; }
.ex-h { margin: 0 0 4px; font-size: 16px; font-weight: 700; text-align: start; }
.ex-badge { display: inline-grid; place-items: center; border-radius: 50%; flex: none; }
.ex-soft { background: var(--select); color: var(--electric); }
.ex-solid { background: var(--electric); color: var(--on-electric); }
.ex-success { background: var(--success); color: #fff; }
.ex-danger { background: var(--danger); color: #fff; }
.ex-surface { background: var(--sheet); border: 1px solid var(--line); color: var(--electric); }
.ex-chip-box { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ex-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; }
.ex-chip.ex-surface, .ex-chip.ex-soft { color: var(--ink); }
.ex-chip.ex-surface .ex-icon, .ex-chip.ex-soft .ex-icon { color: var(--electric); }
.ex-chip.ex-dashed { border: 1.5px dashed var(--muted); }
.ex-row-c { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 100%; }
.ex-row-c .ex-chip-box { width: auto; }
.ex-still { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: #000; }
.ex-still > i { position: absolute; inset: auto 0 0 0; height: 36%; background: rgba(0, 0, 0, .42); }
.ex-corner { position: absolute; top: 6px; inset-inline-start: 6px; }
.ex-voice { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; height: 100%; background: var(--select); }
.ex-voice i { width: 4px; border-radius: 2px; background: var(--electric); }
.ex-mini { width: 100%; height: 100%; padding: 5px; border-radius: 26px; background: #000; border: 1.5px solid var(--control); }
.ex-mini-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 21px; background: var(--canvas); }
.ex-notch { position: absolute; top: 6px; left: 50%; width: 38px; height: 10px; margin-left: -19px; border-radius: 999px; background: #000; }
.ex-shutter { position: absolute; bottom: 12px; left: 50%; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 3px solid #fff; }
.ex-shutter-l { bottom: 20px; width: 44px; height: 44px; margin-left: -22px; }
.ex-rec { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; border-radius: 999px; background: rgba(0, 0, 0, .42); color: #fff; font-size: 10px; font-weight: 600; }
.ex-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--electric); }
.ex-road { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: var(--control); }
.ex-lanes { position: absolute; left: 0; right: 0; top: 46px; display: flex; justify-content: space-around; }
.ex-lanes i { width: 28px; height: 4px; border-radius: 999px; background: var(--sheet); }
.ex-ltr { position: absolute; inset: 0; }
.ex-car { position: relative; width: 132px; height: 64px; }
.ex-car i { position: absolute; width: 30px; height: 12px; border-radius: 4px; }
.ex-car b { display: block; width: 100%; height: 100%; border-radius: 20px; }
.ex-car .ex-glass { left: 78px; top: 10px; width: 24px; height: 44px; border-radius: 8px; }
.ex-frame { position: relative; width: 100%; height: 100%; }
.ex-frame i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--electric); }
.ex-frame i:nth-child(1) { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 14px; }
.ex-frame i:nth-child(2) { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 14px; }
.ex-frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 14px; }
.ex-frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 14px; }
.ex-print { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--electric); background: var(--sheet); color: var(--electric); }
.ex-tile { width: 100%; height: 100%; border-radius: 7px; }
.ex-scrambled { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 3px; width: 100%; height: 100%; padding: 6px; border-radius: 7px; background: var(--ink); }
.ex-scrambled i { width: 7px; height: 7px; border-radius: 2px; background: var(--canvas); }
.ex-cloud { position: relative; width: 100%; height: 100%; }
.ex-cloud i { position: absolute; background: var(--select); }
.ex-cloud i:nth-child(1) { left: 24px; right: 24px; top: 32px; bottom: 0; border-radius: 30px; }
.ex-cloud i:nth-child(2) { left: 36px; top: 4px; width: 64px; height: 64px; border-radius: 50%; }
.ex-cloud i:nth-child(3) { right: 40px; top: 16px; width: 48px; height: 48px; border-radius: 50%; }
.ex-room { width: 100%; height: 100%; border-radius: 24px; background: var(--select); border: 1.5px dashed var(--electric); }
.ex-locked { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; background: var(--ink); color: var(--canvas); }
.ex-scan { width: 100%; height: 100%; border-radius: 999px; background: var(--electric); }
.ex-ask { position: absolute; left: 8px; right: 8px; bottom: 16px; }
.ex-ask span { display: grid; place-items: center; height: 24px; border-radius: 999px; background: var(--electric); }
.ex-strip { display: flex; gap: 3px; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; direction: ltr; }
.ex-frame-cell { flex: 1; }
.ex-rrow { display: flex; align-items: center; gap: 8px; height: 40px; font-size: 13px; }
.ex-rrow > span:last-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.ex-time { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--select); color: var(--electric); font-size: 11px; font-weight: 600; }
.ex-pin { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--sheet); background: var(--electric); }
.ex-pin-l { border-width: 3px; }
.ex-safety { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.ex-safety-text { position: relative; flex: 1; min-width: 0; height: 100%; }
.ex-swap { position: absolute; left: 0; right: 0; top: 9px; height: 22px; }
.ex-strong { margin: 0; font-size: 14px; font-weight: 600; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-ok { color: var(--success); }
.ex-small { position: absolute; left: 0; right: 0; top: 35px; margin: 0; font-size: 11.5px; color: var(--muted); text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-step { display: flex; align-items: center; gap: 10px; height: 100%; padding-inline-end: 32px; font-size: 13.5px; }
.ex-step > span:last-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.ex-stepnum { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--control); color: var(--muted); font-size: 11px; font-weight: 700; }
.ex-doc { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.ex-doc-h { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--electric); font-size: 10.5px; font-weight: 600; }
.ex-doc-h > span:last-child { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.ex-doc-big { font-size: 14px; font-weight: 700; }
.ex-bar { display: block; height: 7px; border-radius: 999px; background: var(--control); }
.ex-bar-e { background: var(--electric); }
.ex-line { display: flex; width: 100%; height: 100%; }
.ex-map { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: var(--select); }
.ex-road-h { position: absolute; left: 0; right: 0; top: 62px; height: 12px; background: var(--sheet); }
.ex-road-v { position: absolute; top: 0; bottom: 0; left: 120px; width: 12px; background: var(--sheet); }
.ex-park { position: absolute; right: 24px; top: 12px; width: 64px; height: 48px; border-radius: 16px; background: var(--tint-1); }
.ex-lock { display: flex; flex-direction: column; align-items: center; height: 100%; padding-top: 32px; background: var(--select); }
.ex-clock { margin: 0; font-size: 32px; white-space: nowrap; font-weight: 700; line-height: 1.1; direction: ltr; }
.ex-widgets { display: flex; gap: 10px; margin-top: 20px; }
.ex-widget { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 66px; height: 66px; border-radius: 16px; background: var(--sheet); }
.ex-recbtn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--electric); }
.ex-recbtn i { width: 12px; height: 12px; border-radius: 50%; background: var(--electric); }
.ex-wlabel { max-width: 60px; font-size: 9.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-sosgrid { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 4px; padding: 4px; }
.ex-sos { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--danger); }
.ex-entry { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ex-entry > span:last-child { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.25; }
.ex-tap { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--sheet); background: var(--electric); opacity: .55; }
.ex-tap-d { background: var(--danger); }
.ex-slogan { margin: 0; display: grid; place-items: center; height: 100%; font-size: 25px; line-height: 32px; font-weight: 800; text-align: center; }
[dir="rtl"] .ex-slogan { font-weight: 700; }

@media (max-width: 900px) {
  .explainer { grid-template-columns: 1fr; gap: 24px; padding: 18px; }
  .ex-title, .ex-body { min-height: 0; }
}
@media (max-width: 640px) {
  .explainer { padding: 12px; border-radius: var(--radius-lg); }
  .ex-side { padding: 0 6px 6px; }
  .ex-list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ motion */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .primary { display: none; }
  .tools { margin-inline-start: auto; }
  .show-sm { display: inline-grid; }
  #theme-header { display: none; }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal-aside { position: static; }
  .toc { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .toc ol { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip .split-text { order: 0; }
  .hero-text { text-align: center; }
  .hero-text .lead { margin-inline: auto; }
  .cta-row, .badges { justify-content: center; }
  .phones { height: 560px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .mail-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .mail-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .bar { height: 64px; gap: 12px; }
  .logo svg { height: 28px; }
  .hide-sm { display: none; }
  .lang-menu summary span { display: none; }
  .lang-menu summary { width: 42px; padding: 0; justify-content: center; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .btn-lg { height: 52px; padding: 0 22px; }
  .cta-row .btn { flex: 1 1 100%; }
  .phones { height: 480px; }
  .phones .phone { width: 236px; height: 484px; border-radius: 40px; }
  .phones .ph-screen { border-radius: 31px; }
  .phones .ph-report { transform: translate(-100%, -46%) rotate(-7deg) scale(.8); }
  .phones .ph-next-screen { transform: translate(0%, -46%) rotate(7deg) scale(.8); }
  [dir="rtl"] .phones .ph-report { transform: translate(100%, -46%) rotate(7deg) scale(.8); }
  [dir="rtl"] .phones .ph-next-screen { transform: translate(0%, -46%) rotate(-7deg) scale(.8); }
  .phone-card .phone { transform: scale(.92); }
  .type-grid, .grid-4, .card-grid, .grid-2 { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .type-card { padding: 18px 14px; }
  .steps { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .dl > div { grid-template-columns: 1fr; gap: 4px; }
  .callout { flex-direction: column; gap: 12px; }
  .f-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .f-prefs { flex-direction: column; align-items: flex-start; }
  .download-card { padding: 44px 20px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .visual-card { padding: 14px; border-radius: var(--radius-lg); }
  .phone-card { padding: 24px 8px; }
}
