/* ---------- Reversible pager-to-phone opening experiment ---------- */
  .brand-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 24px;
    border: 0;
    display: none;
    place-items: center;
    overflow: hidden;
    overscroll-behavior: contain;
    color: #f8fafc;
    background:
      radial-gradient(circle at 50% 42%, rgba(240,100,62,.17), transparent 30%),
      linear-gradient(145deg, #070d18 0%, #111b2e 54%, #09111f 100%);
  }
  .brand-intro[open] { display: grid; animation: brandIntroCurtain 2.9s ease forwards; }
  .brand-intro::backdrop { background: transparent; }
  .brand-intro::before { content: ''; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.06); border-radius: 26px; pointer-events: none; }
  .brand-intro-header {
    position: absolute; inset: 28px 36px auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
  }
  .brand-intro-wordmark { display: flex; align-items: center; gap: 9px; font: 800 20px/1.5 'Cairo', sans-serif; }
  .brand-intro-wordmark img { width: 30px; height: 30px; border-radius: 9px; }
  .brand-intro-skip {
    min-height: 44px; padding: 8px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
    color: #d9e1ec; background: rgba(255,255,255,.045); cursor: pointer;
    font: 700 14px/1.5 'Tajawal', sans-serif;
  }
  .brand-intro-skip:hover { background: rgba(255,255,255,.1); color: #fff; }
  .brand-intro-skip:focus-visible { outline: 2px solid #f58b65; outline-offset: 4px; }
  .brand-intro-inner { width: min(100%, 640px); text-align: center; }
  .brand-intro-stage { position: relative; width: 100%; height: 340px; display: grid; place-items: center; isolation: isolate; }
  .brand-intro-stage::before {
    content: ''; position: absolute; width: 330px; height: 330px; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, rgba(240,100,62,.16), rgba(240,100,62,.035) 55%, transparent 72%);
    transform: scale(.8); animation: brandIntroGlow 1.2s ease .8s both;
  }
  .brand-intro-pager {
    position: absolute; width: 270px; height: 270px; z-index: 2;
    animation: brandIntroPager 1.42s linear both;
    will-change: transform;
  }
  .brand-intro-pager > img { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); }
  .brand-intro-cross {
    position: absolute; width: 38%; height: 38%; left: 31%; top: 28%;
    animation: brandIntroCrossLift .18s ease-out .4s both;
  }
  .brand-intro-cross::before, .brand-intro-cross::after {
    content: ''; position: absolute; width: 78%; height: 8px; left: 22%;
    border-radius: 6px; background: #f76a43; box-shadow: 0 0 0 2px rgba(255,255,255,.9);
    transform-origin: 4px center;
  }
  .brand-intro-cross::before { top: 22%; animation: brandIntroCrossDown .16s ease-out .08s both; }
  .brand-intro-cross::after { top: 77%; animation: brandIntroCrossUp .16s ease-out .22s both; }
  .brand-intro-before {
    position: absolute; top: 52%; left: 5%; right: 5%; margin: 0; padding: 7px 9px;
    color: #f8fafc; background: rgba(9,17,31,.96);
    border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0,0,0,.22);
    font: 800 24px/1.4 'Cairo', sans-serif; white-space: nowrap;
    animation: brandIntroBefore .16s ease-out .42s both;
  }
  .brand-intro-phone {
    position: relative; width: 158px; height: 306px; padding: 7px;
    border: 1px solid #5d626a; border-radius: 34px;
    background: linear-gradient(135deg,#555a60,#11161c 18%,#0b1016 76%,#5c626a);
    color: var(--ink);
    box-shadow: 12px 24px 34px -17px rgba(0,0,0,.6), inset 0 0 0 2px #262c33;
    animation: brandIntroPhone .4s cubic-bezier(.16,1,.3,1) 1.13s both;
    will-change: transform, opacity;
  }
  .brand-intro-screen {
    width: 100%; height: 100%; overflow: hidden; border-radius: 27px; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: radial-gradient(ellipse at 50% 18%,#fff 24%,#fff8f2 78%,#f7e7dc);
  }
  .brand-intro-screen::before { content: ''; position: absolute; top: 9px; width: 49px; height: 13px; border-radius: 12px; background: #10151c; }
  .brand-intro-screen::after { content: ''; position: absolute; bottom: 9px; width: 46px; height: 4px; border-radius: 4px; background: #1b2431; opacity: .6; }
  .brand-intro-screen img { width: 105px; height: 105px; border-radius: 26px; }
  .brand-intro-screen-name { margin-top: 4px; font: 800 22px/1.4 'Cairo', sans-serif; }
  .brand-intro-screen img, .brand-intro-screen-name { transform: translateY(-20px); }
  .brand-intro-alert {
    position: absolute; bottom: 40px; right: 50%; width: 218px; padding: 13px 15px;
    display: flex; align-items: center; gap: 11px; text-align: start;
    background: rgba(255,255,255,.98); border: 1px solid #e3e8e3; border-radius: 17px;
    box-shadow: 0 13px 30px -9px rgba(30,47,41,.19);
    animation: brandIntroAlert .3s cubic-bezier(.16,1,.3,1) 1.5s both;
    font: 700 17px/1.6 'Tajawal', sans-serif;
  }
  .brand-intro-alert-check {
    display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0;
    border-radius: 50%; background: #e5f5ec; color: #19865f; font: 700 24px/1 sans-serif;
  }
  .brand-intro-tagline {
    position: relative; margin: 22px 0 0;
    font: 800 clamp(28px, 3.6vw, 46px)/1.5 'Cairo', sans-serif; letter-spacing: -.035em;
    animation: brandIntroCopy .34s cubic-bezier(.16,1,.3,1) 1.34s both;
  }
  .brand-intro-tagline span { display: block; }
  .brand-intro-tagline strong { display: block; color: #ff936d; font-weight: inherit; }
  .brand-intro-progress { position: absolute; bottom: 28px; width: 92px; height: 3px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.12); }
  .brand-intro-progress::after { content: ''; display: block; width: 100%; height: 100%; background: #f58b65; transform-origin: right; animation: brandIntroProgress 2.64s linear both; }
  @keyframes brandIntroPager {
    0%, 70.4% { transform: translate(0,0) rotate(0); animation-timing-function: ease-in-out; }
    76% { transform: translate(-8px,-16px) rotate(-12deg); animation-timing-function: cubic-bezier(.55,.05,.85,.6); }
    100% { transform: translate(72px,calc(100vh + 320px)) rotate(128deg); }
  }
  @keyframes brandIntroCrossDown { from { transform: rotate(45deg) scaleX(0); } to { transform: rotate(45deg) scaleX(1); } }
  @keyframes brandIntroCrossUp { from { transform: rotate(-45deg) scaleX(0); } to { transform: rotate(-45deg) scaleX(1); } }
  @keyframes brandIntroCrossLift { from { transform: translateY(0) scale(1); } to { transform: translateY(-16px) scale(.75); } }
  @keyframes brandIntroBefore { from { opacity: 0; transform: translateY(5px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes brandIntroPhone {
    from { opacity: 0; transform: translateY(45px) rotate(9deg) scale(.82); }
    to { opacity: 1; transform: translateY(0) rotate(-6deg) scale(1); }
  }
  @keyframes brandIntroAlert {
    from { opacity: 0; transform: translate(50%,12px) rotate(6deg) scale(.92); }
    to { opacity: 1; transform: translate(50%,0) rotate(6deg) scale(1); }
  }
  @keyframes brandIntroCopy { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes brandIntroGlow { to { transform: scale(1.1); } }
  @keyframes brandIntroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes brandIntroCurtain { 0%, 91% { opacity: 1; } 100% { opacity: 0; } }
  @media (max-width: 560px) {
    .brand-intro { padding: 20px; }
    .brand-intro::before { inset: 10px; border-radius: 20px; }
    .brand-intro-header { inset: 18px 20px auto; }
    .brand-intro-stage { height: 288px; }
    .brand-intro-stage::before { width: 280px; height: 280px; }
    .brand-intro-pager { width: 235px; height: 235px; }
    .brand-intro-phone { width: 140px; height: 272px; border-radius: 31px; }
    .brand-intro-screen { border-radius: 24px; }
    .brand-intro-screen img { width: 90px; height: 90px; }
    .brand-intro-screen-name { font-size: 20px; }
    .brand-intro-alert { width: 196px; padding: 10px 12px; bottom: 30px; font-size: 16px; }
    .brand-intro-tagline { margin-top: 18px; font-size: clamp(25px,7.2vw,36px); }
  }
  @media (max-height: 570px) and (orientation: landscape) {
    .brand-intro-header { inset: 12px 20px auto; }
    .brand-intro-inner { display: flex; align-items: center; justify-content: center; gap: 10px; }
    .brand-intro-stage { width: 44%; height: 270px; flex-shrink: 0; transform: scale(.78); }
    .brand-intro-tagline { margin: 0; font-size: clamp(22px,4vw,34px); }
    .brand-intro-progress { bottom: 14px; }
  }
  @media (prefers-reduced-motion: reduce) { .brand-intro[open] { display: none; animation: none; } }

/* The guide sets paragraph colors globally; keep the original intro contrast. */
.brand-intro .brand-intro-tagline { color: #f8fafc; }
html[lang='en'] .brand-intro .brand-intro-tagline { direction: ltr; }

