/* /workspace — the screens (2026-11-15 redesign: hero composition, tool showcase, bilingual pair).
   Page-scoped, loaded only by app/(marketing)/workspace/page.tsx, after site.css + site.rtl.css.
   site.css stays byte-identical to the delivery; everything here is new `wsx-` classes on .smx4.
   Logical properties throughout, so the Arabic page mirrors without a second sheet; the few
   [dir="rtl"] rules below are typography (Arabic takes no tracking or capitals) and arrow flips.
   Images: public/assets/workspace/, built by apps/web/scripts/workspace-shots.mjs. */

/* ---------------------------------------------------------------- the frame
   The product screens are LIGHT; the page is dark. A slim window bar, a hairline border and a
   soft accent glow seat them on the page without a fake device. The glow derives from the
   brand token, so a re-themed page carries it. */
.smx4 .wsx-frame{position:relative;margin:0;border-radius:14px;overflow:hidden;border:1px solid var(--line-2);background:#F4F6F5;
  box-shadow:0 44px 96px -40px rgba(0,0,0,.92),0 0 0 1px rgba(255,255,255,.02),0 0 90px -48px color-mix(in srgb,var(--brand-2) 70%,transparent)}
.smx4 .wsx-bar{display:flex;align-items:center;gap:7px;height:30px;padding-inline:13px;background:var(--ink-750);border-bottom:1px solid var(--line-2)}
.smx4 .wsx-bar i{width:9px;height:9px;border-radius:50%;background:var(--line-2);flex:none}
.smx4 .wsx-bar span{margin-inline-start:8px;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smx4 .wsx-frame picture,.smx4 .wsx-frame img{display:block;width:100%;height:auto}

/* ---------------------------------------------------------------- hero */
.smx4 .wsx-hero{position:relative}
.smx4 .wsx-hero .hs-tag{top:auto;bottom:-15px;inset-inline-start:22px}
[dir="rtl"] .smx4 .wsx-hero .hs-tag{left:auto}
@media(max-width:520px){.smx4 .wsx-hero .hs-tag{position:static;display:inline-block;margin-top:14px}}

/* ---------------------------------------------------------------- tool showcase */
.smx4 .wsx-show{display:grid;grid-template-columns:minmax(270px,318px) minmax(0,1fr);gap:32px;align-items:start}
.smx4 .wsx-tabs{display:grid;gap:5px}
.smx4 .wsx-tab{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:7px 12px;border:1px solid transparent;border-radius:12px;
  background:none;color:var(--text-2);font-size:14px;font-weight:500;text-align:start;transition:background .2s,border-color .2s,color .2s}
.smx4 .wsx-tab:hover{background:var(--surface);border-color:var(--line)}
.smx4 .wsx-tab[aria-selected="true"]{background:var(--grad-soft);border-color:color-mix(in srgb,var(--brand-2) 55%,transparent);color:var(--text)}
.smx4 .wsx-tab:focus-visible,.smx4 .wsx-step:focus-visible,.smx4 .wsx-panel:focus-visible{outline:2px solid var(--brand-2);outline-offset:2px}
.smx4 .wsx-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--surface-2);flex:none}
.smx4 .wsx-ico svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.smx4 .wsx-tab[aria-selected="true"] .wsx-ico{color:var(--brand-2);background:color-mix(in srgb,var(--brand-2) 14%,transparent)}
.smx4 .wsx-name{flex:1;min-width:0;line-height:1.3}
.smx4 .wsx-nw{white-space:nowrap}

/* residency label — words first, colour second (never colour alone) */
.smx4 .wsx-res{display:inline-flex;align-items:center;gap:5px;flex:none;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-2);border:1px solid var(--line-2);border-radius:100px;padding:3px 8px;white-space:nowrap}
.smx4 .wsx-res.sov{color:var(--gold);border-color:var(--gold-line);background:var(--gold-soft)}
.smx4 .wsx-tab .wsx-res{font-size:9px;padding:2px 7px}

.smx4 .wsx-stage{min-width:0;touch-action:pan-y pinch-zoom}  /* horizontal swipes are ours (workspace.js), not the browser's back gesture */
.smx4 .wsx-panel{outline:none}
.smx4 .wsx-panel[hidden]{display:none}
.smx4 .wsx-cap{display:flex;align-items:flex-start;gap:14px;margin-top:18px}
.smx4 .wsx-cap-txt{flex:1;min-width:0}
.smx4 .wsx-cap h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;font-size:19px;margin-bottom:6px}
.smx4 .wsx-cap p{font-size:14.5px;color:var(--text-2);line-height:1.6;max-width:72ch}
.smx4 .wsx-steps{display:none;gap:8px;flex:none}
.smx4 .wsx-step{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);color:var(--text)}
.smx4 .wsx-step:hover{border-color:var(--brand-2)}
.smx4 .wsx-step svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.smx4 .wsx-note{margin-top:22px;font-family:var(--mono);font-size:11px;color:var(--text-2);letter-spacing:.04em}
@media(prefers-reduced-motion:no-preference){
  .smx4 .wsx-panel:not([hidden]){animation:wsxIn .38s var(--ease)}
  @keyframes wsxIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}

/* below 1100px: the list becomes one swipeable row of chips above a full-width stage */
@media(max-width:1099px){
  .smx4 .wsx-show{grid-template-columns:minmax(0,1fr);gap:18px}
  .smx4 .wsx-tabs{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;
    margin-inline:calc(-1 * clamp(20px,5vw,44px));padding:2px clamp(20px,5vw,44px) 6px;scroll-padding-inline:clamp(20px,5vw,44px)}
  .smx4 .wsx-tabs::-webkit-scrollbar{display:none}
  .smx4 .wsx-tab{width:auto;flex:none;scroll-snap-align:start;border-color:var(--line);border-radius:100px;padding:6px 14px 6px 7px;white-space:nowrap}
  .smx4 .wsx-tab .wsx-ico{width:30px;height:30px;border-radius:50%}
  .smx4 .wsx-tab .wsx-res{display:none}          /* the stage caption below carries the label */
  .smx4 .wsx-steps{display:flex}
}
/* phones: the stage shows a readable crop of the screen, not a shrunken desktop */
@media(max-width:767px){
  .smx4 .wsx-cap{flex-direction:column;gap:12px}
  .smx4 .wsx-steps{align-self:stretch;justify-content:space-between}
  .smx4 .wsx-cap h3{font-size:17px}
  .smx4 .wsx-cap p{font-size:14px}
}

/* ---------------------------------------------------------------- bilingual */
.smx4 .wsx-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:6px}
.smx4 .wsx-pcard{margin:0}
.smx4 .wsx-pcard figcaption{padding:14px 2px 0;font-size:13.6px;color:var(--text-2);line-height:1.55}
.smx4 .wsx-pcard figcaption b{display:block;color:var(--text);font-size:14.5px;margin-bottom:3px}
.smx4 .wsx-proofs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:34px}
.smx4 .wsx-proof{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden;display:flex;flex-direction:column}
.smx4 .wsx-proof .wsx-pshot{position:relative;height:236px;background:#fff;display:flex;justify-content:center;align-items:center;overflow:hidden;border-bottom:1px solid var(--line)}
.smx4 .wsx-proof .wsx-pshot img{max-width:100%;height:auto}
.smx4 .wsx-proof .txt{padding:16px 18px 18px}
.smx4 .wsx-proof b{display:block;color:var(--text);font-size:15px;margin-bottom:5px}
.smx4 .wsx-proof p{font-size:13.6px;color:var(--text-2);line-height:1.55}
@media(max-width:1000px){.smx4 .wsx-proofs{grid-template-columns:minmax(0,1fr)}
  .smx4 .wsx-proof{flex-direction:row}
  .smx4 .wsx-proof .wsx-pshot{width:46%;flex:none;height:auto;min-height:200px;max-height:236px;border-bottom:0;border-inline-end:1px solid var(--line)}
  .smx4 .wsx-proof .txt{align-self:center}}
@media(max-width:767px){
  .smx4 .wsx-pair{grid-template-columns:minmax(0,1fr);gap:26px}
}
@media(max-width:560px){
  .smx4 .wsx-proof{flex-direction:column}
  .smx4 .wsx-proof .wsx-pshot{width:auto;height:200px;min-height:0;border-inline-end:0;border-bottom:1px solid var(--line)}
}

/* ---------------------------------------------------------------- Arabic
   Arabic is never tracked or upper-cased (it has no case, and tracking pulls joined letters apart). */
[dir="rtl"] .smx4 .wsx-res,
[dir="rtl"] .smx4 .wsx-bar span,
[dir="rtl"] .smx4 .wsx-note{font-family:var(--font-ar),'Inter',system-ui,sans-serif;letter-spacing:normal;text-transform:none}
[dir="rtl"] .smx4 .wsx-res{font-size:11px}
[dir="rtl"] .smx4 .wsx-tab .wsx-res{font-size:10.5px}
[dir="rtl"] .smx4 .wsx-bar span{font-size:11.5px}
[dir="rtl"] .smx4 .wsx-note{font-size:12.5px}
[dir="rtl"] .smx4 .wsx-step svg{transform:scaleX(-1)}
/* The bilingual pair labels each card in ITS language, on both pages: an Arabic label on the
   English page takes the Arabic face untracked; a Latin label on the Arabic page keeps Latin styling. */
.smx4 .wsx-pair :lang(ar){font-family:var(--font-ar),'Inter',system-ui,sans-serif;letter-spacing:normal;text-transform:none}
.smx4 .wsx-pair .wsx-bar span:lang(ar){font-size:11.5px}
[dir="rtl"] .smx4 .wsx-bar span:lang(en){font-family:var(--mono);letter-spacing:.1em;text-transform:uppercase;font-size:10px}
/* site.rtl.css gives every `.accent` a callout stripe (border-inline-start); in this hero it is a
   heading span, where the stripe drew a stray bar mid-sentence ("كاملة.|بتسجيل"). */
[dir="rtl"] .smx4 .wh h1 .accent{border-inline-start:0}
