/* copied from v2/c/style.css by tools/start.py */
/* C: animated story. Alexandria + Almarai. Sky stage, glossy 3D layers, blue ink. */
:root{--bg:#fff;--sky:#d5ebff;--sky2:#b9dcfb;--ink:#0c1e3d;--sub:#42557a;--card:#eef6ff;--blue:#1450c8;--focus:#1450c8;
 --head:80px;--pad:clamp(12px,2.6vw,36px);--head-bg:#fff;--head-ink:#0c1e3d;--hover:#eaf3ff;--menu-bg:#fff;--menu-ink:#0c1e3d;--menu-sub:#4b5e82;
 --r-btn:16px;--display:"Alexandria",system-ui,sans-serif;--body:"Almarai",system-ui,sans-serif;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#071022;--sky:#10264a;--sky2:#173666;--ink:#eaf2ff;--sub:#a9bddf;--card:#0f1f3d;--blue:#8dbbff;--focus:#8dbbff;
 --head-bg:#071022;--head-ink:#eaf2ff;--hover:#152b52;--menu-bg:#112446;--menu-ink:#eaf2ff;--menu-sub:#a9bddf;color-scheme:dark}}
:root[data-theme=dark]{--bg:#071022;--sky:#10264a;--sky2:#173666;--ink:#eaf2ff;--sub:#a9bddf;--card:#0f1f3d;--blue:#8dbbff;--focus:#8dbbff;
 --head-bg:#071022;--head-ink:#eaf2ff;--hover:#152b52;--menu-bg:#112446;--menu-ink:#eaf2ff;--menu-sub:#a9bddf;color-scheme:dark}
body{font-size:17px}
h1,h2,h3{font-weight:700}
/* desktop: logo in the middle, menu split to one side, tools to the other */
@media (min-width:1024px){
 .top{display:grid;grid-template-columns:1fr auto 1fr}
 .top .desk{grid-column:1;grid-row:1;margin:0;justify-self:start}
 .top .logo{grid-column:2;grid-row:1}
 .top .tools{grid-column:3;grid-row:1;justify-self:end}
 .dd>button{padding:0 9px;font-size:15.5px}
}

.hero{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2.5fr) minmax(230px,1fr);grid-template-areas:"head head head" "mail story web";column-gap:20px;padding:0 clamp(14px,2.2vw,32px) 22px}
.head{grid-area:head;text-align:center;padding:10px 0 14px}
h1{font-size:clamp(36px,4.2vw,60px);line-height:1.3}
h1 .nw{color:var(--blue)}
.head p{font-size:19px;color:var(--sub)}
.story{grid-area:story;position:relative;min-width:0;display:flex;flex-direction:column;align-items:center}
.scene{position:relative;width:min(100%,calc((100svh - var(--head) - 245px) * 1.42));min-width:min(100%,560px);aspect-ratio:1.42;container-type:inline-size;border-radius:32px;overflow:hidden;background:var(--sky);direction:rtl;--t:.8s cubic-bezier(.5,0,.2,1.15)}
html:not([dir=rtl]) .scene{direction:ltr}
.orbit{position:absolute;left:50%;top:112%;width:150cqw;height:150cqw;translate:-50% -35%;border-radius:50%;background:var(--sky2)}
.sp{position:absolute;filter:drop-shadow(0 1.6cqw 1.6cqw rgb(8 36 80 / .22));transition:transform var(--t),opacity .5s;max-width:none;will-change:transform}
/* every layer is placed for the finished picture (step 4, also the no-script view) and moved per step */
.sp-globe{width:15cqw;left:3cqw;top:3cqw;animation:bob 5s ease-in-out infinite}
.sp-building{width:23cqw;left:1cqw;bottom:1cqw}
.sp-envelope{width:19cqw;right:2cqw;top:3cqw;animation:bob 4.2s ease-in-out -1.5s infinite}
.sp-shop{width:21cqw;right:1cqw;bottom:2cqw}
.sp-bag{width:12cqw;right:17cqw;bottom:1cqw;animation:bob 3.8s ease-in-out -.7s infinite}
.addr{position:absolute;left:50%;top:3.2cqw;z-index:3;display:flex;align-items:center;gap:1.4cqw;padding:1.2cqw 3cqw;background:#fff;color:#0c1e3d;border-radius:99px;font-weight:800;font-size:3cqw;white-space:nowrap;transform:translateX(-50%);transition:transform var(--t),opacity .4s;box-shadow:0 1cqw 3cqw rgb(8 36 80 / .16);direction:ltr}
.addr b{width:2cqw;height:2cqw;border-radius:50%;background:var(--head-dot,#05c5c4)}
.addr span{display:inline-block;overflow:hidden}
.browser{position:absolute;left:23cqw;top:12.5cqw;width:54cqw;background:#fff;color:#0c1e3d;border-radius:2cqw;overflow:hidden;box-shadow:0 2cqw 5cqw rgb(8 36 80 / .26);transition:transform var(--t),opacity .45s;z-index:2}
.bbar{display:flex;direction:ltr;align-items:center;gap:.8cqw;padding:1cqw 1.4cqw;background:#e4ebf5}
.bbar i{width:1.2cqw;height:1.2cqw;border-radius:50%;background:#9fb0cc}
.bbar span{margin:0 auto;background:#fff;border-radius:99px;padding:0 2cqw;font-size:1.9cqw;font-weight:700}
.bnav{display:flex;align-items:center;gap:1.6cqw;padding:1.2cqw 2cqw}
.bnav b{margin-inline-end:auto;font-family:var(--display);font-size:2.7cqw}
.bnav i{width:6cqw;height:1.1cqw;border-radius:9px;background:#c9d6ea}
.bhero{position:relative;height:21cqw;margin:0 2cqw;border-radius:1.4cqw;overflow:hidden}
.bhero img{width:100%;height:100%;object-fit:cover;object-position:50% 38%}
.bhero div{position:absolute;inset-block:0;inset-inline-start:0;width:58%;display:flex;flex-direction:column;justify-content:center;gap:1.4cqw;padding:2cqw;background:rgb(8 30 70 / .82);color:#fff}
.bhero strong{font-family:var(--display);font-size:2.8cqw;line-height:1.5}
.bhero em{align-self:flex-start;font-style:normal;font-weight:800;font-size:1.9cqw;background:#ffd43b;color:#1c1500;border-radius:99px;padding:.6cqw 1.8cqw}
.btiles{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4cqw;padding:1.4cqw 2cqw 2cqw}
.btiles img{width:100%;height:11cqw;object-fit:cover;object-position:50% 30%;border-radius:1.2cqw}
.browser>*{transition:transform var(--t),opacity .45s}
.mails{position:absolute;z-index:4;right:1.5cqw;top:24cqw;display:grid;gap:1.1cqw;direction:ltr}
.mails li{display:flex;align-items:center;gap:1cqw;background:#fff;color:#0c1e3d;border-radius:99px;padding:.9cqw 1.8cqw .9cqw 1.4cqw;font-weight:800;font-size:1.9cqw;box-shadow:0 .8cqw 2cqw rgb(8 36 80 / .18);transition:transform var(--t),opacity .4s;white-space:nowrap}
.mails li:not(:first-child){display:none}
.mails .i{width:2.6cqw;height:2.6cqw;color:#00757a}
.msg{position:absolute;z-index:5;left:2cqw;top:25cqw;width:30cqw;transition:transform var(--t),opacity .45s}
.msg>div{background:#fff;color:#0c1e3d;border-radius:2cqw 2cqw 2cqw .4cqw;padding:1.4cqw 1.8cqw;box-shadow:0 1.4cqw 3.4cqw rgb(8 36 80 / .26)}
.msg b{display:block;font-size:1.8cqw;color:#00696d}
.msg span{display:block;font-size:2.1cqw;line-height:1.6;font-weight:700}
.msg .sp-bubble{width:11cqw;position:absolute;left:-1cqw;top:-8.5cqw;z-index:2;animation:bob 3.4s ease-in-out infinite}

.scene[data-step="3"] .addr,.scene[data-step="4"] .addr{opacity:0;transform:translate(-50%,-6cqw)}
.scene[data-step="3"] .mails,.scene[data-step="4"] .mails{right:auto;left:50%;top:3.2cqw;bottom:auto;translate:-50% 0}
.scene[data-step="3"] .mails li,.scene[data-step="4"] .mails li{font-size:2.6cqw}

/* step 1: the name */
.scene[data-step="1"] .addr{transform:translate(-50%,8cqw) scale(1.45)}
.scene[data-step="1"] .addr span{animation:type 1.5s steps(15) .25s both}
.scene[data-step="1"] .sp-building{transform:translate(27cqw,-5cqw) scale(1.9)}
.scene[data-step="1"] .sp-globe{transform:translate(9cqw,18cqw) scale(1.35)}
.scene[data-step="1"] .sp-envelope{transform:translate(45cqw,-30cqw) rotate(24deg) scale(.6);opacity:0}
/* step 2: the mailboxes */
.scene[data-step="2"] .sp-envelope{transform:translate(-31cqw,7cqw) scale(2)}
.scene[data-step="2"] .mails{right:auto;left:50%;top:auto;bottom:3cqw;translate:-50% 0}
.scene[data-step="2"] .mails li{display:flex;font-size:3cqw;padding:1.1cqw 2.6cqw;animation:rise .6s calc(.35s + var(--k) * .28s) both cubic-bezier(.3,1.4,.5,1)}
.scene[data-step="1"] .mails,.scene[data-step="1"] .browser,.scene[data-step="2"] .browser{opacity:0}
.scene[data-step="1"] .browser,.scene[data-step="2"] .browser{transform:translateY(24cqw) scale(.7)}
.scene[data-step="1"] .sp-shop,.scene[data-step="2"] .sp-shop{transform:translate(30cqw,6cqw);opacity:0}
.scene[data-step="1"] .sp-bag,.scene[data-step="2"] .sp-bag,.scene[data-step="3"] .sp-bag{transform:translateY(20cqw) scale(.4);opacity:0}
.scene[data-step="1"] .msg,.scene[data-step="2"] .msg,.scene[data-step="3"] .msg{transform:translate(-8cqw,10cqw) scale(.6);opacity:0}
.scene[data-step="2"] .sp-building{transform:translate(0,1cqw)}
/* step 3: the website builds */
.scene[data-step="3"] .browser{transform:scale(1.08)}
.scene[data-step="3"] .bnav{animation:rise .55s .3s both}
.scene[data-step="3"] .bhero{animation:grow .65s .6s both}
.scene[data-step="3"] .btiles img{animation:rise .5s 1s both}
.scene[data-step="3"] .btiles img:nth-child(2){animation-delay:1.15s}
.scene[data-step="3"] .btiles img:nth-child(3){animation-delay:1.3s}
.scene[data-step="4"] .msg{animation:ping .7s .2s both}
.scene[data-step="1"] .mails li{display:none}

.steps{display:flex;gap:8px;margin:12px 0 0;padding:0;width:100%;max-width:640px;list-style:none}
.steps li{flex:1;min-width:0}
.steps button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;width:100%;min-height:48px;padding:4px 2px;border:0;background:none;font-weight:800;font-size:15px;color:var(--sub)}
.steps i{display:block;width:100%;height:6px;border-radius:9px;background:var(--card);overflow:hidden;position:relative}
.steps button[aria-pressed=true]{color:var(--ink)}
.steps i::after{content:"";position:absolute;inset:0;background:var(--blue);transform:scaleX(0);transform-origin:right}
html:not([dir=rtl]) .steps i::after{transform-origin:left}
.steps button.done i::after,.steps button[aria-pressed=true] i::after{transform:none}
.run .steps button[aria-pressed=true] i::after{animation:fill var(--dur,2s) linear both}
.pause{position:absolute;z-index:6;top:10px;inset-inline-end:10px;width:40px;height:40px;display:none}
.run .pause{display:grid}

.pick{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--card);border-radius:28px;padding:20px 16px;min-width:0;align-self:stretch}
.pick-mail{grid-area:mail}.pick-web{grid-area:web}
.pick .art{width:min(150px,60%);height:150px;object-fit:contain;animation:bob 4.5s ease-in-out infinite}
.pick-web .art{animation-delay:-2s}
.pick h2{font-size:25px;line-height:1.45;margin-top:10px}
.pick h2 a{padding-block:11px;margin-block:-11px;display:inline-block}
.pick h2 a:hover{text-decoration:underline;text-underline-offset:5px}
.pick p{color:var(--sub);margin:6px 0 18px;font-weight:700}
.pick .wa{width:100%;min-height:56px}

.next{padding:44px clamp(16px,4vw,64px) 70px;background:var(--card)}
.next h2{font-size:clamp(28px,3vw,42px);text-align:center}
.next ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin:26px auto 0;max-width:1080px;padding:0;list-style:none}
.next li{text-align:center}
.next li img{width:130px;height:130px;object-fit:contain;margin:0 auto}
.next h3{font-size:22px;margin-top:10px}
.next li p{color:var(--sub)}

@media (max-width:1023px){
 .hero{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"head head" "story story" "mail web";column-gap:10px;row-gap:10px}
 .scene{width:100%;min-width:0;max-width:720px}
}
@media (max-width:767px){
 :root{--head:62px}
 .hero{padding:0 10px 10px;row-gap:7px}
 .head{padding:2px 0 2px}
 h1{font-size:clamp(21px,6.5vw,28px);line-height:1.45}
 .head p{display:none}
 .scene{aspect-ratio:1.18;border-radius:22px}
 .sp-globe{top:5cqw;width:16cqw}
 .addr{font-size:4cqw;top:3cqw}
 .browser{left:15cqw;width:70cqw;top:15cqw}
 .bbar span{font-size:2.5cqw}.bnav b{font-size:3.6cqw}
 .bhero{height:27cqw}.bhero strong{font-size:3.6cqw}.bhero em{font-size:2.8cqw}
 .btiles img{height:14cqw}
 .sp-envelope{width:18cqw;right:0;top:9cqw}
 .sp-building{width:24cqw}.sp-shop{width:23cqw}.sp-bag{width:13cqw;right:19cqw}
 .mails{right:1cqw;top:28cqw}
 .mails li{font-size:2.9cqw}.mails .i{width:3.6cqw;height:3.6cqw}
 .scene[data-step="3"] .mails li,.scene[data-step="4"] .mails li{font-size:3.6cqw}
 .scene[data-step="2"] .mails li{font-size:4cqw}
 .scene[data-step="1"] .sp-building{transform:translate(25cqw,-9cqw) scale(2)}
 .scene[data-step="2"] .sp-envelope{transform:translate(-32cqw,6cqw) scale(2)}
 .msg{width:44cqw;top:auto;bottom:3cqw;left:27cqw}
 .msg b{font-size:2.8cqw}.msg span{font-size:3.1cqw}
 .msg .sp-bubble{width:13cqw;left:-7cqw;top:-7cqw}
 .scene[data-step="3"] .browser{transform:none}
 .steps{margin-top:4px;gap:5px}
 .steps button{min-height:44px;font-size:12.5px;gap:3px}
 .steps i{height:5px}
 .pause{top:auto;bottom:62px;inset-inline-end:6px;width:34px;height:34px}
 .pick{border-radius:20px;padding:6px 6px 8px;justify-content:flex-start}
 .pick .art{display:none}
 .pick h2{font-size:clamp(14.5px,4.2vw,17px);margin-top:2px;line-height:1.5;min-height:3em;display:grid;place-items:center}
 .pick p{font-size:clamp(12px,3.4vw,13.5px);margin:2px 0 8px;line-height:1.55;flex:1}
 .pick .wa{min-height:50px;padding:4px 6px;font-size:clamp(13px,3.7vw,15px);gap:5px}
 .next{padding:30px 14px 40px}
 .next ol{grid-template-columns:minmax(0,1fr);gap:12px}
 .next li{display:grid;grid-template-columns:86px minmax(0,1fr);column-gap:14px;text-align:start;background:var(--bg);border-radius:20px;padding:12px}
 .next li img{grid-row:1/3;width:86px;height:86px}
 .next h3{font-size:18px;margin:6px 0 0}
 .next li p{font-size:15px}
}
@media (max-width:767px) and (max-height:700px){
 .scene{aspect-ratio:1.55;width:92%}
}
@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -1.2cqw}}
@keyframes type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes rise{from{transform:translateY(7cqw);opacity:0}to{transform:none;opacity:1}}
@keyframes grow{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes ping{0%{transform:translateY(8cqw) scale(.5);opacity:0}70%{transform:translateY(-1cqw) scale(1.05);opacity:1}100%{transform:none;opacity:1}}
@keyframes fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* photo inside the mock site sits beside the text, so no head is cut or covered */
.bhero{background:#081e46}
.bhero img{position:absolute;inset-block:0;inset-inline-end:0;width:48%;object-position:50% 8%}
.bhero div{width:52%;background:none}
.pick h2{line-height:1.6}

@media (min-width:768px){.msg{top:auto;bottom:1.5cqw;left:15cqw;width:33cqw}}
@media (max-width:767px) and (max-height:760px){.hero{grid-template-areas:"head head" "mail web" "story story"}.pick h2{min-height:0}}
