@font-face { font-family: Display; src: url(fonts/kufi-900.woff2) format("woff2"); font-weight: 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Display; src: url(fonts/baloo-800.woff2) format("woff2"); font-weight: 900; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F; }
@font-face { font-family: Text; src: url(fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Text; src: url(fonts/plex-arabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Text; src: url(fonts/plex-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F; }
@font-face { font-family: Text; src: url(fonts/plex-latin-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-02FF, U+2000-206F; }


:root {
    /* Sampled from the official logo. */
    --lime: #ebfb52; --violet-deep: #5206a4; --violet: #7f1ff3;
    --pink: #fd75ee; --orange: #fd5d38; --green: #1cb763;
    --ink: #2a0660; --paper: #fff; --box: #460694; --photo-pink: #f648c8; /* the backdrops of box and hand pictures */
    --gutter: clamp(16px, 5vw, 72px);
    --dir: 1;
    --fs-body: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    --fs-h2: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);
    --fs-h1: clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem);
    --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-expo: cubic-bezier(.16, 1, .3, 1); --dur-press: 140ms;
    color-scheme: light;
}
:root[dir="rtl"] { --dir: -1; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block-start: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lime); color: var(--ink); font: 400 var(--fs-body)/1.7 Text, "Noto Sans Arabic", system-ui, sans-serif; overflow-x: clip; }
h1, h2, h3 { font-family: Display, Text, sans-serif; font-weight: 900; line-height: 1.25; margin: 0; text-wrap: balance; }
:lang(en) h1, :lang(en) h2, :lang(en) h3 { line-height: 1.05; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
p, ul, dl, dd, fieldset, figure { margin: 0; padding: 0; }
p { text-wrap: pretty; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--violet-deep); color: var(--lime); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.look :focus-visible, .release :focus-visible { outline-color: var(--lime); }

.bar { position: sticky; inset-block-start: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-block-size: 64px; padding-inline: var(--gutter); background: var(--lime); }
.brand { display: flex; align-items: center; gap: 8px; min-block-size: 44px; direction: ltr; }
.brand svg { block-size: 30px; inline-size: auto; }
.brand .brand-word { block-size: 18px; }
.get { display: inline-flex; align-items: center; min-block-size: 44px; margin-inline-start: auto; padding-inline: 16px; border: 1px solid transparent; border-radius: 14px; background: var(--ink); color: var(--lime); font-weight: 700; font-size: 1rem; text-decoration: none; }
.get:hover { background: var(--violet-deep); }
.languages { display: flex; gap: 12px; }
.languages a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 700; font-size: 1rem; }

.logo { display: block; block-size: auto; overflow: visible; }
.logo .tile { filter: drop-shadow(0 10px 8px rgb(42 6 96 / .25)); } /* atelier-ignore shadow — part of the logo */

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: inline-grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 10px; min-block-size: 60px; padding: 8px 20px; border: 1px solid transparent; border-radius: 18px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1.125rem; line-height: 1.25; text-decoration: none; touch-action: manipulation; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-press) ease; }
.store > span, .store small { justify-self: start; white-space: nowrap; }
.store svg { grid-row: span 2; inline-size: 28px; block-size: 28px; fill: var(--lime); }
.store small { grid-column: 2; color: var(--lime); font-size: .875rem; font-weight: 400; }
.store.is-soon { background: none; border: 2px solid var(--ink); color: var(--ink); }
.store.is-soon svg { fill: var(--ink); }
.store.is-soon small { color: var(--ink); }
.release .store.is-soon { border-color: var(--lime); color: var(--lime); }
.release .store.is-soon svg { fill: var(--lime); }
.release .store.is-soon small { color: var(--lime); }
a.store:hover { background: var(--violet-deep); }
a.store:active { transform: scale(.97); }

.cta { display: inline-flex; align-items: center; justify-content: center; min-block-size: 60px; padding: 8px 28px; border: 1px solid transparent; border-radius: 18px; background: var(--ink); color: var(--lime); font-family: Display, Text, sans-serif; font-weight: 900; font-size: 1.25rem; text-decoration: none; touch-action: manipulation; transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-press) ease; }
.cta:hover { background: var(--violet-deep); }
.cta:active { transform: scale(.97); }

/* The first viewport: Q U I Z landed as an object, the phone standing in front of it. */
.hero { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-block-size: calc(100svh - 64px); padding-block-end: clamp(24px, 3vw, 40px); overflow: clip; }
.stage { position: relative; min-block-size: clamp(420px, 66svh, 760px); }
.tile-3d { position: absolute; inline-size: clamp(150px, 25vw, 400px); }
.tile-3d-q { inset-block-start: 6%; inset-inline-start: 2%; }
.tile-3d-u { inset-block-start: 40%; inset-inline-start: 21%; inline-size: clamp(130px, 21vw, 340px); }
.tile-3d-i { inset-block-start: 3%; inset-inline-end: 20%; inline-size: clamp(130px, 21vw, 340px); }
.tile-3d-z { inset-block-start: 34%; inset-inline-end: 2%; }
.hero-phone { position: absolute; inset-block-start: 0; inset-inline-start: 50%; inline-size: auto; block-size: 96%; max-inline-size: none; translate: -50% 0; filter: drop-shadow(0 28px 22px rgb(42 6 96 / .35)); } /* atelier-ignore shadow — the phone floats above the tiles */
.hero-copy { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-start; gap: 20px 48px; padding-inline: var(--gutter); }
.hero-copy > div:first-child { display: grid; gap: 12px; max-inline-size: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lead { max-inline-size: 34em; }

/* One authored moment: the drop. The tiles fall onto the stage, then the phone rises in front. */
.tile-3d { animation: drop 800ms var(--ease-expo) backwards; }
.tile-3d-u { animation-delay: 80ms; } .tile-3d-i { animation-delay: 160ms; } .tile-3d-z { animation-delay: 240ms; }
.hero-phone { animation: rise 700ms var(--ease-expo) backwards; }
@keyframes drop { from { translate: 0 -120svh; rotate: 24deg; } }
@keyframes rise { from { translate: -50% 40svh; } }
@keyframes fade { from { opacity: 0; } }

/* Moves only as the page scrolls, so nothing runs by itself and it needs no pause control. */

.fit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--paper); }
.fit-media { position: relative; display: grid; place-items: center; min-block-size: 640px; padding: clamp(32px, 5vw, 72px); background: var(--pink); transition: background-color 300ms ease; overflow: clip; }
.fit:has(#colour-ar:checked) .fit-media { background: var(--orange); }
.fit:has(#colour-en:checked) .fit-media { background: var(--green); }
.fit-phone { grid-area: 1 / 1; inline-size: min(100%, 400px); filter: drop-shadow(0 24px 20px rgb(42 6 96 / .35)); opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 300ms; } /* atelier-ignore shadow — product shot */
.fit:has(#colour-ku:checked) .fit-phone-ku, .fit:has(#colour-ar:checked) .fit-phone-ar, .fit:has(#colour-en:checked) .fit-phone-en { opacity: 1; visibility: visible; }
.fit-box { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(32px, 4vw, 64px) var(--gutter); }
.pick { display: flex; flex-wrap: wrap; gap: 8px; inline-size: 100%; min-inline-size: 0; border: 0; }
.pick legend { padding: 0; margin-block-end: 6px; font-weight: 700; }
.pick-note { flex-basis: 100%; font-size: 1rem; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 14px; font-weight: 700; font-size: 1rem; transition: background-color var(--dur-press) ease; }
.chip:hover > span { background: var(--lime); }
.chip input:checked + span { background: var(--ink); color: var(--lime); }
.chip input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 3px; }
.chip-soon > span { border-style: dashed; border-color: var(--violet-deep); font-weight: 400; background: none !important; }
.chip-soon small { font-size: .875rem; }
.subjects { display: none; }
.fit:has(#size-sci:checked) .subjects-sci, .fit:has(#size-lit:checked) .subjects-lit, .fit:has(#size-g9:checked) .subjects-g9 { display: block; }

.look { background: var(--violet-deep); color: var(--paper); }
.look-head { display: grid; gap: 12px; padding: clamp(72px, 9vw, 130px) var(--gutter) clamp(32px, 4vw, 56px); }
.look-head h2 { color: var(--lime); }
.rack { display: flex; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-color: var(--lime) var(--ink); }
.rack:focus-visible { outline-offset: -6px; outline-color: var(--lime); }
.panel { flex: none; display: flex; flex-direction: column; gap: 24px; inline-size: clamp(300px, 30vw, 440px); padding: clamp(28px, 3vw, 44px); scroll-snap-align: start; background: var(--lime); color: var(--ink); }
.panel-text { display: grid; gap: 8px; order: -1; min-block-size: 11.5em; align-content: start; }
.panel h3 { font-size: clamp(1.5rem, 1.25rem + .9vw, 2.125rem); }
.panel-home { background: var(--violet); color: var(--paper); }
.panel-offline { position: relative; background: var(--photo-pink); padding: 0; justify-content: space-between; }
.panel-offline .panel-text { padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 44px) 0; }
.panel-photo { flex: 1; inline-size: 100%; min-block-size: 0; object-fit: cover; object-position: 50% 30%; }
.panel-practice { background: var(--green); }
.panel-exams { background: var(--orange); }
.panel-me { background: var(--pink); }
.device { inline-size: min(100%, 300px); margin-inline: auto; padding: 8px; border-radius: 42px; background: var(--ink); }
.device img { border-radius: 34px; }

.release { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; background: var(--box); color: var(--paper); }
.release-box { inline-size: 100%; block-size: 100%; object-fit: contain; }
.release-text { display: grid; gap: 16px; padding: clamp(56px, 7vw, 110px) var(--gutter); }
.release-text > h2 { color: var(--lime); }

.spec { padding: clamp(72px, 9vw, 150px) var(--gutter); background: var(--lime); }
.box-label { display: grid; gap: clamp(20px, 3vw, 40px); max-inline-size: 960px; margin-inline: auto; padding: clamp(24px, 4vw, 56px); background: var(--paper); rotate: -1deg; }
.box-label-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.box-label-logo { flex: none; inline-size: clamp(88px, 12vw, 150px); }
.box-label dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.box-label dl > div { padding-block: 12px; border-block-start: 2px solid var(--ink); }
.box-label dt { font-weight: 700; font-size: 1rem; }

.seat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(48px, 6vw, 96px) var(--gutter); background: var(--orange); }
.seat-bag { inline-size: min(100%, 520px); margin-inline: auto; filter: drop-shadow(0 18px 14px rgb(42 6 96 / .35)); } /* atelier-ignore shadow — the cut-out sits on a flat field */
.ticket { display: grid; gap: 16px; padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: var(--lime); }
.ticket h2 { font-size: clamp(1.625rem, 1rem + 3vw, 3.75rem); }

.ltr { direction: ltr; unicode-bidi: isolate; }
.band { position: relative; display: grid; gap: 12px; padding: 24px var(--gutter) clamp(40px, 6vw, 72px); overflow: clip; }
.band-q { background: var(--violet); color: #fff; }
.band-u { background: var(--pink); }
.band-i { background: var(--orange); }
.band-z { background: var(--green); }
.band h1 { max-inline-size: 70%; font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem); }
.back { display: inline-flex; align-items: center; min-block-size: 44px; justify-self: start; font-weight: 700; }
.band-tile { position: absolute; inline-size: clamp(120px, 20vw, 280px); inset-block-end: -18%; inset-inline-end: var(--gutter); }
.band-letter { fill: var(--violet-deep); }
.band-q .band-letter { fill: var(--violet); }
.band-u .band-letter { fill: var(--pink); }
.band-i .band-letter { fill: var(--orange); }
.band-z .band-letter { fill: var(--green); }
.doc { background: var(--paper); padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 96px); }
.doc > * { max-inline-size: 42rem; margin-inline: auto; }
.doc h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin-block: 40px 8px; }
.doc h3 { font-size: 1.2rem; line-height: 1.4; margin-block: 24px 4px; }
.doc ol, .doc ul { padding-inline-start: 1.4em; }
.doc li { margin-block: 6px; }
.doc a { color: var(--violet-deep); font-weight: 700; }
.doc dl { display: grid; gap: 4px 24px; grid-template-columns: max-content 1fr; }
.doc dt { font-weight: 700; }
.doc dd { margin: 0; }
.updated, .small { font-size: 1rem; }


.foot { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 12px 40px; padding: 48px var(--gutter); background: var(--lime); font-size: 1rem; }
.foot-text { display: grid; gap: 12px; order: 2; }
.foot .logo { inline-size: 100%; }
.logo-whole { order: 3; direction: ltr; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot nav a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 700; color: var(--violet-deep); }

:lang(ar), :lang(ku) { letter-spacing: 0; font-synthesis: none; --fs-h1: clamp(2.1rem, 1.4rem + 2.5vw, 3.6rem); --fs-h2: clamp(1.9rem, 1.3rem + 2.8vw, 3.75rem); }

/* All panels stand side by side on a wide screen; narrower ones scroll the rack. */
@media (min-width: 1100px) {
    .rack { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: visible; }
    .panel { inline-size: auto; min-inline-size: 0; padding: clamp(20px, 1.8vw, 32px); }
    .panel-offline { padding: 0; }
    .panel-offline .panel-text { padding: clamp(20px, 1.8vw, 32px) clamp(20px, 1.8vw, 32px) 0; }
    .panel h3 { font-size: clamp(1.375rem, .9rem + .9vw, 1.875rem); }
    .panel p { font-size: 1rem; line-height: 1.6; }
}
@media (max-width: 860px) {
    .fit, .release, .seat { grid-template-columns: minmax(0, 1fr); }
    .fit-media { min-block-size: 0; }
    .fit-phone { inline-size: min(70%, 300px); }
    .seat-bag { inline-size: min(70%, 320px); }
    .box-label dl { grid-template-columns: minmax(0, 1fr); }
    .doc dl { grid-template-columns: 1fr; }
    .doc dd { margin-block-end: 12px; }
}
@media (max-width: 680px) {
    .hero { min-block-size: 0; }
    .stage { min-block-size: 0; block-size: clamp(220px, 100svh - 380px, 520px); }
    .tile-3d { inline-size: 38vw; }
    .tile-3d-q { inset-block-start: 3%; inset-inline-start: -4%; }
    .tile-3d-i { inset-block-start: 3%; inset-inline-end: -3%; inline-size: 32vw; }
    .tile-3d-u { inset-block-start: 52%; inset-inline-start: -3%; inline-size: 32vw; }
    .tile-3d-z { inset-block-start: 48%; inset-inline-end: -5%; }
    .hero-copy { padding-block-start: 16px; }
    .hero-actions, .stores { inline-size: 100%; }
    .cta { inline-size: 100%; }
    .stores { gap: 8px; }
    .store { flex: 1 1 auto; min-block-size: 56px; padding-inline: 10px; gap: 0 8px; font-size: 1rem; }
    .store svg { inline-size: 24px; block-size: 24px; }
    .panel { inline-size: 84vw; }
    .panel-text { min-block-size: 0; }
}
@media (max-width: 520px) {
    .bar { gap: 8px; }
    .get { padding-inline: 12px; font-size: .9375rem; }
    .languages { gap: 8px; }
    .languages a { font-size: .9375rem; }
    .brand .brand-word { display: none; }
    .box-label-logo { display: none; } /* the footer carries the full logo; here it squeezed the heading onto two lines */
    .band h1 { max-inline-size: 100%; }
    .band-tile { display: none; }
    .foot { grid-template-columns: minmax(0, 1fr); }
    .logo-whole { order: 1; inline-size: 150px !important; }
}
@media (max-width: 360px) { .hero h1 { font-size: 1.75rem; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tile-3d, .hero-phone { animation: fade 200ms ease backwards; animation-delay: 0ms; }
    .fit-media, .fit-phone { transition: none; }
}
