/* =========================================================================
   GENALAK — public website design system
   Brand tokens sourced from mobile/customer/lib/core/theme.dart:
   brand(amber) #FACC15 · brandDark(amber) #F59E0B · accent(orange) #F97316
   secondary(navy) #0F172A
   ========================================================================= */

:root{
  --brand:        #FACC15;
  --brand-dark:   #F59E0B;
  --accent:       #F97316;
  --navy:         #0F172A;
  --navy-soft:    #1E293B;
  --slate-50:     #F8FAFC;
  --slate-100:    #F1F5F9;
  --slate-200:    #E2E8F0;
  --slate-300:    #CBD5E1;
  --slate-400:    #94A3B8;
  --slate-500:    #64748B;
  --slate-600:    #475569;
  --slate-700:    #334155;

  --bg:           #FFFFFF;
  --bg-soft:      var(--slate-50);
  --text:         var(--navy);
  --text-muted:   var(--slate-500);
  --border:       var(--slate-200);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 12px 32px -8px rgba(15,23,42,.14);
  --shadow-lg: 0 24px 60px -12px rgba(15,23,42,.22);
  --shadow-glow: 0 20px 60px -10px rgba(250,204,21,.35);

  --container: 1180px;
  --font-ar: 'Cairo', 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;

  /* This is a deliberately single, light-themed identity — cards below
     (depth-card, step-card, form-card, faq-item...) are hardcoded white on
     purpose and were never given a matching dark styling, so letting the
     tokens above auto-flip on the visitor's OS dark mode left light text
     sitting on those same white cards, unreadable. Fixed to always light. */
  color-scheme: light;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-en); line-height:1.6; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.lang-ar{ font-family:var(--font-ar); }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ margin:0 0 .5em; line-height:1.25; text-wrap:balance; font-weight:800; }
p{ margin:0 0 1em; color:var(--text-muted); }

.container{ max-width:var(--container); margin:0 auto; padding:0 20px; }
.skip-link{ position:absolute; top:-100px; left:12px; background:var(--navy); color:#fff; padding:10px 16px; border-radius:8px; z-index:200; }
.skip-link:focus{ top:12px; }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:999px; font-weight:700; font-size:15px;
  border:0; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn-sm{ padding:10px 20px; font-size:14px; }
.btn-primary{
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color:var(--navy); box-shadow:0 10px 24px -6px rgba(245,158,11,.55);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 16px 32px -6px rgba(245,158,11,.65); }
.btn-outline{
  background:transparent; color:var(--text); border:1.5px solid var(--border);
}
.btn-outline:hover{ border-color:var(--brand-dark); background:rgba(250,204,21,.08); }
.btn-dark{ background:var(--navy); color:#fff; box-shadow:var(--shadow-md); }
.btn-dark:hover{ transform:translateY(-3px); }
.btn-block{ width:100%; }

/* ---------------- Header ---------------- */
.site-header{
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
/* Sticky at every width, including mobile. This used to be restricted to
   desktop only, to work around the hero image (.phone-3d) painting over an
   open mobile menu — but that was actually caused by the hero image being
   reordered to the very top of the page on mobile (see .phone-stage below),
   which is now fixed at the source. Without sticky on mobile, the header
   (and its menu button) scrolled away with the page like ordinary content —
   so a tap anywhere the user had scrolled past the top would land on
   whatever page content replaced it, not the button, producing exactly a
   "zero reaction" tap with a perfectly correct toggle underneath it. */
.site-header{ position:sticky; top:0; z-index:100; }
.header-inner{ display:flex; align-items:center; gap:24px; height:76px; }
.brand-logo{ height:38px; width:auto; }
.main-nav{ display:flex; align-items:center; gap:22px; margin-inline-start:auto; }
.main-nav a{ font-size:14.5px; font-weight:700; color:var(--slate-700); padding:8px 2px; position:relative; }
.main-nav a.active, .main-nav a:hover{ color:var(--brand-dark); }
.main-nav a.active::after{
  content:''; position:absolute; inset-inline:0; bottom:-2px; height:3px; border-radius:3px;
  background:linear-gradient(90deg, var(--brand), var(--accent));
}
.header-actions{ display:flex; align-items:center; gap:14px; position:relative; z-index:101; }
.locale-switch{ font-weight:700; font-size:13.5px; color:var(--slate-700); border:1.5px solid var(--border); border-radius:999px; padding:8px 14px; white-space:nowrap; }
.locale-switch:hover{ border-color:var(--brand-dark); color:var(--brand-dark); background:rgba(250,204,21,.08); }
.nav-mobile-extra{ display:none; }
.nav-toggle{ display:none; flex-direction:column; align-items:center; justify-content:center; gap:5px; background:none; border:0; cursor:pointer; padding:6px; min-width:44px; min-height:44px; }
.nav-toggle span{ width:22px; height:2px; background:var(--text); border-radius:2px; transition:.25s; }

/* ---------------- Hero (3D composition) ---------------- */
.hero{
  position:relative; padding:96px 0 140px; overflow:hidden;
  background:radial-gradient(1100px 500px at 50% -10%, rgba(250,204,21,.16), transparent 60%),
             linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero-inner{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:999px;
  background:rgba(250,204,21,.14); color:var(--brand-dark); font-weight:700; font-size:13px; margin-bottom:20px;
}
.hero h1{ font-size:clamp(32px,4.2vw,54px); letter-spacing:-.01em; }
.hero .lead{ font-size:18px; max-width:520px; }
.hero-slogan{ font-size:16px; font-weight:800; color:var(--brand-dark); margin-top:10px; }
.hero-ctas{ display:flex; gap:18px; margin-top:64px; flex-wrap:wrap; }

/* Hero action cards (icon + bold title + muted subtitle), replacing plain
   buttons for the three primary paths (download/partner/captain) — each
   fully colored in that app's own brand color (same gradients as the app
   showcase phones below), not just a tinted accent, so the three read as
   distinct apps at a glance. */
.action-card{
  display:flex; align-items:center; gap:14px; padding:16px 20px; border-radius:20px;
  box-shadow:var(--shadow-sm); transition:transform .2s ease, box-shadow .2s ease;
  flex:1 1 210px; min-width:200px;
}
.action-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.action-card .dot{
  width:46px; height:46px; border-radius:15px; display:flex; align-items:center; justify-content:center;
  font-size:22px; flex-shrink:0; background:rgba(255,255,255,.28);
}
.action-card--brand{ background:linear-gradient(165deg, #FACC15, #F59E0B 60%, #F97316); }
.action-card--brand .text strong, .action-card--brand .text span{ color:var(--navy); }
.action-card--brand .text span{ opacity:.75; }
.action-card--partner{ background:linear-gradient(165deg, #3B82F6, #2563EB 60%, #1E3A8A); }
.action-card--captain{ background:linear-gradient(165deg, #22C55E, #16A34A 60%, #14532D); }
.action-card .text strong{ display:block; font-size:14.5px; font-weight:800; color:#fff; }
.action-card .text span{ display:block; font-size:12px; color:rgba(255,255,255,.85); margin-top:2px; }

/* Floating 3D phone stack */
.phone-stage{
  position:relative; height:520px; perspective:1400px;
}
.phone-3d{
  position:absolute; inset-inline-start:50%; top:20px;
  width:240px; height:490px; margin-inline-start:-120px;
  background:linear-gradient(160deg, #111827, #1f2937);
  border-radius:38px; padding:12px; box-shadow:var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform:rotateY(-16deg) rotateX(6deg) translateZ(0);
  transform-style:preserve-3d; transition:transform .6s ease;
  animation:float-main 6s ease-in-out infinite;
}
.phone-3d .screen{
  width:100%; height:100%; border-radius:28px; overflow:hidden;
  background:linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 55%, var(--accent) 100%);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.phone-3d .screen .mark{ width:56%; opacity:.95; filter:drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.phone-3d .screen img.real-shot{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center; }
.phone-3d .notch{ position:absolute; top:10px; inset-inline-start:50%; transform:translateX(-50%); width:70px; height:8px; background:rgba(0,0,0,.4); border-radius:6px; z-index:2; }

.float-card{
  position:absolute; background:rgba(255,255,255,.75); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.5); border-radius:var(--radius-md); box-shadow:var(--shadow-md);
  padding:14px 18px; display:flex; align-items:center; gap:10px; font-weight:700; font-size:13.5px;
}
.float-card .dot{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; }
.float-card--a{ top:8px; inset-inline-start:0; animation:float-a 5s ease-in-out infinite; }
.float-card--a .dot{ background:rgba(34,197,94,.15); }
.float-card--b{ bottom:60px; inset-inline-end:0; animation:float-b 6.5s ease-in-out infinite; }
.float-card--b .dot{ background:rgba(59,130,246,.15); }
.float-card--c{ bottom:0; inset-inline-start:20px; animation:float-a 5.5s ease-in-out infinite reverse; }
.float-card--c .dot{ background:rgba(249,115,22,.15); }

@keyframes float-main{ 0%,100%{ transform:rotateY(-16deg) rotateX(6deg) translateY(0);} 50%{ transform:rotateY(-16deg) rotateX(6deg) translateY(-16px);} }
@keyframes float-a{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }
@keyframes float-b{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(12px);} }
@media (prefers-reduced-motion:reduce){ .phone-3d,.float-card{ animation:none !important; } }

/* ---------------- Sections ---------------- */
.section{ padding:96px 0; }
.section-soft{ background:var(--bg-soft); }
.section-dark{ background:linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%); color:#fff; }
.section-dark p{ color:rgba(241,245,249,.72); }
.section-head{ text-align:center; max-width:640px; margin:0 auto 56px; }
.section-head .eyebrow{ color:var(--brand-dark); font-weight:800; font-size:13px; letter-spacing:.02em; text-transform:uppercase; }
.section-dark .section-head .eyebrow{ color:var(--brand); }
.section-head h2{ font-size:clamp(26px,3.2vw,38px); margin-top:8px; }

/* Depth cards (services / why) */
.card-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.depth-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:28px 24px; box-shadow:var(--shadow-sm); transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position:relative; overflow:hidden;
}
.depth-card::before{
  content:''; position:absolute; inset:0; opacity:0; transition:opacity .3s ease;
  background:linear-gradient(160deg, rgba(250,204,21,.10), transparent 60%);
}
.depth-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-md); border-color:transparent; }
.depth-card:hover::before{ opacity:1; }
.depth-card .icon{
  width:56px; height:56px; border-radius:18px; display:flex; align-items:center; justify-content:center;
  font-size:26px; background:linear-gradient(150deg, rgba(250,204,21,.18), rgba(249,115,22,.14));
  margin-bottom:18px; position:relative; z-index:1;
}
.depth-card h3{ font-size:17px; position:relative; z-index:1; }
.depth-card p{ font-size:14px; margin:0; position:relative; z-index:1; }

/* How it works */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset:step; }
.step-card{
  background:#fff; border-radius:var(--radius-lg); padding:32px 26px; box-shadow:var(--shadow-sm);
  border:1px solid var(--border); position:relative;
}
.step-num{
  width:48px; height:48px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:20px; color:var(--navy);
  background:linear-gradient(135deg, var(--brand), var(--brand-dark)); margin-bottom:18px;
  box-shadow:0 10px 20px -6px rgba(245,158,11,.5);
}

/* App showcase tabs */
.app-tabs{ display:flex; justify-content:center; gap:10px; margin-bottom:48px; flex-wrap:wrap; }
.app-tab{
  padding:12px 24px; border-radius:999px; font-weight:700; font-size:14.5px; border:1.5px solid var(--border);
  background:#fff; cursor:pointer; transition:.2s;
}
.app-tab.active{ background:var(--navy); color:#fff; border-color:var(--navy); }
.app-panels{ position:relative; }
.app-panel{ display:none; }
.app-panel.active{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center; }
.app-panel .phone-mock{
  width:260px; height:530px; margin:0 auto; border-radius:40px; padding:14px;
  background:linear-gradient(160deg,#111827,#1f2937); box-shadow:var(--shadow-lg);
  transform:perspective(1200px) rotateY(-10deg);
}
.app-panel .phone-mock .screen{
  width:100%; height:100%; border-radius:30px; overflow:hidden; position:relative;
  display:flex; align-items:center; justify-content:center; color:#fff; text-align:center; padding:24px;
}
.app-panel .phone-mock .screen small{ display:block; opacity:.7; font-size:12px; margin-top:8px; }
.app-panel .phone-mock .screen img.real-shot{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top center;
}
.app-panel--customer .screen{ background:linear-gradient(165deg, #FACC15, #F59E0B 60%, #F97316); }
.app-panel--partner .screen{ background:linear-gradient(165deg, #3B82F6, #2563EB 60%, #1E3A8A); }
.app-panel--captain .screen{ background:linear-gradient(165deg, #22C55E, #16A34A 60%, #14532D); }
.screen-caption{
  position:absolute; bottom:0; inset-inline:0; padding:14px 12px 10px; font-size:11px; font-weight:700;
  background:linear-gradient(0deg, rgba(0,0,0,.55), transparent); z-index:1;
}
.app-copy h3{ font-size:26px; }
.app-copy ul{ margin-top:18px; display:grid; gap:12px; }
.app-copy li{ display:flex; gap:10px; align-items:flex-start; font-weight:600; color:var(--text-muted); }
.app-copy li::before{ content:'✓'; color:var(--brand-dark); font-weight:900; }

/* Split panels (partner / captain) */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:0; border-radius:var(--radius-xl); overflow:hidden; box-shadow:var(--shadow-lg); }
.split-panel{ padding:64px 48px; position:relative; }
.split-panel--light{ background:#fff; }
.split-panel--dark{ background:linear-gradient(160deg, var(--navy), var(--navy-soft)); color:#fff; }
.split-panel--dark p{ color:rgba(241,245,249,.72); }
.split-panel ul{ margin:24px 0; display:grid; gap:12px; }
.split-panel li{ display:flex; gap:10px; font-weight:600; }
.split-panel li::before{ content:'●'; color:var(--brand); font-size:10px; margin-top:8px; }

/* Download */
.download-card{
  border-radius:var(--radius-xl); padding:64px 40px; text-align:center;
  background:linear-gradient(160deg, var(--navy), var(--navy-soft));
  color:#fff; position:relative; overflow:hidden;
}
/* The global `p{color:var(--text-muted)}` rule otherwise wins over the
   inherited white here (an element selector on the tag itself always beats
   inherited color, regardless of the ancestor's specificity) — paragraphs
   inside this dark card were rendering in dark, near-invisible grey. */
.download-card p{ color:rgba(241,245,249,.85); }
.download-card::before{
  content:''; position:absolute; inset:0;
  background:radial-gradient(600px 300px at 20% 0%, rgba(250,204,21,.25), transparent 60%),
             radial-gradient(600px 300px at 80% 100%, rgba(249,115,22,.2), transparent 60%);
}
.download-card > *{ position:relative; z-index:1; }
.store-row{ display:flex; gap:16px; justify-content:center; margin-top:28px; flex-wrap:wrap; }
.store-badge{
  display:inline-flex; align-items:center; gap:10px; padding:12px 22px; border-radius:14px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); font-weight:700; color:#fff;
}
.store-badge--soon{ opacity:.6; }
a.store-badge:hover{ background:rgba(255,255,255,.16); }
.store-badge-text{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.15; }
.store-badge-text .small{ font-size:10px; font-weight:600; opacity:.85; text-transform:uppercase; letter-spacing:.03em; }
.store-badge-text .big{ font-size:15.5px; font-weight:800; }
.store-badge .soon{ font-size:11px; font-weight:700; margin-inline-start:4px; opacity:.85; }

/* Per-app download card inside the app showcase tabs — light background
   context (unlike the dark .download-card section), so the badges need
   their own dark-on-light coloring rather than the white-on-dark default. */
.app-download{ margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.app-download-label{ display:block; font-weight:800; font-size:13.5px; color:var(--text); margin-bottom:10px; }
.store-row--compact{ justify-content:flex-start; margin-top:0; gap:10px; }
.store-row--compact .store-badge{
  padding:9px 16px; color:var(--text); background:var(--bg-soft); border:1px solid var(--border);
}
.store-row--compact a.store-badge:hover{ border-color:var(--brand-dark); background:rgba(250,204,21,.1); }
.store-row--compact .store-badge-text .small{ font-size:9px; }
.store-row--compact .store-badge-text .big{ font-size:13px; }

/* FAQ accordion */
.faq-list{ max-width:760px; margin:0 auto; display:grid; gap:14px; }
.faq-item{ border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:#fff; }
.faq-q{
  width:100%; text-align:start; padding:20px 24px; background:none; border:0; cursor:pointer;
  font-weight:700; font-size:15.5px; display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-q::after{ content:'+'; font-size:22px; color:var(--brand-dark); transition:transform .25s; flex-shrink:0; }
.faq-item.open .faq-q::after{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; padding:0 24px; }
.faq-item.open .faq-a{ max-height:300px; padding-bottom:20px; }

/* Footer */
.site-footer{ background:var(--navy); color:rgba(241,245,249,.85); padding:64px 0 24px; }
.footer-top{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1fr; gap:32px; }
.footer-logo{ height:32px; margin-bottom:14px; }
.footer-slogan{ color:rgba(241,245,249,.6); font-size:14px; }
.footer-social{ display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; }
.social-pill{ font-size:12.5px; font-weight:700; border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:6px 14px; }
.footer-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:.04em; color:rgba(241,245,249,.5); margin-bottom:16px; }
.footer-col a{ display:block; padding:6px 0; font-size:14.5px; color:rgba(241,245,249,.85); }
.footer-col a:hover{ color:var(--brand); }
.footer-download{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.footer-download .store-badge{ padding:9px 16px; }
.footer-download .store-badge-text .small{ font-size:9px; }
.footer-download .store-badge-text .big{ font-size:13px; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); margin-top:48px; padding-top:24px; font-size:13px; color:rgba(241,245,249,.5);
  display:flex; align-items:center; gap:8px 16px; flex-wrap:wrap;
}
.footer-bottom p{ margin:0; }
/* margin-inline-start:auto (not justify-content:space-between) so the second
   line still gets pushed to the far end even if it wraps onto its own row on
   a narrow phone screen — space-between only works while both fit one row. */
.footer-bottom p:last-child{ margin-inline-start:auto; }
.footer-bottom a{ color:rgba(241,245,249,.65); font-weight:700; }
.footer-bottom a:hover{ color:var(--brand); }

/* Page hero (inner pages) */
.page-hero{ padding:72px 0 56px; text-align:center; background:var(--bg-soft); }
.page-hero h1{ font-size:clamp(28px,3.6vw,44px); }
.page-hero .lead{ max-width:640px; margin:0 auto; }

/* Forms */
.form-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:40px; box-shadow:var(--shadow-sm); max-width:640px; margin:0 auto; }
.form-row{ margin-bottom:20px; }
.form-row label{ display:block; font-weight:700; font-size:14px; margin-bottom:8px; }
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding:13px 16px; border-radius:var(--radius-sm); border:1.5px solid var(--border);
  font-family:inherit; font-size:15px; background:var(--bg-soft); transition:border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{ outline:none; border-color:var(--brand-dark); background:#fff; }
.form-row textarea{ min-height:120px; resize:vertical; }
.form-alert{ padding:14px 18px; border-radius:var(--radius-sm); margin-bottom:20px; font-weight:600; font-size:14.5px; }
.form-alert--success{ background:rgba(34,197,94,.12); color:#166534; }
.form-alert--error{ background:rgba(239,68,68,.12); color:#991b1b; }
.form-hint{ margin-top:10px !important; padding:10px 14px; border-radius:var(--radius-sm); background:rgba(250,204,21,.1); font-size:13px; color:var(--text); }
.form-hint a{ color:var(--brand-dark); font-weight:700; text-decoration:underline; }
.honeypot{ position:absolute; left:-9999px; opacity:0; height:0; }

/* Two-col content pages (about/careers) */
.content-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
.content-block{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; box-shadow:var(--shadow-sm); }
.content-block h3{ font-size:18px; }

.tag-row{ display:flex; flex-wrap:wrap; gap:10px; }
.tag{ background:var(--bg-soft); border:1px solid var(--border); border-radius:999px; padding:8px 16px; font-weight:700; font-size:13.5px; }

.empty-state{ text-align:center; padding:48px 24px; background:var(--bg-soft); border-radius:var(--radius-lg); border:1px dashed var(--border); }

.legal-body{ max-width:760px; margin:0 auto; }
.legal-body h2{ font-size:20px; margin-top:32px; }

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------------- 404 ---------------- */
.error-page{ min-height:60vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:80px 0; }
.error-code{ font-size:120px; font-weight:900; background:linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; }

/* ---------------- Responsive ---------------- */
@media (max-width:960px){
  .hero-inner{ grid-template-columns:1fr; }
  /* The app image now stays BELOW the text (source order, no override) —
     previously `order:-1` forced it to the very top of the page, directly
     under the header, which put its own animated/GPU-layered element right
     in the same on-screen area the mobile menu opens over. */
  .phone-stage{ height:420px; }
  .card-grid{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; }
  .app-panel.active{ grid-template-columns:1fr; }
  .app-panel .phone-mock{ order:-1; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
  .content-grid{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  /* backdrop-filter on .site-header creates a NEW containing block for any
     position:fixed descendant (same rule as transform/filter/will-change) —
     so .main-nav below was sizing itself against the header's own ~77px
     box instead of the real viewport, rendering as an invisible sliver
     confined to the header whenever it "opened" (confirmed live: computed
     height was ~100px, not the viewport's real height). Dropping the blur
     on mobile only removes that trap; desktop keeps the frosted-glass
     header exactly as before. */
  .site-header{ backdrop-filter:none; -webkit-backdrop-filter:none; background:#fff; }
  /* top:0 (not the header's own height) so the overlay always covers the
     full viewport regardless of scroll position. */
  .main-nav{ position:fixed; inset-inline:0; top:0; bottom:0; background:var(--bg);
    flex-direction:column; align-items:stretch; padding:88px 20px 12px; gap:2px; overflow-y:auto;
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:.25s; z-index:99999; }
  .main-nav a{ padding:14px 4px; border-bottom:1px solid var(--border); font-size:15.5px; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-sm{ display:inline-flex; padding:9px 14px; font-size:13px; }
  .header-actions .locale-switch{ display:inline-flex; padding:9px 12px; font-size:12.5px; }
  /* Pure CSS open/close — the checkbox is a sibling of both .main-nav and
     the label(.nav-toggle) inside .header-inner, so :checked ~ works with
     zero JavaScript involved at all. */
  .nav-check{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
  #nav-check:checked ~ header .main-nav{ transform:translateY(0); opacity:1; pointer-events:auto; }
  #nav-check:checked ~ header .header-actions{ position:relative; z-index:100000; }
  /* Freeze the hero's animated 3D phone image while the menu is open — its
     continuous transform+animation gets its own GPU compositing layer on
     mobile, which can render above a position:fixed overlay regardless of
     z-index. Flattening it removes that layer for as long as the menu is
     open, so it can never paint over the menu again. */
  #nav-check:checked ~ main .phone-3d{ animation:none !important; transform:none !important; }
  .phone-3d{ width:200px; height:410px; margin-inline-start:-100px; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
