/* Estelemly mobile pass v1 (approved 2026-11-06). Used by / and /ar/ after uplift.css.
   Phone rules at 640px and below; the following header is desktop only. Rules that hide content
   (price switch, guarantee details, why-it-matters lines) need JS, marked by html.mjs. */

/* ---------- Desktop: header follows you after the hero, with Book ---------- */
@media (min-width:761px){
  header{position:sticky;top:0;z-index:40;transition:background-color .3s,box-shadow .3s}
  header > div{transition:padding .3s}
  html.m-past header{background:rgba(20,33,61,.94) !important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:0 8px 28px rgba(10,18,36,.3)}
  html.m-past header > div{padding-top:10px !important;padding-bottom:10px !important}
  html.m-past header img{height:40px !important}
  html.m-past header a[data-track="book"]{display:inline-flex !important;animation:m-in .3s ease}
  [id]{scroll-margin-top:80px}
  .mj-nav,.m-switch,.m-swipe{display:none !important}
}
@keyframes m-in{from{opacity:0;transform:translateY(-6px)}}
.mj-nav,.m-switch,.m-swipe{display:none}
.m-ready > summary{display:block;font-weight:600;list-style:none}
.m-ready > summary::-webkit-details-marker{display:none}
@media (min-width:641px){.m-ready > summary{pointer-events:none}}

@media (max-width:640px){
  /* spacing */
  section > div{padding-top:56px !important;padding-bottom:56px !important;gap:28px !important}
  #top > div{padding-top:40px !important;padding-bottom:48px !important}
  #top dl{margin-top:32px !important}
  section h2{font-size:28px !important}

  /* section shortcuts */
  .mj-nav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:4px -24px 0;padding:2px 24px 4px;-webkit-overflow-scrolling:touch}
  .mj-nav::-webkit-scrollbar{display:none}
  .mj-nav a{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #4A5878;color:#F4F6FA;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap;background:rgba(244,246,250,.04)}
  .mj-nav a:active{background:rgba(238,132,102,.2);border-color:#EE8466}

  /* hero: shorter photo, facts 2x2 */
  #top img{aspect-ratio:16 / 10 !important;max-height:230px;object-position:50% 28%}
  .u-facts{grid-template-columns:1fr 1fr !important;gap:10px !important}
  .u-facts > div{grid-template-columns:1fr !important;padding:12px !important;row-gap:4px !important;align-content:start}
  .u-facts > div > .u-ico{grid-row:auto !important;width:34px !important;height:34px !important;border-radius:10px !important;margin-bottom:4px}
  .u-facts > div > .u-ico svg{width:18px;height:18px}
  .u-facts dt{font-size:10px !important;letter-spacing:.8px !important}
  [lang="ar"] .u-facts dt{font-size:13px !important;letter-spacing:0 !important}
  .u-facts dd{font-size:15px !important;line-height:1.3}
  .u-facts .u-pop{left:0;right:0;font-size:13px}

  /* what we check: 2x2 */
  .u-cards{grid-template-columns:1fr 1fr !important;gap:10px !important}
  .u-cards > div{padding:14px !important;gap:6px !important}
  .u-cards .u-ico{width:38px;height:38px;border-radius:10px;margin-bottom:2px}
  .u-cards .u-ico svg{width:20px;height:20px}
  .u-cards h3{font-size:17px !important;line-height:1.3 !important}
  .u-cards > div > p:not(:last-child){font-size:14px;line-height:1.45}
  .u-cards > div > p:last-child{font-size:11px !important;padding:4px 8px}

  /* seen vs unseen */
  .m-seen{padding:18px !important}
  .m-seen ul{display:flex;flex-wrap:wrap;gap:8px}
  .m-seen li{flex:1 1 calc(50% - 4px);border:1px solid #2C3A5A !important;border-radius:8px;padding:10px 12px !important;font-size:14px !important;line-height:1.35}
  .m-unseen{padding:18px !important}

  /* sample: swipe row */
  .m-pages{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px !important;margin:0 -24px;padding:0 24px 8px;scroll-padding:0 24px;scrollbar-width:none}
  .m-pages::-webkit-scrollbar{display:none}
  .m-pages figure{flex:0 0 74%;scroll-snap-align:start}
  .m-pages figure > div{width:100% !important}
  .m-swipe{display:block;font-size:13px;color:#55607A;margin:-16px 0 0}

  /* prices: switch above a 2-column table (only with JS) */
  html.mjs .m-switch{display:flex;border:1px solid #D8DDE6;border-radius:10px;padding:4px;gap:4px;background:#F4F6FA}
  .m-switch button{flex:1;min-height:42px;border:0;border-radius:7px;background:transparent;font:inherit;font-size:14px;font-weight:600;color:#55607A;cursor:pointer}
  .m-switch button[aria-pressed="true"]{background:#14213D;color:#F4F6FA}
  html.mjs #pricing table.m-full th:nth-child(3),html.mjs #pricing table.m-full td:nth-child(3){display:none}
  html.mjs #pricing table.m-semi th:nth-child(2),html.mjs #pricing table.m-semi td:nth-child(2){display:none}

  /* prices: extras side by side, guarantees 2x2 */
  .m-addons{padding:18px !important}
  .m-addons > div{grid-template-columns:1fr 1fr !important;gap:16px !important}
  .m-addons h3{font-size:16px !important}
  .m-addons > div > div > div > p{font-size:18px !important}
  .m-addons > div > div > p{font-size:13px !important;line-height:1.45}
  .u-guar{grid-template-columns:1fr 1fr !important;gap:10px}
  .u-guar > div{flex-direction:column;gap:8px;padding:14px}
  .u-guar .u-ico{width:36px;height:36px;border-radius:10px}
  .u-guar b{font-size:14px}
  [lang="ar"] .u-guar b{font-size:16px}
  html.mjs .u-guar > div{cursor:pointer}
  html.mjs .u-guar > div:not(.open) span:not(.u-ico){display:none}
  html.mjs .u-guar > div:not(.open) b::after{content:" +";color:#D9573A}

  /* how it works: compact timeline */
  #how ol{gap:22px !important}
  #how ol li{display:grid !important;grid-template-columns:40px 1fr;column-gap:14px;row-gap:4px !important}
  #how ol li > span:first-child{grid-row:1 / 3;width:40px !important;height:40px !important;font-size:14px !important}
  #how ol li h3{font-size:18px !important;align-self:center}
  #how ol li > p{grid-column:2;font-size:15px}
  #how ol li::before{display:block !important;top:44px;bottom:-22px;inset-inline-start:19px;inset-inline-end:auto;width:2px;height:auto;background:repeating-linear-gradient(180deg,#EE8466 0 6px,transparent 6px 11px)}
  #how ol li:last-child::before{display:none !important}

  /* book: "have these ready" folds away */
  #book > div > div:last-child{padding:18px !important}
  .m-ready summary{cursor:pointer;display:flex !important;justify-content:space-between;align-items:center;min-height:32px}
  .m-ready summary::after{content:"+";color:#EE8466;font-size:22px;line-height:1}
  .m-ready[open] summary::after{content:"–"}
  .m-ready ul{margin-top:10px !important}

  /* slim cookie bar */
  .consent{inset:auto 8px 8px 8px;padding:10px 12px;gap:8px;font-size:13px;line-height:1.4}
  [lang="ar"] .consent{font-size:14px}
  .consent p{flex-basis:100%}
  .consent-actions{width:100%;justify-content:flex-end;gap:6px}
  .consent button{min-height:40px;padding:6px 14px;font-size:14px}
  .consent-more{margin-inline-end:auto;padding:8px 4px;font-size:13px}
  body.has-consent{padding-bottom:130px}
}

/* why it matters: tap a hidden defect (all sizes) */
.m-unseen li{border-radius:6px}
html.mjs .m-unseen li{cursor:pointer}
html.mjs .m-unseen li > span:first-child::after{content:"+";display:inline-block;margin-inline-start:8px;color:#EE8466;font-weight:700;transition:transform .2s}
html.mjs .m-unseen li.open > span:first-child::after{transform:rotate(45deg)}
.mw-text{grid-column:1 / -1;font-size:14px;line-height:1.5;color:#C9D1E0;padding-top:2px}
html.mjs .m-unseen li:not(.open) > .mw-text{display:none}
