/* Yawmi mobile layout v4 — loaded after base styles */
:root{--mobile-gutter:16px}
@media(max-width:800px){
 html,body{width:100%;max-width:100%;overflow-x:hidden}
 .shell{width:calc(100% - 2*var(--mobile-gutter));max-width:100%;margin-inline:auto}
 .site-header{height:auto;min-height:72px}
 .nav-shell{min-height:72px;gap:10px;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}
 .site-header .brand{display:flex;align-items:center;flex:0 1 auto;min-width:0;gap:8px;margin:0}
 .site-header .brand img{width:42px;height:42px;flex:0 0 42px;display:block}
 .site-header .brand-name{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;margin:0;gap:2px;font-size:21px;font-weight:900;line-height:1.25;white-space:nowrap;flex:0 0 auto}
 .site-header .brand-name small{display:block;font-family:Manrope,Arial,sans-serif;font-size:8px;font-weight:800;letter-spacing:1.25px;line-height:1.3;text-align:center;margin:0;padding:0}
 .site-header .header-button{flex:0 0 auto;margin-inline-start:auto;white-space:nowrap;font-size:11px;padding:9px 12px;line-height:1.5}
 .site-header .menu-button{display:flex;flex:0 0 36px;width:36px;height:40px;margin:0;padding:0}
 .nav-links{top:calc(100% - 1px);width:100%;max-width:100%;box-sizing:border-box;right:0;left:0}
 .hero-grid,.showcase-grid{grid-template-columns:minmax(0,1fr)}
 .hero-copy,.hero-stage,.section-heading,.showcase-copy,.showcase-proof,.download-copy{min-width:0;max-width:100%}
 .hero-stage{box-sizing:border-box;position:relative;width:100%;height:500px;min-height:0;max-height:500px;overflow:hidden;transform:none;display:flex;align-items:center;justify-content:center}
 .hero-stage .stage-orbit{max-width:90%;max-height:90%;pointer-events:none}
 .hero-stage .orbit-one{width:340px;height:340px}
 .hero-stage .orbit-two{width:410px;height:410px}
 .hero-stage .phone-wrap{display:block;position:absolute;inset:0;max-width:100%;filter:drop-shadow(0 18px 22px rgba(14,48,37,.17));pointer-events:none}
 .hero-stage .phone-device{position:absolute;top:50%;left:50%;width:292px;height:578px;transform:translate(-50%,-50%) scale(.76);transform-origin:center}
 .hero-stage .float-card{display:none}
 .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .feature-card,.feature-wide{min-width:0;overflow:hidden}
 .feature-wide{grid-column:span 2}
 .feature-card-copy{min-width:0}
 .feature-mini-art,.reading-art{max-width:40%;flex-shrink:1}
 .preview-choice{width:100%;min-width:0}
 .preview-choice span:nth-child(2){min-width:0}
 .download-frame{max-width:100%;min-width:0}
 .download-copy,.download-copy>p{max-width:100%}
 .footer-upper{grid-template-columns:repeat(2,minmax(0,1fr))}
 .faq-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:540px){
 :root{--mobile-gutter:16px}
 .hero-grid{padding-top:34px;gap:12px}
 .hero h1{font-size:clamp(29px,8vw,39px);line-height:1.55;letter-spacing:0}
 .hero-description{font-size:13px;line-height:2}
 .hero-actions .button{min-width:0;justify-content:center}
 .hero-trust{justify-content:center;gap:9px}
 .hero-stage{height:465px;max-height:465px;margin-top:5px}
 .hero-stage .phone-device{transform:translate(-50%,-50%) scale(.72)}
 .hero-footer{font-size:10px;gap:8px}
 .section{padding:60px 0}
 .section-heading h2,.showcase-copy h2,.faq-intro h2{font-size:clamp(26px,7.4vw,32px)}
 .feature-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .feature-card,.feature-wide{grid-column:1;min-height:0;padding:20px}
 .feature-card h3{font-size:17px}
 .feature-card p{font-size:13px;line-height:1.9}
 .feature-card-copy{flex:1 1 auto}
 .feature-mini-art{width:100px;min-width:78px;max-width:32%}
 .reading-art{width:100px;min-width:78px;max-width:32%}
 .showcase-proof{min-height:280px}
 .showcase-proof:before{width:min(280px,82vw);height:min(280px,82vw)}
 .insight-panel{width:100%}
 .download-frame{padding:30px 20px;gap:18px;flex-direction:column;text-align:center}
 .download-copy h2{font-size:clamp(28px,7.5vw,36px)}
 .download-controls .button-white{width:100%;justify-content:center;text-align:center}
 .download-icon-wrap{min-width:0}
 .footer-upper{gap:18px}
 .footer-nav{min-width:0}
}
@media(max-width:380px){
 :root{--mobile-gutter:12px}
 .site-header{min-height:66px}
 .nav-shell{min-height:66px;gap:6px}
 .site-header .brand{gap:5px}
 .site-header .brand img{width:33px;height:33px;flex-basis:33px}
 .site-header .brand-name{font-size:17px}
 .site-header .brand-name small{font-size:7px;letter-spacing:.7px}
 .site-header .header-button{padding:8px 9px;font-size:10px}
 .site-header .menu-button{flex-basis:32px;width:32px}
 .hero h1{font-size:29px}
 .hero-actions{gap:7px}
 .hero-actions .button{font-size:11px;padding:11px 8px}
 .hero-stage{height:430px;max-height:430px}
 .hero-stage .phone-device{transform:translate(-50%,-50%) scale(.67)}
 .feature-mini-art,.reading-art{max-width:28%}
 .feature-card h3{font-size:15px}
 .feature-card p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.hero-stage *{animation:none!important}}


/* Precision fixes from mobile screenshots — 2026-11-19 */
@media (max-width: 760px) {
  /* Keep the Arabic and English names as separate, well-spaced lines. */
  .site-header .brand-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding-block: 2px;
    line-height: normal;
    min-height: 49px;
  }
  .site-header .brand-name .brand-ar {
    display: block;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    font-weight: 900;
    font-size: 21px;
    line-height: 1.3;
  }
  .site-header .brand-name small {
    display: block;
    position: static;
    margin: 0;
    padding: 0;
    font: 800 9px/1.2 Manrope, Arial, sans-serif;
    letter-spacing: 1.3px;
    text-align: center;
  }
}
@media (max-width: 540px) {
  /* The first feature card previously cropped its tilted illustration. */
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 106px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 18px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) > .feature-card-copy {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) > .feature-mini-art {
    display: grid;
    justify-self: center;
    align-self: center;
    width: 100px;
    max-width: none;
    min-width: 0;
    height: 120px;
    padding: 12px 9px;
    margin: 0;
    transform: none;
    flex: none;
    box-shadow: 0 8px 22px rgba(12, 74, 51, .08);
    border-radius: 15px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) .art-header span {
    height: 5px;
    width: 11px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) .art-header span:first-child {
    width: 33px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) .art-task {
    gap: 5px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) .art-task b {
    width: 15px;
    height: 15px;
    font-size: 9px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) .art-task span {
    width: 48px;
    height: 6px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) .art-task:nth-child(3) span {
    width: 58px;
  }
}
@media (max-width: 380px) {
  .site-header .brand-name { gap: 4px; min-height: 44px; }
  .site-header .brand-name .brand-ar { font-size: 17px; }
  .site-header .brand-name small { font-size: 7px; letter-spacing: .8px; }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 9px;
    padding: 15px;
  }
  .feature-grid > .feature-card.feature-wide:not(.feature-reading) > .feature-mini-art {
    width: 82px;
    height: 105px;
    padding: 10px 7px;
  }
}
