/* Tefsaal coming-soon page. One calm screen: the brand, the promise, and the dishdasha being measured (ADR 133's animation).
   Colours from docs/design/tokens.css and the brand kit; fonts self-hosted (OFL); no outside requests. */
@font-face{font-family:"IBM Plex Sans Arabic";src:url(/assets/fonts/plex-arabic-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url(/assets/fonts/plex-arabic-700.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Inter";src:url(/assets/fonts/inter-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Inter";src:url(/assets/fonts/inter-700.woff2) format("woff2");font-weight:700;font-display:swap}

:root{
  --bg:#F4F7F7; --surface:#FFFFFF; --ink:#111827; --ink-2:#4B5563; --line:#E2E8E8; --dot:#C9D6D6;
  --brand:#0B4F4A; --brand-soft:#E6F2F0;
  --gold:#C8A046; --gold-deep:#8A6A1F; --gold-soft:rgba(200,160,70,.18); --navy:#0F2A3D;
  --garment-stroke:#2A4558; --tick:rgba(15,42,61,.55); --ok:#15803D;
  --font-ar:"IBM Plex Sans Arabic","Inter",Tahoma,sans-serif;
  --font-en:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
/* the dark tokens appear twice (system dark unless the visitor chose light, and the visitor's dark choice): keep both in step */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0B1316; --surface:#111C20; --ink:#F3F6F6; --ink-2:#B7C3C6; --line:#203035; --dot:#24363B;
  --brand:#5BB8C4; --brand-soft:#0E2A2E;
  --gold:#D6B25A; --gold-deep:#E5C77A; --gold-soft:rgba(214,178,90,.16);
  --tick:rgba(15,42,61,.6); --ok:#4ADE80; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0B1316; --surface:#111C20; --ink:#F3F6F6; --ink-2:#B7C3C6; --line:#203035; --dot:#24363B;
  --brand:#5BB8C4; --brand-soft:#0E2A2E;
  --gold:#D6B25A; --gold-deep:#E5C77A; --gold-soft:rgba(214,178,90,.16);
  --tick:rgba(15,42,61,.6); --ok:#4ADE80; color-scheme:dark}

*{box-sizing:border-box}
html,body{margin:0}
body{transition:background-color .3s ease,color .3s ease;background:var(--bg);color:var(--ink);font-family:var(--font-ar);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
html[lang="en"] body{font-family:var(--font-en)}
img{max-width:100%}
.page{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;max-width:1120px;margin-inline:auto;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));
  padding-top:calc(env(safe-area-inset-top,0px) + 18px);padding-bottom:calc(env(safe-area-inset-bottom,0px) + 18px)}

.top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand .mark img{display:block;width:40px;height:40px}
.on-dark{display:none!important}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .on-light{display:none!important}:root:not([data-theme="light"]) .on-dark{display:block!important}}
:root[data-theme="dark"] .on-light{display:none!important}:root[data-theme="dark"] .on-dark{display:block!important}
.brand .word img{display:block;height:30px;width:auto}
.brand .word-en img{height:22px}
html[lang="ar"] .word-en, html[lang="en"] .word-ar{display:none}
.lang{height:44px;transition:background-color .3s ease,border-color .3s ease;padding-inline:16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:400 14px var(--font-en);cursor:pointer}
.lang[lang="ar"]{font-family:var(--font-ar)}
.lang{display:inline-flex;align-items:center;text-decoration:none}
.actions{display:flex;align-items:center;gap:8px}
.theme{display:none;width:44px;height:44px;transition:background-color .3s ease,border-color .3s ease;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;place-items:center}
.js .theme{display:grid}
.theme:hover{border-color:var(--brand)}
.theme:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
.theme svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s ease}
.theme:active svg{transform:rotate(-30deg) scale(.9)}
.theme .i-sun{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .theme .i-sun{display:block}:root:not([data-theme="light"]) .theme .i-moon{display:none}}
:root[data-theme="dark"] .theme .i-sun{display:block}:root[data-theme="dark"] .theme .i-moon{display:none}
.lang:hover{border-color:var(--brand)}
.lang:focus-visible{outline:3px solid var(--brand);outline-offset:2px}

.hero{flex:1;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:36px;align-items:center;padding-block:28px}
.words{min-width:0}
.soon{display:block;margin:-.12em 0 calc(14px - .3em);padding-block:.12em .3em;font-weight:700;font-size:clamp(52px,8.5vw,104px);line-height:1.05;color:var(--brand)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){.soon{
  background:linear-gradient(100deg,var(--brand) 0%,var(--brand) 42%,var(--gold-deep) 50%,var(--brand) 58%,var(--brand) 100%);background-size:250% 100%;background-position:100% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent}}
html[lang="en"] .soon{letter-spacing:-.03em;font-size:clamp(40px,4.7vw,62px)}
.soon .ell{display:inline-flex;gap:.12em;padding-inline-start:.1em;white-space:nowrap}
.soon .ell i{width:.13em;height:.13em;border-radius:50%;background:var(--gold);animation:hop 1.4s ease-in-out 6}
.soon .ell i:nth-child(2){animation-delay:.18s}.soon .ell i:nth-child(3){animation-delay:.36s}
@keyframes shine{0%{background-position:100% 0}45%,100%{background-position:0 0}}
@keyframes hop{0%,60%,100%{transform:translateY(0);opacity:.55}30%{transform:translateY(-.22em);opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.words>*{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
.words>.soon{animation:rise .7s cubic-bezier(.2,.7,.2,1) both,shine 5s ease-in-out 1.6s 3}
.words>h1{animation-delay:.12s}.words>.sub{animation-delay:.24s}
.stage{animation:rise .8s cubic-bezier(.2,.7,.2,1) .18s both}
h1{font-size:clamp(24px,3.1vw,36px);line-height:1.3;margin:0 0 16px;font-weight:700;text-wrap:balance}
html[lang="en"] h1{line-height:1.18;letter-spacing:-.015em}
.sub{font-size:18px;color:var(--ink-2);margin:0;max-width:38ch}

.stage{transition:background-color .3s ease,border-color .3s ease;position:relative;min-width:0;border-radius:24px;background:var(--surface);border:1px solid var(--line);overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:center;gap:8px;padding:18px}
.dots{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--cols,22),1fr);grid-template-rows:repeat(var(--rows,14),1fr);pointer-events:none}
.dots span{place-self:center;width:3px;height:3px;border-radius:50%;background:var(--dot)}
.dots:empty{background-image:radial-gradient(var(--dot) 1.5px,transparent 1.6px);background-size:28px 28px;background-position:center}
.draw{position:relative;min-width:0}
.draw svg{display:block;width:100%;height:auto;max-height:520px;overflow:visible}
.g-out{fill:none;stroke:var(--garment-stroke);stroke-width:1.7;stroke-linejoin:round}
.g-detail{fill:none;stroke:var(--garment-stroke);stroke-width:1.2;stroke-linecap:round;opacity:.6}
.g-seam{fill:none;stroke:var(--garment-stroke);stroke-width:1;stroke-dasharray:3 4;opacity:.45}
.g-collar{fill:#FBFBFA;stroke:var(--garment-stroke);stroke-width:1.5;stroke-linejoin:round}
.g-btn{fill:#E9ECEE;stroke:var(--garment-stroke);stroke-width:.8}
.g-shadow{fill:#0F2A3D;fill-opacity:.18}
.band{fill:none;stroke:var(--gold);stroke-linecap:butt}
.ticks{fill:none;stroke:var(--tick);stroke-width:5;stroke-dasharray:1 5}
.caps{fill:none;stroke:var(--gold-deep);stroke-width:1.6;stroke-linecap:round}
.pill{transform-box:fill-box;transform-origin:center}
.pill rect{fill:var(--gold);stroke:var(--surface);stroke-width:2}
.pill text{fill:var(--navy);font:700 15px var(--font-en);text-anchor:middle;dominant-baseline:central;font-variant-numeric:tabular-nums}

.card{transition:background-color .3s ease,border-color .3s ease;position:relative;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 10px 30px rgba(15,42,61,.10);min-width:0}
.card h2{margin:0;font-size:16px;font-weight:700;display:flex;align-items:center;gap:8px}
.card h2 b{width:28px;height:28px;border-radius:50%;background:var(--navy);color:var(--gold);display:grid;place-items:center;font-size:13px;flex:none}
.card small{display:block;color:var(--ink-2);font-size:12px;margin-block:2px 10px}
.rows{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rows li{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:8px}
.rows .hl{position:absolute;inset:0;border-radius:inherit;background:var(--gold-soft);opacity:0}
.rows .k{position:relative;font-size:14px;color:var(--ink-2)}
.rows .v{position:relative;font:700 17px var(--font-en);font-variant-numeric:tabular-nums;color:var(--ink)}
.rows .v em{font:400 12px var(--font-ar);color:var(--ink-2);font-style:normal;margin-inline-start:4px}
html[lang="en"] .rows .v em{font-family:var(--font-en)}
.saved{display:flex;align-items:center;gap:8px;margin-block-start:10px;padding-block-start:10px;border-top:1px solid var(--line);font-size:13px;font-weight:700;color:var(--ok)}
.saved svg{width:20px;height:20px;flex:none}
.saved circle{fill:none;stroke:currentColor;stroke-width:1.8;opacity:.35}
.saved path{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.nf{grid-template-columns:minmax(0,1fr);text-align:center}
.nf .sub{margin-inline:auto}
.nf a{color:var(--brand)}
.foot{display:flex;justify-content:center;font-size:13px;color:var(--ink-2);padding-block-start:12px}

@media (max-width:860px){
  .hero{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:20px}
  .sub{max-width:none}
}
@media (max-width:560px){
  .stage{grid-template-columns:minmax(0,1fr);padding:12px}
  .brand .word img{height:26px}
  .brand .word-en img{height:19px}
}
@media (prefers-reduced-motion: reduce){
  .soon,.soon .ell i,.words>*,.stage{animation:none!important}
  .soon{background-position:100% 0}
  body,.stage,.card,.lang,.theme,.theme svg{transition:none}
}
