/* ==========================================================
   Nathra Samha — نظرة سمحة  |  Landing styles v3 "Official"
   Light, calm, professional — WCAG 2.1 AA colour contrast
   ========================================================== */

:root,
:root[data-theme="light"] {
  --bg: #F6F8F7;
  --bg-2: #EDF3F1;
  --surface: #FFFFFF;
  --surface-2: #F3F7F5;
  --line: #E0E8E5;
  --line-2: #CBD8D3;
  --ink: #0F1F1C;
  --ink-2: #2B3F3B;
  --muted: #53645E;
  --p: #0B7A68;
  --p-2: #12A58F;
  --p-deep: #075548;
  --p-soft: #E4F3EF;
  --p-rgb: 11 122 104;
  --gold: #E0A63A;
  --gold-ink: #8A5A0B;
  --on-p: #FFFFFF;
  --grad: linear-gradient(100deg, #0B7A68 0%, #12A58F 40%, #C98A1E 70%, #0B7A68 100%);
  --shadow-sm: 0 1px 2px rgb(15 40 35 / .05), 0 2px 6px rgb(15 40 35 / .04);
  --shadow: 0 4px 10px rgb(15 40 35 / .04), 0 18px 40px -14px rgb(15 40 35 / .14);
  --shadow-lg: 0 30px 70px -28px rgb(7 85 72 / .35);
  --radius: 22px;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1716;
  --bg-2: #121E1C;
  --surface: #15221F;
  --surface-2: #1A2926;
  --line: #24342F;
  --line-2: #2F433E;
  --ink: #E8F1EE;
  --ink-2: #C5D3CF;
  --muted: #9BADA7;
  --p: #3CC7AE;
  --p-2: #2CCFAF;
  --p-deep: #0B5A4E;
  --p-soft: #173A33;
  --p-rgb: 60 199 174;
  --gold-ink: #F0BE62;
  --on-p: #04211C;
  --grad: linear-gradient(100deg, #3CC7AE 0%, #9AF0DD 35%, #F0BE62 65%, #3CC7AE 100%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow: 0 18px 40px -16px rgb(0 0 0 / .55);
  --shadow-lg: 0 30px 70px -28px rgb(0 0 0 / .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[lang="en"] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: var(--p); text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.logo-eye, .big-eye, .demo-img svg { stroke: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--p); color: var(--on-p); }
kbd { font-family: ui-monospace, monospace; font-size: .82em; padding: .1em .5em; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; background: var(--surface); }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 300; background: var(--p); color: var(--on-p); padding: .6rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.grad { background: var(--grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 9s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }

/* ---------- Interactive background ---------- */
.bg-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.soft-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.soft-bg i { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 24s ease-in-out infinite alternate; }
.soft-bg .s1 { width: 640px; height: 640px; background: rgb(var(--p-rgb) / .13); top: -220px; inset-inline-end: -160px; }
.soft-bg .s2 { width: 520px; height: 520px; background: rgb(224 166 58 / .11); bottom: -200px; inset-inline-start: -160px; animation-duration: 30s; }
@keyframes drift { to { transform: translate(60px, 80px) scale(1.1); } }
main, .site-footer, .utility { position: relative; z-index: 2; }

/* ---------- Utility bar ---------- */
.utility { background: var(--p-deep); color: #E6F3EF; font-size: .86rem; }
:root[data-theme="dark"] .utility { background: #0A2722; }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.util-note { display: flex; align-items: center; gap: .45rem; }
.util-note svg { width: 16px; height: 16px; color: #9FE6D6; }
.util-tools { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; padding-block: 5px; }
.util-group { display: flex; border: 1px solid rgb(255 255 255 / .25); border-radius: 9px; overflow: hidden; }
.util-group .u-btn { border: 0; border-radius: 0; }
.util-group .u-btn + .u-btn { border-inline-start: 1px solid rgb(255 255 255 / .25); }
.u-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 34px; height: 32px; padding: 0 .6rem; border-radius: 9px; border: 1px solid rgb(255 255 255 / .25); background: transparent; color: #fff; cursor: pointer; font-weight: 600; font-size: .84rem; transition: background .2s, color .2s; }
.u-btn:hover { background: rgb(255 255 255 / .12); }
.u-btn[aria-pressed="true"] { background: #fff; color: var(--p-deep); }
.u-btn sup { font-size: .7em; }
.u-btn svg { width: 16px; height: 16px; }
#themeToggle .moon { display: none; }
:root[data-theme="dark"] #themeToggle .sun { display: none; }
:root[data-theme="dark"] #themeToggle .moon { display: block; }
@media (max-width: 900px) { .util-note { display: none; } .util-in { justify-content: center; } }
@media (max-width: 480px) { .u-btn.wide span { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgb(15 40 35 / .35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo-eye { width: 58px; height: 40px; overflow: visible; filter: drop-shadow(0 4px 10px rgb(var(--p-rgb) / .25)); transition: transform .35s var(--ease); }
.brand:hover .logo-eye { transform: scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; white-space: nowrap; }
.brand-text small { font-size: .62rem; color: var(--muted); letter-spacing: .22em; margin-top: 3px; font-family: "Readex Pro", sans-serif; }
.nav-links { display: flex; gap: .1rem; }
.nav-links a { position: relative; color: var(--ink-2); text-decoration: none; font-weight: 500; padding: .55rem .85rem; border-radius: 10px; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; inset-inline: .85rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--p); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--p); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: absolute; inset-inline: 12px; top: 84px; flex-direction: column; padding: .5rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: .25s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: .85rem 1rem; }
  .nav-links a::after { display: none; }
}
@media (max-width: 600px) { .hide-sm { display: none; } .brand-text small { display: none; } }

/* Eye blink (logo + hero) */
.lid-wrap { transform-origin: 200px 130px; animation: blink 7s infinite; }
.lashes { transform-origin: 200px 130px; animation: lashes 7s infinite; }
.cta-logo .lid-wrap, .cta-logo .lashes { animation-delay: -2.5s; }
.site-footer .lid-wrap, .site-footer .lashes { animation-delay: -4s; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.06); } }
@keyframes lashes { 0%, 93%, 100% { transform: none; } 95.5% { transform: translateY(60px) scaleY(.4); } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.35rem; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-family: var(--font-head); font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn-sm { min-height: 42px; padding: .45rem 1rem; font-size: .93rem; }
.btn-lg { min-height: 56px; padding: .85rem 1.7rem; font-size: 1.05rem; border-radius: 14px; }
.btn-glow { color: var(--on-p); background: var(--p); box-shadow: 0 10px 24px -12px rgb(var(--p-rgb) / .9); }
.btn-glow:hover { background: var(--p-deep); }
:root[data-theme="dark"] .btn-glow:hover { background: var(--p-2); }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-glass { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-glass:hover { border-color: var(--p); color: var(--p); }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4.5rem 0 0; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; padding-bottom: 3.5rem; }
.hero-inner > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 1rem; border-radius: 999px; background: var(--p-soft); border: 1px solid rgb(var(--p-rgb) / .25); font-size: .88rem; font-weight: 600; color: var(--p-deep); }
:root[data-theme="dark"] .pill { color: var(--p); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-2); box-shadow: 0 0 0 0 rgb(var(--p-rgb) / .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.8rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; margin: 1.3rem 0; }
.hero h1 .grad { display: inline-block; padding: 0 .04em .2em; margin-bottom: -.1em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 37rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.stats { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(4, auto); width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stats li { padding: .95rem 1.4rem; display: flex; flex-direction: column; }
.stats li + li { border-inline-start: 1px solid var(--line); }
.stats strong { font-family: "Readex Pro", var(--font-head); font-size: 1.75rem; font-weight: 700; line-height: 1.15; display: flex; }
.stats em { font-style: normal; color: var(--gold); }
.stats small { font-size: .82rem; color: var(--muted); }

.hero-eye { position: relative; aspect-ratio: 1; width: min(100%, 540px); margin-inline: auto; display: grid; place-items: center; }
.hero-eye::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, var(--surface) 35%, transparent 70%); }
.big-eye { position: relative; z-index: 2; width: 76%; height: auto; overflow: visible; filter: drop-shadow(0 24px 40px rgb(var(--p-rgb) / .25)); cursor: pointer; }
.big-eye .lid-wrap, .big-eye .lashes { animation-duration: 6s; }
.big-eye.wink .lid-wrap { animation: wink .45s ease; }
@keyframes wink { 50% { transform: scaleY(.06); } }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); inset: 6%; }
.ring.r2 { inset: 20%; border-style: dashed; border-color: rgb(var(--p-rgb) / .3); animation: spin 70s linear infinite reverse; }
.ring.r1::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); top: 12%; inset-inline-start: 14%; }
.orbit { position: absolute; inset: 0; animation: spin 60s linear infinite; z-index: 3; }
.orbit.o2 { inset: 15%; animation-duration: 44s; animation-direction: reverse; }
.orbit span { position: absolute; top: 50%; left: 50%; margin: -23px 0 0 -23px; transform: rotate(var(--a)) translateX(calc(min(540px, 100vw) * .44)) rotate(calc(-1 * var(--a))); }
.orbit.o2 span { transform: rotate(var(--a)) translateX(calc(min(540px, 100vw) * .3)) rotate(calc(-1 * var(--a))); }
.orbit b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--p); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: spin 60s linear infinite reverse; }
.orbit.o2 b { animation: spin 44s linear infinite; width: 40px; height: 40px; color: var(--gold-ink); }
.orbit b svg { width: 21px; height: 21px; }
@keyframes spin { to { transform: rotate(360deg); } }
.eye-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; animation: float 6s ease-in-out infinite; }
.eye-chip svg { color: var(--p); width: 17px; height: 17px; }
.eye-chip.c1 { top: 9%; inset-inline-end: 4%; }
.eye-chip.c2 { bottom: 11%; inset-inline-start: 2%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.marquee { position: relative; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: .9rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: .8rem; width: max-content; animation: marquee 50s linear infinite; }
[dir="rtl"] .track { animation-name: marqueeRtl; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.track i { font-style: normal; }
.track svg { color: var(--p); width: 17px; height: 17px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

@media (max-width: 960px) {
  .hero { padding-top: 3rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-eye { width: min(100%, 420px); }
  .orbit span { transform: rotate(var(--a)) translateX(calc(min(420px, 100vw - 32px) * .44)) rotate(calc(-1 * var(--a))); }
  .orbit.o2 span { transform: rotate(var(--a)) translateX(calc(min(420px, 100vw - 32px) * .3)) rotate(calc(-1 * var(--a))); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; width: 100%; }
  .stats li { align-items: center; }
  .stats li + li { border-inline-start: 0; }
  .stats li:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-cta .btn { flex: 1 1 100%; }
  .orbit b { width: 38px; height: 38px; border-radius: 11px; }
  .orbit b svg { width: 17px; height: 17px; }
  .eye-chip { font-size: .74rem; padding: .35rem .65rem; }
}

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.2rem; }
.section-head.start { text-align: start; margin-inline: 0; }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 700; letter-spacing: -.01em; margin: .7rem 0 .9rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem !important; color: var(--p) !important; }
.kicker b { font-family: "Readex Pro", sans-serif; font-weight: 600; font-size: .75rem; padding: .15rem .5rem; border-radius: 7px; color: var(--on-p); background: var(--p); }

.spot { position: relative; isolation: isolate; --mx: 50%; --my: 50%; }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: 1; pointer-events: none; background: radial-gradient(300px circle at var(--mx) var(--my), rgb(var(--p-rgb) / .9), rgb(224 166 58 / .5) 30%, transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .35s; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgb(var(--p-rgb) / .07), transparent 50%); opacity: 0; transition: opacity .35s; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

.ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--p); background: var(--p-soft); flex: none; transition: background .3s, color .3s, transform .4s var(--ease); }
.ic svg { width: 23px; height: 23px; }

/* Empathy simulator */
.sim { border: 1px solid var(--line); border-radius: 28px; background: var(--surface); padding: 1rem; box-shadow: var(--shadow); }
.sim-tabs { display: flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.sim-tabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .5rem 1rem; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.sim-tabs button:hover { color: var(--ink); }
.sim-tabs button[aria-selected="true"] { background: var(--surface); color: var(--p); box-shadow: var(--shadow-sm), 0 0 0 1px rgb(var(--p-rgb) / .3); }
.sim-stage { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.8rem; padding: 1.5rem .5rem .5rem; align-items: center; }
.sim-stage > * { min-width: 0; }
.sim-screen { position: relative; border-radius: 18px; overflow: hidden; background: #FBFAF6; color: #13201E; border: 1px solid var(--line-2); transition: filter .6s var(--ease); }
.ss-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEEBE3; }
.ss-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3CEC3; }
.ss-bar span { margin-inline-start: 10px; font-size: .75rem; color: #5E6863; direction: ltr; background: #fff; padding: 1px 10px; border-radius: 7px; }
.ss-body { padding: 1.8rem; transition: filter .6s var(--ease); }
.ss-body h3 { font-size: 1.55rem; margin-bottom: .6rem; color: #0B3B36; }
.ss-body p { color: #3E4B48; }
.ss-status { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0; }
.ss-status span { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 10px; font-size: .9rem; background: #F1EFE9; }
.ss-status i { width: 12px; height: 12px; border-radius: 50%; }
.ss-status .ok i { background: #2FA84F; } .ss-status .bad i { background: #E0443A; }
.ss-btns { display: flex; gap: .6rem; }
.ss-btns span { padding: .6rem 1.3rem; border-radius: 10px; font-weight: 700; color: #fff; }
.ss-btns .g { background: #23803D; } .ss-btns .r { background: #C8322A; }
.tunnel-ov { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(circle at var(--tx, 50%) var(--ty, 55%), transparent 0, transparent 70px, rgb(0 0 0 / .96) 150px); }
.sim-screen[data-sim="blur"] .ss-body { filter: blur(3.2px) contrast(.8); }
.sim-screen[data-sim="cb"] { filter: url(#sim-deutan); }
.sim-screen[data-sim="tunnel"] .tunnel-ov { opacity: 1; }
.sim-info { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.sim-note b { display: block; font-size: 1.5rem; margin-bottom: .5rem; font-family: var(--font-head); }
.sim-note p { color: var(--muted); font-size: 1.05rem; }
.sim-note { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .sim-stage { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sim-tabs button { flex: 1 1 45%; font-size: .9rem; } .ss-body { padding: 1.2rem; } }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.why > * { min-width: 0; }
.why-big { border-radius: 28px; padding: 2.4rem; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; background: radial-gradient(120% 80% at 85% 0%, rgb(44 207 175 / .45), transparent 60%), linear-gradient(160deg, #0B6A5B, #06352E); box-shadow: var(--shadow-lg); }
.why-big::after { opacity: 1 !important; background: repeating-radial-gradient(circle at 85% 15%, transparent 0 38px, rgb(255 255 255 / .05) 38px 39px) !important; }
.mega { font-family: "Readex Pro", sans-serif; font-weight: 700; font-size: clamp(6rem, 4rem + 7vw, 10rem); line-height: .9; direction: ltr; display: flex; align-items: baseline; color: #F2C26A; margin-bottom: 1.4rem; align-self: flex-start; }
.mega small { font-size: .45em; opacity: .6; margin: 0 .08em; }
.why-big h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.why-big p { color: rgb(255 255 255 / .88); }
.why-side .section-head { margin-bottom: 2rem; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.why-list li { display: flex; gap: 1.1rem; padding: 1.35rem; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.why-list li:hover { transform: translateX(-6px); box-shadow: var(--shadow); }
[dir="ltr"] .why-list li:hover { transform: translateX(6px); }
.why-list li:hover .ic { background: var(--p); color: var(--on-p); }
.why-list h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.why-list p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .why { grid-template-columns: minmax(0, 1fr); } .why-big { min-height: 340px; order: 2; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.b-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); padding: 1.5rem; display: flex; flex-direction: column; overflow: hidden; min-height: 290px; transition: transform .45s var(--ease), box-shadow .45s; }
.b-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.b-wide { grid-column: span 2; }
.b-card h3 { font-size: 1.22rem; margin: auto 0 .35rem; padding-top: 1.3rem; }
.b-card p { color: var(--muted); }
.b-viz { height: 150px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.viz-size { gap: 1.2rem; font-weight: 700; color: var(--ink); }
.viz-size span:nth-child(1) { font-size: 1.4rem; opacity: .35; } .viz-size span:nth-child(2) { font-size: 2.3rem; opacity: .55; }
.viz-size span:nth-child(3) { font-size: 3.4rem; opacity: .8; } .viz-size span:nth-child(4) { font-size: 4.8rem; color: var(--p); animation: pulseSize 3s var(--ease) infinite; }
@keyframes pulseSize { 50% { transform: scale(1.1); } }
.viz-voice { gap: 7px; }
.viz-voice i { width: 8px; border-radius: 4px; background: linear-gradient(var(--p-2), var(--p)); height: 30%; animation: bars 1.1s ease-in-out infinite; }
.viz-voice i:nth-child(2) { animation-delay: -.2s; } .viz-voice i:nth-child(3) { animation-delay: -.5s; } .viz-voice i:nth-child(4) { animation-delay: -.1s; }
.viz-voice i:nth-child(5) { animation-delay: -.7s; } .viz-voice i:nth-child(6) { animation-delay: -.3s; } .viz-voice i:nth-child(7) { animation-delay: -.6s; }
@keyframes bars { 50% { height: 80%; } }
.viz-contrast span { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); animation: spin 9s linear infinite; }
.viz-colors { gap: 10px; }
.viz-colors i { width: 44px; height: 44px; border-radius: 12px; animation: hue 6s linear infinite; }
.viz-colors i:nth-child(1) { background: #E0443A; } .viz-colors i:nth-child(2) { background: #2FA84F; } .viz-colors i:nth-child(3) { background: #3B7DDD; } .viz-colors i:nth-child(4) { background: #E0A63A; }
@keyframes hue { 50% { filter: hue-rotate(60deg) saturate(1.3); } }
.viz-guide { flex-direction: column; align-items: stretch; gap: 14px; padding: 0 2rem; }
.viz-guide i { height: 9px; border-radius: 5px; background: var(--line-2); }
.viz-guide i:nth-child(2) { width: 85%; } .viz-guide i:nth-child(3) { width: 92%; } .viz-guide i:nth-child(4) { width: 70%; }
.viz-guide b { position: absolute; inset-inline: 1.2rem; height: 22px; border-radius: 8px; border: 2px solid var(--gold); background: rgb(224 166 58 / .14); box-shadow: 0 0 0 999px rgb(15 31 28 / .18); top: 33px; animation: guide 5s var(--ease) infinite; }
@keyframes guide { 0%, 100% { top: 33px; } 33% { top: 56px; } 66% { top: 79px; } }
.chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .94rem; color: var(--ink-2); transition: border-color .25s, color .25s, transform .3s var(--ease), box-shadow .3s; }
.chips li:hover { border-color: var(--p); color: var(--p); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.chips svg { color: var(--p); width: 17px; height: 17px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: minmax(0, 1fr); } .b-wide { grid-column: auto; } .b-card { min-height: 0; } }

/* Profiles */
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; perspective: 1100px; }
.profile { position: relative; text-align: start; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; padding: 1.5rem; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; min-height: 190px; transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s, box-shadow .3s, background .3s; }
.profile:hover { border-color: rgb(var(--p-rgb) / .5); box-shadow: var(--shadow); }
.p-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: auto; color: var(--p); background: var(--p-soft); transition: .3s; transform: translateZ(26px); }
.p-ic svg { width: 25px; height: 25px; }
.profile b { font-family: var(--font-head); font-size: 1.12rem; margin-top: 1.3rem; }
.profile small { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.profile .state { position: absolute; top: 14px; inset-inline-end: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--p); color: var(--on-p); transform: scale(0); transition: transform .35s var(--ease); }
.profile .state svg { width: 15px; height: 15px; stroke-width: 3; }
.profile[aria-pressed="true"] { border-color: var(--p); background: linear-gradient(160deg, var(--p-soft), var(--surface)); box-shadow: 0 0 0 3px rgb(var(--p-rgb) / .18), var(--shadow); }
.profile[aria-pressed="true"] .p-ic { background: var(--p); color: var(--on-p); }
.profile[aria-pressed="true"] .state { transform: scale(1); }
@media (max-width: 960px) { .profile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } .profile { min-height: 0; } }

/* Demo */
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.demo-grid > * { min-width: 0; }
.demo-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem); margin: .7rem 0 1rem; }
.demo-copy > p { color: var(--muted); font-size: 1.08rem; }
.steps-mini { margin: 1.7rem 0 2.1rem; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .85rem; }
.steps-mini li { counter-increment: s; display: flex; gap: .85rem; align-items: center; color: var(--ink-2); }
.steps-mini li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); font-weight: 700; }
.demo-article { border-radius: 26px; border: 1px solid var(--line); background: var(--surface); padding: 1.6rem; box-shadow: var(--shadow); }
.demo-img { height: 190px; border-radius: 18px; overflow: hidden; margin-bottom: 1.4rem; }
.demo-img svg { width: 100%; height: 100%; }
.demo-article h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.demo-article p { color: var(--ink-2); margin-bottom: .9rem; }
.demo-form { display: grid; grid-template-columns: 1fr auto; gap: .5rem .7rem; margin-top: 1.4rem; align-items: end; }
.demo-form label { grid-column: 1 / -1; font-weight: 600; font-size: .92rem; }
input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px; padding: .7rem 1rem; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgb(var(--p-rgb) / .16); }
@media (max-width: 960px) { .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; } }
@media (max-width: 440px) { .demo-form { grid-template-columns: 1fr; } .demo-article { padding: 1.1rem; } }

/* Install */
.install-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: center; }
.install-grid > * { min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.8rem; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 24px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--p), var(--gold)); opacity: .4; }
.timeline li { position: relative; display: flex; gap: 1.1rem; align-items: flex-start; }
.timeline li > span { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--p); color: var(--p); font-family: "Readex Pro", sans-serif; font-weight: 700; font-size: 1.15rem; box-shadow: 0 0 0 6px var(--bg); }
.timeline b { font-size: 1.15rem; }
.timeline p { color: var(--muted); }
.code-card { background: #0B1A18; color: #D6E7E3; border-radius: 22px; overflow: hidden; border: 1px solid #1B3430; box-shadow: var(--shadow-lg); }
.code-tabs { display: flex; flex-wrap: wrap; gap: .3rem; padding: .7rem; border-bottom: 1px solid #1B3430; background: #0F211E; }
.code-tabs button { padding: .45rem .95rem; border-radius: 10px; border: 0; background: transparent; color: #8FAAA3; cursor: pointer; font-weight: 600; font-size: .88rem; min-height: 40px; }
.code-tabs button[aria-selected="true"] { background: #1B3632; color: #fff; }
.code-tabs button:hover { color: #fff; }
.code-tabs .copy { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #27453F; }
.code-tabs .copy svg { width: 16px; height: 16px; }
.code-card pre { margin: 0; padding: 1.5rem; overflow-x: auto; font-size: .92rem; line-height: 1.8; min-height: 220px; }
.code-card code { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tk-tag { color: #6EE7CF; } .tk-attr { color: #F2C26A; } .tk-str { color: #A5E3A0; } .tk-com { color: #7A9A92; font-style: italic; } .tk-kw { color: #C4A7F5; }
.attrs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.5rem 1.5rem; }
.attrs span { font-size: .8rem; padding: .3rem .7rem; border-radius: 8px; background: #132A26; color: #A6C0BA; direction: ltr; }
.attrs code { color: #F2C26A; margin-inline-end: .3rem; }
@media (max-width: 960px) { .install-grid { grid-template-columns: minmax(0, 1fr); } }

/* Band */
.band { position: relative; z-index: 2; padding: 4rem 0; background: var(--surface); border-block: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.band-item:hover .ic { background: var(--p); color: var(--on-p); transform: rotate(-6deg) scale(1.05); }
.band-item h3 { font-size: 1.1rem; margin: 1rem 0 .35rem; }
.band-item p { color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) { .band-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .band-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.faq-wrap > * { min-width: 0; }
.faq { display: grid; gap: .75rem; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: rgb(var(--p-rgb) / .45); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.35rem; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); font-size: 1.3rem; transition: transform .35s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--p); color: var(--on-p); }
.faq details p { padding: 0 1.35rem 1.25rem; color: var(--muted); }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

/* CTA */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3.2rem; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(90% 120% at 100% 0%, rgb(var(--p-rgb) / .1), transparent 55%), radial-gradient(70% 100% at 0% 100%, rgb(224 166 58 / .1), transparent 55%), var(--surface); box-shadow: var(--shadow); }
.cta > * { min-width: 0; position: relative; }
.cta-logo { width: 104px; height: 72px; margin-bottom: 1.3rem; animation: float 6s ease-in-out infinite; }
.cta-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.8rem); margin-bottom: .8rem; }
.cta-copy p { color: var(--muted); font-size: 1.08rem; }
.mail-big { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.7rem; font-size: clamp(1rem, .9rem + .7vw, 1.3rem); font-weight: 600; color: var(--ink); text-decoration: none; padding: .85rem 1.2rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color .3s, box-shadow .3s, color .3s; word-break: break-all; }
.mail-big:hover { border-color: var(--p); color: var(--p); box-shadow: 0 0 0 4px rgb(var(--p-rgb) / .12); }
.mail-big svg { color: var(--p); }
.copy-mail { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .92rem; padding: .4rem .2rem; min-height: 40px; }
.copy-mail:hover { color: var(--p); }
.copy-mail svg { width: 16px; height: 16px; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: center; padding: 1.5rem; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.full { grid-column: 1 / -1; }
.form-msg { font-weight: 600; min-height: 1.5em; font-size: .95rem; }
.form-msg.ok { color: var(--p); } .form-msg.err { color: #B42318; }
:root[data-theme="dark"] .form-msg.err { color: #FF8A73; }
input[aria-invalid="true"] { border-color: #B42318; }
@media (max-width: 960px) { .cta { grid-template-columns: minmax(0, 1fr); padding: 2rem; gap: 2rem; } }
@media (max-width: 560px) { .cta-form { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; } .cta { padding: 1.3rem; border-radius: 24px; } .section { padding: 4.5rem 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1.8rem 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.foot .logo-eye { width: 48px; height: 33px; }
.foot .copy { color: var(--muted); font-size: .9rem; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Pause motion (WCAG 2.2.2) */
.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }
.motion-off .soft-bg { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.why-big-t { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: .5rem; }
/* Bilingual logo lockup: Arabic + English name, identical in both languages */
.brand-text { align-items: center; text-align: center; }
/* keep footer text clear of the floating accessibility button (it sits on the inline-end side) */
.foot { padding-inline-end: 84px; }

/* ==========================================================
   v4 — calm & simple: new logo mark + interactive product preview
   ========================================================== */
.grad { animation: none; background-size: 100% 100%; }
.soft-bg i { opacity: .7; }

/* Logo mark: a welcoming figure / a kind glance (dot + open arc) */
.logo-mark { width: 44px; height: 44px; overflow: visible; }
.lm-dot { fill: var(--gold); transform-origin: 24px 14px; transition: transform .5s var(--ease); }
.lm-arc { fill: none; stroke: var(--p); stroke-width: 6; stroke-linecap: round; }
.brand:hover .lm-dot { transform: translateY(-3px); }
.foot .logo-mark { width: 38px; height: 38px; }

/* Hero preview */
.hero-visual { position: relative; padding: 18px 0; }
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar span { margin-inline-start: 10px; font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 1px 12px; border-radius: 7px; direction: ltr; }
.mock-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; min-height: 390px; }
.mock-page { position: relative; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); color: var(--ink); transition: background .45s, color .45s, filter .45s; }
.mp-img { height: 96px; border-radius: 14px; background: linear-gradient(120deg, var(--p-soft), #FBEFD9); transition: filter .45s; }
.mp-h { font-family: var(--font-head); font-size: 1.15rem; margin-top: .3rem; transition: font-size .35s var(--ease); }
.mp-p { font-size: .9rem; color: var(--muted); line-height: 1.7; transition: font-size .35s var(--ease), color .45s; }
.mp-btns { display: flex; gap: 8px; margin-top: auto; }
.mp-btns span { padding: 7px 15px; border-radius: 10px; background: var(--p); color: var(--on-p); font-size: .82rem; font-weight: 600; transition: .35s; }
.mp-btns .ghost { background: transparent; color: var(--p); border: 1px solid var(--line-2); }
.mp-guide { position: absolute; inset-inline: 14px; top: 150px; height: 28px; border-radius: 9px; border: 2px solid var(--gold); background: rgb(224 166 58 / .12); box-shadow: 0 0 0 999px rgb(15 31 28 / .14); opacity: 0; pointer-events: none; transition: opacity .35s; }
.m-size .mp-h { font-size: 1.5rem; } .m-size .mp-p { font-size: 1.05rem; }
.m-contrast { background: #0B0B0B; color: #fff; }
.m-contrast .mp-p { color: #F2F2F2; } .m-contrast .mp-img { filter: grayscale(1) brightness(.6) contrast(1.4); }
.m-contrast .mp-btns span { background: #FFE14D; color: #000; border-color: #FFE14D; }
.m-guide .mp-guide { opacity: 1; animation: mguide 5s var(--ease) infinite; }
@keyframes mguide { 0%, 100% { top: 150px; } 50% { top: 196px; } }
.m-font .mp-h, .m-font .mp-p { font-family: Tahoma, Verdana, sans-serif; word-spacing: .18em; }
.m-gray { filter: grayscale(1); }
.m-links .ghost { outline: 2px solid var(--gold); outline-offset: 2px; text-decoration: underline; text-underline-offset: 3px; }
.mock-panel { border-inline-start: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.mpn-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mpn-head .logo-mark { width: 28px; height: 28px; }
.mpn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mpn-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 68px; padding: 6px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-size: .74rem; font-weight: 600; cursor: pointer; transition: border-color .25s, color .25s, background .25s, transform .2s; }
.mpn-grid button svg { width: 21px; height: 21px; }
.mpn-grid button:hover { border-color: var(--p); color: var(--p); }
.mpn-grid button:active { transform: scale(.96); }
.mpn-grid button[aria-pressed="true"] { background: var(--p-soft); border-color: var(--p); color: var(--p); }
.mpn-hint { margin-top: auto; font-size: .74rem; color: var(--muted); text-align: center; }
.hv-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .85rem; font-weight: 600; }
.hv-chip svg { color: var(--p); width: 17px; height: 17px; }
.hv-chip.c1 { top: -4px; inset-inline-end: 24px; }
.hv-chip.c2 { bottom: -4px; inset-inline-start: 24px; }
@media (max-width: 960px) { .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; } }
@media (max-width: 560px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-panel { border-inline-start: 0; border-top: 1px solid var(--line); }
  .mpn-grid { grid-template-columns: repeat(3, 1fr); }
  .mock-page { min-height: 300px; }
  .hv-chip { font-size: .75rem; padding: .35rem .65rem; }
}

/* calmer section rhythm */
.section { padding: 6rem 0; }
.b-card, .why-list li, .profile, .faq details { box-shadow: none; }
.b-card:hover, .profile:hover { box-shadow: var(--shadow); }
.logo-mark { stroke: none; }

/* ==========================================================
   v5 — every platform: tech tabs, platform strip, iOS polish
   ========================================================== */
button, a { -webkit-tap-highlight-color: transparent; }
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--surface); } }
.platforms { list-style: none; padding: 0; margin: 0 0 2.4rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.platforms li { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1rem .6rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: center; transition: border-color .3s, transform .3s var(--ease); }
.platforms li:hover { border-color: var(--p); transform: translateY(-3px); }
.platforms svg { color: var(--p); width: 22px; height: 22px; margin-bottom: .2rem; }
.platforms span { font-weight: 600; font-size: .95rem; }
.platforms small { color: var(--muted); font-size: .8rem; direction: ltr; }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
.install-grid { align-items: start; }
.code-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; align-items: center; }
.code-tabs button { flex: none; white-space: nowrap; }
.tab-group { flex: none; font-size: .72rem; font-weight: 700; color: #6F8C85; padding: 0 .5rem 0 .3rem; white-space: nowrap; }
.tab-group + button { margin-inline-start: 0; }
.code-tabs button + .tab-group { margin-inline-start: .6rem; padding-inline-start: .9rem; border-inline-start: 1px solid #27453F; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 1.1rem 0 1.5rem; color: #8FAAA3; font-size: .85rem; font-weight: 600; }
.code-head .copy { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; min-height: 36px; border-radius: 10px; border: 1px solid #27453F; background: transparent; color: #CFE3DE; cursor: pointer; font-weight: 600; font-size: .85rem; }
.code-head .copy:hover { color: #fff; border-color: #3C6A62; }
.code-head .copy svg { width: 16px; height: 16px; }
.code-card pre { min-height: 300px; padding-top: 1rem; }
/* tabs wrap into two clear groups (web / mobile apps) instead of hiding behind horizontal scroll */
.code-tabs { flex-wrap: wrap; overflow: visible; row-gap: .35rem; }
.code-tabs button + .tab-group { flex-basis: 100%; margin: .35rem 0 0; padding: .55rem .3rem .15rem; border-inline-start: 0; border-top: 1px solid #1B3430; }
.tab-group { padding-block: .3rem; }

/* ==========================================================
   v6 — header tools, DGA standards section, footer
   ========================================================== */
.nav-tools { display: flex; align-items: center; gap: .35rem; padding-inline-end: .5rem; margin-inline-end: .15rem; border-inline-end: 1px solid var(--line); }
.nav-tools .icon-btn { width: 40px; height: 40px; border-radius: 11px; border-color: var(--line); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.nav-tools .icon-btn:hover { border-color: var(--p); color: var(--p); }
.nav-tools .icon-btn svg { width: 18px; height: 18px; }
.lang-btn { width: auto !important; padding: 0 .75rem; display: inline-flex !important; gap: .4rem; font-weight: 600; font-size: .88rem; }
#uMotion .i-play { display: none; }
#uMotion[aria-pressed="true"] { background: var(--p-soft); border-color: var(--p); color: var(--p); }
#uMotion[aria-pressed="true"] .i-pause { display: none; }
#uMotion[aria-pressed="true"] .i-play { display: block; }
#themeToggle .moon { display: none; }
:root[data-theme="dark"] #themeToggle .sun { display: none; }
:root[data-theme="dark"] #themeToggle .moon { display: block; }
@media (max-width: 1180px) { .lang-btn span { display: none; } .lang-btn { width: 40px !important; padding: 0; justify-content: center; } }
@media (max-width: 600px) {
  .nav-tools { gap: .25rem; padding-inline-end: .35rem; }
  .nav-tools .icon-btn, .icon-btn { width: 38px; height: 38px; }
  .lang-btn { width: 38px !important; }
  .logo-mark { width: 36px; height: 36px; }
  .brand-text strong { font-size: 1.08rem; }
  .nav { gap: .5rem; }
}

/* DGA standards */
.standards { background: linear-gradient(180deg, transparent, rgb(var(--p-rgb) / .05) 30%, rgb(var(--p-rgb) / .05) 70%, transparent); }
.std-grid { display: grid; grid-template-columns: .9fr 1.6fr; gap: 1.4rem; align-items: start; }
.std-grid > * { min-width: 0; }
.std-card { position: sticky; top: 100px; border-radius: 26px; padding: 2rem; color: #fff; overflow: hidden; background: radial-gradient(120% 80% at 90% 0%, rgb(44 207 175 / .4), transparent 60%), linear-gradient(160deg, #0B6A5B, #06352E); box-shadow: var(--shadow-lg); }
.std-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); font-size: .85rem; font-weight: 600; }
.std-badge svg { width: 16px; height: 16px; color: #9FE6D6; }
.std-big { display: block; font-family: "Readex Pro", sans-serif; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); font-weight: 700; line-height: 1.1; margin: 1.3rem 0 .8rem; }
.std-big em { font-style: normal; color: #F2C26A; }
.std-card > p { color: rgb(255 255 255 / .85); }
.pour { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.pour li { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border-radius: 12px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-weight: 600; font-size: .92rem; }
.pour svg { width: 18px; height: 18px; color: #9FE6D6; }
.std-note { font-size: .85rem; color: rgb(255 255 255 / .7) !important; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .15); }
.crit-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.crit { display: flex; align-items: flex-start; gap: .9rem; padding: 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: transform .35s var(--ease), box-shadow .35s; }
.crit:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.crit .code { flex: none; min-width: 56px; text-align: center; font-family: "Readex Pro", ui-monospace, monospace; font-weight: 700; font-size: .85rem; padding: .35rem .5rem; border-radius: 10px; background: var(--p-soft); color: var(--p-deep); }
:root[data-theme="dark"] .crit .code { color: var(--p); }
.crit > div { flex: 1; min-width: 0; }
.crit h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.crit p { color: var(--muted); font-size: .93rem; line-height: 1.6; }
.crit .ok { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--p); color: var(--on-p); stroke-width: 3; }
@media (max-width: 1000px) { .std-grid { grid-template-columns: minmax(0, 1fr); } .std-card { position: static; } }
@media (max-width: 640px) { .crit-list { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { justify-content: space-between; }
.foot .copy { font-weight: 500; letter-spacing: .01em; }

/* ==========================================================
   v7 — why section without the big card, a touch more interaction
   ========================================================== */
.why { grid-template-columns: minmax(0, 1fr); }
.why-side .section-head { margin-inline: auto; }
.why-list { grid-template-columns: repeat(3, 1fr); }
.why-list li { flex-direction: column; }
.why-list li:hover, [dir="ltr"] .why-list li:hover { transform: translateY(-5px); }
@media (max-width: 900px) { .why-list { grid-template-columns: minmax(0, 1fr); } .why-list li { flex-direction: row; } }

/* hero spotlight that follows the pointer */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(560px circle at var(--hx, 70%) var(--hy, 30%), rgb(var(--p-rgb) / .10), transparent 60%); }
.hero.lit::before { opacity: 1; }
.mock { transition: transform .35s var(--ease), box-shadow .35s; transform-style: preserve-3d; will-change: transform; }
.hero.lit .mock { box-shadow: 0 40px 90px -30px rgb(7 85 72 / .45); }
.hv-chip { transition: transform .4s var(--ease); }
.hero.lit .hv-chip.c1 { transform: translate(-6px, -4px); }
.hero.lit .hv-chip.c2 { transform: translate(6px, 4px); }

/* lively stats */
.stats li { transition: background .3s; cursor: default; }
.stats li:hover { background: var(--p-soft); }
.stats li:first-child:hover { border-start-start-radius: 18px; border-end-start-radius: 18px; }
.stats li:last-child:hover { border-start-end-radius: 18px; border-end-end-radius: 18px; }
.stats li:hover strong { color: var(--p); }

/* icon micro-interactions */
@keyframes nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px) rotate(-6deg); } 70% { transform: translateY(1px) rotate(3deg); } }
.why-list li:hover .ic, .band-item:hover .ic, .profile:hover .p-ic, .crit:hover .code { animation: nudge .6s var(--ease); }
.crit.in .ok { animation: pop-ok .5s var(--ease) both; }
@keyframes pop-ok { from { transform: scale(0); } 70% { transform: scale(1.15); } to { transform: scale(1); } }
.crit:hover { border-color: rgb(var(--p-rgb) / .45); }
.chips li:hover svg, .mpn-grid button:hover svg { animation: nudge .6s var(--ease); }

/* ==========================================================
   v8 — NS monogram logo (flat, two colours)
   ========================================================== */
.logo-ns { width: 52px; height: 44px; flex: none; overflow: visible; stroke: none; transition: transform .4s var(--ease); }
.ns-g { fill: #1B7A4A; }
.ns-b { fill: #C8925C; }
:root[data-theme="dark"] .ns-g { fill: #34A56B; }
:root[data-theme="dark"] .ns-b { fill: #D9A672; }
.brand:hover .logo-ns { transform: scale(1.06) rotate(-2deg); }
.foot .logo-ns { width: 44px; height: 38px; }
.mpn-head .logo-ns { width: 30px; height: 26px; }
@media (max-width: 600px) { .logo-ns { width: 44px; height: 38px; } }

/* ==========================================================
   v9 — "Ivory · Green · Bronze" identity (from the NS monogram)
   ========================================================== */
:root, :root[data-theme="light"] {
  --bg: #F7F6F2; --bg-2: #EFEDE6; --surface: #FFFFFF; --surface-2: #F7F5EF;
  --line: #E6E1D5; --line-2: #D4CDBD;
  --ink: #14211C; --ink-2: #2E3D37; --muted: #59655F;
  --p: #1B6B45; --p-2: #2E8B5E; --p-deep: #14573A; --p-soft: #E8F1EB; --p-rgb: 27 107 69;
  --gold: #B8865B; --gold-ink: #8A5A2E; --on-p: #FFFFFF;
  --grad: linear-gradient(100deg, #1B6B45 0%, #2E8B5E 38%, #B8865B 72%, #1B6B45 100%);
  --shadow-sm: 0 1px 2px rgb(20 33 28 / .05), 0 2px 8px rgb(20 33 28 / .04);
  --shadow: 0 4px 12px rgb(20 33 28 / .05), 0 20px 44px -16px rgb(20 33 28 / .16);
  --shadow-lg: 0 34px 80px -30px rgb(20 87 58 / .4);
}
:root[data-theme="dark"] {
  --bg: #0F1613; --bg-2: #131C18; --surface: #161F1B; --surface-2: #1B2621;
  --line: #27332D; --line-2: #34433B;
  --ink: #ECF2EE; --ink-2: #C9D5CF; --muted: #9DAEA6;
  --p: #4CB585; --p-2: #63C795; --p-deep: #12462F; --p-soft: #183A2B; --p-rgb: 76 181 133;
  --gold: #D2A06F; --gold-ink: #DDB287; --on-p: #06140D;
  --grad: linear-gradient(100deg, #4CB585 0%, #9FE0BE 35%, #DDB287 68%, #4CB585 100%);
}
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* monogram */
.ns-t { font-family: "Playfair Display", "Times New Roman", serif; font-weight: 800; }
.ns-gap { stroke: var(--surface); }
.ns-g1 { stop-color: #2E8B5E; } .ns-g2 { stop-color: #1B6B45; } .ns-g3 { stop-color: #14573A; }
.ns-b1 { stop-color: #DDB287; } .ns-b2 { stop-color: #C08A57; } .ns-b3 { stop-color: #A87442; }
:root[data-theme="dark"] .ns-g1 { stop-color: #63C795; } :root[data-theme="dark"] .ns-g2 { stop-color: #4CB585; } :root[data-theme="dark"] .ns-g3 { stop-color: #2E8B5E; }
.logo-ns { width: 54px; height: 40px; overflow: visible; }
.brand { gap: .75rem; }
.brand-text { align-items: flex-start; text-align: start; }
.brand-text strong { font-size: 1.2rem; }
.brand-text small { color: var(--gold-ink); letter-spacing: .24em; }
.mpn-head .logo-ns { width: 32px; height: 24px; }

/* header: hairline bronze accent */
.site-header { border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }

/* hero: Islamic geometric pattern, faded at the edges */
.hero-pattern { position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'88'%20height%3D'88'%20viewBox%3D'0%200%2088%2088'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23B8865B'%20stroke-width%3D'1'%3E%3Cpath%20d%3D'M44%2014%20L52.5%2035.5%20L74%2044%20L52.5%2052.5%20L44%2074%20L35.5%2052.5%20L14%2044%20L35.5%2035.5%20Z'%2F%3E%3Cpath%20d%3D'M23%2023%20H65%20V65%20H23%20Z'%20transform%3D'rotate(45%2044%2044)'%2F%3E%3Crect%20x%3D'23'%20y%3D'23'%20width%3D'42'%20height%3D'42'%2F%3E%3Ccircle%20cx%3D'44'%20cy%3D'44'%20r%3D'6'%2F%3E%3Cpath%20d%3D'M0%200%20L14%2014%20M88%200%20L74%2014%20M0%2088%20L14%2074%20M88%2088%20L74%2074'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-size: 88px 88px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 45%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 70% at 25% 45%, #000 10%, transparent 70%); }
[dir="ltr"] .hero-pattern { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000 10%, transparent 70%); }
:root[data-theme="dark"] .hero-pattern { opacity: .14; }
.hero-inner { z-index: 1; }
.hero h1 { letter-spacing: -.02em; }
.pill { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.pill .dot { background: var(--gold); box-shadow: 0 0 0 0 rgb(184 134 91 / .5); }
.stats em { color: var(--gold); }

/* section rhythm: alternate ivory / white bands */
#standards, #features, #demo { background: var(--surface); border-block: 1px solid var(--line); }
.standards { background: var(--surface) !important; }
.kicker { color: var(--gold-ink) !important; letter-spacing: .02em; }
.kicker b { background: transparent; color: var(--gold-ink); border: 1px solid var(--gold); }
.section-head h2 { letter-spacing: -.015em; }

/* cards: bronze hairline on hover */
.crit, .b-card, .why-list li, .profile, .platforms li, .faq details { border-color: var(--line); }
.crit .code { background: rgb(184 134 91 / .12); color: var(--gold-ink); }
.crit .ok { background: var(--p); }
.std-card { background: radial-gradient(120% 80% at 90% 0%, rgb(46 139 94 / .5), transparent 60%), linear-gradient(160deg, #1B6B45, #0E3B27); }
.std-big em, .mega { color: #E2BC8E; }
.pour li { background: rgb(255 255 255 / .07); }
.ic, .p-ic { background: var(--p-soft); color: var(--p); }
.steps-mini li::before { background: rgb(184 134 91 / .14); color: var(--gold-ink); }
.timeline::before { background: linear-gradient(var(--p), var(--gold)); }

/* buttons */
.btn-glow { background: var(--p); box-shadow: 0 10px 24px -12px rgb(var(--p-rgb) / .8); }
.btn-glow:hover { background: var(--p-deep); }
:root[data-theme="dark"] .btn-glow:hover { background: var(--p-2); }
.btn-glass:hover { border-color: var(--gold); color: var(--gold-ink); }

/* official deep-green footer */
.site-footer { background: #14573A; border-top: 0; color: #E8F1EB; padding: 1.6rem 0 calc(1.6rem + env(safe-area-inset-bottom)); }
:root[data-theme="dark"] .site-footer { background: #0B2A1D; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: #E2BC8E; }
.site-footer .ns-gap { stroke: #14573A; }
:root[data-theme="dark"] .site-footer .ns-gap { stroke: #0B2A1D; }
.site-footer .ns-g1, .site-footer .ns-g2, .site-footer .ns-g3 { stop-color: #FFFFFF; }
.site-footer .copy { color: rgb(255 255 255 / .85); }
.foot .logo-ns { width: 46px; height: 34px; }

/* ---------- mobile Safari / Chrome: no "sticky hover" on touch ---------- */
@media (hover: none) {
  .b-card:hover, .profile:hover, .why-list li:hover, [dir="ltr"] .why-list li:hover, .crit:hover,
  .platforms li:hover, .chips li:hover, .btn:hover, .brand:hover .logo-ns { transform: none !important; }
  .why-list li:hover .ic, .band-item:hover .ic, .profile:hover .p-ic, .crit:hover .code,
  .chips li:hover svg, .mpn-grid button:hover svg { animation: none !important; }
  .spot::before, .spot::after { display: none; }
  .btn-glow::after { display: none; }
}
/* iOS: avoid input zoom and tap flashes */
input, textarea, select { font-size: max(16px, 1rem); }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@supports (-webkit-touch-callout: none) { .site-header { -webkit-backdrop-filter: saturate(1.4) blur(14px); } }
/* SVG text must always lay out left-to-right, even inside the RTL page */
.logo-ns, .logo-ns text { direction: ltr; unicode-bidi: isolate; }
/* phones: keep the header to logo + tools + menu (the floating button opens the tool) */
@media (max-width: 600px) {
  .nav-actions .hide-sm { display: none !important; }
  .pill { font-size: .8rem; text-align: center; justify-content: center; line-height: 1.5; }
}

/* ==========================================================
   v10 — centred official hero, trust row
   ========================================================== */
.hero { padding: 5.5rem 0 4.5rem; }
.hero-center { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; text-align: center; padding-bottom: 0; }
.hero-center .hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.hero-center h1 { font-size: clamp(2.5rem, 1.3rem + 4.8vw, 5rem); margin: 1.4rem 0 1.2rem; }
.hero-center .lead { margin-inline: auto; max-width: 44rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }
.hero-center .hero-cta { justify-content: center; }
.hero-center .stats { margin-inline: auto; margin-top: 2.2rem; }
.hero-pattern { -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 15%, transparent 72%) !important; mask-image: radial-gradient(ellipse 75% 80% at 50% 40%, #000 15%, transparent 72%) !important; }
.trust-row { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.trust-row li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.trust-row svg { width: 17px; height: 17px; color: var(--p); }
.trust-row li:first-child { border-color: rgb(184 134 91 / .55); }
.trust-row li:first-child svg { color: var(--gold-ink); }
@media (max-width: 560px) { .hero { padding: 3.5rem 0 3rem; } .trust-row li { font-size: .82rem; padding: .4rem .75rem; } }

/* ==========================================================
   v11 — tabs in two labelled rows; English name visible on phones
   ========================================================== */
.code-tabs .tab-group:first-child { flex-basis: 100%; padding: .2rem .3rem .1rem; }
.code-tabs button + .tab-group { flex-basis: 100%; }
@media (max-width: 600px) {
  .brand-text small { display: block !important; font-size: .56rem; letter-spacing: .16em; margin-top: 2px; }
  .brand-text strong { font-size: 1.02rem; }
  .brand { gap: .5rem; }
}
@media (max-width: 360px) { .brand-text small { letter-spacing: .1em; } .nav-tools { gap: .15rem; } }
bdi { white-space: nowrap; }

/* ==========================================================
   v12 — calm light footer (replaces the deep-green footer)
   ========================================================== */
.site-footer, :root[data-theme="dark"] .site-footer { position: relative; background: var(--surface); color: var(--ink-2); border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand-text small { color: var(--gold-ink); }
.site-footer .copy { color: var(--muted); }
.site-footer .ns-gap, :root[data-theme="dark"] .site-footer .ns-gap { stroke: var(--surface); }
.site-footer .ns-g1 { stop-color: #2E8B5E; } .site-footer .ns-g2 { stop-color: #1B6B45; } .site-footer .ns-g3 { stop-color: #14573A; }
:root[data-theme="dark"] .site-footer .ns-g1 { stop-color: #63C795; } :root[data-theme="dark"] .site-footer .ns-g2 { stop-color: #4CB585; } :root[data-theme="dark"] .site-footer .ns-g3 { stop-color: #2E8B5E; }

/* ==========================================================
   v13 — layouts 3D carousel + soft mint atmosphere
   ========================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.layouts { position: relative; overflow: hidden; background:
  radial-gradient(60% 50% at 50% 55%, rgb(var(--p-rgb) / .09), transparent 70%),
  radial-gradient(40% 40% at 85% 10%, rgb(184 134 91 / .08), transparent 70%),
  linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--p-soft) 55%, var(--bg)) 60%, var(--bg)); }
@supports not (background: color-mix(in srgb, red, blue)) { .layouts { background-color: var(--p-soft); } }
.deco { position: absolute; fill: none; stroke-width: 1.1; pointer-events: none; animation: decoSpin 60s linear infinite; }
.deco path:first-child { stroke: rgb(184 134 91 / .55); } .deco path:last-child { stroke: rgb(var(--p-rgb) / .35); }
.deco.d1 { width: 220px; top: 6%; inset-inline-start: 4%; }
.deco.d2 { width: 120px; top: 18%; inset-inline-end: 8%; animation-duration: 45s; animation-direction: reverse; }
.deco.d3 { width: 80px; bottom: 14%; inset-inline-start: 14%; animation-duration: 38s; }
.deco.d4 { width: 160px; bottom: 6%; inset-inline-end: 3%; animation-duration: 70s; animation-direction: reverse; }
@keyframes decoSpin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .deco.d1 { width: 130px; } .deco.d4 { width: 100px; } .deco.d2, .deco.d3 { display: none; } }

.cf { position: relative; perspective: 1600px; }
.cf-stage { list-style: none; margin: 0 auto; padding: 0; position: relative; height: 500px; transform-style: preserve-3d; touch-action: pan-y; }
.lc { position: absolute; top: 10px; left: 0; right: 0; margin-inline: auto; width: min(430px, 82vw); padding: 1.1rem 1.1rem 1.3rem; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -34px rgb(20 33 28 / .45), 0 2px 8px rgb(20 33 28 / .05);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s, box-shadow .4s, border-color .4s; cursor: pointer; text-align: start; user-select: none; -webkit-user-select: none; }
.lc.active { cursor: default; border-color: rgb(var(--p-rgb) / .35); box-shadow: 0 40px 90px -34px rgb(20 87 58 / .55), 0 0 0 1px rgb(var(--p-rgb) / .12); }
.lc h3 { font-size: 1.35rem; margin: 1.1rem .3rem .35rem; }
.lc p { color: var(--muted); margin: 0 .3rem; min-height: 3.4em; line-height: 1.7; }
.lc-try { margin: 1rem .3rem 0; display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.2rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.lc-try svg { width: 18px; height: 18px; color: var(--p); }
.lc.active .lc-try { background: var(--p); border-color: var(--p); color: var(--on-p); }
.lc.active .lc-try svg { color: var(--on-p); }
.lc.active .lc-try:hover { background: var(--p-deep); }

/* mini illustrations */
.lv { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #F2F7F4, #E9F1EC); border: 1px solid var(--line); }
:root[data-theme="dark"] .lv { background: linear-gradient(160deg, #1A2722, #15211C); }
.lv-page { position: absolute; inset: 12% 10% auto 10%; display: grid; gap: 9px; }
.lv-page b { height: 16px; width: 46%; border-radius: 6px; background: rgb(var(--p-rgb) / .22); }
.lv-page i { height: 8px; border-radius: 4px; background: rgb(20 33 28 / .1); }
:root[data-theme="dark"] .lv-page i { background: rgb(255 255 255 / .1); }
.lv-page i:nth-child(3) { width: 85%; } .lv-page i:nth-child(4) { width: 70%; } .lv-page i:nth-child(5) { width: 78%; }
.lv-panel { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--surface); border-radius: 12px; box-shadow: 0 12px 28px -10px rgb(20 33 28 / .35); }
.lv-panel b { height: 14px; border-radius: 6px; background: var(--p); flex: none; }
.lv-panel i { height: 12px; border-radius: 5px; background: var(--p-soft); flex: none; position: relative; }
.lv-panel i::before { content: ""; position: absolute; inset-inline-start: 4px; top: 3px; width: 6px; height: 6px; border-radius: 2px; background: var(--p); }
.lv-panel u { margin-top: auto; height: 12px; border-radius: 6px; background: #14211C; text-decoration: none; }
:root[data-theme="dark"] .lv-panel u { background: #E8F1EB; }
/* side */
.lv-side .lv-panel { top: 7%; bottom: 7%; inset-inline-end: 5%; width: 34%; }
/* popup */
.lv-popup .lv-page { opacity: .5; }
.lv-popup::after { content: ""; position: absolute; inset: 0; background: rgb(20 33 28 / .12); }
.lv-popup .lv-panel { z-index: 1; inset: 14% 22%; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 14px repeat(2, 18px) 1fr; }
.lv-popup .lv-panel b { grid-column: 1 / -1; } .lv-popup .lv-panel i { height: auto; } .lv-popup .lv-panel u { grid-column: 1 / -1; align-self: end; }
/* sheet */
.lv-sheet .lv-panel { inset: auto 8% 0 8%; height: 48%; border-radius: 14px 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 12px 1fr 1fr; }
.lv-sheet .lv-panel b { grid-column: 1 / -1; width: 30%; justify-self: center; height: 5px; background: var(--line-2); }
.lv-sheet .lv-panel i { height: auto; } .lv-sheet .lv-panel u { display: none; }
/* top */
.lv-top .lv-page { top: 44%; }
.lv-top .lv-panel { inset: 0 0 auto 0; height: 30%; border-radius: 0 0 14px 14px; flex-direction: row; align-items: center; padding: 8px 10px; }
.lv-top .lv-panel b { width: 16%; height: 12px; }
.lv-top .lv-panel i { flex: 1; height: 16px; border-radius: 999px; }
.lv-top .lv-panel i:nth-of-type(n+5) { display: none; } .lv-top .lv-panel u { display: none; }
/* list */
.lv-list .lv-panel { top: 7%; bottom: 7%; inset-inline-end: 5%; width: 40%; }
.lv-list .lv-panel i { height: 14px; background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; }
.lv-list .lv-panel i::after { content: ""; position: absolute; inset-inline-end: 2px; top: 2px; width: 16px; height: 9px; border-radius: 6px; background: var(--p); opacity: .8; }
.lv-list .lv-panel i:nth-of-type(even)::after { background: var(--line-2); }
/* simple */
.lv-simple .lv-panel { top: 7%; bottom: 7%; inset-inline-end: 5%; width: 34%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 14px 1fr 1fr 1fr 12px; }
.lv-simple .lv-panel b, .lv-simple .lv-panel u { grid-column: 1 / -1; }
.lv-simple .lv-panel i { height: auto; } .lv-simple .lv-panel i::before { width: 9px; height: 9px; inset-inline-start: calc(50% - 4px); top: calc(50% - 4px); }
.lv-simple .lv-panel u { background: transparent; border: 1.5px solid var(--p); }

.cf-ctrl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .5rem; }
.cf-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .25s, color .25s, transform .2s; }
.cf-btn:hover { border-color: var(--p); color: var(--p); }
.cf-btn:active { transform: scale(.94); }
.cf-btn svg { width: 20px; height: 20px; }
[dir="rtl"] .cf-btn[data-cf="prev"] svg { transform: scaleX(-1); }
[dir="ltr"] .cf-btn.next svg { transform: scaleX(-1); }
.cf-dots { display: flex; gap: 6px; }
.cf-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width .35s var(--ease), background .35s; }
.cf-dots i.on { width: 26px; background: var(--p); }
@media (max-width: 700px) { .cf-stage { height: 470px; } .lc { width: 78vw; } .lc h3 { font-size: 1.2rem; } }
@media (hover: none) { .lc { transition-duration: .5s; } }

/* ==========================================================
   v10 — original sections: hero question, gains
   ========================================================== */
/* hero: "how would you like to read?" */
.ask { margin: 2.4rem auto 0; padding: 1.2rem 1.3rem 1rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); max-width: 44rem; }
.ask-q { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-bottom: .8rem; }
.ask-opts { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.ask-opt { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font: 600 .95rem var(--font-head); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.ask-opt svg { width: 19px; height: 19px; color: var(--p); transition: color .3s; }
.ask-opt:hover { border-color: var(--p); transform: translateY(-2px); }
.ask-opt[aria-pressed="true"] { background: var(--p); border-color: var(--p); color: var(--on-p); }
.ask-opt[aria-pressed="true"] svg { color: var(--on-p); }
.ask-hint { margin-top: .75rem; font-size: .86rem; color: var(--muted); }
/* gains — "Make your site samh": one calm panel, four benefits */
.gains { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.gain { position: relative; padding: 2.4rem 2.4rem 2.5rem; transition: background .4s var(--ease); }
.gain:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.gain:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.gain:hover { background: var(--surface-2); }
.gain-n { position: absolute; top: 2.1rem; inset-inline-end: 2.2rem; font-family: var(--font-head); font-size: .95rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.gain-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--p); background: var(--p-soft); margin-bottom: 1.4rem; transition: background .35s, color .35s; }
.gain-ic svg { width: 24px; height: 24px; }
.gain:hover .gain-ic { background: var(--p); color: var(--on-p); }
.gain h3 { font-size: 1.22rem; margin-bottom: .55rem; }
.gain p { color: var(--muted); font-size: 1rem; line-height: 1.85; max-width: 30rem; }
@media (max-width: 760px) {
  .gains { grid-template-columns: minmax(0, 1fr); }
  .gain { padding: 1.9rem 1.6rem; border-inline-end: 0 !important; border-bottom: 1px solid var(--line); }
  .gain:last-child { border-bottom: 0; }
  .gain-n { top: 1.7rem; inset-inline-end: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .ask-opt { transition: none; } }
.motion-off .ask-opt, .motion-off .gain { transition: none; }
