/* ATQINHA V4 — Mobile experience rebuilt independently of the desktop layout.
   This file intentionally overrides only mobile/tablet presentation. */
@media (max-width: 700px) {
  :root { --mobile-ink:#0b3047; --mobile-teal:#078e94; }
  html { scroll-padding-top:82px; }
  body { -webkit-text-size-adjust:100%; }
  .wrap { width:calc(100% - 36px); }
  .section { padding:66px 0; }
  .overline { font-size:11px; letter-spacing:.01em; }
  .section h2 { line-height:1.17; letter-spacing:-.015em; }
  a, button, input, select, textarea { -webkit-tap-highlight-color:transparent; }
  button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid #0cbbb1; outline-offset:3px; }

  /* Native-app-like slim navigation. Only login is present in the header. */
  .header { top:8px; }
  .header .wrap { width:calc(100% - 24px); }
  .header-inner { min-height:56px; padding:6px 12px; border-radius:16px; gap:9px; box-shadow:0 6px 26px #0d476327; }
  .header.scrolled .header-inner { background:rgba(255,255,255,.95); }
  .brand { font-size:23px; gap:5px; }
  .brand-symbol { width:28px; height:27px; }
  .nav-actions { gap:10px; }
  .nav-actions .btn-small { display:none!important; }
  .nav-actions .login-link { display:inline-flex; align-items:center; color:#164a62; font-size:11px; font-weight:800; border:1px solid #dbe7eb; background:#f7fbfc; min-height:36px; padding:0 11px; border-radius:11px; white-space:nowrap; }
  .menu-toggle { width:39px; height:39px; border-radius:10px; background:#f0f7f8; display:grid; place-items:center; }
  .menu-toggle .ic { width:20px; height:20px; }
  .mobile-nav[hidden] { display:none!important; }
  .mobile-nav { right:12px; left:12px; top:calc(100% + 9px); border-radius:18px; background:rgba(255,255,255,.985); box-shadow:0 25px 50px #052a4450; padding:10px; gap:1px; max-height:min(78svh,650px); overflow-y:auto; }
  .mobile-nav a { padding:13px 15px; min-height:45px; border-radius:10px; font-size:13px; }

  /* HERO: image as cinematic cover, copy on an independent light editorial sheet.
     No text across the hiker's face and no ocean of unused sky above copy. */
  .hero { height:auto; min-height:0; max-height:none; overflow:hidden; background:linear-gradient(180deg,#d5eaf5 0%,#f5fafb 56%,#f7fbfc 100%); }
  .hero-image { inset:0 0 auto 0; height:clamp(310px,45svh,425px); overflow:hidden; }
  .hero-scene { inset:0; background-size:cover; transform:scale(1.025); }
  .hero-scene[data-slide-bg="0"] { background-position:22% 54%; }
  .hero-scene[data-slide-bg="1"] { background-position:56% 55%; }
  .hero-scene[data-slide-bg="2"] { background-position:63% 51%; }
  .hero-veil { inset:0 0 auto 0; height:clamp(310px,45svh,425px); background:linear-gradient(0deg,#f5fafb 0%,rgba(245,250,251,.94) 8%,rgba(245,250,251,.25) 29%,transparent 60%); }
  .hero-layout { display:block; height:auto; min-height:0; padding-top:clamp(290px,42svh,397px); padding-bottom:45px; align-items:initial; }
  .hero-content { width:100%; max-width:none; animation:none; border-radius:25px; border:1px solid rgba(255,255,255,.94); background:linear-gradient(170deg,rgba(255,255,255,.97),rgba(248,253,253,.94)); box-shadow:0 16px 46px rgba(20,76,97,.12); padding:23px 20px 20px; backdrop-filter:blur(13px); }
  .eyebrow-hero { padding:6px 10px; font-size:10px; line-height:1.35; background:#eefaf9; border-color:#d6ecea; color:#126678; }
  .hero h1 { font-size:clamp(37px,9.55vw,48px); line-height:1.1; margin:14px 0 11px; letter-spacing:-.04em; }
  .hero-description { color:#496a7b; font-size:13.5px; line-height:1.8; min-height:0; margin:0 0 17px; max-width:none; }
  .hero-ctas { display:flex; flex-direction:column; gap:7px; align-items:stretch; }
  .hero-ctas .btn { min-height:52px; width:100%; font-size:13px; padding:12px 16px; border-radius:13px; }
  .hero-ctas .btn-quiet { background:transparent; border-color:transparent; min-height:41px; box-shadow:none; color:#196d7e; }
  .hero-benefit { justify-content:center; text-align:center; font-size:10px; line-height:1.5; margin-top:11px; gap:5px; }
  .hero-slide-controls { margin-top:16px; justify-content:center; gap:11px; min-height:32px; }
  .hero-dot { min-height:9px; width:18px; }
  .hero-dot.is-current { width:35px; }
  .hero-pause { min-height:32px; padding:6px 12px; font-size:10px; }
  .scroll-prompt { position:relative; display:flex; width:max-content; margin:17px auto 0; right:auto; bottom:auto; transform:none; font-size:10px; gap:8px; color:#538393; }
  .scroll-wheel { width:15px; height:24px; }
  .scroll-wheel::after { left:5px; }

  /* A deliberate centered manifesto instead of constrained desktop art. */
  .manifesto { padding-top:56px; }
  .manifesto-layout { gap:10px; }
  .manifesto-copy h2 { font-size:clamp(32px,8.25vw,42px); line-height:1.2; margin-bottom:14px; }
  .manifesto-copy p { font-size:13.5px; line-height:1.95; }
  .manifesto-art { max-width:365px; height:325px; margin:22px auto 0; }
  .manifesto-center { width:132px; height:132px; box-shadow:0 17px 40px #0b67791c; }
  .manifesto-chip { min-height:45px; font-size:11px; }

  /* Journey swipe — image cards have a unified route, visible next card, real controls. */
  .journey-scroll { height:284px; }
  .journey-sticky { min-height:284px; height:284px; }
  .journey-layout { padding:83px 0 24px; }
  .journey-caption h2 { font-size:clamp(30px,8.3vw,37px); line-height:1.12; }
  .journey-caption p { font-size:12px; line-height:1.6; }
  .mobile-journey { padding:28px 0 36px; }
  .mobile-journey-heading { align-items:center; margin-bottom:8px; }
  .mobile-journey-heading span { font-size:15px; color:#193f55; }
  .mobile-journey-heading small { font-size:10px; }
  .mobile-journey-track { gap:12px; scroll-padding-inline:0; padding:4px 2px 14px; scrollbar-width:none; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
  .mobile-stage { flex:0 0 87%; height:360px; border-radius:19px; border-bottom:4px solid var(--stage-color); box-shadow:0 12px 29px #0a354327; scroll-snap-align:center; }
  .mobile-stage img { object-position:center; }
  .mobile-stage::after { background:linear-gradient(0deg,rgba(4,28,44,.96) 0%,rgba(5,36,51,.77) 26%,rgba(5,36,51,.03) 66%); }
  .mobile-stage h3 { font-size:26px; right:20px; left:20px; bottom:75px; }
  .mobile-stage p { font-size:13px; line-height:1.7; bottom:23px; right:20px; left:20px; }
  .mobile-stage>span { font-size:11px; }
  .mobile-journey-dots { margin-top:5px; }
  .mobile-journey-controls { display:flex; justify-content:center; align-items:center; gap:18px; padding:10px 0 0; }
  .mobile-journey-controls button { display:grid; place-items:center; min-width:44px; height:44px; border:1px solid #c8e1e5; color:#0b7185; border-radius:50%; background:#fff; box-shadow:0 5px 17px #134f5c12; }
  .mobile-journey-controls button:disabled { opacity:.4; cursor:not-allowed; }
  .mobile-journey-controls .ic { width:19px; height:19px; }
  .mobile-journey-controls button:last-child .ic { transform:rotate(180deg); }
  .mobile-journey-count { font:800 13px Tajawal,sans-serif; color:#236c7b; min-width:58px; text-align:center; direction:ltr; }

  /* Interactive demo — a real compact mobile lesson, not a squeezed desktop layout. */
  .lab { background:linear-gradient(180deg,#f3fafb 0%,#e7f2f5 100%); }
  .lab .section-top { gap:11px; margin-bottom:20px; }
  .lab .section-top h2 { font-size:clamp(31px,8.4vw,42px); line-height:1.18; }
  .lab .section-top>p { font-size:13px; line-height:1.9; }
  .lab-shell { padding:10px; border-radius:21px; background:linear-gradient(150deg,#0a344a,#0d5566 90%); box-shadow:0 20px 40px #144e631c; }
  .lab-tabs { overflow-x:auto; padding:5px 4px 12px; margin-inline:0; gap:6px; scroll-snap-type:x proximity; scrollbar-width:none; scroll-padding-inline:10px; }
  .lab-tabs button { min-height:44px; flex:0 0 auto; padding:8px 13px; font-size:12px; white-space:nowrap; border-radius:12px; scroll-snap-align:start; }
  .lab-tabs button[aria-selected="true"] { box-shadow:0 6px 15px #051c3232; }
  .lab-main { display:flex; flex-direction:column; gap:10px; }
  .lab-sidebar { padding:10px 12px 11px; display:grid; grid-template-columns:1fr; gap:6px; }
  .lab-sideline { display:none; }
  .lab-index { color:#81dcdb; font-size:10px; }
  .lab-sidebar h3 { font-size:22px; line-height:1.2; margin:0; }
  .lab-sidebar>p { font-size:12px; line-height:1.7; margin:0; }
  .lab-device { min-height:0; border-radius:16px; box-shadow:0 10px 32px #0320331d; }
  .device-top { padding:12px 15px; }
  .device-session { font-size:9px; }
  .demo-body { min-height:0; display:block; padding:24px 17px 20px; }
  .demo-body h4 { margin:10px 0 19px; font-size:17px; line-height:1.65; }
  .answer-button { display:flex; align-items:center; min-height:52px; font-size:13px; padding:12px 14px; }
  .answer-choices { gap:9px; }
  .demo-result { margin-top:14px; font-size:12px; line-height:1.6; }
  .demo-tip { font-size:10px; line-height:1.5; }
  .demo-result + .demo-retry { margin-top:12px; }
  .demo-retry { border:1px solid #cbe7e6; background:#ebf8f7; color:#076d7c; border-radius:10px; min-height:42px; width:100%; font-size:12px; font-weight:800; }
  .match-guide { font-size:11px; line-height:1.65; }
  .match-lanes { gap:17px; }
  .match-pair { min-height:65px; padding:10px 6px; font-size:11px; line-height:1.4; word-break:normal; }
  .match-feedback { font-size:11px; line-height:1.7; }
  .paragraph-card { min-height:0; padding:20px 18px; }
  .paragraph-card h4 { font-size:20px; }
  .paragraph-card p { font-size:13px; line-height:1.9; }
  .paragraph-controls button { min-height:44px; font-size:12px; }
  .device-bottom { padding:10px 13px; font-size:9px; line-height:1.5; }

  /* Feature story cards: compact and legible, color differentiation maintained. */
  .features { padding:68px 0; }
  .features-heading { margin-bottom:25px; }
  .features-heading h2 { font-size:clamp(32px,8.4vw,44px); }
  .features-heading p { font-size:13px; line-height:1.85; }
  .bento { gap:12px; }
  .features-pin .bento-card { padding:21px; border-radius:21px; min-height:0; box-shadow:0 10px 28px rgba(16,70,89,.06); }
  .features-pin .bento-ai,.features-pin .bento-progress { min-height:0; display:flex; flex-direction:column; gap:0; }
  .features-pin .bento-ai h3,.features-pin .bento-progress h3 { font-size:27px; line-height:1.18; }
  .features-pin .bento-ai p,.features-pin .bento-progress p { font-size:12.5px; line-height:1.85; max-width:unset; margin-bottom:0; }
  .bento-ai .ai-visual { position:relative; inset:auto; display:flex; flex-direction:column; gap:9px; justify-content:center; margin-top:18px; width:100%; min-height:115px; }
  .ai-prompt { align-self:flex-end; padding:10px 12px; background:rgba(255,255,255,.82); border:1px solid #d1eae8; border-radius:13px; font-size:11px; max-width:93%; }
  .ai-response { width:92%; padding:12px; font-size:11px; line-height:1.65; }
  .ai-cursor { display:none; }
  .bento-progress .progress-visual { position:relative; inset:auto; margin-top:17px; min-height:152px; }
  .p-card { padding:16px; min-height:152px; }
  .features-pin .bento-a,.features-pin .bento-b,.features-pin .bento-c,.features-pin .bento-d { grid-column:span 2; display:grid; grid-template-columns:51px 1fr; grid-template-rows:auto auto auto; gap:3px 14px; align-items:center; padding:18px; }
  .features-pin .bento-a .feature-number,.features-pin .bento-b .feature-number,.features-pin .bento-c .feature-number,.features-pin .bento-d .feature-number { grid-column:2; grid-row:1; }
  .features-pin .bento-a .card-icon,.features-pin .bento-b .card-icon,.features-pin .bento-c .card-icon,.features-pin .bento-d .card-icon { grid-column:1; grid-row:1/4; margin:0; }
  .features-pin .bento-a h3,.features-pin .bento-b h3,.features-pin .bento-c h3,.features-pin .bento-d h3 { grid-column:2; grid-row:2; font-size:19px; line-height:1.24; margin:2px 0 0; }
  .features-pin .bento-a p,.features-pin .bento-b p,.features-pin .bento-c p,.features-pin .bento-d p { grid-column:2; grid-row:3; font-size:11.5px; line-height:1.65; margin:4px 0 0; }

  /* Course catalog: native RTL scroll snap. No tiny inaccessible 3D cards on phones. */
  .courses { overflow:hidden; padding:70px 0 60px; }
  .courses-heading { gap:14px; }
  .courses-heading h2 { font-size:clamp(32px,8.4vw,43px); }
  .courses-heading p { font-size:13px; line-height:1.9; }
  .courses-heading .simple-link { font-size:13px; }
  .courses-view { margin-top:24px; }
  .course-stage { display:flex; gap:15px; height:auto; min-height:0; perspective:none; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-padding-inline:calc((100% - min(84vw,350px))/2); padding:12px max(18px,calc((100vw - min(84vw,350px))/2)) 20px; -webkit-overflow-scrolling:touch; scrollbar-width:none; touch-action:pan-x pan-y; overscroll-behavior-x:contain; }
  .course-stage::-webkit-scrollbar { display:none; }
  .orbit-card { position:relative; top:auto; left:auto; flex:0 0 min(84vw,350px); width:min(84vw,350px); max-width:none; height:auto; min-height:0; scroll-snap-align:center; transform:none!important; opacity:1!important; filter:none!important; will-change:auto; box-shadow:0 13px 35px #0e556627; border-radius:23px; cursor:default; }
  .orbit-card:not(.active) { filter:none!important; }
  .orbit-card.active { box-shadow:0 17px 36px #0e556633; }
  .orbit-cover { height:196px; }
  .orbit-cover img { object-fit:cover; }
  .orbit-card-content { padding:19px; flex:1; min-height:0; }
  .orbit-card-content h3 { font-size:24px; margin:7px 0 9px; }
  .orbit-card-content p { font-size:12.5px; line-height:1.85; display:block; overflow:visible; margin-bottom:13px; }
  .orbit-details { gap:7px; margin-top:6px; }
  .orbit-detail { font-size:10px; }
  .orbit-card-foot { display:flex; flex-direction:column; align-items:stretch; gap:10px; margin-top:19px; }
  .orbit-card-foot small { font-size:10px; line-height:1.6; }
  .orbit-go { min-height:45px; display:flex; align-items:center; justify-content:center; padding:11px 17px; border-radius:12px; font-size:13px; }
  .orbit-card:not(.active) .orbit-go { pointer-events:auto; }
  .course-controls { margin-top:0; gap:20px; }
  .carousel-nav { height:47px; width:47px; }
  .course-disclaimer { max-width:330px; font-size:10.5px; line-height:1.8; margin-top:12px; }
  .mobile-swipe-hint { display:flex; align-items:center; justify-content:center; gap:8px; color:#4a7d8a; font-size:11px; margin:11px 0 0; }
  .mobile-swipe-hint svg { width:16px; height:16px; }

  .get-started .start-steps { gap:12px; }
  .get-started .start-item { background:#f7fbfc; border:1px solid #e2eef0; border-radius:17px; padding:13px; }
  .start-item h3 { font-size:21px; }
  .start-item p { font-size:12px; line-height:1.6; }
  .start-main-cta { width:100%; }
  .faq-list summary { font-size:14px; line-height:1.55; padding:18px 2px; min-height:62px; }
  .faq-list details p { font-size:12.5px; line-height:1.8; }
  .closing-card { min-height:450px; }
  .closing-content { min-height:450px; padding:34px 23px 31px; }
  .closing-content h2 { font-size:39px; }
  .closing-content p { font-size:13px; line-height:1.85; }
  .closing-ctas { display:flex; flex-direction:column; gap:9px; }
  .closing-ctas .btn { min-height:48px; font-size:12px; }

  /* Focusable, readable form; avoids iOS zoom and sticky CTA overlay. */
  .contact { padding:68px 0 76px; }
  .contact-grid { gap:27px; }
  .contact-intro h2 { font-size:clamp(33px,8.6vw,44px); }
  .contact-intro p { font-size:13.5px; line-height:1.9; }
  .contact-detail { margin-top:18px; }
  .contact-detail a { font-size:14px; }
  .contact-form { padding:21px 17px; border-radius:21px; }
  .contact-form label { font-size:13px; }
  .contact-form input,.contact-form select,.contact-form textarea { font-size:16px!important; min-height:51px; border-radius:12px; }
  .contact-form textarea { min-height:150px; }
  .contact-form .form-row { gap:12px; }
  .contact-send { min-height:50px; font-size:13px; }
  .footer-upper { padding:48px 0 35px; }
  .footer-brand-block p { font-size:13px; }
  .footer-group h3 { font-size:14px; }
  .footer-group a { font-size:12px; line-height:1.65; }
  .footer-lower { padding-bottom:34px; }

  /* One compact action floats only between hero and contact. Never covers the form. */
  .mobile-cta { position:fixed; display:block; bottom:calc(10px + env(safe-area-inset-bottom)); left:12px; right:12px; width:auto; padding:5px; border:1px solid rgba(195,222,224,.88); border-radius:17px; background:rgba(250,254,254,.95); box-shadow:0 11px 40px rgba(6,58,77,.2); -webkit-backdrop-filter:blur(17px); backdrop-filter:blur(17px); transform:translateY(calc(120% + 30px)); opacity:0; pointer-events:none; transition:transform .35s var(--ease),opacity .3s ease; z-index:85; }
  .mobile-cta.visible { transform:translateY(0); opacity:1; pointer-events:auto; }
  .mobile-cta .btn { display:flex; min-height:49px; width:100%; max-width:none; border-radius:12px; font-size:13px; }
}
@media (max-width: 374px) {
  .wrap { width:calc(100% - 28px); }
  .header .wrap { width:calc(100% - 16px); }
  .brand { font-size:21px; }
  .nav-actions .login-link { font-size:10px; padding:0 9px; }
  .hero-layout { padding-top:clamp(275px,41svh,345px); }
  .hero-image,.hero-veil { height:clamp(300px,44svh,375px); }
  .hero-content { padding:21px 16px 18px; }
  .hero h1 { font-size:clamp(35px,9.4vw,39px); }
  .hero-description { font-size:13px; }
  .manifesto-art { max-width:315px; }
  .mobile-stage { flex-basis:88%; height:340px; }
  .features-pin .bento-card { padding:17px; }
  .lab-shell { padding:7px; }
  .demo-body { padding:20px 12px; }
  .orbit-card { flex-basis:85vw; width:85vw; }
}
@media (prefers-reduced-motion: reduce) and (max-width:700px) {
  .hero-scene,.hero-content,.orbit-card { transition:none!important; animation:none!important; }
  .course-stage,.mobile-journey-track { scroll-behavior:auto!important; }
}

/* Integration: official identity, real content, and a readable no-script fallback. */
.landing-v4 .brand-logo{width:124px;height:42px;object-fit:contain}
.landing-v4 .footer .brand-logo{background:#fff;border-radius:10px;padding:5px 10px;width:142px;height:58px}
.landing-v4 .course-image-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#fff;font:800 28px Tajawal,sans-serif}
.landing-v4 .course-image-placeholder .ic{width:48px;height:48px}
.landing-v4 .orbit-card-content h3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.landing-v4 .form-status[data-state="warning"]{color:#79550a;background:#fff4d5;border-radius:10px;padding:12px}
.landing-v4 .hero-slide-controls{flex-wrap:wrap}
.landing-v4 .hero-dot{height:32px;background:transparent;position:relative}
.landing-v4 .hero-dot::before{content:"";position:absolute;inset-inline:0;top:12px;height:7px;border-radius:20px;background:rgba(9,82,100,.25)}
.landing-v4 .hero-dot.is-current::before{background:#0c989d}
.landing-v4 .hero-pause{min-height:36px}
html:not(.landing-ready) .reveal,html:not(.landing-ready) .features-pin .bento-card{opacity:1!important;transform:none!important;filter:none!important}
html:not(.landing-ready) .features-scroll,html:not(.landing-ready) .journey-scroll{height:auto}
html:not(.landing-ready) .features-pin{position:relative;height:auto;padding-block:80px}
html:not(.landing-ready) .course-stage{display:flex;gap:20px;height:auto;overflow-x:auto;perspective:none;padding:20px;scroll-snap-type:x mandatory}
html:not(.landing-ready) .orbit-card{position:relative;left:auto;top:auto;flex:0 0 min(85vw,390px);height:auto;min-height:450px;transform:none;opacity:1;scroll-snap-align:center}
html:not(.landing-ready) .orbit-go{pointer-events:auto!important}
html:not(.landing-ready) .course-controls,html:not(.landing-ready) .hero-slide-controls,html:not(.landing-ready) .menu-toggle{display:none}
html:not(.landing-ready) .mobile-nav{display:flex!important;position:relative;inset:auto;flex-wrap:wrap;background:#fff;margin-top:8px}
@media(max-width:700px){
 .landing-v4 .brand-logo{width:102px;height:38px}
 .landing-v4 .menu-toggle{width:44px;height:44px}
 .landing-v4 .nav-actions .login-link{min-height:44px}
 .landing-v4 .orbit-card-content h3{display:block}
 .landing-v4 .hero-pause{min-height:40px}
 html:not(.landing-ready) .header{position:absolute}
}
