/* MH Studio redesign: built on the landing-page-design skill (elayadesign/ai-design-skills).
   Every size snaps to the Tailwind type scale, every gap to the spacing tokens below. */
:root {
  /* B2 spacing tokens */
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* MH brand walnut palette (user choice overrides the skill's grey dark list) */
  --bg: #3E2619;              /* walnut deep, the original site background */
  --bg-alt: #2E1C12;          /* walnut night, alternating sections */
  --surface: #4A2D1F;
  --surface-2: #553522;
  --surface-3: #5C3A28;       /* walnut */
  --surface-4: #6E4733;       /* walnut soft */

  --text: #F4E8D3;            /* ink */
  --muted: #C9B08C;
  --faint: rgba(244, 232, 211, .28);
  --line: rgba(230, 207, 168, .12);
  --line-strong: rgba(230, 207, 168, .24);
  --accent: #E6CFA8;          /* brand cream from the MH diamond logo */
  --accent-hover: #F2E2C6;
  --accent-ink: #2E1C12;
  --tan: #CBA77C;

  /* B7 motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 16px; line-height: 24px; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Bilingual: both languages live in the markup, the inactive one is hidden */
html[lang="ar"] [data-l="en"], html:not([lang="ar"]) [data-l="ar"] { display: none !important; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- B1 text styles ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--muted); }

/* Arabic script needs taller lines than Latin at display sizes, and no negative tracking */
html[lang="ar"] .heading-1, html[lang="ar"] .heading-2, html[lang="ar"] .heading-3 { letter-spacing: 0; line-height: 1.3; }

@media (max-width: 767px) {
  .heading-1 { font-size: 36px; line-height: 40px; }   /* steps down to Heading 3 */
  .heading-2 { font-size: 30px; line-height: 36px; }   /* steps down to Heading 4 */
  .heading-3 { font-size: 30px; line-height: 36px; }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-300); }
@media (max-width: 767px) { .wrap { padding: 0 var(--s-200); } }
section { padding: var(--s-900) 0; }
@media (max-width: 767px) { section { padding: var(--s-700) 0; } }

.skip { position: absolute; inset-inline-start: var(--s-200); top: -100px; z-index: 100;
        background: var(--accent); color: var(--accent-ink); padding: var(--s-75) var(--s-100); border-radius: 8px; }
.skip:focus { top: var(--s-200); }

.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--accent);
           margin-bottom: var(--s-200); }
.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head p { color: var(--muted); margin-top: var(--s-200); }

/* ---------- Buttons (B2: 8px / 12px padding, B9 states) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
       padding: var(--s-75) var(--s-100); border-radius: 12px; white-space: nowrap;
       transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-lg { padding: var(--s-100) var(--s-300); }
.btn i { font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: var(--s-50); color: var(--accent);
             padding: var(--s-75) var(--s-50); transition: opacity 300ms var(--ease); }
.text-link:hover { opacity: .75; }

/* ---------- B7 floating nav ---------- */
.nav-shell { position: fixed; top: var(--s-200); inset-inline: 0; z-index: 50; display: flex; justify-content: center;
             padding: 0 var(--s-200); pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: var(--s-75);
       padding: var(--s-75); border-radius: 9999px; border: 1px solid var(--line);
       background: rgba(46, 28, 18, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.brand { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100) var(--s-50) var(--s-75); }
[dir="rtl"] .brand { padding: var(--s-50) var(--s-75) var(--s-50) var(--s-100); }
.brand svg { width: 28px; height: 28px; }
.brand span { letter-spacing: .08em; }
.nav-links { display: flex; gap: var(--s-25); }
.nav-links a { padding: var(--s-75) var(--s-100); border-radius: 9999px; color: var(--muted);
               transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-4); }
.nav-lang { padding: var(--s-75) var(--s-100); border-radius: 9999px; border: 1px solid var(--line-strong);
            transition: background-color 300ms var(--ease); }
.nav-lang:hover { background: var(--surface-3); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 9999px; position: relative; }
.menu-toggle:hover { background: var(--surface-3); }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
                    transition: transform 500ms var(--ease); }
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 40; padding: 112px var(--s-300) var(--s-400);
               background: rgba(46, 28, 18, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
               display: flex; flex-direction: column; gap: var(--s-75);
               opacity: 0; visibility: hidden; transition: opacity 500ms var(--ease), visibility 0s linear 500ms; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 500ms var(--ease); }
.mobile-menu a { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-100) 0;
                 border-bottom: 1px solid var(--line);
                 opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu a i { color: var(--accent); font-size: 20px; }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0ms; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 60ms; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 120ms; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 180ms; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 240ms; }
.menu-open .mobile-menu a:nth-child(6) { transition-delay: 300ms; }
.menu-open .mobile-menu a:nth-child(7) { transition-delay: 360ms; }
.menu-open .mobile-menu a:nth-child(n+8) { transition-delay: 400ms; }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .nav { width: 100%; max-width: 560px; justify-content: space-between; }
  .nav-end { display: flex; align-items: center; gap: var(--s-75); }
}
@media (min-width: 900px) { .mobile-menu { display: none; } .nav-end { display: contents; } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--s-900) + var(--s-700)); padding-bottom: var(--s-800); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-600); align-items: center; }
.hero-copy h1, .hero-copy .hero-sub { max-width: 680px; }
.hero-copy h1 { background: linear-gradient(90deg, #F4E8D3, #CBA77C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); margin-top: var(--s-300); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200); margin-top: var(--s-500); }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); color: var(--muted); }
.proof i { color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100) var(--s-50) var(--s-75);
         border-radius: 9999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); margin-bottom: var(--s-300); }
.badge .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); }

.phones { position: relative; height: 520px; }
.phones .ph-card { position: absolute; top: 50%; left: 50%; width: clamp(150px, 19vw, 220px); padding: var(--s-75); border-radius: 32px;
                   background: var(--surface-2); border: 1px solid var(--line-strong); }
.phones .ph-card img { border-radius: 24px; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; width: 100%; background: var(--surface-3); }
.phones .p1 { transform: translate(-115%, -46%) rotate(-8deg); }
.phones .p2 { transform: translate(-50%, -54%); z-index: 2; }
.phones .p3 { transform: translate(15%, -46%) rotate(8deg); }

@media (max-width: 899px) {
  .hero { padding-top: calc(var(--s-900) + var(--s-400)); padding-bottom: var(--s-600); }
  .hero-grid { grid-template-columns: 1fr; }
  .phones { height: 360px; }
  .phones .ph-card { width: 150px; border-radius: 24px; }
  .phones .ph-card img { border-radius: 16px; }
}

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.fact { padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-50); }
.fact + .fact { box-shadow: inset 1px 0 0 var(--line); }
[dir="rtl"] .fact + .fact { box-shadow: inset -1px 0 0 var(--line); }
.fact b { font-weight: 600; }
@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { box-shadow: inset 0 1px 0 var(--line); }
  .fact:nth-child(4) { box-shadow: inset 1px 1px 0 var(--line); }
  [dir="rtl"] .fact:nth-child(4) { box-shadow: inset -1px 1px 0 var(--line); }
}

/* ---------- Games ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-bottom: var(--s-400); }
.filter { padding: var(--s-75) var(--s-200); border-radius: 9999px; border: 1px solid var(--line-strong); color: var(--muted);
          transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.filter:hover { color: var(--text); background: var(--surface-2); }
.filter:active { transform: scale(0.98); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--accent-ink); border-color: var(--text); }
.filter .count { opacity: .6; margin-inline-start: var(--s-50); }

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); }
.game { display: grid; grid-template-columns: minmax(0, 1fr) 148px; gap: var(--s-300);
        padding: var(--s-100); padding-inline-start: var(--s-300); border-radius: 24px;
        background: var(--surface); border: 1px solid var(--line);
        transition: border-color 300ms var(--ease), transform 500ms var(--ease); }
.game:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.game[hidden] { display: none; }
.game-body { display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-200) 0; min-width: 0; }
.game-head { display: flex; align-items: center; gap: var(--s-100); }
.game-icon { width: 56px; height: 56px; border-radius: 16px; flex: none; background: var(--surface-3); }
.game-head .caption-2 { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.chips li { padding: var(--s-50) var(--s-100); border-radius: 9999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); margin-top: auto; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); }
.store-row .caption-3 { color: var(--muted); width: 100%; }
.shot { border-radius: 12px; overflow: hidden; background: var(--surface-2); position: relative; }   /* 24 outer − 12 gap */
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 500ms var(--ease); }
.shot img.loaded { opacity: 1; }
.shot::before { content: ""; position: absolute; inset: 0; background: var(--surface-3); animation: pulse 1600ms var(--ease) infinite alternate; }
.shot:has(img.loaded)::before { display: none; }
@keyframes pulse { from { opacity: .35; } to { opacity: .8; } }

.teaser { grid-template-columns: 1fr; place-items: center; text-align: center; padding: var(--s-500) var(--s-300);
          background: var(--surface); border-style: dashed; border-color: var(--line-strong); }
.teaser .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); font-size: 28px; margin: 0 auto var(--s-200); }
.teaser p { color: var(--muted); max-width: 440px; margin: var(--s-75) auto 0; }

@media (max-width: 899px) { .games { grid-template-columns: 1fr; } }
@media (max-width: 479px) {
  .game { grid-template-columns: 1fr; padding: var(--s-100); }
  .game-body { padding: var(--s-100); padding-bottom: var(--s-200); order: 2; }
  .shot { height: 200px; order: 1; }
}

/* ---------- B11 tagline reveal ---------- */
.tagline-sec { padding: var(--s-900) 0; }
.tagline { max-width: 680px; }
.tagline .w { color: var(--faint); transition: color 500ms var(--ease); }
.tagline .w.on { color: var(--text); }

/* ---------- Cards ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-300); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); }
.card { padding: var(--s-300); border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
        display: flex; flex-direction: column; gap: var(--s-100); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
             background: var(--surface-3); color: var(--accent); font-size: 24px; margin-bottom: var(--s-100); }
.card p { color: var(--muted); }
.card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.step-no { color: var(--accent); }
.sub-head { margin: var(--s-800) 0 var(--s-400); }
@media (max-width: 999px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .grid4 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-700); align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: var(--s-100); }
.faq-list details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 300ms var(--ease); }
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
                    padding: var(--s-200) var(--s-300); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { color: var(--muted); transition: transform 500ms var(--ease); flex: none; }
.faq-list details[open] summary i { transform: rotate(45deg); }
.faq-list details p { padding: 0 var(--s-300) var(--s-300); color: var(--muted); }
.faq-list details p a { color: var(--accent); }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; gap: var(--s-400); } }

/* ---------- Final CTA + contact ---------- */
.final { text-align: center; padding: var(--s-800) var(--s-300); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.final h2 { max-width: 680px; margin: 0 auto; }
.final p { color: var(--muted); max-width: 520px; margin: var(--s-200) auto 0; }
.final .hero-cta { justify-content: center; }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); margin-top: var(--s-300); }
.contact .card { text-align: start; }
.contact .card .btn { align-self: flex-start; margin-top: auto; }
.mail { color: var(--text); word-break: break-all; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { padding: var(--s-600) 0 var(--s-700); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-300);
        padding-top: var(--s-400); border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--s-50) var(--s-200); }
footer nav a { color: var(--muted); padding: var(--s-50) 0; transition: color 300ms var(--ease); }
footer nav a:hover { color: var(--text); }

/* =========================================================
   HUB (agency homepage)
   ========================================================= */
.alt { background: var(--bg-alt); }
.nav-cta { padding: var(--s-75) var(--s-200); border-radius: 9999px; }
@media (max-width: 559px) { .nav-cta { display: none; } }
.soon { display: inline-flex; align-items: center; padding: 0 var(--s-75); margin-inline-start: var(--s-50);
        border-radius: 9999px; background: var(--surface-3); color: var(--accent); font-size: 12px; line-height: 16px; font-weight: 600; }

/* 3D logo stage */
.logo-stage { position: relative; height: 520px; }
.logo-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0;
                     transition: opacity 800ms var(--ease); }
.logo-stage.ready canvas { opacity: 1; }
.logo-stage .fallback { position: absolute; inset: 0; margin: auto; width: 60%; height: 60%;
                        transition: opacity 500ms var(--ease); }
.logo-stage.ready .fallback { opacity: 0; }
.logo-stage .halo { position: absolute; inset: 15%; border-radius: 9999px; border: 1px solid var(--line); }
.logo-stage .halo + .halo { inset: 2%; border-style: dashed; opacity: .6; }
.logo-stage .tag { position: absolute; display: inline-flex; align-items: center; gap: var(--s-75);
                   padding: var(--s-75) var(--s-100); border-radius: 12px; background: rgba(46, 28, 18, .8);
                   border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.logo-stage .tag i { color: var(--accent); font-size: 16px; }
.logo-stage .t1 { top: 12%; inset-inline-start: 0; }
.logo-stage .t2 { top: 46%; inset-inline-end: 0; }
.logo-stage .t3 { bottom: 10%; inset-inline-start: 8%; }
@media (max-width: 899px) {
  .logo-stage { height: 320px; order: -1; }   /* the logo opens the page on phones too */
  .hero-grid:has(.logo-stage) { gap: var(--s-300); }
}

/* Coverage chips */
.cover { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); }
.cover li { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-75) var(--s-200);
            border-radius: 9999px; border: 1px solid var(--line-strong); color: var(--muted); }
.cover li i { color: var(--accent); }
.cover-label { text-align: center; color: var(--muted); margin-bottom: var(--s-300); }

/* Problem to solution */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-600); align-items: center; }
.split .section-head { margin-bottom: 0; }
.before-after { display: grid; gap: var(--s-200); }
.ba { padding: var(--s-300); border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.ba h3 { display: flex; align-items: center; gap: var(--s-75); margin-bottom: var(--s-100); }
.ba.bad h3 i { color: var(--tan); }
.ba.good { border-color: var(--line-strong); background: var(--surface-2); }
.ba.good h3 i { color: var(--accent); }
.ba p { color: var(--muted); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; gap: var(--s-400); } }

/* Services */
.card .list { display: flex; flex-direction: column; gap: var(--s-75); margin-top: var(--s-75); }
.card .list li { display: flex; gap: var(--s-75); color: var(--muted); }
.card .list li i { color: var(--accent); flex: none; margin-top: var(--s-25); }

/* SEO vs GEO */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-300); }
.compare .card { padding: var(--s-400); }
.compare .big-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
                    background: var(--accent); color: var(--accent-ink); margin-bottom: var(--s-100); }
.compare .where { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-200); }
.compare .where span { padding: var(--s-50) var(--s-100); border-radius: 9999px; background: var(--surface-3); color: var(--text); }
@media (max-width: 767px) { .compare { grid-template-columns: 1fr; } }

/* Products hub */
.products { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-300); }
.product { display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-400); border-radius: 32px;
           background: var(--surface); border: 1px solid var(--line); }
.product .icons { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.product .icons img { width: 48px; height: 48px; border-radius: 12px; }
.product p { color: var(--muted); }
.product .btn { align-self: flex-start; margin-top: auto; }
.product.soon-card { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.product.soon-card .big-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
                              background: var(--surface-3); color: var(--accent); }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-100);
        border-radius: 9999px; background: var(--surface-3); color: var(--accent); }
.pill .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); animation: pulse 1600ms var(--ease) infinite alternate; }
@media (max-width: 899px) { .products { grid-template-columns: 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-600); align-items: start; }
.form { display: grid; gap: var(--s-200); padding: var(--s-400); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-200); }
.field { display: grid; gap: var(--s-75); }
.field label { color: var(--text); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; line-height: 24px; color: var(--text); background: var(--bg-alt);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: var(--s-100) var(--s-200);
  transition: border-color 300ms var(--ease); width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field .err { color: #F2A98C; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #F2A98C; }
.field.invalid .err { display: block; }
.form .note { color: var(--muted); }
.form .sent { display: none; padding: var(--s-100) var(--s-200); border-radius: 12px; background: var(--surface-3); color: var(--text); }
.form.done .sent { display: block; }
.direct { display: grid; gap: var(--s-200); margin-top: var(--s-400); }
.direct a { display: flex; align-items: center; gap: var(--s-100); padding: var(--s-200); border-radius: 16px;
            border: 1px solid var(--line); background: var(--surface); transition: border-color 300ms var(--ease); }
.direct a:hover { border-color: var(--line-strong); }
.direct a i { font-size: 24px; color: var(--accent); }
.direct small { display: block; color: var(--muted); }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s-400); } }
@media (max-width: 559px) { .form .row { grid-template-columns: 1fr; } .form { padding: var(--s-300); } }

/* =========================================================
   Service pages, about, shared helpers (no inline styles: CSP style-src 'self')
   ========================================================= */
.flush { margin-bottom: 0; }
.cover-wrap { padding-bottom: var(--s-800); }
.facts-gap { margin-top: var(--s-700); }
.lead-gap { margin-top: var(--s-200); }
.text-link.inline { padding: 0; display: inline; }
.narrow { max-width: 760px; }
.more-links { margin-top: var(--s-400); color: var(--muted); }

.card-link { transition: border-color 300ms var(--ease), transform 500ms var(--ease), background-color 300ms var(--ease); }
.card-link:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-4px); }
.card-link:active { transform: scale(0.98); }
.card-link .text-link { margin-top: auto; padding-inline: 0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-75); color: var(--muted); margin-bottom: var(--s-300); }
.crumbs a { color: var(--muted); transition: color 300ms var(--ease); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--accent); }
.crumbs i { font-size: 12px; opacity: .6; }

.svc-hero { padding-bottom: var(--s-700); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-600); align-items: center; }
.svc-hero h1 { background: linear-gradient(90deg, #F4E8D3, #CBA77C); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 680px; }
.answer { max-width: 680px; }
.svc-art { border-radius: 32px; overflow: hidden; border: 1px solid var(--line); }
.svc-art img { width: 100%; height: auto; }
@media (max-width: 899px) { .svc-grid { grid-template-columns: 1fr; gap: var(--s-400); } }

.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-200); }
.who-list li { display: flex; gap: var(--s-100); align-items: flex-start; padding: var(--s-300); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.who-list i { color: var(--accent); font-size: 24px; flex: none; }
@media (max-width: 767px) { .who-list { grid-template-columns: 1fr; } }

.steps-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-300); }
@media (max-width: 999px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .steps-grid { grid-template-columns: 1fr; } }

.split.top { align-items: start; }
.prose { display: grid; gap: var(--s-200); }
.prose p { color: var(--muted); }
.why { padding: var(--s-400); }
.why .list li { color: var(--text); }
.why .list li span { color: var(--muted); }

.nap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-600); align-items: center;
       padding: var(--s-600); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.nap h2 { margin-bottom: var(--s-100); }
.nap p { margin-bottom: var(--s-300); }
.nap .direct { margin-top: 0; font-style: normal; }
.nap .direct > span { display: block; padding: 0 var(--s-200); }
.nap .direct small { display: block; color: var(--muted); }
@media (max-width: 899px) { .nap { grid-template-columns: 1fr; padding: var(--s-400) var(--s-300); gap: var(--s-400); } }

.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-400); padding-bottom: var(--s-400); }
.foot-cols nav { flex-direction: column; align-items: flex-start; }
.foot-cols nav b { color: var(--text); margin-bottom: var(--s-50); }
.foot-brand { display: grid; gap: var(--s-100); justify-items: start; }
.foot-brand .brand { padding-inline-start: 0; }
.foot-brand p { max-width: 320px; }
@media (max-width: 767px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Product page: two real app screenshots */
.phones-2 .p1 { transform: translate(-92%, -50%) rotate(-5deg); z-index: 2; }
.phones-2 .p3 { transform: translate(-8%, -46%) rotate(5deg); }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .steps-3 { grid-template-columns: 1fr; } }

.sub-line { color: var(--accent); margin-top: var(--s-200); max-width: 680px; }

/* Blog article */
.art-h1 { background: linear-gradient(90deg, #F4E8D3, #CBA77C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-meta { display: flex; align-items: center; gap: var(--s-75); margin-top: var(--s-200); }
.answer-box { margin-top: var(--s-300); padding: var(--s-300); border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.answer-box b { color: var(--accent); display: block; margin-bottom: var(--s-75); }
.art-body { padding-bottom: var(--s-800); }
.art-body h2 { margin: var(--s-600) 0 var(--s-200); scroll-margin-top: var(--s-900); }
.art-body h3 { margin: var(--s-400) 0 var(--s-100); color: var(--accent); }
.art-body p { color: var(--text); opacity: .92; margin-bottom: var(--s-200); }
.art-list { list-style: none; display: grid; gap: var(--s-100); margin: var(--s-200) 0; }
.art-list li { position: relative; padding-inline-start: var(--s-300); color: var(--text); opacity: .92; }
.art-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); }
.toc { padding: var(--s-300); margin-bottom: var(--s-200); }
.toc b { color: var(--accent); }
.toc ol { margin: var(--s-100) 0 0; padding-inline-start: var(--s-300); display: grid; gap: var(--s-50); }
.toc a { color: var(--muted); } .toc a:hover { color: var(--text); }
.art-cta { flex-direction: row; gap: var(--s-300); align-items: flex-start; margin-top: var(--s-600); }
.art-cta .ico { flex: none; margin: 0; }
.art-cta .btn { margin-top: var(--s-200); }
@media (max-width: 559px) { .art-cta { flex-direction: column; } }

/* ---------- B7 scroll reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms var(--ease); }
  .game:hover { transform: none; }
  .mobile-menu a { transform: none !important; }
  .tagline .w { color: var(--text); transition: none; }
  .menu-toggle span, .faq-list summary i { transition: none; }
}
