/* IQAMAT website (iqamat.tetrasys.ma, 2026-11-01). Plain CSS, no build step. Colours follow the
   app's icon (navy and blue). Logical properties throughout, so Arabic (dir="rtl") mirrors. */

:root {
  --navy: #0b2a66;
  --navy-2: #12357f;
  --blue: #1d5fd6;
  --blue-2: #2f7bf2;
  --sky: #eaf2ff;
  --violet: #6d4cf5;
  --mint: #10b981;
  --amber: #f59e0b;
  --ink: #0b1324;
  --ink-2: #1e293b;
  --muted: #5b6b82;
  --line: #e4eaf3;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06), 0 2px 8px rgba(11, 19, 36, .04);
  --shadow: 0 10px 30px rgba(11, 42, 102, .10), 0 2px 6px rgba(11, 42, 102, .06);
  --shadow-lg: 0 30px 70px rgba(11, 42, 102, .22), 0 8px 20px rgba(11, 42, 102, .10);
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] svg.flip { transform: scaleX(-1); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(29, 95, 214, .45); outline-offset: 3px; border-radius: 8px; }

/* Language is chosen before the first paint (boot.js); the page fades in once translated. */
html.js body { opacity: 0; }
html.js.ready body { opacity: 1; transition: opacity .25s ease; }
html.js:not(.ready) body { animation: show-anyway 0s 1.5s forwards; }
@keyframes show-anyway { to { opacity: 1; } }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; text-decoration: none; border-radius: 14px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; font-family: inherit; white-space: nowrap; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(29, 95, 214, .30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29, 95, 214, .38); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #c9d6ea; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 12px 28px rgba(3, 15, 45, .28); }
.btn-white:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--blue); background: var(--sky); border: 1px solid #d6e5ff; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(29, 95, 214, .15); }
.eyebrow.light { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.eyebrow.light .dot { background: #8fc0ff; box-shadow: 0 0 0 4px rgba(143, 192, 255, .2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 42, 102, .06); background: rgba(255, 255, 255, .88); }
.header-row { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: .04em; color: var(--navy); }
.logo img { border-radius: 9px; box-shadow: var(--shadow-sm); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 18px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: background-color .15s ease, color .15s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: var(--sky); }
.main-nav .nav-panel { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.main-nav .nav-panel svg.i { width: 17px; height: 17px; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.lang-switch button { font: 600 13px var(--font); color: var(--muted); background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.lang-switch button[lang="ar"] { font-family: var(--font-ar); }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 11px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.menu-toggle .close { display: none; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 560px; height: 560px; background: #bcd6ff; top: -180px; inset-inline-end: -120px; animation: drift 18s ease-in-out infinite; }
.b2 { width: 420px; height: 420px; background: #d9ccff; top: 160px; inset-inline-end: 260px; animation: drift 22s ease-in-out infinite reverse; }
.b3 { width: 380px; height: 380px; background: #c9f2e3; top: 300px; inset-inline-start: -160px; opacity: .45; animation: drift 26s ease-in-out infinite; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 42, 102, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 42, 102, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 24px) scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 22px 0 20px; color: var(--ink); }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg.i { width: 18px; height: 18px; color: var(--mint); stroke-width: 2.6; }

.hero-visual { position: relative; height: 560px; }
.browser { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(11, 42, 102, .08); }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f3f6fb; border-bottom: 1px solid var(--line); direction: ltr; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.browser-bar i:nth-child(1) { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar span { margin-inline-start: 14px; flex: 1; max-width: 300px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; text-align: center; }
.hero-browser { position: absolute; top: 30px; inset-inline-start: 0; width: 88%; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
[dir="rtl"] .hero-browser { transform: perspective(1600px) rotateY(9deg) rotateX(3deg); transform-origin: right center; }
.phone { position: relative; background: #f4f7fb; border: 11px solid #0b1324; border-radius: 48px; padding-top: 30px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 2px #2a3550; }
/* The screenshots start below the phone's status bar: the notch sits in that strip, not on the screen. */
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #0b1324; border-radius: 20px; z-index: 2; }
.phone img { width: 100%; background: #f4f7fb; }
.hero-phone { position: absolute; width: 250px; bottom: 0; inset-inline-end: 6%; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(11, 42, 102, .08); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: 14.5px; color: var(--ink); }
.float-card small { color: var(--muted); font-size: 12.5px; }
.fc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.fc-icon.ok { background: linear-gradient(135deg, #10b981, #059669); }
.fc-icon.blue { background: linear-gradient(135deg, var(--blue-2), var(--blue)); }
.fc-icon.violet { background: linear-gradient(135deg, #8b5cf6, var(--violet)); }
.fc1 { top: 4px; inset-inline-end: 0; animation-delay: -1s; }
.fc2 { bottom: 120px; inset-inline-start: -10px; animation-delay: -3s; }
.fc3 { bottom: 24px; inset-inline-start: 22%; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Facts strip ───────────────────────────────────────────────────────────── */
.facts { margin-top: -40px; position: relative; z-index: 2; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 18px 20px; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact-icon { width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.fact strong { display: block; font-size: 15.5px; }
.fact span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section { padding: 110px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin: 18px 0 14px; }
.section-lead { color: var(--muted); font-size: 18px; }

/* ── App tour ──────────────────────────────────────────────────────────────── */
.app-tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.tour-list { display: flex; flex-direction: column; gap: 8px; }
.tour-item { position: relative; display: flex; gap: 16px; align-items: flex-start; text-align: start; width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit; overflow: hidden; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tour-item:hover { background: var(--bg-soft); }
.tour-item.active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.ti-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); transition: background .2s ease, color .2s ease; }
.tour-item.active .ti-icon { background: var(--grad); color: #fff; }
.ti-text strong { display: block; font-size: 16.5px; margin-bottom: 2px; }
.ti-text span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease; }
.tour-item.active .ti-text span { max-height: 90px; opacity: 1; }
.ti-progress { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); }
.tour-item.active.timing .ti-progress { animation: progress var(--tour-ms, 6000ms) linear forwards; }
@keyframes progress { to { width: 100%; } }
.tour-stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.stage-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 123, 242, .28), rgba(109, 76, 245, .14) 50%, transparent 70%); filter: blur(10px); }
.tour-phone { width: 300px; }
.tour-img { transition: opacity .28s ease, transform .28s ease; }
.tour-img.swapping { opacity: 0; transform: scale(.985); }

/* ── Panel tour ────────────────────────────────────────────────────────────── */
.pill-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.pill-tabs button { font-family: inherit; font-weight: 600; font-size: 14.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .18s ease; }
.pill-tabs button:hover { border-color: #c9d6ea; }
.pill-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(11, 42, 102, .25); }
.panel-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 44px; align-items: center; }
.panel-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.panel-desc { color: var(--muted); font-size: 16.5px; margin-bottom: 20px; }
.panel-copy { transition: opacity .25s ease; }
.panel-copy.swapping { opacity: 0; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 30px; font-weight: 600; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); text-decoration: none; }
.text-link:hover svg.i { transform: translateX(3px); }
[dir="rtl"] .text-link:hover svg.i { transform: scaleX(-1) translateX(3px); }
.text-link svg.i { transition: transform .18s ease; }
.panel-browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ── Roles ─────────────────────────────────────────────────────────────────── */
.roles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.role h3 { font-size: 18px; margin: 16px 0 8px; }
.role p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.role-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.role-icon.c1 { background: linear-gradient(135deg, #2f7bf2, #1d5fd6); }
.role-icon.c2 { background: linear-gradient(135deg, #8b5cf6, #6d4cf5); }
.role-icon.c3 { background: linear-gradient(135deg, #10b981, #059669); }
.role-icon.c4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.role-icon.c5 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); counter-increment: step; }
.step::after { content: counter(step, decimal-leading-zero); position: absolute; top: 22px; inset-inline-end: 26px; font-size: 44px; font-weight: 800; color: #edf2fa; line-height: 1; }
.step-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(29, 95, 214, .28); }
.step h3 { font-size: 21px; margin: 20px 0 8px; }
.step p { color: var(--muted); }

/* ── Security ──────────────────────────────────────────────────────────────── */
.security { background: radial-gradient(900px 400px at 85% 0%, rgba(47, 123, 242, .35), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(109, 76, 245, .25), transparent 60%), linear-gradient(160deg, #081d4a 0%, var(--navy) 60%, #0e3277 100%); color: #fff; }
.security .section-lead { color: rgba(255, 255, 255, .75); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 26px 24px; transition: background-color .2s ease, transform .2s ease; }
.sec-item:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.sec-item svg.i { width: 28px; height: 28px; color: #8fc0ff; }
.sec-item h3 { font-size: 18px; margin: 16px 0 6px; }
.sec-item p { color: rgba(255, 255, 255, .72); font-size: 15px; }

/* ── Download ──────────────────────────────────────────────────────────────── */
.download-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; color: #fff; border-radius: 28px; padding: 56px; background: radial-gradient(700px 360px at 100% 0%, rgba(143, 192, 255, .35), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--blue) 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.download-card h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 18px 0 10px; }
.dl-lead { color: rgba(255, 255, 255, .82); font-size: 18px; margin-bottom: 28px; }
.dl-meta { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.dl-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: dl; display: grid; gap: 10px; }
.dl-steps li { counter-increment: dl; display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .88); }
.dl-steps li::before { content: counter(dl); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 13.5px; }
.dl-warn { margin-top: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 12px 16px; }
.dl-warn summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; list-style: none; }
.dl-warn summary::-webkit-details-marker { display: none; }
.dl-warn p { margin-top: 10px; color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.dl-side { display: grid; gap: 18px; justify-items: center; }
.qr-box { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px; text-align: center; width: 100%; max-width: 280px; box-shadow: 0 20px 44px rgba(3, 15, 45, .3); }
.qr-box img { margin: 0 auto 10px; }
.qr-box p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.dl-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-facts li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .88); font-size: 14.5px; font-weight: 600; }
.dl-facts svg.i { color: #8fc0ff; }

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

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 18px 0 14px; }
.contact-copy .section-lead { margin-bottom: 26px; }
.contact-note { display: flex; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--muted); font-size: 14.5px; }
.contact-note svg.i { color: var(--blue); margin-top: 2px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.profile-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-pick legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; padding: 0; }
.profile-pick label { position: relative; }
.profile-pick input { position: absolute; opacity: 0; pointer-events: none; }
.profile-pick span { display: inline-block; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s ease; }
.profile-pick input:checked + span { background: var(--sky); border-color: var(--blue); color: var(--blue); }
.profile-pick input:focus-visible + span { outline: 3px solid rgba(29, 95, 214, .35); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field input, .field textarea { font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 95, 214, .12); }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .1); }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.hint { font-size: 13px; color: var(--muted); margin-top: -6px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.submit { width: 100%; }
.form-status { min-height: 1.2em; font-weight: 600; font-size: 15px; }
.form-status.ok { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 12px 14px; }
.form-status.err { color: #b91c1c; }
.privacy { font-size: 13px; color: var(--muted); text-align: center; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: #071735; color: rgba(255, 255, 255, .75); padding: 56px 0 28px; }
.site-footer .logo { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-brand p { margin-top: 12px; max-width: 320px; font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }

/* ── Reveal on scroll ──────────────────────────────────────────────────────── */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
  .main-nav .nav-panel span { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s ease; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .main-nav .nav-panel span { display: inline; }
  body.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  body.nav-open .menu-toggle .open { display: none; }
  body.nav-open .menu-toggle .close { display: block; }
  .hero { padding: 36px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero-visual { height: 460px; max-width: 640px; width: 100%; margin: 0 auto; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .app-tour { grid-template-columns: 1fr; gap: 30px; }
  .tour-stage { order: -1; min-height: 0; }
  .tour-list { display: grid; grid-template-columns: 1fr 1fr; }
  .ti-text span { display: none; }
  .tour-item { align-items: center; padding: 12px; }
  .panel-stage { grid-template-columns: 1fr; gap: 26px; }
  .panel-copy { order: 2; text-align: center; }
  .panel-copy .checks { justify-items: center; }
  .steps { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .download-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 84px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-cta { display: none; }
  .lang-switch button { padding: 6px 8px; }
  .hero-copy h1 { font-size: 36px; }
  .btn-lg { width: 100%; }
  .hero-visual { height: 400px; }
  .hero-browser { width: 100%; top: 10px; }
  .hero-phone { width: 170px; inset-inline-end: 0; }
  .float-card { padding: 9px 12px; font-size: 13px; }
  .float-card small { display: none; }
  .fc-icon { width: 30px; height: 30px; border-radius: 9px; }
  .fc-icon svg.i { width: 16px; height: 16px; }
  .fc1 { top: auto; bottom: 168px; inset-inline-end: auto; inset-inline-start: 0; }
  .fc2 { display: none; }
  .fc3 { bottom: 40px; inset-inline-start: 0; }
  .facts { margin-top: -30px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line); }
  .tour-list { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ti-icon { width: 34px; height: 34px; border-radius: 10px; }
  .ti-text strong { font-size: 14.5px; }
  .tour-phone { width: 250px; }
  .stage-glow { width: 300px; height: 300px; }
  .pill-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .pill-tabs::-webkit-scrollbar { display: none; }
  .pill-tabs button { flex: none; }
  .roles-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .download-card { padding: 34px 20px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
